From 60cef60b4a465bf07231404b15ddfc1b10070491 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Wed, 26 Jul 2023 17:47:39 +0000 Subject: [PATCH 1/2] feat: Added support for signed container image and custom audience and nonce requests New fields have been incorporated into the VerifyAttestationRequest proto message to accommodate two additional features: signed container image and custom audience and nonce. PiperOrigin-RevId: 551026956 Source-Link: https://github.com/googleapis/googleapis/commit/a31b53e9238b972c0a9b00a5f22e95ffeeb88244 Source-Link: https://github.com/googleapis/googleapis-gen/commit/640cd434fc3b469bbc236fc4d5251b696b1801b6 Copy-Tag: eyJwIjoiamF2YS1jb25maWRlbnRpYWxjb21wdXRpbmcvLk93bEJvdC55YW1sIiwiaCI6IjY0MGNkNDM0ZmMzYjQ2OWJiYzIzNmZjNGQ1MjUxYjY5NmIxODAxYjYifQ== --- .../v1/ConfidentialComputingGrpc.java | 511 ------ .../v1alpha1/ConfidentialComputingGrpc.java | 515 ------ .../v1/ServiceProto.java | 228 --- .../v1/VerifyAttestationRequest.java | 1282 -------------- .../v1/VerifyAttestationRequestOrBuilder.java | 146 -- .../v1alpha1/ServiceProto.java | 230 --- .../v1/ConfidentialComputingClient.java | 4 + .../v1/ConfidentialComputingSettings.java | 1 + .../v1/gapic_metadata.json | 0 .../v1/package-info.java | 0 .../v1/stub/ConfidentialComputingStub.java | 0 .../ConfidentialComputingStubSettings.java | 0 ...cConfidentialComputingCallableFactory.java | 0 .../stub/GrpcConfidentialComputingStub.java | 1 + ...nConfidentialComputingCallableFactory.java | 0 .../HttpJsonConfidentialComputingStub.java | 0 .../reflect-config.json | 81 + ...nfidentialComputingClientHttpJsonTest.java | 4 + .../v1/ConfidentialComputingClientTest.java | 7 + .../v1/MockConfidentialComputing.java | 0 .../v1/MockConfidentialComputingImpl.java | 0 .../v1/MockLocations.java | 0 .../v1/MockLocationsImpl.java | 0 .../v1/ConfidentialComputingGrpc.java | 409 +++++ .../confidentialcomputing/v1/Challenge.java | 693 +++----- .../v1/ChallengeName.java | 0 .../v1/ChallengeOrBuilder.java | 73 +- .../v1/ConfidentialSpaceInfo.java | 884 ++++++++++ .../v1/ConfidentialSpaceInfoOrBuilder.java | 58 + .../v1/ContainerImageSignature.java | 818 +++++++++ .../v1/ContainerImageSignatureOrBuilder.java | 66 + .../v1/CreateChallengeRequest.java | 516 ++---- .../v1/CreateChallengeRequestOrBuilder.java | 55 +- .../v1/GcpCredentials.java | 365 ++-- .../v1/GcpCredentialsOrBuilder.java | 36 +- .../v1/LocationName.java | 0 .../v1/ServiceProto.java | 266 +++ .../v1/SignedEntity.java | 884 ++++++++++ .../v1/SignedEntityOrBuilder.java | 58 + .../v1/SigningAlgorithm.java | 167 ++ .../v1/TokenOptions.java | 851 +++++++++ .../v1/TokenOptionsOrBuilder.java | 80 + .../v1/TpmAttestation.java | 1192 +++++-------- .../v1/TpmAttestationOrBuilder.java | 51 +- .../v1/VerifyAttestationRequest.java | 1545 +++++++++++++++++ .../v1/VerifyAttestationRequestOrBuilder.java | 150 ++ .../v1/VerifyAttestationResponse.java | 357 ++-- .../VerifyAttestationResponseOrBuilder.java | 27 +- .../confidentialcomputing/v1/service.proto | 77 + .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../createchallenge/AsyncCreateChallenge.java | 0 .../createchallenge/SyncCreateChallenge.java | 0 ...cCreateChallengeLocationnameChallenge.java | 0 .../SyncCreateChallengeStringChallenge.java | 0 .../getlocation/AsyncGetLocation.java | 0 .../getlocation/SyncGetLocation.java | 0 .../listlocations/AsyncListLocations.java | 0 .../AsyncListLocationsPaged.java | 0 .../listlocations/SyncListLocations.java | 0 .../AsyncVerifyAttestation.java | 4 + .../SyncVerifyAttestation.java | 4 + .../createchallenge/SyncCreateChallenge.java | 0 .../createchallenge/SyncCreateChallenge.java | 0 .../v1alpha1/ConfidentialComputingClient.java | 0 .../ConfidentialComputingSettings.java | 1 + .../v1alpha1/gapic_metadata.json | 0 .../v1alpha1/package-info.java | 0 .../stub/ConfidentialComputingStub.java | 0 .../ConfidentialComputingStubSettings.java | 0 ...cConfidentialComputingCallableFactory.java | 0 .../stub/GrpcConfidentialComputingStub.java | 1 + ...nConfidentialComputingCallableFactory.java | 0 .../HttpJsonConfidentialComputingStub.java | 0 .../reflect-config.json | 0 ...nfidentialComputingClientHttpJsonTest.java | 0 .../ConfidentialComputingClientTest.java | 0 .../v1alpha1/MockConfidentialComputing.java | 0 .../MockConfidentialComputingImpl.java | 0 .../v1alpha1/MockLocations.java | 0 .../v1alpha1/MockLocationsImpl.java | 0 .../v1alpha1/ConfidentialComputingGrpc.java | 409 +++++ .../v1alpha1/Challenge.java | 657 +++---- .../v1alpha1/ChallengeName.java | 0 .../v1alpha1/ChallengeOrBuilder.java | 67 +- .../v1alpha1/CreateChallengeRequest.java | 537 +++--- .../CreateChallengeRequestOrBuilder.java | 55 +- .../v1alpha1/GcpCredentials.java | 352 ++-- .../v1alpha1/GcpCredentialsOrBuilder.java | 27 +- .../v1alpha1/LocationName.java | 0 .../v1alpha1/ServiceProto.java | 204 +++ .../v1alpha1/TpmAttestation.java | 1329 ++++++-------- .../v1alpha1/TpmAttestationOrBuilder.java | 66 +- .../v1alpha1/VerifyAttestationRequest.java | 718 +++----- .../VerifyAttestationRequestOrBuilder.java | 81 +- .../v1alpha1/VerifyAttestationResponse.java | 335 ++-- .../VerifyAttestationResponseOrBuilder.java | 21 +- .../v1alpha1/service.proto | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../createchallenge/AsyncCreateChallenge.java | 0 .../createchallenge/SyncCreateChallenge.java | 0 ...cCreateChallengeLocationnameChallenge.java | 0 .../SyncCreateChallengeStringChallenge.java | 0 .../getlocation/AsyncGetLocation.java | 0 .../getlocation/SyncGetLocation.java | 0 .../listlocations/AsyncListLocations.java | 0 .../AsyncListLocationsPaged.java | 0 .../listlocations/SyncListLocations.java | 0 .../AsyncVerifyAttestation.java | 0 .../SyncVerifyAttestation.java | 0 .../createchallenge/SyncCreateChallenge.java | 0 .../createchallenge/SyncCreateChallenge.java | 0 115 files changed, 9801 insertions(+), 7755 deletions(-) delete mode 100644 java-confidentialcomputing/grpc-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingGrpc.java delete mode 100644 java-confidentialcomputing/grpc-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/ConfidentialComputingGrpc.java delete mode 100644 java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ServiceProto.java delete mode 100644 java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyAttestationRequest.java delete mode 100644 java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyAttestationRequestOrBuilder.java delete mode 100644 java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/ServiceProto.java rename {java-confidentialcomputing => owl-bot-staging/java-confidentialcomputing/v1}/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingClient.java (98%) rename {java-confidentialcomputing => owl-bot-staging/java-confidentialcomputing/v1}/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingSettings.java (99%) rename {java-confidentialcomputing => owl-bot-staging/java-confidentialcomputing/v1}/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/gapic_metadata.json (100%) rename {java-confidentialcomputing => owl-bot-staging/java-confidentialcomputing/v1}/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/package-info.java (100%) rename {java-confidentialcomputing => owl-bot-staging/java-confidentialcomputing/v1}/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/stub/ConfidentialComputingStub.java (100%) rename {java-confidentialcomputing => owl-bot-staging/java-confidentialcomputing/v1}/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/stub/ConfidentialComputingStubSettings.java (100%) rename {java-confidentialcomputing => owl-bot-staging/java-confidentialcomputing/v1}/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/stub/GrpcConfidentialComputingCallableFactory.java (100%) rename {java-confidentialcomputing => owl-bot-staging/java-confidentialcomputing/v1}/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/stub/GrpcConfidentialComputingStub.java (99%) rename {java-confidentialcomputing => owl-bot-staging/java-confidentialcomputing/v1}/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/stub/HttpJsonConfidentialComputingCallableFactory.java (100%) rename {java-confidentialcomputing => owl-bot-staging/java-confidentialcomputing/v1}/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/stub/HttpJsonConfidentialComputingStub.java (100%) rename {java-confidentialcomputing => owl-bot-staging/java-confidentialcomputing/v1}/google-cloud-confidentialcomputing/src/main/resources/META-INF/native-image/com.google.cloud.confidentialcomputing.v1/reflect-config.json (93%) rename {java-confidentialcomputing => owl-bot-staging/java-confidentialcomputing/v1}/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingClientHttpJsonTest.java (97%) rename {java-confidentialcomputing => owl-bot-staging/java-confidentialcomputing/v1}/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingClientTest.java (96%) rename {java-confidentialcomputing => owl-bot-staging/java-confidentialcomputing/v1}/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1/MockConfidentialComputing.java (100%) rename {java-confidentialcomputing => owl-bot-staging/java-confidentialcomputing/v1}/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1/MockConfidentialComputingImpl.java (100%) rename {java-confidentialcomputing => owl-bot-staging/java-confidentialcomputing/v1}/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1/MockLocations.java (100%) rename {java-confidentialcomputing => owl-bot-staging/java-confidentialcomputing/v1}/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1/MockLocationsImpl.java (100%) create mode 100644 owl-bot-staging/java-confidentialcomputing/v1/grpc-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingGrpc.java rename {java-confidentialcomputing => owl-bot-staging/java-confidentialcomputing/v1}/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/Challenge.java (68%) rename {java-confidentialcomputing => owl-bot-staging/java-confidentialcomputing/v1}/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ChallengeName.java (100%) rename {java-confidentialcomputing => owl-bot-staging/java-confidentialcomputing/v1}/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ChallengeOrBuilder.java (73%) create mode 100644 owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ConfidentialSpaceInfo.java create mode 100644 owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ConfidentialSpaceInfoOrBuilder.java create mode 100644 owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ContainerImageSignature.java create mode 100644 owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ContainerImageSignatureOrBuilder.java rename {java-confidentialcomputing => owl-bot-staging/java-confidentialcomputing/v1}/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/CreateChallengeRequest.java (61%) rename {java-confidentialcomputing => owl-bot-staging/java-confidentialcomputing/v1}/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/CreateChallengeRequestOrBuilder.java (51%) rename {java-confidentialcomputing => owl-bot-staging/java-confidentialcomputing/v1}/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/GcpCredentials.java (68%) rename {java-confidentialcomputing => owl-bot-staging/java-confidentialcomputing/v1}/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/GcpCredentialsOrBuilder.java (61%) rename {java-confidentialcomputing => owl-bot-staging/java-confidentialcomputing/v1}/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/LocationName.java (100%) create mode 100644 owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ServiceProto.java create mode 100644 owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/SignedEntity.java create mode 100644 owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/SignedEntityOrBuilder.java create mode 100644 owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/SigningAlgorithm.java create mode 100644 owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/TokenOptions.java create mode 100644 owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/TokenOptionsOrBuilder.java rename {java-confidentialcomputing => owl-bot-staging/java-confidentialcomputing/v1}/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/TpmAttestation.java (73%) rename {java-confidentialcomputing => owl-bot-staging/java-confidentialcomputing/v1}/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/TpmAttestationOrBuilder.java (81%) create mode 100644 owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyAttestationRequest.java create mode 100644 owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyAttestationRequestOrBuilder.java rename {java-confidentialcomputing => owl-bot-staging/java-confidentialcomputing/v1}/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyAttestationResponse.java (63%) rename {java-confidentialcomputing => owl-bot-staging/java-confidentialcomputing/v1}/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyAttestationResponseOrBuilder.java (52%) rename {java-confidentialcomputing => owl-bot-staging/java-confidentialcomputing/v1}/proto-google-cloud-confidentialcomputing-v1/src/main/proto/google/cloud/confidentialcomputing/v1/service.proto (68%) rename {java-confidentialcomputing => owl-bot-staging/java-confidentialcomputing/v1}/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/create/SyncCreateSetCredentialsProvider.java (100%) rename {java-confidentialcomputing => owl-bot-staging/java-confidentialcomputing/v1}/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/create/SyncCreateSetCredentialsProvider1.java (100%) rename {java-confidentialcomputing => owl-bot-staging/java-confidentialcomputing/v1}/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/create/SyncCreateSetEndpoint.java (100%) rename {java-confidentialcomputing => owl-bot-staging/java-confidentialcomputing/v1}/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/createchallenge/AsyncCreateChallenge.java (100%) rename {java-confidentialcomputing => owl-bot-staging/java-confidentialcomputing/v1}/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/createchallenge/SyncCreateChallenge.java (100%) rename {java-confidentialcomputing => owl-bot-staging/java-confidentialcomputing/v1}/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/createchallenge/SyncCreateChallengeLocationnameChallenge.java (100%) rename {java-confidentialcomputing => owl-bot-staging/java-confidentialcomputing/v1}/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/createchallenge/SyncCreateChallengeStringChallenge.java (100%) rename {java-confidentialcomputing => owl-bot-staging/java-confidentialcomputing/v1}/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/getlocation/AsyncGetLocation.java (100%) rename {java-confidentialcomputing => owl-bot-staging/java-confidentialcomputing/v1}/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/getlocation/SyncGetLocation.java (100%) rename {java-confidentialcomputing => owl-bot-staging/java-confidentialcomputing/v1}/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/listlocations/AsyncListLocations.java (100%) rename {java-confidentialcomputing => owl-bot-staging/java-confidentialcomputing/v1}/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/listlocations/AsyncListLocationsPaged.java (100%) rename {java-confidentialcomputing => owl-bot-staging/java-confidentialcomputing/v1}/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/listlocations/SyncListLocations.java (100%) rename {java-confidentialcomputing => owl-bot-staging/java-confidentialcomputing/v1}/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/verifyattestation/AsyncVerifyAttestation.java (90%) rename {java-confidentialcomputing => owl-bot-staging/java-confidentialcomputing/v1}/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/verifyattestation/SyncVerifyAttestation.java (89%) rename {java-confidentialcomputing => owl-bot-staging/java-confidentialcomputing/v1}/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputingsettings/createchallenge/SyncCreateChallenge.java (100%) rename {java-confidentialcomputing => owl-bot-staging/java-confidentialcomputing/v1}/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/stub/confidentialcomputingstubsettings/createchallenge/SyncCreateChallenge.java (100%) rename {java-confidentialcomputing => owl-bot-staging/java-confidentialcomputing/v1alpha1}/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/ConfidentialComputingClient.java (100%) rename {java-confidentialcomputing => owl-bot-staging/java-confidentialcomputing/v1alpha1}/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/ConfidentialComputingSettings.java (99%) rename {java-confidentialcomputing => owl-bot-staging/java-confidentialcomputing/v1alpha1}/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/gapic_metadata.json (100%) rename {java-confidentialcomputing => owl-bot-staging/java-confidentialcomputing/v1alpha1}/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/package-info.java (100%) rename {java-confidentialcomputing => owl-bot-staging/java-confidentialcomputing/v1alpha1}/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/stub/ConfidentialComputingStub.java (100%) rename {java-confidentialcomputing => owl-bot-staging/java-confidentialcomputing/v1alpha1}/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/stub/ConfidentialComputingStubSettings.java (100%) rename {java-confidentialcomputing => owl-bot-staging/java-confidentialcomputing/v1alpha1}/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/stub/GrpcConfidentialComputingCallableFactory.java (100%) rename {java-confidentialcomputing => owl-bot-staging/java-confidentialcomputing/v1alpha1}/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/stub/GrpcConfidentialComputingStub.java (99%) rename {java-confidentialcomputing => owl-bot-staging/java-confidentialcomputing/v1alpha1}/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/stub/HttpJsonConfidentialComputingCallableFactory.java (100%) rename {java-confidentialcomputing => owl-bot-staging/java-confidentialcomputing/v1alpha1}/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/stub/HttpJsonConfidentialComputingStub.java (100%) rename {java-confidentialcomputing => owl-bot-staging/java-confidentialcomputing/v1alpha1}/google-cloud-confidentialcomputing/src/main/resources/META-INF/native-image/com.google.cloud.confidentialcomputing.v1alpha1/reflect-config.json (100%) rename {java-confidentialcomputing => owl-bot-staging/java-confidentialcomputing/v1alpha1}/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1alpha1/ConfidentialComputingClientHttpJsonTest.java (100%) rename {java-confidentialcomputing => owl-bot-staging/java-confidentialcomputing/v1alpha1}/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1alpha1/ConfidentialComputingClientTest.java (100%) rename {java-confidentialcomputing => owl-bot-staging/java-confidentialcomputing/v1alpha1}/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1alpha1/MockConfidentialComputing.java (100%) rename {java-confidentialcomputing => owl-bot-staging/java-confidentialcomputing/v1alpha1}/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1alpha1/MockConfidentialComputingImpl.java (100%) rename {java-confidentialcomputing => owl-bot-staging/java-confidentialcomputing/v1alpha1}/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1alpha1/MockLocations.java (100%) rename {java-confidentialcomputing => owl-bot-staging/java-confidentialcomputing/v1alpha1}/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1alpha1/MockLocationsImpl.java (100%) create mode 100644 owl-bot-staging/java-confidentialcomputing/v1alpha1/grpc-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/ConfidentialComputingGrpc.java rename {java-confidentialcomputing => owl-bot-staging/java-confidentialcomputing/v1alpha1}/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/Challenge.java (68%) rename {java-confidentialcomputing => owl-bot-staging/java-confidentialcomputing/v1alpha1}/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/ChallengeName.java (100%) rename {java-confidentialcomputing => owl-bot-staging/java-confidentialcomputing/v1alpha1}/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/ChallengeOrBuilder.java (73%) rename {java-confidentialcomputing => owl-bot-staging/java-confidentialcomputing/v1alpha1}/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/CreateChallengeRequest.java (59%) rename {java-confidentialcomputing => owl-bot-staging/java-confidentialcomputing/v1alpha1}/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/CreateChallengeRequestOrBuilder.java (52%) rename {java-confidentialcomputing => owl-bot-staging/java-confidentialcomputing/v1alpha1}/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/GcpCredentials.java (70%) rename {java-confidentialcomputing => owl-bot-staging/java-confidentialcomputing/v1alpha1}/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/GcpCredentialsOrBuilder.java (74%) rename {java-confidentialcomputing => owl-bot-staging/java-confidentialcomputing/v1alpha1}/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/LocationName.java (100%) create mode 100644 owl-bot-staging/java-confidentialcomputing/v1alpha1/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/ServiceProto.java rename {java-confidentialcomputing => owl-bot-staging/java-confidentialcomputing/v1alpha1}/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/TpmAttestation.java (70%) rename {java-confidentialcomputing => owl-bot-staging/java-confidentialcomputing/v1alpha1}/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/TpmAttestationOrBuilder.java (75%) rename {java-confidentialcomputing => owl-bot-staging/java-confidentialcomputing/v1alpha1}/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/VerifyAttestationRequest.java (58%) rename {java-confidentialcomputing => owl-bot-staging/java-confidentialcomputing/v1alpha1}/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/VerifyAttestationRequestOrBuilder.java (54%) rename {java-confidentialcomputing => owl-bot-staging/java-confidentialcomputing/v1alpha1}/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/VerifyAttestationResponse.java (60%) rename {java-confidentialcomputing => owl-bot-staging/java-confidentialcomputing/v1alpha1}/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/VerifyAttestationResponseOrBuilder.java (51%) rename {java-confidentialcomputing => owl-bot-staging/java-confidentialcomputing/v1alpha1}/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/proto/google/cloud/confidentialcomputing/v1alpha1/service.proto (100%) rename {java-confidentialcomputing => owl-bot-staging/java-confidentialcomputing/v1alpha1}/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/create/SyncCreateSetCredentialsProvider.java (100%) rename {java-confidentialcomputing => owl-bot-staging/java-confidentialcomputing/v1alpha1}/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/create/SyncCreateSetCredentialsProvider1.java (100%) rename {java-confidentialcomputing => owl-bot-staging/java-confidentialcomputing/v1alpha1}/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/create/SyncCreateSetEndpoint.java (100%) rename {java-confidentialcomputing => owl-bot-staging/java-confidentialcomputing/v1alpha1}/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/createchallenge/AsyncCreateChallenge.java (100%) rename {java-confidentialcomputing => owl-bot-staging/java-confidentialcomputing/v1alpha1}/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/createchallenge/SyncCreateChallenge.java (100%) rename {java-confidentialcomputing => owl-bot-staging/java-confidentialcomputing/v1alpha1}/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/createchallenge/SyncCreateChallengeLocationnameChallenge.java (100%) rename {java-confidentialcomputing => owl-bot-staging/java-confidentialcomputing/v1alpha1}/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/createchallenge/SyncCreateChallengeStringChallenge.java (100%) rename {java-confidentialcomputing => owl-bot-staging/java-confidentialcomputing/v1alpha1}/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/getlocation/AsyncGetLocation.java (100%) rename {java-confidentialcomputing => owl-bot-staging/java-confidentialcomputing/v1alpha1}/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/getlocation/SyncGetLocation.java (100%) rename {java-confidentialcomputing => owl-bot-staging/java-confidentialcomputing/v1alpha1}/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/listlocations/AsyncListLocations.java (100%) rename {java-confidentialcomputing => owl-bot-staging/java-confidentialcomputing/v1alpha1}/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/listlocations/AsyncListLocationsPaged.java (100%) rename {java-confidentialcomputing => owl-bot-staging/java-confidentialcomputing/v1alpha1}/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/listlocations/SyncListLocations.java (100%) rename {java-confidentialcomputing => owl-bot-staging/java-confidentialcomputing/v1alpha1}/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/verifyattestation/AsyncVerifyAttestation.java (100%) rename {java-confidentialcomputing => owl-bot-staging/java-confidentialcomputing/v1alpha1}/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/verifyattestation/SyncVerifyAttestation.java (100%) rename {java-confidentialcomputing => owl-bot-staging/java-confidentialcomputing/v1alpha1}/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputingsettings/createchallenge/SyncCreateChallenge.java (100%) rename {java-confidentialcomputing => owl-bot-staging/java-confidentialcomputing/v1alpha1}/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/stub/confidentialcomputingstubsettings/createchallenge/SyncCreateChallenge.java (100%) diff --git a/java-confidentialcomputing/grpc-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingGrpc.java b/java-confidentialcomputing/grpc-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingGrpc.java deleted file mode 100644 index af1b24eeb6fe..000000000000 --- a/java-confidentialcomputing/grpc-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingGrpc.java +++ /dev/null @@ -1,511 +0,0 @@ -/* - * Copyright 2023 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.confidentialcomputing.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * Service describing handlers for resources
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/confidentialcomputing/v1/service.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class ConfidentialComputingGrpc { - - private ConfidentialComputingGrpc() {} - - public static final String SERVICE_NAME = - "google.cloud.confidentialcomputing.v1.ConfidentialComputing"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest, - com.google.cloud.confidentialcomputing.v1.Challenge> - getCreateChallengeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateChallenge", - requestType = com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest.class, - responseType = com.google.cloud.confidentialcomputing.v1.Challenge.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest, - com.google.cloud.confidentialcomputing.v1.Challenge> - getCreateChallengeMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest, - com.google.cloud.confidentialcomputing.v1.Challenge> - getCreateChallengeMethod; - if ((getCreateChallengeMethod = ConfidentialComputingGrpc.getCreateChallengeMethod) == null) { - synchronized (ConfidentialComputingGrpc.class) { - if ((getCreateChallengeMethod = ConfidentialComputingGrpc.getCreateChallengeMethod) - == null) { - ConfidentialComputingGrpc.getCreateChallengeMethod = - getCreateChallengeMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateChallenge")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.confidentialcomputing.v1.Challenge - .getDefaultInstance())) - .setSchemaDescriptor( - new ConfidentialComputingMethodDescriptorSupplier("CreateChallenge")) - .build(); - } - } - } - return getCreateChallengeMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest, - com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse> - getVerifyAttestationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "VerifyAttestation", - requestType = com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest.class, - responseType = com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest, - com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse> - getVerifyAttestationMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest, - com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse> - getVerifyAttestationMethod; - if ((getVerifyAttestationMethod = ConfidentialComputingGrpc.getVerifyAttestationMethod) - == null) { - synchronized (ConfidentialComputingGrpc.class) { - if ((getVerifyAttestationMethod = ConfidentialComputingGrpc.getVerifyAttestationMethod) - == null) { - ConfidentialComputingGrpc.getVerifyAttestationMethod = - getVerifyAttestationMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "VerifyAttestation")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new ConfidentialComputingMethodDescriptorSupplier("VerifyAttestation")) - .build(); - } - } - } - return getVerifyAttestationMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static ConfidentialComputingStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ConfidentialComputingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConfidentialComputingStub(channel, callOptions); - } - }; - return ConfidentialComputingStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static ConfidentialComputingBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ConfidentialComputingBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConfidentialComputingBlockingStub(channel, callOptions); - } - }; - return ConfidentialComputingBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static ConfidentialComputingFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ConfidentialComputingFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConfidentialComputingFutureStub(channel, callOptions); - } - }; - return ConfidentialComputingFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Service describing handlers for resources
-   * 
- */ - public interface AsyncService { - - /** - * - * - *
-     * Creates a new Challenge in a given project and location.
-     * 
- */ - default void createChallenge( - com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateChallengeMethod(), responseObserver); - } - - /** - * - * - *
-     * Verifies the provided attestation info, returning a signed OIDC token.
-     * 
- */ - default void verifyAttestation( - com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getVerifyAttestationMethod(), responseObserver); - } - } - - /** - * Base class for the server implementation of the service ConfidentialComputing. - * - *
-   * Service describing handlers for resources
-   * 
- */ - public abstract static class ConfidentialComputingImplBase - implements io.grpc.BindableService, AsyncService { - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return ConfidentialComputingGrpc.bindService(this); - } - } - - /** - * A stub to allow clients to do asynchronous rpc calls to service ConfidentialComputing. - * - *
-   * Service describing handlers for resources
-   * 
- */ - public static final class ConfidentialComputingStub - extends io.grpc.stub.AbstractAsyncStub { - private ConfidentialComputingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ConfidentialComputingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConfidentialComputingStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a new Challenge in a given project and location.
-     * 
- */ - public void createChallenge( - com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateChallengeMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Verifies the provided attestation info, returning a signed OIDC token.
-     * 
- */ - public void verifyAttestation( - com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getVerifyAttestationMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service ConfidentialComputing. - * - *
-   * Service describing handlers for resources
-   * 
- */ - public static final class ConfidentialComputingBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private ConfidentialComputingBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ConfidentialComputingBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConfidentialComputingBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a new Challenge in a given project and location.
-     * 
- */ - public com.google.cloud.confidentialcomputing.v1.Challenge createChallenge( - com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateChallengeMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Verifies the provided attestation info, returning a signed OIDC token.
-     * 
- */ - public com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse verifyAttestation( - com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getVerifyAttestationMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service - * ConfidentialComputing. - * - *
-   * Service describing handlers for resources
-   * 
- */ - public static final class ConfidentialComputingFutureStub - extends io.grpc.stub.AbstractFutureStub { - private ConfidentialComputingFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ConfidentialComputingFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConfidentialComputingFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a new Challenge in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.confidentialcomputing.v1.Challenge> - createChallenge(com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateChallengeMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Verifies the provided attestation info, returning a signed OIDC token.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse> - verifyAttestation( - com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getVerifyAttestationMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_CHALLENGE = 0; - private static final int METHODID_VERIFY_ATTESTATION = 1; - - 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 AsyncService serviceImpl; - private final int methodId; - - MethodHandlers(AsyncService 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_CREATE_CHALLENGE: - serviceImpl.createChallenge( - (com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_VERIFY_ATTESTATION: - serviceImpl.verifyAttestation( - (com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse>) - 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(); - } - } - } - - public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateChallengeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest, - com.google.cloud.confidentialcomputing.v1.Challenge>( - service, METHODID_CREATE_CHALLENGE))) - .addMethod( - getVerifyAttestationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest, - com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse>( - service, METHODID_VERIFY_ATTESTATION))) - .build(); - } - - private abstract static class ConfidentialComputingBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - ConfidentialComputingBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.confidentialcomputing.v1.ServiceProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("ConfidentialComputing"); - } - } - - private static final class ConfidentialComputingFileDescriptorSupplier - extends ConfidentialComputingBaseDescriptorSupplier { - ConfidentialComputingFileDescriptorSupplier() {} - } - - private static final class ConfidentialComputingMethodDescriptorSupplier - extends ConfidentialComputingBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - ConfidentialComputingMethodDescriptorSupplier(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 (ConfidentialComputingGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new ConfidentialComputingFileDescriptorSupplier()) - .addMethod(getCreateChallengeMethod()) - .addMethod(getVerifyAttestationMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/java-confidentialcomputing/grpc-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/ConfidentialComputingGrpc.java b/java-confidentialcomputing/grpc-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/ConfidentialComputingGrpc.java deleted file mode 100644 index 74ccf04bdd86..000000000000 --- a/java-confidentialcomputing/grpc-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/ConfidentialComputingGrpc.java +++ /dev/null @@ -1,515 +0,0 @@ -/* - * Copyright 2023 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.confidentialcomputing.v1alpha1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * Service describing handlers for resources
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/confidentialcomputing/v1alpha1/service.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class ConfidentialComputingGrpc { - - private ConfidentialComputingGrpc() {} - - public static final String SERVICE_NAME = - "google.cloud.confidentialcomputing.v1alpha1.ConfidentialComputing"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest, - com.google.cloud.confidentialcomputing.v1alpha1.Challenge> - getCreateChallengeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateChallenge", - requestType = com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest.class, - responseType = com.google.cloud.confidentialcomputing.v1alpha1.Challenge.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest, - com.google.cloud.confidentialcomputing.v1alpha1.Challenge> - getCreateChallengeMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest, - com.google.cloud.confidentialcomputing.v1alpha1.Challenge> - getCreateChallengeMethod; - if ((getCreateChallengeMethod = ConfidentialComputingGrpc.getCreateChallengeMethod) == null) { - synchronized (ConfidentialComputingGrpc.class) { - if ((getCreateChallengeMethod = ConfidentialComputingGrpc.getCreateChallengeMethod) - == null) { - ConfidentialComputingGrpc.getCreateChallengeMethod = - getCreateChallengeMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateChallenge")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.confidentialcomputing.v1alpha1.Challenge - .getDefaultInstance())) - .setSchemaDescriptor( - new ConfidentialComputingMethodDescriptorSupplier("CreateChallenge")) - .build(); - } - } - } - return getCreateChallengeMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest, - com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse> - getVerifyAttestationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "VerifyAttestation", - requestType = com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest.class, - responseType = - com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest, - com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse> - getVerifyAttestationMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest, - com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse> - getVerifyAttestationMethod; - if ((getVerifyAttestationMethod = ConfidentialComputingGrpc.getVerifyAttestationMethod) - == null) { - synchronized (ConfidentialComputingGrpc.class) { - if ((getVerifyAttestationMethod = ConfidentialComputingGrpc.getVerifyAttestationMethod) - == null) { - ConfidentialComputingGrpc.getVerifyAttestationMethod = - getVerifyAttestationMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "VerifyAttestation")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.confidentialcomputing.v1alpha1 - .VerifyAttestationRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.confidentialcomputing.v1alpha1 - .VerifyAttestationResponse.getDefaultInstance())) - .setSchemaDescriptor( - new ConfidentialComputingMethodDescriptorSupplier("VerifyAttestation")) - .build(); - } - } - } - return getVerifyAttestationMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static ConfidentialComputingStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ConfidentialComputingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConfidentialComputingStub(channel, callOptions); - } - }; - return ConfidentialComputingStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static ConfidentialComputingBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ConfidentialComputingBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConfidentialComputingBlockingStub(channel, callOptions); - } - }; - return ConfidentialComputingBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static ConfidentialComputingFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ConfidentialComputingFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConfidentialComputingFutureStub(channel, callOptions); - } - }; - return ConfidentialComputingFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Service describing handlers for resources
-   * 
- */ - public interface AsyncService { - - /** - * - * - *
-     * Creates a new Challenge in a given project and location.
-     * 
- */ - default void createChallenge( - com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateChallengeMethod(), responseObserver); - } - - /** - * - * - *
-     * Verifies the provided attestation info, returning a signed OIDC token.
-     * 
- */ - default void verifyAttestation( - com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getVerifyAttestationMethod(), responseObserver); - } - } - - /** - * Base class for the server implementation of the service ConfidentialComputing. - * - *
-   * Service describing handlers for resources
-   * 
- */ - public abstract static class ConfidentialComputingImplBase - implements io.grpc.BindableService, AsyncService { - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return ConfidentialComputingGrpc.bindService(this); - } - } - - /** - * A stub to allow clients to do asynchronous rpc calls to service ConfidentialComputing. - * - *
-   * Service describing handlers for resources
-   * 
- */ - public static final class ConfidentialComputingStub - extends io.grpc.stub.AbstractAsyncStub { - private ConfidentialComputingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ConfidentialComputingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConfidentialComputingStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a new Challenge in a given project and location.
-     * 
- */ - public void createChallenge( - com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateChallengeMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Verifies the provided attestation info, returning a signed OIDC token.
-     * 
- */ - public void verifyAttestation( - com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getVerifyAttestationMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service ConfidentialComputing. - * - *
-   * Service describing handlers for resources
-   * 
- */ - public static final class ConfidentialComputingBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private ConfidentialComputingBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ConfidentialComputingBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConfidentialComputingBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a new Challenge in a given project and location.
-     * 
- */ - public com.google.cloud.confidentialcomputing.v1alpha1.Challenge createChallenge( - com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateChallengeMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Verifies the provided attestation info, returning a signed OIDC token.
-     * 
- */ - public com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse - verifyAttestation( - com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getVerifyAttestationMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service - * ConfidentialComputing. - * - *
-   * Service describing handlers for resources
-   * 
- */ - public static final class ConfidentialComputingFutureStub - extends io.grpc.stub.AbstractFutureStub { - private ConfidentialComputingFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ConfidentialComputingFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConfidentialComputingFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a new Challenge in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.confidentialcomputing.v1alpha1.Challenge> - createChallenge( - com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateChallengeMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Verifies the provided attestation info, returning a signed OIDC token.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse> - verifyAttestation( - com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getVerifyAttestationMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_CHALLENGE = 0; - private static final int METHODID_VERIFY_ATTESTATION = 1; - - 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 AsyncService serviceImpl; - private final int methodId; - - MethodHandlers(AsyncService 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_CREATE_CHALLENGE: - serviceImpl.createChallenge( - (com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.confidentialcomputing.v1alpha1.Challenge>) - responseObserver); - break; - case METHODID_VERIFY_ATTESTATION: - serviceImpl.verifyAttestation( - (com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse>) - 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(); - } - } - } - - public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateChallengeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest, - com.google.cloud.confidentialcomputing.v1alpha1.Challenge>( - service, METHODID_CREATE_CHALLENGE))) - .addMethod( - getVerifyAttestationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest, - com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse>( - service, METHODID_VERIFY_ATTESTATION))) - .build(); - } - - private abstract static class ConfidentialComputingBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - ConfidentialComputingBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("ConfidentialComputing"); - } - } - - private static final class ConfidentialComputingFileDescriptorSupplier - extends ConfidentialComputingBaseDescriptorSupplier { - ConfidentialComputingFileDescriptorSupplier() {} - } - - private static final class ConfidentialComputingMethodDescriptorSupplier - extends ConfidentialComputingBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - ConfidentialComputingMethodDescriptorSupplier(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 (ConfidentialComputingGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new ConfidentialComputingFileDescriptorSupplier()) - .addMethod(getCreateChallengeMethod()) - .addMethod(getVerifyAttestationMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ServiceProto.java b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ServiceProto.java deleted file mode 100644 index b3d88972f4f3..000000000000 --- a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ServiceProto.java +++ /dev/null @@ -1,228 +0,0 @@ -/* - * Copyright 2023 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/confidentialcomputing/v1/service.proto - -package com.google.cloud.confidentialcomputing.v1; - -public final class ServiceProto { - private ServiceProto() {} - - 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_confidentialcomputing_v1_Challenge_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_confidentialcomputing_v1_Challenge_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_confidentialcomputing_v1_CreateChallengeRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_confidentialcomputing_v1_CreateChallengeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_confidentialcomputing_v1_VerifyAttestationRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_confidentialcomputing_v1_VerifyAttestationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_confidentialcomputing_v1_VerifyAttestationResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_confidentialcomputing_v1_VerifyAttestationResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_confidentialcomputing_v1_GcpCredentials_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_confidentialcomputing_v1_GcpCredentials_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_Quote_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_Quote_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_Quote_PcrValuesEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_Quote_PcrValuesEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n3google/cloud/confidentialcomputing/v1/" - + "service.proto\022%google.cloud.confidential" - + "computing.v1\032\034google/api/annotations.pro" - + "to\032\027google/api/client.proto\032\037google/api/" - + "field_behavior.proto\032\031google/api/resourc" - + "e.proto\032\037google/protobuf/timestamp.proto" - + "\"\252\002\n\tChallenge\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\0225\n\013cr" - + "eate_time\030\002 \001(\0132\032.google.protobuf.Timest" - + "ampB\004\342A\001\003\0225\n\013expire_time\030\003 \001(\0132\032.google." - + "protobuf.TimestampB\004\342A\001\003\022\022\n\004used\030\004 \001(\010B\004" - + "\342A\001\003\022\027\n\ttpm_nonce\030\006 \001(\tB\004\342A\001\003:n\352Ak\n.conf" - + "identialcomputing.googleapis.com/Challen" - + "ge\0229projects/{project}/locations/{locati" - + "on}/challenges/{uuid}\"\237\001\n\026CreateChalleng" - + "eRequest\022:\n\006parent\030\001 \001(\tB*\342A\001\002\372A#\n!locat" - + "ions.googleapis.com/Location\022I\n\tchalleng" - + "e\030\002 \001(\01320.google.cloud.confidentialcompu" - + "ting.v1.ChallengeB\004\342A\001\002\"\222\002\n\030VerifyAttest" - + "ationRequest\022J\n\tchallenge\030\001 \001(\tB7\342A\001\002\372A0" - + "\n.confidentialcomputing.googleapis.com/C" - + "hallenge\022T\n\017gcp_credentials\030\002 \001(\01325.goog" - + "le.cloud.confidentialcomputing.v1.GcpCre" - + "dentialsB\004\342A\001\001\022T\n\017tpm_attestation\030\003 \001(\0132" - + "5.google.cloud.confidentialcomputing.v1." - + "TpmAttestationB\004\342A\001\002\"<\n\031VerifyAttestatio" - + "nResponse\022\037\n\021oidc_claims_token\030\002 \001(\tB\004\342A" - + "\001\003\"3\n\016GcpCredentials\022!\n\031service_account_" - + "id_tokens\030\002 \003(\t\"\217\003\n\016TpmAttestation\022K\n\006qu" - + "otes\030\001 \003(\0132;.google.cloud.confidentialco" - + "mputing.v1.TpmAttestation.Quote\022\025\n\rtcg_e" - + "vent_log\030\002 \001(\014\022\033\n\023canonical_event_log\030\003 " - + "\001(\014\022\017\n\007ak_cert\030\004 \001(\014\022\022\n\ncert_chain\030\005 \003(\014" - + "\032\326\001\n\005Quote\022\021\n\thash_algo\030\001 \001(\005\022^\n\npcr_val" - + "ues\030\002 \003(\0132J.google.cloud.confidentialcom" - + "puting.v1.TpmAttestation.Quote.PcrValues" - + "Entry\022\021\n\traw_quote\030\003 \001(\014\022\025\n\rraw_signatur" - + "e\030\004 \001(\014\0320\n\016PcrValuesEntry\022\013\n\003key\030\001 \001(\005\022\r" - + "\n\005value\030\002 \001(\014:\0028\0012\267\004\n\025ConfidentialComput" - + "ing\022\330\001\n\017CreateChallenge\022=.google.cloud.c" - + "onfidentialcomputing.v1.CreateChallengeR" - + "equest\0320.google.cloud.confidentialcomput" - + "ing.v1.Challenge\"T\332A\020parent,challenge\202\323\344" - + "\223\002;\"./v1/{parent=projects/*/locations/*}" - + "/challenges:\tchallenge\022\350\001\n\021VerifyAttesta" - + "tion\022?.google.cloud.confidentialcomputin" - + "g.v1.VerifyAttestationRequest\032@.google.c" - + "loud.confidentialcomputing.v1.VerifyAtte" - + "stationResponse\"P\202\323\344\223\002J\"E/v1/{challenge=" - + "projects/*/locations/*/challenges/*}:ver" - + "ifyAttestation:\001*\032X\312A$confidentialcomput" - + "ing.googleapis.com\322A.https://www.googlea" - + "pis.com/auth/cloud-platformB\227\002\n)com.goog" - + "le.cloud.confidentialcomputing.v1B\014Servi" - + "ceProtoP\001Z_cloud.google.com/go/confident" - + "ialcomputing/apiv1/confidentialcomputing" - + "pb;confidentialcomputingpb\252\002%Google.Clou" - + "d.ConfidentialComputing.V1\312\002%Google\\Clou" - + "d\\ConfidentialComputing\\V1\352\002(Google::Clo" - + "ud::ConfidentialComputing::V1b\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.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_confidentialcomputing_v1_Challenge_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_confidentialcomputing_v1_Challenge_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_confidentialcomputing_v1_Challenge_descriptor, - new java.lang.String[] { - "Name", "CreateTime", "ExpireTime", "Used", "TpmNonce", - }); - internal_static_google_cloud_confidentialcomputing_v1_CreateChallengeRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_confidentialcomputing_v1_CreateChallengeRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_confidentialcomputing_v1_CreateChallengeRequest_descriptor, - new java.lang.String[] { - "Parent", "Challenge", - }); - internal_static_google_cloud_confidentialcomputing_v1_VerifyAttestationRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_confidentialcomputing_v1_VerifyAttestationRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_confidentialcomputing_v1_VerifyAttestationRequest_descriptor, - new java.lang.String[] { - "Challenge", "GcpCredentials", "TpmAttestation", - }); - internal_static_google_cloud_confidentialcomputing_v1_VerifyAttestationResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_confidentialcomputing_v1_VerifyAttestationResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_confidentialcomputing_v1_VerifyAttestationResponse_descriptor, - new java.lang.String[] { - "OidcClaimsToken", - }); - internal_static_google_cloud_confidentialcomputing_v1_GcpCredentials_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_confidentialcomputing_v1_GcpCredentials_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_confidentialcomputing_v1_GcpCredentials_descriptor, - new java.lang.String[] { - "ServiceAccountIdTokens", - }); - internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_descriptor, - new java.lang.String[] { - "Quotes", "TcgEventLog", "CanonicalEventLog", "AkCert", "CertChain", - }); - internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_Quote_descriptor = - internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_Quote_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_Quote_descriptor, - new java.lang.String[] { - "HashAlgo", "PcrValues", "RawQuote", "RawSignature", - }); - internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_Quote_PcrValuesEntry_descriptor = - internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_Quote_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_Quote_PcrValuesEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_Quote_PcrValuesEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - 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.resource); - 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.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyAttestationRequest.java b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyAttestationRequest.java deleted file mode 100644 index 6070a355447a..000000000000 --- a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyAttestationRequest.java +++ /dev/null @@ -1,1282 +0,0 @@ -/* - * Copyright 2023 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/confidentialcomputing/v1/service.proto - -package com.google.cloud.confidentialcomputing.v1; - -/** - * - * - *
- * A request for an OIDC token, providing all the necessary information needed
- * for this service to verify the plaform state of the requestor.
- * 
- * - * Protobuf type {@code google.cloud.confidentialcomputing.v1.VerifyAttestationRequest} - */ -public final class VerifyAttestationRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.confidentialcomputing.v1.VerifyAttestationRequest) - VerifyAttestationRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use VerifyAttestationRequest.newBuilder() to construct. - private VerifyAttestationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private VerifyAttestationRequest() { - challenge_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new VerifyAttestationRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.confidentialcomputing.v1.ServiceProto - .internal_static_google_cloud_confidentialcomputing_v1_VerifyAttestationRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.confidentialcomputing.v1.ServiceProto - .internal_static_google_cloud_confidentialcomputing_v1_VerifyAttestationRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest.class, - com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest.Builder.class); - } - - public static final int CHALLENGE_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object challenge_ = ""; - /** - * - * - *
-   * Required. The name of the Challenge whose nonce was used to generate the
-   * attestation, in the format `projects/*/locations/*/challenges/*`. The
-   * provided Challenge will be consumed, and cannot be used again.
-   * 
- * - * - * string challenge = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The challenge. - */ - @java.lang.Override - public java.lang.String getChallenge() { - java.lang.Object ref = challenge_; - 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(); - challenge_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The name of the Challenge whose nonce was used to generate the
-   * attestation, in the format `projects/*/locations/*/challenges/*`. The
-   * provided Challenge will be consumed, and cannot be used again.
-   * 
- * - * - * string challenge = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for challenge. - */ - @java.lang.Override - public com.google.protobuf.ByteString getChallengeBytes() { - java.lang.Object ref = challenge_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - challenge_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int GCP_CREDENTIALS_FIELD_NUMBER = 2; - private com.google.cloud.confidentialcomputing.v1.GcpCredentials gcpCredentials_; - /** - * - * - *
-   * Optional. Credentials used to populate the "emails" claim in the
-   * claims_token.
-   * 
- * - * - * .google.cloud.confidentialcomputing.v1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the gcpCredentials field is set. - */ - @java.lang.Override - public boolean hasGcpCredentials() { - return gcpCredentials_ != null; - } - /** - * - * - *
-   * Optional. Credentials used to populate the "emails" claim in the
-   * claims_token.
-   * 
- * - * - * .google.cloud.confidentialcomputing.v1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The gcpCredentials. - */ - @java.lang.Override - public com.google.cloud.confidentialcomputing.v1.GcpCredentials getGcpCredentials() { - return gcpCredentials_ == null - ? com.google.cloud.confidentialcomputing.v1.GcpCredentials.getDefaultInstance() - : gcpCredentials_; - } - /** - * - * - *
-   * Optional. Credentials used to populate the "emails" claim in the
-   * claims_token.
-   * 
- * - * - * .google.cloud.confidentialcomputing.v1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.confidentialcomputing.v1.GcpCredentialsOrBuilder - getGcpCredentialsOrBuilder() { - return gcpCredentials_ == null - ? com.google.cloud.confidentialcomputing.v1.GcpCredentials.getDefaultInstance() - : gcpCredentials_; - } - - public static final int TPM_ATTESTATION_FIELD_NUMBER = 3; - private com.google.cloud.confidentialcomputing.v1.TpmAttestation tpmAttestation_; - /** - * - * - *
-   * Required. The TPM-specific data provided by the attesting platform, used to
-   * populate any of the claims regarding platform state.
-   * 
- * - * - * .google.cloud.confidentialcomputing.v1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the tpmAttestation field is set. - */ - @java.lang.Override - public boolean hasTpmAttestation() { - return tpmAttestation_ != null; - } - /** - * - * - *
-   * Required. The TPM-specific data provided by the attesting platform, used to
-   * populate any of the claims regarding platform state.
-   * 
- * - * - * .google.cloud.confidentialcomputing.v1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The tpmAttestation. - */ - @java.lang.Override - public com.google.cloud.confidentialcomputing.v1.TpmAttestation getTpmAttestation() { - return tpmAttestation_ == null - ? com.google.cloud.confidentialcomputing.v1.TpmAttestation.getDefaultInstance() - : tpmAttestation_; - } - /** - * - * - *
-   * Required. The TPM-specific data provided by the attesting platform, used to
-   * populate any of the claims regarding platform state.
-   * 
- * - * - * .google.cloud.confidentialcomputing.v1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.confidentialcomputing.v1.TpmAttestationOrBuilder - getTpmAttestationOrBuilder() { - return tpmAttestation_ == null - ? com.google.cloud.confidentialcomputing.v1.TpmAttestation.getDefaultInstance() - : tpmAttestation_; - } - - 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(challenge_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, challenge_); - } - if (gcpCredentials_ != null) { - output.writeMessage(2, getGcpCredentials()); - } - if (tpmAttestation_ != null) { - output.writeMessage(3, getTpmAttestation()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(challenge_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, challenge_); - } - if (gcpCredentials_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getGcpCredentials()); - } - if (tpmAttestation_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getTpmAttestation()); - } - size += getUnknownFields().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.confidentialcomputing.v1.VerifyAttestationRequest)) { - return super.equals(obj); - } - com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest other = - (com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest) obj; - - if (!getChallenge().equals(other.getChallenge())) return false; - if (hasGcpCredentials() != other.hasGcpCredentials()) return false; - if (hasGcpCredentials()) { - if (!getGcpCredentials().equals(other.getGcpCredentials())) return false; - } - if (hasTpmAttestation() != other.hasTpmAttestation()) return false; - if (hasTpmAttestation()) { - if (!getTpmAttestation().equals(other.getTpmAttestation())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + CHALLENGE_FIELD_NUMBER; - hash = (53 * hash) + getChallenge().hashCode(); - if (hasGcpCredentials()) { - hash = (37 * hash) + GCP_CREDENTIALS_FIELD_NUMBER; - hash = (53 * hash) + getGcpCredentials().hashCode(); - } - if (hasTpmAttestation()) { - hash = (37 * hash) + TPM_ATTESTATION_FIELD_NUMBER; - hash = (53 * hash) + getTpmAttestation().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest 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.confidentialcomputing.v1.VerifyAttestationRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest 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.confidentialcomputing.v1.VerifyAttestationRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest 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.confidentialcomputing.v1.VerifyAttestationRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest - 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.confidentialcomputing.v1.VerifyAttestationRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest 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.confidentialcomputing.v1.VerifyAttestationRequest 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 request for an OIDC token, providing all the necessary information needed
-   * for this service to verify the plaform state of the requestor.
-   * 
- * - * Protobuf type {@code google.cloud.confidentialcomputing.v1.VerifyAttestationRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.confidentialcomputing.v1.VerifyAttestationRequest) - com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.confidentialcomputing.v1.ServiceProto - .internal_static_google_cloud_confidentialcomputing_v1_VerifyAttestationRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.confidentialcomputing.v1.ServiceProto - .internal_static_google_cloud_confidentialcomputing_v1_VerifyAttestationRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest.class, - com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest.Builder.class); - } - - // Construct using - // com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - challenge_ = ""; - gcpCredentials_ = null; - if (gcpCredentialsBuilder_ != null) { - gcpCredentialsBuilder_.dispose(); - gcpCredentialsBuilder_ = null; - } - tpmAttestation_ = null; - if (tpmAttestationBuilder_ != null) { - tpmAttestationBuilder_.dispose(); - tpmAttestationBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.confidentialcomputing.v1.ServiceProto - .internal_static_google_cloud_confidentialcomputing_v1_VerifyAttestationRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest - getDefaultInstanceForType() { - return com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest build() { - com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest buildPartial() { - com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest result = - new com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.challenge_ = challenge_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.gcpCredentials_ = - gcpCredentialsBuilder_ == null ? gcpCredentials_ : gcpCredentialsBuilder_.build(); - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.tpmAttestation_ = - tpmAttestationBuilder_ == null ? tpmAttestation_ : tpmAttestationBuilder_.build(); - } - } - - @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.confidentialcomputing.v1.VerifyAttestationRequest) { - return mergeFrom( - (com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest other) { - if (other - == com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest - .getDefaultInstance()) return this; - if (!other.getChallenge().isEmpty()) { - challenge_ = other.challenge_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.hasGcpCredentials()) { - mergeGcpCredentials(other.getGcpCredentials()); - } - if (other.hasTpmAttestation()) { - mergeTpmAttestation(other.getTpmAttestation()); - } - this.mergeUnknownFields(other.getUnknownFields()); - 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 { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - challenge_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getGcpCredentialsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage(getTpmAttestationFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object challenge_ = ""; - /** - * - * - *
-     * Required. The name of the Challenge whose nonce was used to generate the
-     * attestation, in the format `projects/*/locations/*/challenges/*`. The
-     * provided Challenge will be consumed, and cannot be used again.
-     * 
- * - * - * string challenge = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The challenge. - */ - public java.lang.String getChallenge() { - java.lang.Object ref = challenge_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - challenge_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The name of the Challenge whose nonce was used to generate the
-     * attestation, in the format `projects/*/locations/*/challenges/*`. The
-     * provided Challenge will be consumed, and cannot be used again.
-     * 
- * - * - * string challenge = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for challenge. - */ - public com.google.protobuf.ByteString getChallengeBytes() { - java.lang.Object ref = challenge_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - challenge_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The name of the Challenge whose nonce was used to generate the
-     * attestation, in the format `projects/*/locations/*/challenges/*`. The
-     * provided Challenge will be consumed, and cannot be used again.
-     * 
- * - * - * string challenge = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The challenge to set. - * @return This builder for chaining. - */ - public Builder setChallenge(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - challenge_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the Challenge whose nonce was used to generate the
-     * attestation, in the format `projects/*/locations/*/challenges/*`. The
-     * provided Challenge will be consumed, and cannot be used again.
-     * 
- * - * - * string challenge = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearChallenge() { - challenge_ = getDefaultInstance().getChallenge(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the Challenge whose nonce was used to generate the
-     * attestation, in the format `projects/*/locations/*/challenges/*`. The
-     * provided Challenge will be consumed, and cannot be used again.
-     * 
- * - * - * string challenge = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for challenge to set. - * @return This builder for chaining. - */ - public Builder setChallengeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - challenge_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private com.google.cloud.confidentialcomputing.v1.GcpCredentials gcpCredentials_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.confidentialcomputing.v1.GcpCredentials, - com.google.cloud.confidentialcomputing.v1.GcpCredentials.Builder, - com.google.cloud.confidentialcomputing.v1.GcpCredentialsOrBuilder> - gcpCredentialsBuilder_; - /** - * - * - *
-     * Optional. Credentials used to populate the "emails" claim in the
-     * claims_token.
-     * 
- * - * - * .google.cloud.confidentialcomputing.v1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the gcpCredentials field is set. - */ - public boolean hasGcpCredentials() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-     * Optional. Credentials used to populate the "emails" claim in the
-     * claims_token.
-     * 
- * - * - * .google.cloud.confidentialcomputing.v1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The gcpCredentials. - */ - public com.google.cloud.confidentialcomputing.v1.GcpCredentials getGcpCredentials() { - if (gcpCredentialsBuilder_ == null) { - return gcpCredentials_ == null - ? com.google.cloud.confidentialcomputing.v1.GcpCredentials.getDefaultInstance() - : gcpCredentials_; - } else { - return gcpCredentialsBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Optional. Credentials used to populate the "emails" claim in the
-     * claims_token.
-     * 
- * - * - * .google.cloud.confidentialcomputing.v1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setGcpCredentials( - com.google.cloud.confidentialcomputing.v1.GcpCredentials value) { - if (gcpCredentialsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - gcpCredentials_ = value; - } else { - gcpCredentialsBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Credentials used to populate the "emails" claim in the
-     * claims_token.
-     * 
- * - * - * .google.cloud.confidentialcomputing.v1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setGcpCredentials( - com.google.cloud.confidentialcomputing.v1.GcpCredentials.Builder builderForValue) { - if (gcpCredentialsBuilder_ == null) { - gcpCredentials_ = builderForValue.build(); - } else { - gcpCredentialsBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Credentials used to populate the "emails" claim in the
-     * claims_token.
-     * 
- * - * - * .google.cloud.confidentialcomputing.v1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeGcpCredentials( - com.google.cloud.confidentialcomputing.v1.GcpCredentials value) { - if (gcpCredentialsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && gcpCredentials_ != null - && gcpCredentials_ - != com.google.cloud.confidentialcomputing.v1.GcpCredentials.getDefaultInstance()) { - getGcpCredentialsBuilder().mergeFrom(value); - } else { - gcpCredentials_ = value; - } - } else { - gcpCredentialsBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Credentials used to populate the "emails" claim in the
-     * claims_token.
-     * 
- * - * - * .google.cloud.confidentialcomputing.v1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearGcpCredentials() { - bitField0_ = (bitField0_ & ~0x00000002); - gcpCredentials_ = null; - if (gcpCredentialsBuilder_ != null) { - gcpCredentialsBuilder_.dispose(); - gcpCredentialsBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Credentials used to populate the "emails" claim in the
-     * claims_token.
-     * 
- * - * - * .google.cloud.confidentialcomputing.v1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.confidentialcomputing.v1.GcpCredentials.Builder - getGcpCredentialsBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getGcpCredentialsFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. Credentials used to populate the "emails" claim in the
-     * claims_token.
-     * 
- * - * - * .google.cloud.confidentialcomputing.v1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.confidentialcomputing.v1.GcpCredentialsOrBuilder - getGcpCredentialsOrBuilder() { - if (gcpCredentialsBuilder_ != null) { - return gcpCredentialsBuilder_.getMessageOrBuilder(); - } else { - return gcpCredentials_ == null - ? com.google.cloud.confidentialcomputing.v1.GcpCredentials.getDefaultInstance() - : gcpCredentials_; - } - } - /** - * - * - *
-     * Optional. Credentials used to populate the "emails" claim in the
-     * claims_token.
-     * 
- * - * - * .google.cloud.confidentialcomputing.v1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.confidentialcomputing.v1.GcpCredentials, - com.google.cloud.confidentialcomputing.v1.GcpCredentials.Builder, - com.google.cloud.confidentialcomputing.v1.GcpCredentialsOrBuilder> - getGcpCredentialsFieldBuilder() { - if (gcpCredentialsBuilder_ == null) { - gcpCredentialsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.confidentialcomputing.v1.GcpCredentials, - com.google.cloud.confidentialcomputing.v1.GcpCredentials.Builder, - com.google.cloud.confidentialcomputing.v1.GcpCredentialsOrBuilder>( - getGcpCredentials(), getParentForChildren(), isClean()); - gcpCredentials_ = null; - } - return gcpCredentialsBuilder_; - } - - private com.google.cloud.confidentialcomputing.v1.TpmAttestation tpmAttestation_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.confidentialcomputing.v1.TpmAttestation, - com.google.cloud.confidentialcomputing.v1.TpmAttestation.Builder, - com.google.cloud.confidentialcomputing.v1.TpmAttestationOrBuilder> - tpmAttestationBuilder_; - /** - * - * - *
-     * Required. The TPM-specific data provided by the attesting platform, used to
-     * populate any of the claims regarding platform state.
-     * 
- * - * - * .google.cloud.confidentialcomputing.v1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the tpmAttestation field is set. - */ - public boolean hasTpmAttestation() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * - * - *
-     * Required. The TPM-specific data provided by the attesting platform, used to
-     * populate any of the claims regarding platform state.
-     * 
- * - * - * .google.cloud.confidentialcomputing.v1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The tpmAttestation. - */ - public com.google.cloud.confidentialcomputing.v1.TpmAttestation getTpmAttestation() { - if (tpmAttestationBuilder_ == null) { - return tpmAttestation_ == null - ? com.google.cloud.confidentialcomputing.v1.TpmAttestation.getDefaultInstance() - : tpmAttestation_; - } else { - return tpmAttestationBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The TPM-specific data provided by the attesting platform, used to
-     * populate any of the claims regarding platform state.
-     * 
- * - * - * .google.cloud.confidentialcomputing.v1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setTpmAttestation( - com.google.cloud.confidentialcomputing.v1.TpmAttestation value) { - if (tpmAttestationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - tpmAttestation_ = value; - } else { - tpmAttestationBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The TPM-specific data provided by the attesting platform, used to
-     * populate any of the claims regarding platform state.
-     * 
- * - * - * .google.cloud.confidentialcomputing.v1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setTpmAttestation( - com.google.cloud.confidentialcomputing.v1.TpmAttestation.Builder builderForValue) { - if (tpmAttestationBuilder_ == null) { - tpmAttestation_ = builderForValue.build(); - } else { - tpmAttestationBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The TPM-specific data provided by the attesting platform, used to
-     * populate any of the claims regarding platform state.
-     * 
- * - * - * .google.cloud.confidentialcomputing.v1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeTpmAttestation( - com.google.cloud.confidentialcomputing.v1.TpmAttestation value) { - if (tpmAttestationBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && tpmAttestation_ != null - && tpmAttestation_ - != com.google.cloud.confidentialcomputing.v1.TpmAttestation.getDefaultInstance()) { - getTpmAttestationBuilder().mergeFrom(value); - } else { - tpmAttestation_ = value; - } - } else { - tpmAttestationBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The TPM-specific data provided by the attesting platform, used to
-     * populate any of the claims regarding platform state.
-     * 
- * - * - * .google.cloud.confidentialcomputing.v1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearTpmAttestation() { - bitField0_ = (bitField0_ & ~0x00000004); - tpmAttestation_ = null; - if (tpmAttestationBuilder_ != null) { - tpmAttestationBuilder_.dispose(); - tpmAttestationBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The TPM-specific data provided by the attesting platform, used to
-     * populate any of the claims regarding platform state.
-     * 
- * - * - * .google.cloud.confidentialcomputing.v1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.confidentialcomputing.v1.TpmAttestation.Builder - getTpmAttestationBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return getTpmAttestationFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The TPM-specific data provided by the attesting platform, used to
-     * populate any of the claims regarding platform state.
-     * 
- * - * - * .google.cloud.confidentialcomputing.v1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.confidentialcomputing.v1.TpmAttestationOrBuilder - getTpmAttestationOrBuilder() { - if (tpmAttestationBuilder_ != null) { - return tpmAttestationBuilder_.getMessageOrBuilder(); - } else { - return tpmAttestation_ == null - ? com.google.cloud.confidentialcomputing.v1.TpmAttestation.getDefaultInstance() - : tpmAttestation_; - } - } - /** - * - * - *
-     * Required. The TPM-specific data provided by the attesting platform, used to
-     * populate any of the claims regarding platform state.
-     * 
- * - * - * .google.cloud.confidentialcomputing.v1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.confidentialcomputing.v1.TpmAttestation, - com.google.cloud.confidentialcomputing.v1.TpmAttestation.Builder, - com.google.cloud.confidentialcomputing.v1.TpmAttestationOrBuilder> - getTpmAttestationFieldBuilder() { - if (tpmAttestationBuilder_ == null) { - tpmAttestationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.confidentialcomputing.v1.TpmAttestation, - com.google.cloud.confidentialcomputing.v1.TpmAttestation.Builder, - com.google.cloud.confidentialcomputing.v1.TpmAttestationOrBuilder>( - getTpmAttestation(), getParentForChildren(), isClean()); - tpmAttestation_ = null; - } - return tpmAttestationBuilder_; - } - - @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.confidentialcomputing.v1.VerifyAttestationRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.confidentialcomputing.v1.VerifyAttestationRequest) - private static final com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest(); - } - - public static com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VerifyAttestationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - 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.confidentialcomputing.v1.VerifyAttestationRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyAttestationRequestOrBuilder.java b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyAttestationRequestOrBuilder.java deleted file mode 100644 index 2a54a16c5dc3..000000000000 --- a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyAttestationRequestOrBuilder.java +++ /dev/null @@ -1,146 +0,0 @@ -/* - * Copyright 2023 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/confidentialcomputing/v1/service.proto - -package com.google.cloud.confidentialcomputing.v1; - -public interface VerifyAttestationRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.confidentialcomputing.v1.VerifyAttestationRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the Challenge whose nonce was used to generate the
-   * attestation, in the format `projects/*/locations/*/challenges/*`. The
-   * provided Challenge will be consumed, and cannot be used again.
-   * 
- * - * - * string challenge = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The challenge. - */ - java.lang.String getChallenge(); - /** - * - * - *
-   * Required. The name of the Challenge whose nonce was used to generate the
-   * attestation, in the format `projects/*/locations/*/challenges/*`. The
-   * provided Challenge will be consumed, and cannot be used again.
-   * 
- * - * - * string challenge = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for challenge. - */ - com.google.protobuf.ByteString getChallengeBytes(); - - /** - * - * - *
-   * Optional. Credentials used to populate the "emails" claim in the
-   * claims_token.
-   * 
- * - * - * .google.cloud.confidentialcomputing.v1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the gcpCredentials field is set. - */ - boolean hasGcpCredentials(); - /** - * - * - *
-   * Optional. Credentials used to populate the "emails" claim in the
-   * claims_token.
-   * 
- * - * - * .google.cloud.confidentialcomputing.v1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The gcpCredentials. - */ - com.google.cloud.confidentialcomputing.v1.GcpCredentials getGcpCredentials(); - /** - * - * - *
-   * Optional. Credentials used to populate the "emails" claim in the
-   * claims_token.
-   * 
- * - * - * .google.cloud.confidentialcomputing.v1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.confidentialcomputing.v1.GcpCredentialsOrBuilder getGcpCredentialsOrBuilder(); - - /** - * - * - *
-   * Required. The TPM-specific data provided by the attesting platform, used to
-   * populate any of the claims regarding platform state.
-   * 
- * - * - * .google.cloud.confidentialcomputing.v1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the tpmAttestation field is set. - */ - boolean hasTpmAttestation(); - /** - * - * - *
-   * Required. The TPM-specific data provided by the attesting platform, used to
-   * populate any of the claims regarding platform state.
-   * 
- * - * - * .google.cloud.confidentialcomputing.v1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The tpmAttestation. - */ - com.google.cloud.confidentialcomputing.v1.TpmAttestation getTpmAttestation(); - /** - * - * - *
-   * Required. The TPM-specific data provided by the attesting platform, used to
-   * populate any of the claims regarding platform state.
-   * 
- * - * - * .google.cloud.confidentialcomputing.v1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.confidentialcomputing.v1.TpmAttestationOrBuilder getTpmAttestationOrBuilder(); -} diff --git a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/ServiceProto.java b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/ServiceProto.java deleted file mode 100644 index 1af53280b9e9..000000000000 --- a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/ServiceProto.java +++ /dev/null @@ -1,230 +0,0 @@ -/* - * Copyright 2023 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/confidentialcomputing/v1alpha1/service.proto - -package com.google.cloud.confidentialcomputing.v1alpha1; - -public final class ServiceProto { - private ServiceProto() {} - - 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_confidentialcomputing_v1alpha1_Challenge_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_confidentialcomputing_v1alpha1_Challenge_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_confidentialcomputing_v1alpha1_CreateChallengeRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_confidentialcomputing_v1alpha1_CreateChallengeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_confidentialcomputing_v1alpha1_VerifyAttestationRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_confidentialcomputing_v1alpha1_VerifyAttestationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_confidentialcomputing_v1alpha1_VerifyAttestationResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_confidentialcomputing_v1alpha1_VerifyAttestationResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_confidentialcomputing_v1alpha1_GcpCredentials_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_confidentialcomputing_v1alpha1_GcpCredentials_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_Quote_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_Quote_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_Quote_PcrValuesEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_Quote_PcrValuesEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n9google/cloud/confidentialcomputing/v1a" - + "lpha1/service.proto\022+google.cloud.confid" - + "entialcomputing.v1alpha1\032\034google/api/ann" - + "otations.proto\032\027google/api/client.proto\032" - + "\037google/api/field_behavior.proto\032\031google" - + "/api/resource.proto\032\037google/protobuf/tim" - + "estamp.proto\"\246\002\n\tChallenge\022\022\n\004name\030\001 \001(\t" - + "B\004\342A\001\003\0225\n\013create_time\030\002 \001(\0132\032.google.pro" - + "tobuf.TimestampB\004\342A\001\003\0225\n\013expire_time\030\003 \001" - + "(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022\022\n\004" - + "used\030\004 \001(\010B\004\342A\001\003\022\023\n\005nonce\030\005 \001(\014B\004\342A\001\003:n\352" - + "Ak\n.confidentialcomputing.googleapis.com" - + "/Challenge\0229projects/{project}/locations" - + "/{location}/challenges/{uuid}\"\245\001\n\026Create" - + "ChallengeRequest\022:\n\006parent\030\001 \001(\tB*\342A\001\002\372A" - + "#\n!locations.googleapis.com/Location\022O\n\t" - + "challenge\030\002 \001(\01326.google.cloud.confident" - + "ialcomputing.v1alpha1.ChallengeB\004\342A\001\002\"\236\002" - + "\n\030VerifyAttestationRequest\022J\n\tchallenge\030" - + "\001 \001(\tB7\342A\001\002\372A0\n.confidentialcomputing.go" - + "ogleapis.com/Challenge\022Z\n\017gcp_credential" - + "s\030\002 \001(\0132;.google.cloud.confidentialcompu" - + "ting.v1alpha1.GcpCredentialsB\004\342A\001\001\022Z\n\017tp" - + "m_attestation\030\003 \001(\0132;.google.cloud.confi" - + "dentialcomputing.v1alpha1.TpmAttestation" - + "B\004\342A\001\002\"7\n\031VerifyAttestationResponse\022\032\n\014c" - + "laims_token\030\001 \001(\014B\004\342A\001\003\"#\n\016GcpCredential" - + "s\022\021\n\tid_tokens\030\001 \003(\014\"\233\003\n\016TpmAttestation\022" - + "Q\n\006quotes\030\001 \003(\0132A.google.cloud.confident" - + "ialcomputing.v1alpha1.TpmAttestation.Quo" - + "te\022\025\n\rtcg_event_log\030\002 \001(\014\022\033\n\023canonical_e" - + "vent_log\030\003 \001(\014\022\017\n\007ak_cert\030\004 \001(\014\022\022\n\ncert_" - + "chain\030\005 \003(\014\032\334\001\n\005Quote\022\021\n\thash_algo\030\001 \001(\005" - + "\022d\n\npcr_values\030\002 \003(\0132P.google.cloud.conf" - + "identialcomputing.v1alpha1.TpmAttestatio" - + "n.Quote.PcrValuesEntry\022\021\n\traw_quote\030\003 \001(" - + "\014\022\025\n\rraw_signature\030\004 \001(\014\0320\n\016PcrValuesEnt" - + "ry\022\013\n\003key\030\001 \001(\005\022\r\n\005value\030\002 \001(\014:\0028\0012\333\004\n\025C" - + "onfidentialComputing\022\352\001\n\017CreateChallenge" - + "\022C.google.cloud.confidentialcomputing.v1" - + "alpha1.CreateChallengeRequest\0326.google.c" - + "loud.confidentialcomputing.v1alpha1.Chal" - + "lenge\"Z\332A\020parent,challenge\202\323\344\223\002A\"4/v1alp" - + "ha1/{parent=projects/*/locations/*}/chal" - + "lenges:\tchallenge\022\372\001\n\021VerifyAttestation\022" - + "E.google.cloud.confidentialcomputing.v1a" - + "lpha1.VerifyAttestationRequest\032F.google." - + "cloud.confidentialcomputing.v1alpha1.Ver" - + "ifyAttestationResponse\"V\202\323\344\223\002P\"K/v1alpha" - + "1/{challenge=projects/*/locations/*/chal" - + "lenges/*}:verifyAttestation:\001*\032X\312A$confi" - + "dentialcomputing.googleapis.com\322A.https:" - + "//www.googleapis.com/auth/cloud-platform" - + "B\265\002\n/com.google.cloud.confidentialcomput" - + "ing.v1alpha1B\014ServiceProtoP\001Zecloud.goog" - + "le.com/go/confidentialcomputing/apiv1alp" - + "ha1/confidentialcomputingpb;confidential" - + "computingpb\252\002+Google.Cloud.ConfidentialC" - + "omputing.V1Alpha1\312\002+Google\\Cloud\\Confide" - + "ntialComputing\\V1alpha1\352\002.Google::Cloud:" - + ":ConfidentialComputing::V1alpha1b\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.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_confidentialcomputing_v1alpha1_Challenge_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_confidentialcomputing_v1alpha1_Challenge_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_confidentialcomputing_v1alpha1_Challenge_descriptor, - new java.lang.String[] { - "Name", "CreateTime", "ExpireTime", "Used", "Nonce", - }); - internal_static_google_cloud_confidentialcomputing_v1alpha1_CreateChallengeRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_confidentialcomputing_v1alpha1_CreateChallengeRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_confidentialcomputing_v1alpha1_CreateChallengeRequest_descriptor, - new java.lang.String[] { - "Parent", "Challenge", - }); - internal_static_google_cloud_confidentialcomputing_v1alpha1_VerifyAttestationRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_confidentialcomputing_v1alpha1_VerifyAttestationRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_confidentialcomputing_v1alpha1_VerifyAttestationRequest_descriptor, - new java.lang.String[] { - "Challenge", "GcpCredentials", "TpmAttestation", - }); - internal_static_google_cloud_confidentialcomputing_v1alpha1_VerifyAttestationResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_confidentialcomputing_v1alpha1_VerifyAttestationResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_confidentialcomputing_v1alpha1_VerifyAttestationResponse_descriptor, - new java.lang.String[] { - "ClaimsToken", - }); - internal_static_google_cloud_confidentialcomputing_v1alpha1_GcpCredentials_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_confidentialcomputing_v1alpha1_GcpCredentials_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_confidentialcomputing_v1alpha1_GcpCredentials_descriptor, - new java.lang.String[] { - "IdTokens", - }); - internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_descriptor, - new java.lang.String[] { - "Quotes", "TcgEventLog", "CanonicalEventLog", "AkCert", "CertChain", - }); - internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_Quote_descriptor = - internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_Quote_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_Quote_descriptor, - new java.lang.String[] { - "HashAlgo", "PcrValues", "RawQuote", "RawSignature", - }); - internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_Quote_PcrValuesEntry_descriptor = - internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_Quote_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_Quote_PcrValuesEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_Quote_PcrValuesEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - 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.resource); - 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.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingClient.java b/owl-bot-staging/java-confidentialcomputing/v1/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingClient.java similarity index 98% rename from java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingClient.java rename to owl-bot-staging/java-confidentialcomputing/v1/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingClient.java index 35154d61f31a..b717776fd8d9 100644 --- a/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingClient.java +++ b/owl-bot-staging/java-confidentialcomputing/v1/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingClient.java @@ -327,6 +327,8 @@ public final UnaryCallable createChallengeCal * .setChallenge(ChallengeName.of("[PROJECT]", "[LOCATION]", "[UUID]").toString()) * .setGcpCredentials(GcpCredentials.newBuilder().build()) * .setTpmAttestation(TpmAttestation.newBuilder().build()) + * .setConfidentialSpaceInfo(ConfidentialSpaceInfo.newBuilder().build()) + * .setTokenOptions(TokenOptions.newBuilder().build()) * .build(); * VerifyAttestationResponse response = confidentialComputingClient.verifyAttestation(request); * } @@ -358,6 +360,8 @@ public final VerifyAttestationResponse verifyAttestation(VerifyAttestationReques * .setChallenge(ChallengeName.of("[PROJECT]", "[LOCATION]", "[UUID]").toString()) * .setGcpCredentials(GcpCredentials.newBuilder().build()) * .setTpmAttestation(TpmAttestation.newBuilder().build()) + * .setConfidentialSpaceInfo(ConfidentialSpaceInfo.newBuilder().build()) + * .setTokenOptions(TokenOptions.newBuilder().build()) * .build(); * ApiFuture future = * confidentialComputingClient.verifyAttestationCallable().futureCall(request); diff --git a/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingSettings.java b/owl-bot-staging/java-confidentialcomputing/v1/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingSettings.java similarity index 99% rename from java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingSettings.java rename to owl-bot-staging/java-confidentialcomputing/v1/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingSettings.java index 38c8c2cf2de4..1c624fdf57e1 100644 --- a/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingSettings.java +++ b/owl-bot-staging/java-confidentialcomputing/v1/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingSettings.java @@ -28,6 +28,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.confidentialcomputing.v1.stub.ConfidentialComputingStubSettings; diff --git a/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/gapic_metadata.json b/owl-bot-staging/java-confidentialcomputing/v1/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/gapic_metadata.json similarity index 100% rename from java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/gapic_metadata.json rename to owl-bot-staging/java-confidentialcomputing/v1/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/gapic_metadata.json diff --git a/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/package-info.java b/owl-bot-staging/java-confidentialcomputing/v1/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/package-info.java similarity index 100% rename from java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/package-info.java rename to owl-bot-staging/java-confidentialcomputing/v1/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/package-info.java diff --git a/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/stub/ConfidentialComputingStub.java b/owl-bot-staging/java-confidentialcomputing/v1/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/stub/ConfidentialComputingStub.java similarity index 100% rename from java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/stub/ConfidentialComputingStub.java rename to owl-bot-staging/java-confidentialcomputing/v1/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/stub/ConfidentialComputingStub.java diff --git a/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/stub/ConfidentialComputingStubSettings.java b/owl-bot-staging/java-confidentialcomputing/v1/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/stub/ConfidentialComputingStubSettings.java similarity index 100% rename from java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/stub/ConfidentialComputingStubSettings.java rename to owl-bot-staging/java-confidentialcomputing/v1/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/stub/ConfidentialComputingStubSettings.java diff --git a/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/stub/GrpcConfidentialComputingCallableFactory.java b/owl-bot-staging/java-confidentialcomputing/v1/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/stub/GrpcConfidentialComputingCallableFactory.java similarity index 100% rename from java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/stub/GrpcConfidentialComputingCallableFactory.java rename to owl-bot-staging/java-confidentialcomputing/v1/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/stub/GrpcConfidentialComputingCallableFactory.java diff --git a/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/stub/GrpcConfidentialComputingStub.java b/owl-bot-staging/java-confidentialcomputing/v1/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/stub/GrpcConfidentialComputingStub.java similarity index 99% rename from java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/stub/GrpcConfidentialComputingStub.java rename to owl-bot-staging/java-confidentialcomputing/v1/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/stub/GrpcConfidentialComputingStub.java index c8066bd19a38..d2e2d9bfbd50 100644 --- a/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/stub/GrpcConfidentialComputingStub.java +++ b/owl-bot-staging/java-confidentialcomputing/v1/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/stub/GrpcConfidentialComputingStub.java @@ -37,6 +37,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/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/stub/HttpJsonConfidentialComputingCallableFactory.java b/owl-bot-staging/java-confidentialcomputing/v1/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/stub/HttpJsonConfidentialComputingCallableFactory.java similarity index 100% rename from java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/stub/HttpJsonConfidentialComputingCallableFactory.java rename to owl-bot-staging/java-confidentialcomputing/v1/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/stub/HttpJsonConfidentialComputingCallableFactory.java diff --git a/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/stub/HttpJsonConfidentialComputingStub.java b/owl-bot-staging/java-confidentialcomputing/v1/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/stub/HttpJsonConfidentialComputingStub.java similarity index 100% rename from java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/stub/HttpJsonConfidentialComputingStub.java rename to owl-bot-staging/java-confidentialcomputing/v1/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/stub/HttpJsonConfidentialComputingStub.java diff --git a/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/resources/META-INF/native-image/com.google.cloud.confidentialcomputing.v1/reflect-config.json b/owl-bot-staging/java-confidentialcomputing/v1/google-cloud-confidentialcomputing/src/main/resources/META-INF/native-image/com.google.cloud.confidentialcomputing.v1/reflect-config.json similarity index 93% rename from java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/resources/META-INF/native-image/com.google.cloud.confidentialcomputing.v1/reflect-config.json rename to owl-bot-staging/java-confidentialcomputing/v1/google-cloud-confidentialcomputing/src/main/resources/META-INF/native-image/com.google.cloud.confidentialcomputing.v1/reflect-config.json index fc86933fb914..07f569b6979f 100644 --- a/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/resources/META-INF/native-image/com.google.cloud.confidentialcomputing.v1/reflect-config.json +++ b/owl-bot-staging/java-confidentialcomputing/v1/google-cloud-confidentialcomputing/src/main/resources/META-INF/native-image/com.google.cloud.confidentialcomputing.v1/reflect-config.json @@ -395,6 +395,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.confidentialcomputing.v1.ContainerImageSignature", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.confidentialcomputing.v1.ContainerImageSignature$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest", "queryAllDeclaredConstructors": true, @@ -431,6 +467,51 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.confidentialcomputing.v1.SignedEntity", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.confidentialcomputing.v1.SignedEntity$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.confidentialcomputing.v1.SigningAlgorithm", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.confidentialcomputing.v1.TokenOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.confidentialcomputing.v1.TokenOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.confidentialcomputing.v1.TpmAttestation", "queryAllDeclaredConstructors": true, diff --git a/java-confidentialcomputing/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingClientHttpJsonTest.java b/owl-bot-staging/java-confidentialcomputing/v1/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingClientHttpJsonTest.java similarity index 97% rename from java-confidentialcomputing/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingClientHttpJsonTest.java rename to owl-bot-staging/java-confidentialcomputing/v1/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingClientHttpJsonTest.java index 140c81f8d27a..32742b09b202 100644 --- a/java-confidentialcomputing/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingClientHttpJsonTest.java +++ b/owl-bot-staging/java-confidentialcomputing/v1/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingClientHttpJsonTest.java @@ -195,6 +195,8 @@ public void verifyAttestationTest() throws Exception { .setChallenge(ChallengeName.of("[PROJECT]", "[LOCATION]", "[UUID]").toString()) .setGcpCredentials(GcpCredentials.newBuilder().build()) .setTpmAttestation(TpmAttestation.newBuilder().build()) + .setConfidentialSpaceInfo(ConfidentialSpaceInfo.newBuilder().build()) + .setTokenOptions(TokenOptions.newBuilder().build()) .build(); VerifyAttestationResponse actualResponse = client.verifyAttestation(request); @@ -228,6 +230,8 @@ public void verifyAttestationExceptionTest() throws Exception { .setChallenge(ChallengeName.of("[PROJECT]", "[LOCATION]", "[UUID]").toString()) .setGcpCredentials(GcpCredentials.newBuilder().build()) .setTpmAttestation(TpmAttestation.newBuilder().build()) + .setConfidentialSpaceInfo(ConfidentialSpaceInfo.newBuilder().build()) + .setTokenOptions(TokenOptions.newBuilder().build()) .build(); client.verifyAttestation(request); Assert.fail("No exception raised"); diff --git a/java-confidentialcomputing/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingClientTest.java b/owl-bot-staging/java-confidentialcomputing/v1/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingClientTest.java similarity index 96% rename from java-confidentialcomputing/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingClientTest.java rename to owl-bot-staging/java-confidentialcomputing/v1/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingClientTest.java index d77b6b165aee..0c1c3b5fa11b 100644 --- a/java-confidentialcomputing/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingClientTest.java +++ b/owl-bot-staging/java-confidentialcomputing/v1/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingClientTest.java @@ -191,6 +191,8 @@ public void verifyAttestationTest() throws Exception { .setChallenge(ChallengeName.of("[PROJECT]", "[LOCATION]", "[UUID]").toString()) .setGcpCredentials(GcpCredentials.newBuilder().build()) .setTpmAttestation(TpmAttestation.newBuilder().build()) + .setConfidentialSpaceInfo(ConfidentialSpaceInfo.newBuilder().build()) + .setTokenOptions(TokenOptions.newBuilder().build()) .build(); VerifyAttestationResponse actualResponse = client.verifyAttestation(request); @@ -203,6 +205,9 @@ public void verifyAttestationTest() throws Exception { Assert.assertEquals(request.getChallenge(), actualRequest.getChallenge()); Assert.assertEquals(request.getGcpCredentials(), actualRequest.getGcpCredentials()); Assert.assertEquals(request.getTpmAttestation(), actualRequest.getTpmAttestation()); + Assert.assertEquals( + request.getConfidentialSpaceInfo(), actualRequest.getConfidentialSpaceInfo()); + Assert.assertEquals(request.getTokenOptions(), actualRequest.getTokenOptions()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -220,6 +225,8 @@ public void verifyAttestationExceptionTest() throws Exception { .setChallenge(ChallengeName.of("[PROJECT]", "[LOCATION]", "[UUID]").toString()) .setGcpCredentials(GcpCredentials.newBuilder().build()) .setTpmAttestation(TpmAttestation.newBuilder().build()) + .setConfidentialSpaceInfo(ConfidentialSpaceInfo.newBuilder().build()) + .setTokenOptions(TokenOptions.newBuilder().build()) .build(); client.verifyAttestation(request); Assert.fail("No exception raised"); diff --git a/java-confidentialcomputing/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1/MockConfidentialComputing.java b/owl-bot-staging/java-confidentialcomputing/v1/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1/MockConfidentialComputing.java similarity index 100% rename from java-confidentialcomputing/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1/MockConfidentialComputing.java rename to owl-bot-staging/java-confidentialcomputing/v1/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1/MockConfidentialComputing.java diff --git a/java-confidentialcomputing/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1/MockConfidentialComputingImpl.java b/owl-bot-staging/java-confidentialcomputing/v1/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1/MockConfidentialComputingImpl.java similarity index 100% rename from java-confidentialcomputing/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1/MockConfidentialComputingImpl.java rename to owl-bot-staging/java-confidentialcomputing/v1/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1/MockConfidentialComputingImpl.java diff --git a/java-confidentialcomputing/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1/MockLocations.java b/owl-bot-staging/java-confidentialcomputing/v1/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1/MockLocations.java similarity index 100% rename from java-confidentialcomputing/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1/MockLocations.java rename to owl-bot-staging/java-confidentialcomputing/v1/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1/MockLocations.java diff --git a/java-confidentialcomputing/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1/MockLocationsImpl.java b/owl-bot-staging/java-confidentialcomputing/v1/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1/MockLocationsImpl.java similarity index 100% rename from java-confidentialcomputing/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1/MockLocationsImpl.java rename to owl-bot-staging/java-confidentialcomputing/v1/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1/MockLocationsImpl.java diff --git a/owl-bot-staging/java-confidentialcomputing/v1/grpc-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingGrpc.java b/owl-bot-staging/java-confidentialcomputing/v1/grpc-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingGrpc.java new file mode 100644 index 000000000000..6988bef1ce72 --- /dev/null +++ b/owl-bot-staging/java-confidentialcomputing/v1/grpc-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingGrpc.java @@ -0,0 +1,409 @@ +package com.google.cloud.confidentialcomputing.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *
+ * Service describing handlers for resources
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/confidentialcomputing/v1/service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class ConfidentialComputingGrpc { + + private ConfidentialComputingGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.confidentialcomputing.v1.ConfidentialComputing"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getCreateChallengeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateChallenge", + requestType = com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest.class, + responseType = com.google.cloud.confidentialcomputing.v1.Challenge.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateChallengeMethod() { + io.grpc.MethodDescriptor getCreateChallengeMethod; + if ((getCreateChallengeMethod = ConfidentialComputingGrpc.getCreateChallengeMethod) == null) { + synchronized (ConfidentialComputingGrpc.class) { + if ((getCreateChallengeMethod = ConfidentialComputingGrpc.getCreateChallengeMethod) == null) { + ConfidentialComputingGrpc.getCreateChallengeMethod = getCreateChallengeMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateChallenge")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.confidentialcomputing.v1.Challenge.getDefaultInstance())) + .setSchemaDescriptor(new ConfidentialComputingMethodDescriptorSupplier("CreateChallenge")) + .build(); + } + } + } + return getCreateChallengeMethod; + } + + private static volatile io.grpc.MethodDescriptor getVerifyAttestationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "VerifyAttestation", + requestType = com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest.class, + responseType = com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getVerifyAttestationMethod() { + io.grpc.MethodDescriptor getVerifyAttestationMethod; + if ((getVerifyAttestationMethod = ConfidentialComputingGrpc.getVerifyAttestationMethod) == null) { + synchronized (ConfidentialComputingGrpc.class) { + if ((getVerifyAttestationMethod = ConfidentialComputingGrpc.getVerifyAttestationMethod) == null) { + ConfidentialComputingGrpc.getVerifyAttestationMethod = getVerifyAttestationMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "VerifyAttestation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse.getDefaultInstance())) + .setSchemaDescriptor(new ConfidentialComputingMethodDescriptorSupplier("VerifyAttestation")) + .build(); + } + } + } + return getVerifyAttestationMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static ConfidentialComputingStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ConfidentialComputingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConfidentialComputingStub(channel, callOptions); + } + }; + return ConfidentialComputingStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static ConfidentialComputingBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ConfidentialComputingBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConfidentialComputingBlockingStub(channel, callOptions); + } + }; + return ConfidentialComputingBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static ConfidentialComputingFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ConfidentialComputingFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConfidentialComputingFutureStub(channel, callOptions); + } + }; + return ConfidentialComputingFutureStub.newStub(factory, channel); + } + + /** + *
+   * Service describing handlers for resources
+   * 
+ */ + public interface AsyncService { + + /** + *
+     * Creates a new Challenge in a given project and location.
+     * 
+ */ + default void createChallenge(com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateChallengeMethod(), responseObserver); + } + + /** + *
+     * Verifies the provided attestation info, returning a signed OIDC token.
+     * 
+ */ + default void verifyAttestation(com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getVerifyAttestationMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service ConfidentialComputing. + *
+   * Service describing handlers for resources
+   * 
+ */ + public static abstract class ConfidentialComputingImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return ConfidentialComputingGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service ConfidentialComputing. + *
+   * Service describing handlers for resources
+   * 
+ */ + public static final class ConfidentialComputingStub + extends io.grpc.stub.AbstractAsyncStub { + private ConfidentialComputingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ConfidentialComputingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConfidentialComputingStub(channel, callOptions); + } + + /** + *
+     * Creates a new Challenge in a given project and location.
+     * 
+ */ + public void createChallenge(com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateChallengeMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Verifies the provided attestation info, returning a signed OIDC token.
+     * 
+ */ + public void verifyAttestation(com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getVerifyAttestationMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service ConfidentialComputing. + *
+   * Service describing handlers for resources
+   * 
+ */ + public static final class ConfidentialComputingBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private ConfidentialComputingBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ConfidentialComputingBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConfidentialComputingBlockingStub(channel, callOptions); + } + + /** + *
+     * Creates a new Challenge in a given project and location.
+     * 
+ */ + public com.google.cloud.confidentialcomputing.v1.Challenge createChallenge(com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateChallengeMethod(), getCallOptions(), request); + } + + /** + *
+     * Verifies the provided attestation info, returning a signed OIDC token.
+     * 
+ */ + public com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse verifyAttestation(com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getVerifyAttestationMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service ConfidentialComputing. + *
+   * Service describing handlers for resources
+   * 
+ */ + public static final class ConfidentialComputingFutureStub + extends io.grpc.stub.AbstractFutureStub { + private ConfidentialComputingFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ConfidentialComputingFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConfidentialComputingFutureStub(channel, callOptions); + } + + /** + *
+     * Creates a new Challenge in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createChallenge( + com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateChallengeMethod(), getCallOptions()), request); + } + + /** + *
+     * Verifies the provided attestation info, returning a signed OIDC token.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture verifyAttestation( + com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getVerifyAttestationMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_CHALLENGE = 0; + private static final int METHODID_VERIFY_ATTESTATION = 1; + + 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 AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService 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_CREATE_CHALLENGE: + serviceImpl.createChallenge((com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_VERIFY_ATTESTATION: + serviceImpl.verifyAttestation((com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest) 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(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateChallengeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest, + com.google.cloud.confidentialcomputing.v1.Challenge>( + service, METHODID_CREATE_CHALLENGE))) + .addMethod( + getVerifyAttestationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest, + com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse>( + service, METHODID_VERIFY_ATTESTATION))) + .build(); + } + + private static abstract class ConfidentialComputingBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + ConfidentialComputingBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("ConfidentialComputing"); + } + } + + private static final class ConfidentialComputingFileDescriptorSupplier + extends ConfidentialComputingBaseDescriptorSupplier { + ConfidentialComputingFileDescriptorSupplier() {} + } + + private static final class ConfidentialComputingMethodDescriptorSupplier + extends ConfidentialComputingBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + ConfidentialComputingMethodDescriptorSupplier(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 (ConfidentialComputingGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new ConfidentialComputingFileDescriptorSupplier()) + .addMethod(getCreateChallengeMethod()) + .addMethod(getVerifyAttestationMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/Challenge.java b/owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/Challenge.java similarity index 68% rename from java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/Challenge.java rename to owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/Challenge.java index 3e1732de06b9..e1509cbe27a4 100644 --- a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/Challenge.java +++ b/owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/Challenge.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 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/confidentialcomputing/v1/service.proto package com.google.cloud.confidentialcomputing.v1; /** - * - * *
  * A Challenge from the server used to guarantee freshness of attestations
  * 
* * Protobuf type {@code google.cloud.confidentialcomputing.v1.Challenge} */ -public final class Challenge extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Challenge extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.confidentialcomputing.v1.Challenge) ChallengeOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Challenge.newBuilder() to construct. private Challenge(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Challenge() { name_ = ""; tpmNonce_ = ""; @@ -44,39 +26,34 @@ private Challenge() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Challenge(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.confidentialcomputing.v1.ServiceProto - .internal_static_google_cloud_confidentialcomputing_v1_Challenge_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_Challenge_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.confidentialcomputing.v1.ServiceProto - .internal_static_google_cloud_confidentialcomputing_v1_Challenge_fieldAccessorTable + return com.google.cloud.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_Challenge_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.confidentialcomputing.v1.Challenge.class, - com.google.cloud.confidentialcomputing.v1.Challenge.Builder.class); + com.google.cloud.confidentialcomputing.v1.Challenge.class, com.google.cloud.confidentialcomputing.v1.Challenge.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Output only. The resource name for this Challenge in the format
    * `projects/*/locations/*/challenges/*`
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -85,30 +62,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 for this Challenge in the format
    * `projects/*/locations/*/challenges/*`
    * 
* * 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 { @@ -119,15 +96,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int CREATE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The time at which this Challenge was created
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -135,15 +108,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The time at which this Challenge was created
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -151,14 +120,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The time at which this Challenge was created
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -168,16 +134,12 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int EXPIRE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp expireTime_; /** - * - * *
    * Output only. The time at which this Challenge will no longer be usable. It
    * is also the expiration time for any tokens generated from this Challenge.
    * 
* - * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the expireTime field is set. */ @java.lang.Override @@ -185,16 +147,12 @@ public boolean hasExpireTime() { return expireTime_ != null; } /** - * - * *
    * Output only. The time at which this Challenge will no longer be usable. It
    * is also the expiration time for any tokens generated from this Challenge.
    * 
* - * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The expireTime. */ @java.lang.Override @@ -202,15 +160,12 @@ public com.google.protobuf.Timestamp getExpireTime() { return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } /** - * - * *
    * Output only. The time at which this Challenge will no longer be usable. It
    * is also the expiration time for any tokens generated from this Challenge.
    * 
* - * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { @@ -220,14 +175,11 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { public static final int USED_FIELD_NUMBER = 4; private boolean used_ = false; /** - * - * *
    * Output only. Indicates if this challenge has been used to generate a token.
    * 
* * bool used = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The used. */ @java.lang.Override @@ -236,18 +188,14 @@ public boolean getUsed() { } public static final int TPM_NONCE_FIELD_NUMBER = 6; - @SuppressWarnings("serial") private volatile java.lang.Object tpmNonce_ = ""; /** - * - * *
    * Output only. Identical to nonce, but as a string.
    * 
* * string tpm_nonce = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The tpmNonce. */ @java.lang.Override @@ -256,29 +204,29 @@ public java.lang.String getTpmNonce() { 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(); tpmNonce_ = s; return s; } } /** - * - * *
    * Output only. Identical to nonce, but as a string.
    * 
* * string tpm_nonce = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for tpmNonce. */ @java.lang.Override - public com.google.protobuf.ByteString getTpmNonceBytes() { + public com.google.protobuf.ByteString + getTpmNonceBytes() { java.lang.Object ref = tpmNonce_; 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); tpmNonce_ = b; return b; } else { @@ -287,7 +235,6 @@ public com.google.protobuf.ByteString getTpmNonceBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -299,7 +246,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_); } @@ -328,13 +276,16 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getCreateTime()); } if (expireTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getExpireTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getExpireTime()); } if (used_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, used_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, used_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tpmNonce_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, tpmNonce_); @@ -347,25 +298,29 @@ 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.confidentialcomputing.v1.Challenge)) { return super.equals(obj); } - com.google.cloud.confidentialcomputing.v1.Challenge other = - (com.google.cloud.confidentialcomputing.v1.Challenge) obj; + com.google.cloud.confidentialcomputing.v1.Challenge other = (com.google.cloud.confidentialcomputing.v1.Challenge) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasExpireTime() != other.hasExpireTime()) return false; if (hasExpireTime()) { - if (!getExpireTime().equals(other.getExpireTime())) return false; + if (!getExpireTime() + .equals(other.getExpireTime())) return false; } - if (getUsed() != other.getUsed()) return false; - if (!getTpmNonce().equals(other.getTpmNonce())) return false; + if (getUsed() + != other.getUsed()) return false; + if (!getTpmNonce() + .equals(other.getTpmNonce())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -388,7 +343,8 @@ public int hashCode() { hash = (53 * hash) + getExpireTime().hashCode(); } hash = (37 * hash) + USED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUsed()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getUsed()); hash = (37 * hash) + TPM_NONCE_FIELD_NUMBER; hash = (53 * hash) + getTpmNonce().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -397,135 +353,131 @@ public int hashCode() { } public static com.google.cloud.confidentialcomputing.v1.Challenge 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.confidentialcomputing.v1.Challenge 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.confidentialcomputing.v1.Challenge parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.confidentialcomputing.v1.Challenge 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.confidentialcomputing.v1.Challenge parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.confidentialcomputing.v1.Challenge 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.confidentialcomputing.v1.Challenge parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.confidentialcomputing.v1.Challenge parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.confidentialcomputing.v1.Challenge 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.confidentialcomputing.v1.Challenge parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.confidentialcomputing.v1.Challenge parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.confidentialcomputing.v1.Challenge 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.confidentialcomputing.v1.Challenge 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.confidentialcomputing.v1.Challenge 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.confidentialcomputing.v1.Challenge 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 Challenge from the server used to guarantee freshness of attestations
    * 
* * Protobuf type {@code google.cloud.confidentialcomputing.v1.Challenge} */ - 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.confidentialcomputing.v1.Challenge) com.google.cloud.confidentialcomputing.v1.ChallengeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.confidentialcomputing.v1.ServiceProto - .internal_static_google_cloud_confidentialcomputing_v1_Challenge_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_Challenge_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.confidentialcomputing.v1.ServiceProto - .internal_static_google_cloud_confidentialcomputing_v1_Challenge_fieldAccessorTable + return com.google.cloud.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_Challenge_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.confidentialcomputing.v1.Challenge.class, - com.google.cloud.confidentialcomputing.v1.Challenge.Builder.class); + com.google.cloud.confidentialcomputing.v1.Challenge.class, com.google.cloud.confidentialcomputing.v1.Challenge.Builder.class); } // Construct using com.google.cloud.confidentialcomputing.v1.Challenge.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -547,9 +499,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.confidentialcomputing.v1.ServiceProto - .internal_static_google_cloud_confidentialcomputing_v1_Challenge_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_Challenge_descriptor; } @java.lang.Override @@ -568,11 +520,8 @@ public com.google.cloud.confidentialcomputing.v1.Challenge build() { @java.lang.Override public com.google.cloud.confidentialcomputing.v1.Challenge buildPartial() { - com.google.cloud.confidentialcomputing.v1.Challenge result = - new com.google.cloud.confidentialcomputing.v1.Challenge(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.confidentialcomputing.v1.Challenge result = new com.google.cloud.confidentialcomputing.v1.Challenge(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -583,10 +532,14 @@ private void buildPartial0(com.google.cloud.confidentialcomputing.v1.Challenge r result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null + ? createTime_ + : createTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { - result.expireTime_ = expireTimeBuilder_ == null ? expireTime_ : expireTimeBuilder_.build(); + result.expireTime_ = expireTimeBuilder_ == null + ? expireTime_ + : expireTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.used_ = used_; @@ -600,39 +553,38 @@ private void buildPartial0(com.google.cloud.confidentialcomputing.v1.Challenge r 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.confidentialcomputing.v1.Challenge) { - return mergeFrom((com.google.cloud.confidentialcomputing.v1.Challenge) other); + return mergeFrom((com.google.cloud.confidentialcomputing.v1.Challenge)other); } else { super.mergeFrom(other); return this; @@ -640,8 +592,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.confidentialcomputing.v1.Challenge other) { - if (other == com.google.cloud.confidentialcomputing.v1.Challenge.getDefaultInstance()) - return this; + if (other == com.google.cloud.confidentialcomputing.v1.Challenge.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -687,43 +638,41 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage(getExpireTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: - { - used_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 50: - { - tpmNonce_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 50 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getExpireTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: { + used_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 50: { + tpmNonce_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 50 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -733,26 +682,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Output only. The resource name for this Challenge in the format
      * `projects/*/locations/*/challenges/*`
      * 
* * 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; @@ -761,22 +707,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. The resource name for this Challenge in the format
      * `projects/*/locations/*/challenges/*`
      * 
* * 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 { @@ -784,37 +729,30 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. The resource name for this Challenge in the format
      * `projects/*/locations/*/challenges/*`
      * 
* * 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(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Output only. The resource name for this Challenge in the format
      * `projects/*/locations/*/challenges/*`
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -824,22 +762,18 @@ public Builder clearName() { return this; } /** - * - * *
      * Output only. The resource name for this Challenge in the format
      * `projects/*/locations/*/challenges/*`
      * 
* * 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(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -849,58 +783,39 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. The time at which this Challenge was created
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Output only. The time at which this Challenge was created
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time at which this Challenge was created
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -916,17 +831,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which this Challenge was created
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -937,21 +849,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time at which this Challenge was created
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -964,15 +872,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which this Challenge was created
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000002); @@ -985,15 +889,11 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The time at which this Challenge was created
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000002; @@ -1001,48 +901,36 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time at which this Challenge was created
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. The time at which this Challenge was created
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.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> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -1050,61 +938,42 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp expireTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - expireTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> expireTimeBuilder_; /** - * - * *
      * Output only. The time at which this Challenge will no longer be usable. It
      * is also the expiration time for any tokens generated from this Challenge.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the expireTime field is set. */ public boolean hasExpireTime() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Output only. The time at which this Challenge will no longer be usable. It
      * is also the expiration time for any tokens generated from this Challenge.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The expireTime. */ public com.google.protobuf.Timestamp getExpireTime() { if (expireTimeBuilder_ == null) { - return expireTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : expireTime_; + return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } else { return expireTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time at which this Challenge will no longer be usable. It
      * is also the expiration time for any tokens generated from this Challenge.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setExpireTime(com.google.protobuf.Timestamp value) { if (expireTimeBuilder_ == null) { @@ -1120,18 +989,15 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which this Challenge will no longer be usable. It
      * is also the expiration time for any tokens generated from this Challenge.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setExpireTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (expireTimeBuilder_ == null) { expireTime_ = builderForValue.build(); } else { @@ -1142,22 +1008,18 @@ public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time at which this Challenge will no longer be usable. It
      * is also the expiration time for any tokens generated from this Challenge.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { if (expireTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && expireTime_ != null - && expireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + expireTime_ != null && + expireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getExpireTimeBuilder().mergeFrom(value); } else { expireTime_ = value; @@ -1170,16 +1032,12 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which this Challenge will no longer be usable. It
      * is also the expiration time for any tokens generated from this Challenge.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearExpireTime() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1192,16 +1050,12 @@ public Builder clearExpireTime() { return this; } /** - * - * *
      * Output only. The time at which this Challenge will no longer be usable. It
      * is also the expiration time for any tokens generated from this Challenge.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { bitField0_ |= 0x00000004; @@ -1209,65 +1063,50 @@ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { return getExpireTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time at which this Challenge will no longer be usable. It
      * is also the expiration time for any tokens generated from this Challenge.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { if (expireTimeBuilder_ != null) { return expireTimeBuilder_.getMessageOrBuilder(); } else { - return expireTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : expireTime_; + return expireTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } } /** - * - * *
      * Output only. The time at which this Challenge will no longer be usable. It
      * is also the expiration time for any tokens generated from this Challenge.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 3 [(.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> getExpireTimeFieldBuilder() { if (expireTimeBuilder_ == null) { - expireTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getExpireTime(), getParentForChildren(), isClean()); + expireTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getExpireTime(), + getParentForChildren(), + isClean()); expireTime_ = null; } return expireTimeBuilder_; } - private boolean used_; + private boolean used_ ; /** - * - * *
      * Output only. Indicates if this challenge has been used to generate a token.
      * 
* * bool used = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The used. */ @java.lang.Override @@ -1275,14 +1114,11 @@ public boolean getUsed() { return used_; } /** - * - * *
      * Output only. Indicates if this challenge has been used to generate a token.
      * 
* * bool used = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The used to set. * @return This builder for chaining. */ @@ -1294,14 +1130,11 @@ public Builder setUsed(boolean value) { return this; } /** - * - * *
      * Output only. Indicates if this challenge has been used to generate a token.
      * 
* * bool used = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearUsed() { @@ -1313,20 +1146,18 @@ public Builder clearUsed() { private java.lang.Object tpmNonce_ = ""; /** - * - * *
      * Output only. Identical to nonce, but as a string.
      * 
* * string tpm_nonce = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The tpmNonce. */ public java.lang.String getTpmNonce() { java.lang.Object ref = tpmNonce_; 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(); tpmNonce_ = s; return s; @@ -1335,21 +1166,20 @@ public java.lang.String getTpmNonce() { } } /** - * - * *
      * Output only. Identical to nonce, but as a string.
      * 
* * string tpm_nonce = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for tpmNonce. */ - public com.google.protobuf.ByteString getTpmNonceBytes() { + public com.google.protobuf.ByteString + getTpmNonceBytes() { java.lang.Object ref = tpmNonce_; 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); tpmNonce_ = b; return b; } else { @@ -1357,35 +1187,28 @@ public com.google.protobuf.ByteString getTpmNonceBytes() { } } /** - * - * *
      * Output only. Identical to nonce, but as a string.
      * 
* * string tpm_nonce = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The tpmNonce to set. * @return This builder for chaining. */ - public Builder setTpmNonce(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTpmNonce( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } tpmNonce_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * Output only. Identical to nonce, but as a string.
      * 
* * string tpm_nonce = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearTpmNonce() { @@ -1395,30 +1218,26 @@ public Builder clearTpmNonce() { return this; } /** - * - * *
      * Output only. Identical to nonce, but as a string.
      * 
* * string tpm_nonce = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for tpmNonce to set. * @return This builder for chaining. */ - public Builder setTpmNonceBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTpmNonceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); tpmNonce_ = value; bitField0_ |= 0x00000010; 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); } @@ -1428,12 +1247,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.confidentialcomputing.v1.Challenge) } // @@protoc_insertion_point(class_scope:google.cloud.confidentialcomputing.v1.Challenge) private static final com.google.cloud.confidentialcomputing.v1.Challenge DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.confidentialcomputing.v1.Challenge(); } @@ -1442,27 +1261,27 @@ public static com.google.cloud.confidentialcomputing.v1.Challenge getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Challenge parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Challenge parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1477,4 +1296,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.confidentialcomputing.v1.Challenge getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ChallengeName.java b/owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ChallengeName.java similarity index 100% rename from java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ChallengeName.java rename to owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ChallengeName.java diff --git a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ChallengeOrBuilder.java b/owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ChallengeOrBuilder.java similarity index 73% rename from java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ChallengeOrBuilder.java rename to owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ChallengeOrBuilder.java index e1a8bef0778f..fda3d909b7cf 100644 --- a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ChallengeOrBuilder.java +++ b/owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ChallengeOrBuilder.java @@ -1,169 +1,118 @@ -/* - * Copyright 2023 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/confidentialcomputing/v1/service.proto package com.google.cloud.confidentialcomputing.v1; -public interface ChallengeOrBuilder - extends +public interface ChallengeOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.confidentialcomputing.v1.Challenge) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The resource name for this Challenge in the format
    * `projects/*/locations/*/challenges/*`
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. The resource name for this Challenge in the format
    * `projects/*/locations/*/challenges/*`
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Output only. The time at which this Challenge was created
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The time at which this Challenge was created
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The time at which this Challenge was created
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. The time at which this Challenge will no longer be usable. It
    * is also the expiration time for any tokens generated from this Challenge.
    * 
* - * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the expireTime field is set. */ boolean hasExpireTime(); /** - * - * *
    * Output only. The time at which this Challenge will no longer be usable. It
    * is also the expiration time for any tokens generated from this Challenge.
    * 
* - * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The expireTime. */ com.google.protobuf.Timestamp getExpireTime(); /** - * - * *
    * Output only. The time at which this Challenge will no longer be usable. It
    * is also the expiration time for any tokens generated from this Challenge.
    * 
* - * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder(); /** - * - * *
    * Output only. Indicates if this challenge has been used to generate a token.
    * 
* * bool used = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The used. */ boolean getUsed(); /** - * - * *
    * Output only. Identical to nonce, but as a string.
    * 
* * string tpm_nonce = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The tpmNonce. */ java.lang.String getTpmNonce(); /** - * - * *
    * Output only. Identical to nonce, but as a string.
    * 
* * string tpm_nonce = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for tpmNonce. */ - com.google.protobuf.ByteString getTpmNonceBytes(); + com.google.protobuf.ByteString + getTpmNonceBytes(); } diff --git a/owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ConfidentialSpaceInfo.java b/owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ConfidentialSpaceInfo.java new file mode 100644 index 000000000000..5441ef370fa6 --- /dev/null +++ b/owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ConfidentialSpaceInfo.java @@ -0,0 +1,884 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/confidentialcomputing/v1/service.proto + +package com.google.cloud.confidentialcomputing.v1; + +/** + *
+ * ConfidentialSpaceInfo contains information related to the Confidential Space
+ * TEE.
+ * 
+ * + * Protobuf type {@code google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo} + */ +public final class ConfidentialSpaceInfo extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo) + ConfidentialSpaceInfoOrBuilder { +private static final long serialVersionUID = 0L; + // Use ConfidentialSpaceInfo.newBuilder() to construct. + private ConfidentialSpaceInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ConfidentialSpaceInfo() { + signedEntities_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ConfidentialSpaceInfo(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_ConfidentialSpaceInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_ConfidentialSpaceInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo.class, com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo.Builder.class); + } + + public static final int SIGNED_ENTITIES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List signedEntities_; + /** + *
+   * Optional. A list of signed entities containing container image signatures
+   * that can be used for server-side signature verification.
+   * 
+ * + * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.List getSignedEntitiesList() { + return signedEntities_; + } + /** + *
+   * Optional. A list of signed entities containing container image signatures
+   * that can be used for server-side signature verification.
+   * 
+ * + * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.List + getSignedEntitiesOrBuilderList() { + return signedEntities_; + } + /** + *
+   * Optional. A list of signed entities containing container image signatures
+   * that can be used for server-side signature verification.
+   * 
+ * + * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public int getSignedEntitiesCount() { + return signedEntities_.size(); + } + /** + *
+   * Optional. A list of signed entities containing container image signatures
+   * that can be used for server-side signature verification.
+   * 
+ * + * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.SignedEntity getSignedEntities(int index) { + return signedEntities_.get(index); + } + /** + *
+   * Optional. A list of signed entities containing container image signatures
+   * that can be used for server-side signature verification.
+   * 
+ * + * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.SignedEntityOrBuilder getSignedEntitiesOrBuilder( + int index) { + return signedEntities_.get(index); + } + + 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 { + for (int i = 0; i < signedEntities_.size(); i++) { + output.writeMessage(1, signedEntities_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < signedEntities_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, signedEntities_.get(i)); + } + size += getUnknownFields().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.confidentialcomputing.v1.ConfidentialSpaceInfo)) { + return super.equals(obj); + } + com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo other = (com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo) obj; + + if (!getSignedEntitiesList() + .equals(other.getSignedEntitiesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getSignedEntitiesCount() > 0) { + hash = (37 * hash) + SIGNED_ENTITIES_FIELD_NUMBER; + hash = (53 * hash) + getSignedEntitiesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo 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.confidentialcomputing.v1.ConfidentialSpaceInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo 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.confidentialcomputing.v1.ConfidentialSpaceInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo 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.confidentialcomputing.v1.ConfidentialSpaceInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo 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.confidentialcomputing.v1.ConfidentialSpaceInfo parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo 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.confidentialcomputing.v1.ConfidentialSpaceInfo 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; + } + /** + *
+   * ConfidentialSpaceInfo contains information related to the Confidential Space
+   * TEE.
+   * 
+ * + * Protobuf type {@code google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo) + com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_ConfidentialSpaceInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_ConfidentialSpaceInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo.class, com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo.Builder.class); + } + + // Construct using com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (signedEntitiesBuilder_ == null) { + signedEntities_ = java.util.Collections.emptyList(); + } else { + signedEntities_ = null; + signedEntitiesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_ConfidentialSpaceInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo getDefaultInstanceForType() { + return com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo build() { + com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo buildPartial() { + com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo result = new com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo result) { + if (signedEntitiesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + signedEntities_ = java.util.Collections.unmodifiableList(signedEntities_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.signedEntities_ = signedEntities_; + } else { + result.signedEntities_ = signedEntitiesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo result) { + int from_bitField0_ = bitField0_; + } + + @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.confidentialcomputing.v1.ConfidentialSpaceInfo) { + return mergeFrom((com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo other) { + if (other == com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo.getDefaultInstance()) return this; + if (signedEntitiesBuilder_ == null) { + if (!other.signedEntities_.isEmpty()) { + if (signedEntities_.isEmpty()) { + signedEntities_ = other.signedEntities_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSignedEntitiesIsMutable(); + signedEntities_.addAll(other.signedEntities_); + } + onChanged(); + } + } else { + if (!other.signedEntities_.isEmpty()) { + if (signedEntitiesBuilder_.isEmpty()) { + signedEntitiesBuilder_.dispose(); + signedEntitiesBuilder_ = null; + signedEntities_ = other.signedEntities_; + bitField0_ = (bitField0_ & ~0x00000001); + signedEntitiesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getSignedEntitiesFieldBuilder() : null; + } else { + signedEntitiesBuilder_.addAllMessages(other.signedEntities_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.cloud.confidentialcomputing.v1.SignedEntity m = + input.readMessage( + com.google.cloud.confidentialcomputing.v1.SignedEntity.parser(), + extensionRegistry); + if (signedEntitiesBuilder_ == null) { + ensureSignedEntitiesIsMutable(); + signedEntities_.add(m); + } else { + signedEntitiesBuilder_.addMessage(m); + } + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.util.List signedEntities_ = + java.util.Collections.emptyList(); + private void ensureSignedEntitiesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + signedEntities_ = new java.util.ArrayList(signedEntities_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.confidentialcomputing.v1.SignedEntity, com.google.cloud.confidentialcomputing.v1.SignedEntity.Builder, com.google.cloud.confidentialcomputing.v1.SignedEntityOrBuilder> signedEntitiesBuilder_; + + /** + *
+     * Optional. A list of signed entities containing container image signatures
+     * that can be used for server-side signature verification.
+     * 
+ * + * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + public java.util.List getSignedEntitiesList() { + if (signedEntitiesBuilder_ == null) { + return java.util.Collections.unmodifiableList(signedEntities_); + } else { + return signedEntitiesBuilder_.getMessageList(); + } + } + /** + *
+     * Optional. A list of signed entities containing container image signatures
+     * that can be used for server-side signature verification.
+     * 
+ * + * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + public int getSignedEntitiesCount() { + if (signedEntitiesBuilder_ == null) { + return signedEntities_.size(); + } else { + return signedEntitiesBuilder_.getCount(); + } + } + /** + *
+     * Optional. A list of signed entities containing container image signatures
+     * that can be used for server-side signature verification.
+     * 
+ * + * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.cloud.confidentialcomputing.v1.SignedEntity getSignedEntities(int index) { + if (signedEntitiesBuilder_ == null) { + return signedEntities_.get(index); + } else { + return signedEntitiesBuilder_.getMessage(index); + } + } + /** + *
+     * Optional. A list of signed entities containing container image signatures
+     * that can be used for server-side signature verification.
+     * 
+ * + * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setSignedEntities( + int index, com.google.cloud.confidentialcomputing.v1.SignedEntity value) { + if (signedEntitiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSignedEntitiesIsMutable(); + signedEntities_.set(index, value); + onChanged(); + } else { + signedEntitiesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * Optional. A list of signed entities containing container image signatures
+     * that can be used for server-side signature verification.
+     * 
+ * + * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setSignedEntities( + int index, com.google.cloud.confidentialcomputing.v1.SignedEntity.Builder builderForValue) { + if (signedEntitiesBuilder_ == null) { + ensureSignedEntitiesIsMutable(); + signedEntities_.set(index, builderForValue.build()); + onChanged(); + } else { + signedEntitiesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Optional. A list of signed entities containing container image signatures
+     * that can be used for server-side signature verification.
+     * 
+ * + * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder addSignedEntities(com.google.cloud.confidentialcomputing.v1.SignedEntity value) { + if (signedEntitiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSignedEntitiesIsMutable(); + signedEntities_.add(value); + onChanged(); + } else { + signedEntitiesBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * Optional. A list of signed entities containing container image signatures
+     * that can be used for server-side signature verification.
+     * 
+ * + * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder addSignedEntities( + int index, com.google.cloud.confidentialcomputing.v1.SignedEntity value) { + if (signedEntitiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSignedEntitiesIsMutable(); + signedEntities_.add(index, value); + onChanged(); + } else { + signedEntitiesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * Optional. A list of signed entities containing container image signatures
+     * that can be used for server-side signature verification.
+     * 
+ * + * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder addSignedEntities( + com.google.cloud.confidentialcomputing.v1.SignedEntity.Builder builderForValue) { + if (signedEntitiesBuilder_ == null) { + ensureSignedEntitiesIsMutable(); + signedEntities_.add(builderForValue.build()); + onChanged(); + } else { + signedEntitiesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * Optional. A list of signed entities containing container image signatures
+     * that can be used for server-side signature verification.
+     * 
+ * + * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder addSignedEntities( + int index, com.google.cloud.confidentialcomputing.v1.SignedEntity.Builder builderForValue) { + if (signedEntitiesBuilder_ == null) { + ensureSignedEntitiesIsMutable(); + signedEntities_.add(index, builderForValue.build()); + onChanged(); + } else { + signedEntitiesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Optional. A list of signed entities containing container image signatures
+     * that can be used for server-side signature verification.
+     * 
+ * + * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder addAllSignedEntities( + java.lang.Iterable values) { + if (signedEntitiesBuilder_ == null) { + ensureSignedEntitiesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, signedEntities_); + onChanged(); + } else { + signedEntitiesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * Optional. A list of signed entities containing container image signatures
+     * that can be used for server-side signature verification.
+     * 
+ * + * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder clearSignedEntities() { + if (signedEntitiesBuilder_ == null) { + signedEntities_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + signedEntitiesBuilder_.clear(); + } + return this; + } + /** + *
+     * Optional. A list of signed entities containing container image signatures
+     * that can be used for server-side signature verification.
+     * 
+ * + * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder removeSignedEntities(int index) { + if (signedEntitiesBuilder_ == null) { + ensureSignedEntitiesIsMutable(); + signedEntities_.remove(index); + onChanged(); + } else { + signedEntitiesBuilder_.remove(index); + } + return this; + } + /** + *
+     * Optional. A list of signed entities containing container image signatures
+     * that can be used for server-side signature verification.
+     * 
+ * + * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.cloud.confidentialcomputing.v1.SignedEntity.Builder getSignedEntitiesBuilder( + int index) { + return getSignedEntitiesFieldBuilder().getBuilder(index); + } + /** + *
+     * Optional. A list of signed entities containing container image signatures
+     * that can be used for server-side signature verification.
+     * 
+ * + * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.cloud.confidentialcomputing.v1.SignedEntityOrBuilder getSignedEntitiesOrBuilder( + int index) { + if (signedEntitiesBuilder_ == null) { + return signedEntities_.get(index); } else { + return signedEntitiesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * Optional. A list of signed entities containing container image signatures
+     * that can be used for server-side signature verification.
+     * 
+ * + * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + public java.util.List + getSignedEntitiesOrBuilderList() { + if (signedEntitiesBuilder_ != null) { + return signedEntitiesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(signedEntities_); + } + } + /** + *
+     * Optional. A list of signed entities containing container image signatures
+     * that can be used for server-side signature verification.
+     * 
+ * + * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.cloud.confidentialcomputing.v1.SignedEntity.Builder addSignedEntitiesBuilder() { + return getSignedEntitiesFieldBuilder().addBuilder( + com.google.cloud.confidentialcomputing.v1.SignedEntity.getDefaultInstance()); + } + /** + *
+     * Optional. A list of signed entities containing container image signatures
+     * that can be used for server-side signature verification.
+     * 
+ * + * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.cloud.confidentialcomputing.v1.SignedEntity.Builder addSignedEntitiesBuilder( + int index) { + return getSignedEntitiesFieldBuilder().addBuilder( + index, com.google.cloud.confidentialcomputing.v1.SignedEntity.getDefaultInstance()); + } + /** + *
+     * Optional. A list of signed entities containing container image signatures
+     * that can be used for server-side signature verification.
+     * 
+ * + * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + public java.util.List + getSignedEntitiesBuilderList() { + return getSignedEntitiesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.confidentialcomputing.v1.SignedEntity, com.google.cloud.confidentialcomputing.v1.SignedEntity.Builder, com.google.cloud.confidentialcomputing.v1.SignedEntityOrBuilder> + getSignedEntitiesFieldBuilder() { + if (signedEntitiesBuilder_ == null) { + signedEntitiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.confidentialcomputing.v1.SignedEntity, com.google.cloud.confidentialcomputing.v1.SignedEntity.Builder, com.google.cloud.confidentialcomputing.v1.SignedEntityOrBuilder>( + signedEntities_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + signedEntities_ = null; + } + return signedEntitiesBuilder_; + } + @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.confidentialcomputing.v1.ConfidentialSpaceInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo) + private static final com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo(); + } + + public static com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConfidentialSpaceInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.confidentialcomputing.v1.ConfidentialSpaceInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ConfidentialSpaceInfoOrBuilder.java b/owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ConfidentialSpaceInfoOrBuilder.java new file mode 100644 index 000000000000..25058b5aa621 --- /dev/null +++ b/owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ConfidentialSpaceInfoOrBuilder.java @@ -0,0 +1,58 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/confidentialcomputing/v1/service.proto + +package com.google.cloud.confidentialcomputing.v1; + +public interface ConfidentialSpaceInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Optional. A list of signed entities containing container image signatures
+   * that can be used for server-side signature verification.
+   * 
+ * + * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.util.List + getSignedEntitiesList(); + /** + *
+   * Optional. A list of signed entities containing container image signatures
+   * that can be used for server-side signature verification.
+   * 
+ * + * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + com.google.cloud.confidentialcomputing.v1.SignedEntity getSignedEntities(int index); + /** + *
+   * Optional. A list of signed entities containing container image signatures
+   * that can be used for server-side signature verification.
+   * 
+ * + * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + int getSignedEntitiesCount(); + /** + *
+   * Optional. A list of signed entities containing container image signatures
+   * that can be used for server-side signature verification.
+   * 
+ * + * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.util.List + getSignedEntitiesOrBuilderList(); + /** + *
+   * Optional. A list of signed entities containing container image signatures
+   * that can be used for server-side signature verification.
+   * 
+ * + * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + com.google.cloud.confidentialcomputing.v1.SignedEntityOrBuilder getSignedEntitiesOrBuilder( + int index); +} diff --git a/owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ContainerImageSignature.java b/owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ContainerImageSignature.java new file mode 100644 index 000000000000..1719ebf25a81 --- /dev/null +++ b/owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ContainerImageSignature.java @@ -0,0 +1,818 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/confidentialcomputing/v1/service.proto + +package com.google.cloud.confidentialcomputing.v1; + +/** + *
+ * ContainerImageSignature holds necessary metadata to verify a container image
+ * signature.
+ * 
+ * + * Protobuf type {@code google.cloud.confidentialcomputing.v1.ContainerImageSignature} + */ +public final class ContainerImageSignature extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.confidentialcomputing.v1.ContainerImageSignature) + ContainerImageSignatureOrBuilder { +private static final long serialVersionUID = 0L; + // Use ContainerImageSignature.newBuilder() to construct. + private ContainerImageSignature(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ContainerImageSignature() { + payload_ = com.google.protobuf.ByteString.EMPTY; + signature_ = com.google.protobuf.ByteString.EMPTY; + publicKey_ = com.google.protobuf.ByteString.EMPTY; + sigAlg_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ContainerImageSignature(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_ContainerImageSignature_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_ContainerImageSignature_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.confidentialcomputing.v1.ContainerImageSignature.class, com.google.cloud.confidentialcomputing.v1.ContainerImageSignature.Builder.class); + } + + public static final int PAYLOAD_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString payload_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+   * Required. The binary signature payload following the SimpleSigning format
+   * https://github.com/sigstore/cosign/blob/main/specs/SIGNATURE_SPEC.md#simple-signing.
+   * This payload includes the container image digest.
+   * 
+ * + * bytes payload = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The payload. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPayload() { + return payload_; + } + + public static final int SIGNATURE_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString signature_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+   * Required. A signature over the payload.
+   * The container image digest is incorporated into the signature as follows:
+   * 1. Generate a SimpleSigning format payload that includes the container
+   * image digest.
+   * 2. Generate a signature over SHA256 digest of the payload.
+   * The signature generation process can be represented as follows:
+   * `Sign(sha256(SimpleSigningPayload(sha256(Image Manifest))))`
+   * 
+ * + * bytes signature = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The signature. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSignature() { + return signature_; + } + + public static final int PUBLIC_KEY_FIELD_NUMBER = 3; + private com.google.protobuf.ByteString publicKey_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+   * Required. An associated public key used to verify the signature.
+   * 
+ * + * bytes public_key = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return The publicKey. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPublicKey() { + return publicKey_; + } + + public static final int SIG_ALG_FIELD_NUMBER = 4; + private int sigAlg_ = 0; + /** + *
+   * Required. The algorithm used to produce the container image signature.
+   * 
+ * + * .google.cloud.confidentialcomputing.v1.SigningAlgorithm sig_alg = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return The enum numeric value on the wire for sigAlg. + */ + @java.lang.Override public int getSigAlgValue() { + return sigAlg_; + } + /** + *
+   * Required. The algorithm used to produce the container image signature.
+   * 
+ * + * .google.cloud.confidentialcomputing.v1.SigningAlgorithm sig_alg = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return The sigAlg. + */ + @java.lang.Override public com.google.cloud.confidentialcomputing.v1.SigningAlgorithm getSigAlg() { + com.google.cloud.confidentialcomputing.v1.SigningAlgorithm result = com.google.cloud.confidentialcomputing.v1.SigningAlgorithm.forNumber(sigAlg_); + return result == null ? com.google.cloud.confidentialcomputing.v1.SigningAlgorithm.UNRECOGNIZED : result; + } + + 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 (!payload_.isEmpty()) { + output.writeBytes(1, payload_); + } + if (!signature_.isEmpty()) { + output.writeBytes(2, signature_); + } + if (!publicKey_.isEmpty()) { + output.writeBytes(3, publicKey_); + } + if (sigAlg_ != com.google.cloud.confidentialcomputing.v1.SigningAlgorithm.SIGNING_ALGORITHM_UNSPECIFIED.getNumber()) { + output.writeEnum(4, sigAlg_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!payload_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, payload_); + } + if (!signature_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, signature_); + } + if (!publicKey_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(3, publicKey_); + } + if (sigAlg_ != com.google.cloud.confidentialcomputing.v1.SigningAlgorithm.SIGNING_ALGORITHM_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, sigAlg_); + } + size += getUnknownFields().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.confidentialcomputing.v1.ContainerImageSignature)) { + return super.equals(obj); + } + com.google.cloud.confidentialcomputing.v1.ContainerImageSignature other = (com.google.cloud.confidentialcomputing.v1.ContainerImageSignature) obj; + + if (!getPayload() + .equals(other.getPayload())) return false; + if (!getSignature() + .equals(other.getSignature())) return false; + if (!getPublicKey() + .equals(other.getPublicKey())) return false; + if (sigAlg_ != other.sigAlg_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + PAYLOAD_FIELD_NUMBER; + hash = (53 * hash) + getPayload().hashCode(); + hash = (37 * hash) + SIGNATURE_FIELD_NUMBER; + hash = (53 * hash) + getSignature().hashCode(); + hash = (37 * hash) + PUBLIC_KEY_FIELD_NUMBER; + hash = (53 * hash) + getPublicKey().hashCode(); + hash = (37 * hash) + SIG_ALG_FIELD_NUMBER; + hash = (53 * hash) + sigAlg_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.confidentialcomputing.v1.ContainerImageSignature parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.confidentialcomputing.v1.ContainerImageSignature 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.confidentialcomputing.v1.ContainerImageSignature parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.confidentialcomputing.v1.ContainerImageSignature 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.confidentialcomputing.v1.ContainerImageSignature parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.confidentialcomputing.v1.ContainerImageSignature parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.confidentialcomputing.v1.ContainerImageSignature parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.confidentialcomputing.v1.ContainerImageSignature 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.confidentialcomputing.v1.ContainerImageSignature parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.confidentialcomputing.v1.ContainerImageSignature 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.confidentialcomputing.v1.ContainerImageSignature parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.confidentialcomputing.v1.ContainerImageSignature 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.confidentialcomputing.v1.ContainerImageSignature 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; + } + /** + *
+   * ContainerImageSignature holds necessary metadata to verify a container image
+   * signature.
+   * 
+ * + * Protobuf type {@code google.cloud.confidentialcomputing.v1.ContainerImageSignature} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.confidentialcomputing.v1.ContainerImageSignature) + com.google.cloud.confidentialcomputing.v1.ContainerImageSignatureOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_ContainerImageSignature_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_ContainerImageSignature_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.confidentialcomputing.v1.ContainerImageSignature.class, com.google.cloud.confidentialcomputing.v1.ContainerImageSignature.Builder.class); + } + + // Construct using com.google.cloud.confidentialcomputing.v1.ContainerImageSignature.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + payload_ = com.google.protobuf.ByteString.EMPTY; + signature_ = com.google.protobuf.ByteString.EMPTY; + publicKey_ = com.google.protobuf.ByteString.EMPTY; + sigAlg_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_ContainerImageSignature_descriptor; + } + + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.ContainerImageSignature getDefaultInstanceForType() { + return com.google.cloud.confidentialcomputing.v1.ContainerImageSignature.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.ContainerImageSignature build() { + com.google.cloud.confidentialcomputing.v1.ContainerImageSignature result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.ContainerImageSignature buildPartial() { + com.google.cloud.confidentialcomputing.v1.ContainerImageSignature result = new com.google.cloud.confidentialcomputing.v1.ContainerImageSignature(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.confidentialcomputing.v1.ContainerImageSignature result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.payload_ = payload_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.signature_ = signature_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.publicKey_ = publicKey_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.sigAlg_ = sigAlg_; + } + } + + @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.confidentialcomputing.v1.ContainerImageSignature) { + return mergeFrom((com.google.cloud.confidentialcomputing.v1.ContainerImageSignature)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.confidentialcomputing.v1.ContainerImageSignature other) { + if (other == com.google.cloud.confidentialcomputing.v1.ContainerImageSignature.getDefaultInstance()) return this; + if (other.getPayload() != com.google.protobuf.ByteString.EMPTY) { + setPayload(other.getPayload()); + } + if (other.getSignature() != com.google.protobuf.ByteString.EMPTY) { + setSignature(other.getSignature()); + } + if (other.getPublicKey() != com.google.protobuf.ByteString.EMPTY) { + setPublicKey(other.getPublicKey()); + } + if (other.sigAlg_ != 0) { + setSigAlgValue(other.getSigAlgValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + payload_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + signature_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + publicKey_ = input.readBytes(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: { + sigAlg_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private com.google.protobuf.ByteString payload_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+     * Required. The binary signature payload following the SimpleSigning format
+     * https://github.com/sigstore/cosign/blob/main/specs/SIGNATURE_SPEC.md#simple-signing.
+     * This payload includes the container image digest.
+     * 
+ * + * bytes payload = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The payload. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPayload() { + return payload_; + } + /** + *
+     * Required. The binary signature payload following the SimpleSigning format
+     * https://github.com/sigstore/cosign/blob/main/specs/SIGNATURE_SPEC.md#simple-signing.
+     * This payload includes the container image digest.
+     * 
+ * + * bytes payload = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param value The payload to set. + * @return This builder for chaining. + */ + public Builder setPayload(com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + payload_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Required. The binary signature payload following the SimpleSigning format
+     * https://github.com/sigstore/cosign/blob/main/specs/SIGNATURE_SPEC.md#simple-signing.
+     * This payload includes the container image digest.
+     * 
+ * + * bytes payload = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return This builder for chaining. + */ + public Builder clearPayload() { + bitField0_ = (bitField0_ & ~0x00000001); + payload_ = getDefaultInstance().getPayload(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString signature_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+     * Required. A signature over the payload.
+     * The container image digest is incorporated into the signature as follows:
+     * 1. Generate a SimpleSigning format payload that includes the container
+     * image digest.
+     * 2. Generate a signature over SHA256 digest of the payload.
+     * The signature generation process can be represented as follows:
+     * `Sign(sha256(SimpleSigningPayload(sha256(Image Manifest))))`
+     * 
+ * + * bytes signature = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The signature. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSignature() { + return signature_; + } + /** + *
+     * Required. A signature over the payload.
+     * The container image digest is incorporated into the signature as follows:
+     * 1. Generate a SimpleSigning format payload that includes the container
+     * image digest.
+     * 2. Generate a signature over SHA256 digest of the payload.
+     * The signature generation process can be represented as follows:
+     * `Sign(sha256(SimpleSigningPayload(sha256(Image Manifest))))`
+     * 
+ * + * bytes signature = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param value The signature to set. + * @return This builder for chaining. + */ + public Builder setSignature(com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + signature_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Required. A signature over the payload.
+     * The container image digest is incorporated into the signature as follows:
+     * 1. Generate a SimpleSigning format payload that includes the container
+     * image digest.
+     * 2. Generate a signature over SHA256 digest of the payload.
+     * The signature generation process can be represented as follows:
+     * `Sign(sha256(SimpleSigningPayload(sha256(Image Manifest))))`
+     * 
+ * + * bytes signature = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return This builder for chaining. + */ + public Builder clearSignature() { + bitField0_ = (bitField0_ & ~0x00000002); + signature_ = getDefaultInstance().getSignature(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString publicKey_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+     * Required. An associated public key used to verify the signature.
+     * 
+ * + * bytes public_key = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return The publicKey. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPublicKey() { + return publicKey_; + } + /** + *
+     * Required. An associated public key used to verify the signature.
+     * 
+ * + * bytes public_key = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param value The publicKey to set. + * @return This builder for chaining. + */ + public Builder setPublicKey(com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + publicKey_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Required. An associated public key used to verify the signature.
+     * 
+ * + * bytes public_key = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return This builder for chaining. + */ + public Builder clearPublicKey() { + bitField0_ = (bitField0_ & ~0x00000004); + publicKey_ = getDefaultInstance().getPublicKey(); + onChanged(); + return this; + } + + private int sigAlg_ = 0; + /** + *
+     * Required. The algorithm used to produce the container image signature.
+     * 
+ * + * .google.cloud.confidentialcomputing.v1.SigningAlgorithm sig_alg = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return The enum numeric value on the wire for sigAlg. + */ + @java.lang.Override public int getSigAlgValue() { + return sigAlg_; + } + /** + *
+     * Required. The algorithm used to produce the container image signature.
+     * 
+ * + * .google.cloud.confidentialcomputing.v1.SigningAlgorithm sig_alg = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param value The enum numeric value on the wire for sigAlg to set. + * @return This builder for chaining. + */ + public Builder setSigAlgValue(int value) { + sigAlg_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * Required. The algorithm used to produce the container image signature.
+     * 
+ * + * .google.cloud.confidentialcomputing.v1.SigningAlgorithm sig_alg = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return The sigAlg. + */ + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.SigningAlgorithm getSigAlg() { + com.google.cloud.confidentialcomputing.v1.SigningAlgorithm result = com.google.cloud.confidentialcomputing.v1.SigningAlgorithm.forNumber(sigAlg_); + return result == null ? com.google.cloud.confidentialcomputing.v1.SigningAlgorithm.UNRECOGNIZED : result; + } + /** + *
+     * Required. The algorithm used to produce the container image signature.
+     * 
+ * + * .google.cloud.confidentialcomputing.v1.SigningAlgorithm sig_alg = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param value The sigAlg to set. + * @return This builder for chaining. + */ + public Builder setSigAlg(com.google.cloud.confidentialcomputing.v1.SigningAlgorithm value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + sigAlg_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Required. The algorithm used to produce the container image signature.
+     * 
+ * + * .google.cloud.confidentialcomputing.v1.SigningAlgorithm sig_alg = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return This builder for chaining. + */ + public Builder clearSigAlg() { + bitField0_ = (bitField0_ & ~0x00000008); + sigAlg_ = 0; + 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.confidentialcomputing.v1.ContainerImageSignature) + } + + // @@protoc_insertion_point(class_scope:google.cloud.confidentialcomputing.v1.ContainerImageSignature) + private static final com.google.cloud.confidentialcomputing.v1.ContainerImageSignature DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.confidentialcomputing.v1.ContainerImageSignature(); + } + + public static com.google.cloud.confidentialcomputing.v1.ContainerImageSignature getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ContainerImageSignature parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.confidentialcomputing.v1.ContainerImageSignature getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ContainerImageSignatureOrBuilder.java b/owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ContainerImageSignatureOrBuilder.java new file mode 100644 index 000000000000..446b6cb88e7e --- /dev/null +++ b/owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ContainerImageSignatureOrBuilder.java @@ -0,0 +1,66 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/confidentialcomputing/v1/service.proto + +package com.google.cloud.confidentialcomputing.v1; + +public interface ContainerImageSignatureOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.confidentialcomputing.v1.ContainerImageSignature) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The binary signature payload following the SimpleSigning format
+   * https://github.com/sigstore/cosign/blob/main/specs/SIGNATURE_SPEC.md#simple-signing.
+   * This payload includes the container image digest.
+   * 
+ * + * bytes payload = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The payload. + */ + com.google.protobuf.ByteString getPayload(); + + /** + *
+   * Required. A signature over the payload.
+   * The container image digest is incorporated into the signature as follows:
+   * 1. Generate a SimpleSigning format payload that includes the container
+   * image digest.
+   * 2. Generate a signature over SHA256 digest of the payload.
+   * The signature generation process can be represented as follows:
+   * `Sign(sha256(SimpleSigningPayload(sha256(Image Manifest))))`
+   * 
+ * + * bytes signature = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The signature. + */ + com.google.protobuf.ByteString getSignature(); + + /** + *
+   * Required. An associated public key used to verify the signature.
+   * 
+ * + * bytes public_key = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return The publicKey. + */ + com.google.protobuf.ByteString getPublicKey(); + + /** + *
+   * Required. The algorithm used to produce the container image signature.
+   * 
+ * + * .google.cloud.confidentialcomputing.v1.SigningAlgorithm sig_alg = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return The enum numeric value on the wire for sigAlg. + */ + int getSigAlgValue(); + /** + *
+   * Required. The algorithm used to produce the container image signature.
+   * 
+ * + * .google.cloud.confidentialcomputing.v1.SigningAlgorithm sig_alg = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return The sigAlg. + */ + com.google.cloud.confidentialcomputing.v1.SigningAlgorithm getSigAlg(); +} diff --git a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/CreateChallengeRequest.java b/owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/CreateChallengeRequest.java similarity index 61% rename from java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/CreateChallengeRequest.java rename to owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/CreateChallengeRequest.java index 108428e7754b..e3ae9a5f6bac 100644 --- a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/CreateChallengeRequest.java +++ b/owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/CreateChallengeRequest.java @@ -1,83 +1,58 @@ -/* - * Copyright 2023 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/confidentialcomputing/v1/service.proto package com.google.cloud.confidentialcomputing.v1; /** - * - * *
  * Message for creating a Challenge
  * 
* * Protobuf type {@code google.cloud.confidentialcomputing.v1.CreateChallengeRequest} */ -public final class CreateChallengeRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateChallengeRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.confidentialcomputing.v1.CreateChallengeRequest) CreateChallengeRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateChallengeRequest.newBuilder() to construct. private CreateChallengeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateChallengeRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateChallengeRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.confidentialcomputing.v1.ServiceProto - .internal_static_google_cloud_confidentialcomputing_v1_CreateChallengeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_CreateChallengeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.confidentialcomputing.v1.ServiceProto - .internal_static_google_cloud_confidentialcomputing_v1_CreateChallengeRequest_fieldAccessorTable + return com.google.cloud.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_CreateChallengeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest.class, - com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest.Builder.class); + com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest.class, com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The resource name of the location where the Challenge will be
    * used, in the format `projects/*/locations/*`.
    * 
* - * - * 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 @@ -86,32 +61,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 location where the Challenge will be
    * used, in the format `projects/*/locations/*`.
    * 
* - * - * 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 { @@ -122,17 +95,12 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int CHALLENGE_FIELD_NUMBER = 2; private com.google.cloud.confidentialcomputing.v1.Challenge challenge_; /** - * - * *
    * Required. The Challenge to be created. Currently this field can be empty as
    * all the Challenge fields are set by the server.
    * 
* - * - * .google.cloud.confidentialcomputing.v1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.confidentialcomputing.v1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the challenge field is set. */ @java.lang.Override @@ -140,46 +108,32 @@ public boolean hasChallenge() { return challenge_ != null; } /** - * - * *
    * Required. The Challenge to be created. Currently this field can be empty as
    * all the Challenge fields are set by the server.
    * 
* - * - * .google.cloud.confidentialcomputing.v1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.confidentialcomputing.v1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The challenge. */ @java.lang.Override public com.google.cloud.confidentialcomputing.v1.Challenge getChallenge() { - return challenge_ == null - ? com.google.cloud.confidentialcomputing.v1.Challenge.getDefaultInstance() - : challenge_; + return challenge_ == null ? com.google.cloud.confidentialcomputing.v1.Challenge.getDefaultInstance() : challenge_; } /** - * - * *
    * Required. The Challenge to be created. Currently this field can be empty as
    * all the Challenge fields are set by the server.
    * 
* - * - * .google.cloud.confidentialcomputing.v1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.confidentialcomputing.v1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.confidentialcomputing.v1.ChallengeOrBuilder getChallengeOrBuilder() { - return challenge_ == null - ? com.google.cloud.confidentialcomputing.v1.Challenge.getDefaultInstance() - : challenge_; + return challenge_ == null ? com.google.cloud.confidentialcomputing.v1.Challenge.getDefaultInstance() : challenge_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -191,7 +145,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_); } @@ -211,7 +166,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (challenge_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getChallenge()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getChallenge()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -221,18 +177,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.confidentialcomputing.v1.CreateChallengeRequest)) { return super.equals(obj); } - com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest other = - (com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest) obj; + com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest other = (com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasChallenge() != other.hasChallenge()) return false; if (hasChallenge()) { - if (!getChallenge().equals(other.getChallenge())) return false; + if (!getChallenge() + .equals(other.getChallenge())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -257,136 +214,131 @@ public int hashCode() { } public static com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest 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.confidentialcomputing.v1.CreateChallengeRequest 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.confidentialcomputing.v1.CreateChallengeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest 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.confidentialcomputing.v1.CreateChallengeRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest 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.confidentialcomputing.v1.CreateChallengeRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest 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.confidentialcomputing.v1.CreateChallengeRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest 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.confidentialcomputing.v1.CreateChallengeRequest 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.confidentialcomputing.v1.CreateChallengeRequest 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.confidentialcomputing.v1.CreateChallengeRequest prototype) { + public static Builder newBuilder(com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest 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; } /** - * - * *
    * Message for creating a Challenge
    * 
* * Protobuf type {@code google.cloud.confidentialcomputing.v1.CreateChallengeRequest} */ - 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.confidentialcomputing.v1.CreateChallengeRequest) com.google.cloud.confidentialcomputing.v1.CreateChallengeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.confidentialcomputing.v1.ServiceProto - .internal_static_google_cloud_confidentialcomputing_v1_CreateChallengeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_CreateChallengeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.confidentialcomputing.v1.ServiceProto - .internal_static_google_cloud_confidentialcomputing_v1_CreateChallengeRequest_fieldAccessorTable + return com.google.cloud.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_CreateChallengeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest.class, - com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest.Builder.class); + com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest.class, com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest.Builder.class); } // Construct using com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -401,14 +353,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.confidentialcomputing.v1.ServiceProto - .internal_static_google_cloud_confidentialcomputing_v1_CreateChallengeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_CreateChallengeRequest_descriptor; } @java.lang.Override - public com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest - getDefaultInstanceForType() { + public com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest getDefaultInstanceForType() { return com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest.getDefaultInstance(); } @@ -423,23 +374,21 @@ public com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest build() @java.lang.Override public com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest buildPartial() { - com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest result = - new com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest result = new com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest result) { + private void buildPartial0(com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.challenge_ = challengeBuilder_ == null ? challenge_ : challengeBuilder_.build(); + result.challenge_ = challengeBuilder_ == null + ? challenge_ + : challengeBuilder_.build(); } } @@ -447,50 +396,46 @@ private void buildPartial0( 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.confidentialcomputing.v1.CreateChallengeRequest) { - return mergeFrom((com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest) other); + return mergeFrom((com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest other) { - if (other - == com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest other) { + if (other == com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -525,25 +470,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getChallengeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getChallengeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -553,28 +497,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The resource name of the location where the Challenge will be
      * used, in the format `projects/*/locations/*`.
      * 
* - * - * 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; @@ -583,24 +522,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The resource name of the location where the Challenge will be
      * used, in the format `projects/*/locations/*`.
      * 
* - * - * 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 { @@ -608,41 +544,30 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The resource name of the location where the Challenge will be
      * used, in the format `projects/*/locations/*`.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the location where the Challenge will be
      * used, in the format `projects/*/locations/*`.
      * 
* - * - * 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() { @@ -652,24 +577,18 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The resource name of the location where the Challenge will be
      * used, in the format `projects/*/locations/*`.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -679,61 +598,42 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.confidentialcomputing.v1.Challenge challenge_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.confidentialcomputing.v1.Challenge, - com.google.cloud.confidentialcomputing.v1.Challenge.Builder, - com.google.cloud.confidentialcomputing.v1.ChallengeOrBuilder> - challengeBuilder_; + com.google.cloud.confidentialcomputing.v1.Challenge, com.google.cloud.confidentialcomputing.v1.Challenge.Builder, com.google.cloud.confidentialcomputing.v1.ChallengeOrBuilder> challengeBuilder_; /** - * - * *
      * Required. The Challenge to be created. Currently this field can be empty as
      * all the Challenge fields are set by the server.
      * 
* - * - * .google.cloud.confidentialcomputing.v1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.confidentialcomputing.v1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the challenge field is set. */ public boolean hasChallenge() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. The Challenge to be created. Currently this field can be empty as
      * all the Challenge fields are set by the server.
      * 
* - * - * .google.cloud.confidentialcomputing.v1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.confidentialcomputing.v1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The challenge. */ public com.google.cloud.confidentialcomputing.v1.Challenge getChallenge() { if (challengeBuilder_ == null) { - return challenge_ == null - ? com.google.cloud.confidentialcomputing.v1.Challenge.getDefaultInstance() - : challenge_; + return challenge_ == null ? com.google.cloud.confidentialcomputing.v1.Challenge.getDefaultInstance() : challenge_; } else { return challengeBuilder_.getMessage(); } } /** - * - * *
      * Required. The Challenge to be created. Currently this field can be empty as
      * all the Challenge fields are set by the server.
      * 
* - * - * .google.cloud.confidentialcomputing.v1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.confidentialcomputing.v1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setChallenge(com.google.cloud.confidentialcomputing.v1.Challenge value) { if (challengeBuilder_ == null) { @@ -749,16 +649,12 @@ public Builder setChallenge(com.google.cloud.confidentialcomputing.v1.Challenge return this; } /** - * - * *
      * Required. The Challenge to be created. Currently this field can be empty as
      * all the Challenge fields are set by the server.
      * 
* - * - * .google.cloud.confidentialcomputing.v1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.confidentialcomputing.v1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setChallenge( com.google.cloud.confidentialcomputing.v1.Challenge.Builder builderForValue) { @@ -772,23 +668,18 @@ public Builder setChallenge( return this; } /** - * - * *
      * Required. The Challenge to be created. Currently this field can be empty as
      * all the Challenge fields are set by the server.
      * 
* - * - * .google.cloud.confidentialcomputing.v1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.confidentialcomputing.v1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeChallenge(com.google.cloud.confidentialcomputing.v1.Challenge value) { if (challengeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && challenge_ != null - && challenge_ - != com.google.cloud.confidentialcomputing.v1.Challenge.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + challenge_ != null && + challenge_ != com.google.cloud.confidentialcomputing.v1.Challenge.getDefaultInstance()) { getChallengeBuilder().mergeFrom(value); } else { challenge_ = value; @@ -801,16 +692,12 @@ public Builder mergeChallenge(com.google.cloud.confidentialcomputing.v1.Challeng return this; } /** - * - * *
      * Required. The Challenge to be created. Currently this field can be empty as
      * all the Challenge fields are set by the server.
      * 
* - * - * .google.cloud.confidentialcomputing.v1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.confidentialcomputing.v1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearChallenge() { bitField0_ = (bitField0_ & ~0x00000002); @@ -823,16 +710,12 @@ public Builder clearChallenge() { return this; } /** - * - * *
      * Required. The Challenge to be created. Currently this field can be empty as
      * all the Challenge fields are set by the server.
      * 
* - * - * .google.cloud.confidentialcomputing.v1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.confidentialcomputing.v1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.confidentialcomputing.v1.Challenge.Builder getChallengeBuilder() { bitField0_ |= 0x00000002; @@ -840,57 +723,45 @@ public com.google.cloud.confidentialcomputing.v1.Challenge.Builder getChallengeB return getChallengeFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The Challenge to be created. Currently this field can be empty as
      * all the Challenge fields are set by the server.
      * 
* - * - * .google.cloud.confidentialcomputing.v1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.confidentialcomputing.v1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.confidentialcomputing.v1.ChallengeOrBuilder getChallengeOrBuilder() { if (challengeBuilder_ != null) { return challengeBuilder_.getMessageOrBuilder(); } else { - return challenge_ == null - ? com.google.cloud.confidentialcomputing.v1.Challenge.getDefaultInstance() - : challenge_; + return challenge_ == null ? + com.google.cloud.confidentialcomputing.v1.Challenge.getDefaultInstance() : challenge_; } } /** - * - * *
      * Required. The Challenge to be created. Currently this field can be empty as
      * all the Challenge fields are set by the server.
      * 
* - * - * .google.cloud.confidentialcomputing.v1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.confidentialcomputing.v1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.confidentialcomputing.v1.Challenge, - com.google.cloud.confidentialcomputing.v1.Challenge.Builder, - com.google.cloud.confidentialcomputing.v1.ChallengeOrBuilder> + com.google.cloud.confidentialcomputing.v1.Challenge, com.google.cloud.confidentialcomputing.v1.Challenge.Builder, com.google.cloud.confidentialcomputing.v1.ChallengeOrBuilder> getChallengeFieldBuilder() { if (challengeBuilder_ == null) { - challengeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.confidentialcomputing.v1.Challenge, - com.google.cloud.confidentialcomputing.v1.Challenge.Builder, - com.google.cloud.confidentialcomputing.v1.ChallengeOrBuilder>( - getChallenge(), getParentForChildren(), isClean()); + challengeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.confidentialcomputing.v1.Challenge, com.google.cloud.confidentialcomputing.v1.Challenge.Builder, com.google.cloud.confidentialcomputing.v1.ChallengeOrBuilder>( + getChallenge(), + getParentForChildren(), + isClean()); challenge_ = null; } return challengeBuilder_; } - @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); } @@ -900,43 +771,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.confidentialcomputing.v1.CreateChallengeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.confidentialcomputing.v1.CreateChallengeRequest) - private static final com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest(); } - public static com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest - getDefaultInstance() { + public static com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateChallengeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateChallengeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -948,8 +817,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest - getDefaultInstanceForType() { + public com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/CreateChallengeRequestOrBuilder.java b/owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/CreateChallengeRequestOrBuilder.java similarity index 51% rename from java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/CreateChallengeRequestOrBuilder.java rename to owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/CreateChallengeRequestOrBuilder.java index 9714c3b90e8f..c8d6ec0c7a00 100644 --- a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/CreateChallengeRequestOrBuilder.java +++ b/owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/CreateChallengeRequestOrBuilder.java @@ -1,100 +1,61 @@ -/* - * Copyright 2023 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/confidentialcomputing/v1/service.proto package com.google.cloud.confidentialcomputing.v1; -public interface CreateChallengeRequestOrBuilder - extends +public interface CreateChallengeRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.confidentialcomputing.v1.CreateChallengeRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name of the location where the Challenge will be
    * used, in the format `projects/*/locations/*`.
    * 
* - * - * 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 location where the Challenge will be
    * used, in the format `projects/*/locations/*`.
    * 
* - * - * 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 Challenge to be created. Currently this field can be empty as
    * all the Challenge fields are set by the server.
    * 
* - * - * .google.cloud.confidentialcomputing.v1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.confidentialcomputing.v1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the challenge field is set. */ boolean hasChallenge(); /** - * - * *
    * Required. The Challenge to be created. Currently this field can be empty as
    * all the Challenge fields are set by the server.
    * 
* - * - * .google.cloud.confidentialcomputing.v1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.confidentialcomputing.v1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The challenge. */ com.google.cloud.confidentialcomputing.v1.Challenge getChallenge(); /** - * - * *
    * Required. The Challenge to be created. Currently this field can be empty as
    * all the Challenge fields are set by the server.
    * 
* - * - * .google.cloud.confidentialcomputing.v1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.confidentialcomputing.v1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.confidentialcomputing.v1.ChallengeOrBuilder getChallengeOrBuilder(); } diff --git a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/GcpCredentials.java b/owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/GcpCredentials.java similarity index 68% rename from java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/GcpCredentials.java rename to owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/GcpCredentials.java index f5d144eb9f15..0b1e81a2014f 100644 --- a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/GcpCredentials.java +++ b/owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/GcpCredentials.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 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/confidentialcomputing/v1/service.proto package com.google.cloud.confidentialcomputing.v1; /** - * - * *
  * Credentials issued by GCP which are linked to the platform attestation. These
  * will be verified server-side as part of attestaion verification.
@@ -28,83 +11,73 @@
  *
  * Protobuf type {@code google.cloud.confidentialcomputing.v1.GcpCredentials}
  */
-public final class GcpCredentials extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class GcpCredentials extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.confidentialcomputing.v1.GcpCredentials)
     GcpCredentialsOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use GcpCredentials.newBuilder() to construct.
   private GcpCredentials(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private GcpCredentials() {
-    serviceAccountIdTokens_ = com.google.protobuf.LazyStringArrayList.emptyList();
+    serviceAccountIdTokens_ =
+        com.google.protobuf.LazyStringArrayList.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new GcpCredentials();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.confidentialcomputing.v1.ServiceProto
-        .internal_static_google_cloud_confidentialcomputing_v1_GcpCredentials_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_GcpCredentials_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.confidentialcomputing.v1.ServiceProto
-        .internal_static_google_cloud_confidentialcomputing_v1_GcpCredentials_fieldAccessorTable
+    return com.google.cloud.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_GcpCredentials_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.confidentialcomputing.v1.GcpCredentials.class,
-            com.google.cloud.confidentialcomputing.v1.GcpCredentials.Builder.class);
+            com.google.cloud.confidentialcomputing.v1.GcpCredentials.class, com.google.cloud.confidentialcomputing.v1.GcpCredentials.Builder.class);
   }
 
   public static final int SERVICE_ACCOUNT_ID_TOKENS_FIELD_NUMBER = 2;
-
   @SuppressWarnings("serial")
   private com.google.protobuf.LazyStringArrayList serviceAccountIdTokens_ =
       com.google.protobuf.LazyStringArrayList.emptyList();
   /**
-   *
-   *
    * 
    * Same as id_tokens, but as a string.
    * 
* * repeated string service_account_id_tokens = 2; - * * @return A list containing the serviceAccountIdTokens. */ - public com.google.protobuf.ProtocolStringList getServiceAccountIdTokensList() { + public com.google.protobuf.ProtocolStringList + getServiceAccountIdTokensList() { return serviceAccountIdTokens_; } /** - * - * *
    * Same as id_tokens, but as a string.
    * 
* * repeated string service_account_id_tokens = 2; - * * @return The count of serviceAccountIdTokens. */ public int getServiceAccountIdTokensCount() { return serviceAccountIdTokens_.size(); } /** - * - * *
    * Same as id_tokens, but as a string.
    * 
* * repeated string service_account_id_tokens = 2; - * * @param index The index of the element to return. * @return The serviceAccountIdTokens at the given index. */ @@ -112,23 +85,20 @@ public java.lang.String getServiceAccountIdTokens(int index) { return serviceAccountIdTokens_.get(index); } /** - * - * *
    * Same as id_tokens, but as a string.
    * 
* * repeated string service_account_id_tokens = 2; - * * @param index The index of the value to return. * @return The bytes of the serviceAccountIdTokens at the given index. */ - public com.google.protobuf.ByteString getServiceAccountIdTokensBytes(int index) { + public com.google.protobuf.ByteString + getServiceAccountIdTokensBytes(int index) { return serviceAccountIdTokens_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -140,10 +110,10 @@ 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 < serviceAccountIdTokens_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString( - output, 2, serviceAccountIdTokens_.getRaw(i)); + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, serviceAccountIdTokens_.getRaw(i)); } getUnknownFields().writeTo(output); } @@ -170,16 +140,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.confidentialcomputing.v1.GcpCredentials)) { return super.equals(obj); } - com.google.cloud.confidentialcomputing.v1.GcpCredentials other = - (com.google.cloud.confidentialcomputing.v1.GcpCredentials) obj; + com.google.cloud.confidentialcomputing.v1.GcpCredentials other = (com.google.cloud.confidentialcomputing.v1.GcpCredentials) obj; - if (!getServiceAccountIdTokensList().equals(other.getServiceAccountIdTokensList())) - return false; + if (!getServiceAccountIdTokensList() + .equals(other.getServiceAccountIdTokensList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -201,104 +170,98 @@ public int hashCode() { } public static com.google.cloud.confidentialcomputing.v1.GcpCredentials 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.confidentialcomputing.v1.GcpCredentials 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.confidentialcomputing.v1.GcpCredentials parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.confidentialcomputing.v1.GcpCredentials 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.confidentialcomputing.v1.GcpCredentials parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.confidentialcomputing.v1.GcpCredentials 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.confidentialcomputing.v1.GcpCredentials parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.confidentialcomputing.v1.GcpCredentials parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.confidentialcomputing.v1.GcpCredentials 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.confidentialcomputing.v1.GcpCredentials parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.confidentialcomputing.v1.GcpCredentials parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.confidentialcomputing.v1.GcpCredentials 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.confidentialcomputing.v1.GcpCredentials 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.confidentialcomputing.v1.GcpCredentials 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.confidentialcomputing.v1.GcpCredentials prototype) { + public static Builder newBuilder(com.google.cloud.confidentialcomputing.v1.GcpCredentials 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; } /** - * - * *
    * Credentials issued by GCP which are linked to the platform attestation. These
    * will be verified server-side as part of attestaion verification.
@@ -306,44 +269,46 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.confidentialcomputing.v1.GcpCredentials}
    */
-  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.confidentialcomputing.v1.GcpCredentials)
       com.google.cloud.confidentialcomputing.v1.GcpCredentialsOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.confidentialcomputing.v1.ServiceProto
-          .internal_static_google_cloud_confidentialcomputing_v1_GcpCredentials_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_GcpCredentials_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.confidentialcomputing.v1.ServiceProto
-          .internal_static_google_cloud_confidentialcomputing_v1_GcpCredentials_fieldAccessorTable
+      return com.google.cloud.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_GcpCredentials_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.confidentialcomputing.v1.GcpCredentials.class,
-              com.google.cloud.confidentialcomputing.v1.GcpCredentials.Builder.class);
+              com.google.cloud.confidentialcomputing.v1.GcpCredentials.class, com.google.cloud.confidentialcomputing.v1.GcpCredentials.Builder.class);
     }
 
     // Construct using com.google.cloud.confidentialcomputing.v1.GcpCredentials.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
       bitField0_ = 0;
-      serviceAccountIdTokens_ = com.google.protobuf.LazyStringArrayList.emptyList();
+      serviceAccountIdTokens_ =
+          com.google.protobuf.LazyStringArrayList.emptyList();
       return this;
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.confidentialcomputing.v1.ServiceProto
-          .internal_static_google_cloud_confidentialcomputing_v1_GcpCredentials_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_GcpCredentials_descriptor;
     }
 
     @java.lang.Override
@@ -362,11 +327,8 @@ public com.google.cloud.confidentialcomputing.v1.GcpCredentials build() {
 
     @java.lang.Override
     public com.google.cloud.confidentialcomputing.v1.GcpCredentials buildPartial() {
-      com.google.cloud.confidentialcomputing.v1.GcpCredentials result =
-          new com.google.cloud.confidentialcomputing.v1.GcpCredentials(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.confidentialcomputing.v1.GcpCredentials result = new com.google.cloud.confidentialcomputing.v1.GcpCredentials(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -383,39 +345,38 @@ private void buildPartial0(com.google.cloud.confidentialcomputing.v1.GcpCredenti
     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.confidentialcomputing.v1.GcpCredentials) {
-        return mergeFrom((com.google.cloud.confidentialcomputing.v1.GcpCredentials) other);
+        return mergeFrom((com.google.cloud.confidentialcomputing.v1.GcpCredentials)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -423,8 +384,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.confidentialcomputing.v1.GcpCredentials other) {
-      if (other == com.google.cloud.confidentialcomputing.v1.GcpCredentials.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.confidentialcomputing.v1.GcpCredentials.getDefaultInstance()) return this;
       if (!other.serviceAccountIdTokens_.isEmpty()) {
         if (serviceAccountIdTokens_.isEmpty()) {
           serviceAccountIdTokens_ = other.serviceAccountIdTokens_;
@@ -461,20 +421,18 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 18:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensureServiceAccountIdTokensIsMutable();
-                serviceAccountIdTokens_.add(s);
-                break;
-              } // case 18
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 18: {
+              java.lang.String s = input.readStringRequireUtf8();
+              ensureServiceAccountIdTokensIsMutable();
+              serviceAccountIdTokens_.add(s);
+              break;
+            } // case 18
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -484,57 +442,46 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private com.google.protobuf.LazyStringArrayList serviceAccountIdTokens_ =
         com.google.protobuf.LazyStringArrayList.emptyList();
-
     private void ensureServiceAccountIdTokensIsMutable() {
       if (!serviceAccountIdTokens_.isModifiable()) {
-        serviceAccountIdTokens_ =
-            new com.google.protobuf.LazyStringArrayList(serviceAccountIdTokens_);
+        serviceAccountIdTokens_ = new com.google.protobuf.LazyStringArrayList(serviceAccountIdTokens_);
       }
       bitField0_ |= 0x00000001;
     }
     /**
-     *
-     *
      * 
      * Same as id_tokens, but as a string.
      * 
* * repeated string service_account_id_tokens = 2; - * * @return A list containing the serviceAccountIdTokens. */ - public com.google.protobuf.ProtocolStringList getServiceAccountIdTokensList() { + public com.google.protobuf.ProtocolStringList + getServiceAccountIdTokensList() { serviceAccountIdTokens_.makeImmutable(); return serviceAccountIdTokens_; } /** - * - * *
      * Same as id_tokens, but as a string.
      * 
* * repeated string service_account_id_tokens = 2; - * * @return The count of serviceAccountIdTokens. */ public int getServiceAccountIdTokensCount() { return serviceAccountIdTokens_.size(); } /** - * - * *
      * Same as id_tokens, but as a string.
      * 
* * repeated string service_account_id_tokens = 2; - * * @param index The index of the element to return. * @return The serviceAccountIdTokens at the given index. */ @@ -542,37 +489,31 @@ public java.lang.String getServiceAccountIdTokens(int index) { return serviceAccountIdTokens_.get(index); } /** - * - * *
      * Same as id_tokens, but as a string.
      * 
* * repeated string service_account_id_tokens = 2; - * * @param index The index of the value to return. * @return The bytes of the serviceAccountIdTokens at the given index. */ - public com.google.protobuf.ByteString getServiceAccountIdTokensBytes(int index) { + public com.google.protobuf.ByteString + getServiceAccountIdTokensBytes(int index) { return serviceAccountIdTokens_.getByteString(index); } /** - * - * *
      * Same as id_tokens, but as a string.
      * 
* * repeated string service_account_id_tokens = 2; - * * @param index The index to set the value at. * @param value The serviceAccountIdTokens to set. * @return This builder for chaining. */ - public Builder setServiceAccountIdTokens(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setServiceAccountIdTokens( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureServiceAccountIdTokensIsMutable(); serviceAccountIdTokens_.set(index, value); bitField0_ |= 0x00000001; @@ -580,21 +521,17 @@ public Builder setServiceAccountIdTokens(int index, java.lang.String value) { return this; } /** - * - * *
      * Same as id_tokens, but as a string.
      * 
* * repeated string service_account_id_tokens = 2; - * * @param value The serviceAccountIdTokens to add. * @return This builder for chaining. */ - public Builder addServiceAccountIdTokens(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addServiceAccountIdTokens( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureServiceAccountIdTokensIsMutable(); serviceAccountIdTokens_.add(value); bitField0_ |= 0x00000001; @@ -602,58 +539,50 @@ public Builder addServiceAccountIdTokens(java.lang.String value) { return this; } /** - * - * *
      * Same as id_tokens, but as a string.
      * 
* * repeated string service_account_id_tokens = 2; - * * @param values The serviceAccountIdTokens to add. * @return This builder for chaining. */ - public Builder addAllServiceAccountIdTokens(java.lang.Iterable values) { + public Builder addAllServiceAccountIdTokens( + java.lang.Iterable values) { ensureServiceAccountIdTokensIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, serviceAccountIdTokens_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, serviceAccountIdTokens_); bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Same as id_tokens, but as a string.
      * 
* * repeated string service_account_id_tokens = 2; - * * @return This builder for chaining. */ public Builder clearServiceAccountIdTokens() { - serviceAccountIdTokens_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - ; + serviceAccountIdTokens_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001);; onChanged(); return this; } /** - * - * *
      * Same as id_tokens, but as a string.
      * 
* * repeated string service_account_id_tokens = 2; - * * @param value The bytes of the serviceAccountIdTokens to add. * @return This builder for chaining. */ - public Builder addServiceAccountIdTokensBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addServiceAccountIdTokensBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureServiceAccountIdTokensIsMutable(); serviceAccountIdTokens_.add(value); @@ -661,9 +590,9 @@ public Builder addServiceAccountIdTokensBytes(com.google.protobuf.ByteString val 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); } @@ -673,12 +602,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.confidentialcomputing.v1.GcpCredentials) } // @@protoc_insertion_point(class_scope:google.cloud.confidentialcomputing.v1.GcpCredentials) private static final com.google.cloud.confidentialcomputing.v1.GcpCredentials DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.confidentialcomputing.v1.GcpCredentials(); } @@ -687,27 +616,27 @@ public static com.google.cloud.confidentialcomputing.v1.GcpCredentials getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GcpCredentials parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcpCredentials parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -722,4 +651,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.confidentialcomputing.v1.GcpCredentials getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/GcpCredentialsOrBuilder.java b/owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/GcpCredentialsOrBuilder.java similarity index 61% rename from java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/GcpCredentialsOrBuilder.java rename to owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/GcpCredentialsOrBuilder.java index 89e4eb46c253..74dcd53252cb 100644 --- a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/GcpCredentialsOrBuilder.java +++ b/owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/GcpCredentialsOrBuilder.java @@ -1,76 +1,50 @@ -/* - * Copyright 2023 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/confidentialcomputing/v1/service.proto package com.google.cloud.confidentialcomputing.v1; -public interface GcpCredentialsOrBuilder - extends +public interface GcpCredentialsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.confidentialcomputing.v1.GcpCredentials) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Same as id_tokens, but as a string.
    * 
* * repeated string service_account_id_tokens = 2; - * * @return A list containing the serviceAccountIdTokens. */ - java.util.List getServiceAccountIdTokensList(); + java.util.List + getServiceAccountIdTokensList(); /** - * - * *
    * Same as id_tokens, but as a string.
    * 
* * repeated string service_account_id_tokens = 2; - * * @return The count of serviceAccountIdTokens. */ int getServiceAccountIdTokensCount(); /** - * - * *
    * Same as id_tokens, but as a string.
    * 
* * repeated string service_account_id_tokens = 2; - * * @param index The index of the element to return. * @return The serviceAccountIdTokens at the given index. */ java.lang.String getServiceAccountIdTokens(int index); /** - * - * *
    * Same as id_tokens, but as a string.
    * 
* * repeated string service_account_id_tokens = 2; - * * @param index The index of the value to return. * @return The bytes of the serviceAccountIdTokens at the given index. */ - com.google.protobuf.ByteString getServiceAccountIdTokensBytes(int index); + com.google.protobuf.ByteString + getServiceAccountIdTokensBytes(int index); } diff --git a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/LocationName.java b/owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/LocationName.java similarity index 100% rename from java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/LocationName.java rename to owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/LocationName.java diff --git a/owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ServiceProto.java b/owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ServiceProto.java new file mode 100644 index 000000000000..13c014731155 --- /dev/null +++ b/owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ServiceProto.java @@ -0,0 +1,266 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/confidentialcomputing/v1/service.proto + +package com.google.cloud.confidentialcomputing.v1; + +public final class ServiceProto { + private ServiceProto() {} + 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_confidentialcomputing_v1_Challenge_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_confidentialcomputing_v1_Challenge_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_confidentialcomputing_v1_CreateChallengeRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_confidentialcomputing_v1_CreateChallengeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_confidentialcomputing_v1_VerifyAttestationRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_confidentialcomputing_v1_VerifyAttestationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_confidentialcomputing_v1_VerifyAttestationResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_confidentialcomputing_v1_VerifyAttestationResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_confidentialcomputing_v1_GcpCredentials_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_confidentialcomputing_v1_GcpCredentials_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_confidentialcomputing_v1_TokenOptions_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_confidentialcomputing_v1_TokenOptions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_Quote_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_Quote_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_Quote_PcrValuesEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_Quote_PcrValuesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_confidentialcomputing_v1_ConfidentialSpaceInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_confidentialcomputing_v1_ConfidentialSpaceInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_confidentialcomputing_v1_SignedEntity_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_confidentialcomputing_v1_SignedEntity_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_confidentialcomputing_v1_ContainerImageSignature_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_confidentialcomputing_v1_ContainerImageSignature_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n3google/cloud/confidentialcomputing/v1/" + + "service.proto\022%google.cloud.confidential" + + "computing.v1\032\034google/api/annotations.pro" + + "to\032\027google/api/client.proto\032\037google/api/" + + "field_behavior.proto\032\031google/api/resourc" + + "e.proto\032\037google/protobuf/timestamp.proto" + + "\"\252\002\n\tChallenge\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\0225\n\013cr" + + "eate_time\030\002 \001(\0132\032.google.protobuf.Timest" + + "ampB\004\342A\001\003\0225\n\013expire_time\030\003 \001(\0132\032.google." + + "protobuf.TimestampB\004\342A\001\003\022\022\n\004used\030\004 \001(\010B\004" + + "\342A\001\003\022\027\n\ttpm_nonce\030\006 \001(\tB\004\342A\001\003:n\352Ak\n.conf" + + "identialcomputing.googleapis.com/Challen" + + "ge\0229projects/{project}/locations/{locati" + + "on}/challenges/{uuid}\"\237\001\n\026CreateChalleng" + + "eRequest\022:\n\006parent\030\001 \001(\tB*\342A\001\002\372A#\n!locat" + + "ions.googleapis.com/Location\022I\n\tchalleng" + + "e\030\002 \001(\01320.google.cloud.confidentialcompu" + + "ting.v1.ChallengeB\004\342A\001\002\"\311\003\n\030VerifyAttest" + + "ationRequest\022J\n\tchallenge\030\001 \001(\tB7\342A\001\002\372A0" + + "\n.confidentialcomputing.googleapis.com/C" + + "hallenge\022T\n\017gcp_credentials\030\002 \001(\01325.goog" + + "le.cloud.confidentialcomputing.v1.GcpCre" + + "dentialsB\004\342A\001\001\022T\n\017tpm_attestation\030\003 \001(\0132" + + "5.google.cloud.confidentialcomputing.v1." + + "TpmAttestationB\004\342A\001\002\022c\n\027confidential_spa" + + "ce_info\030\004 \001(\0132<.google.cloud.confidentia" + + "lcomputing.v1.ConfidentialSpaceInfoB\004\342A\001" + + "\001\022P\n\rtoken_options\030\005 \001(\01323.google.cloud." + + "confidentialcomputing.v1.TokenOptionsB\004\342" + + "A\001\001\"<\n\031VerifyAttestationResponse\022\037\n\021oidc" + + "_claims_token\030\002 \001(\tB\004\342A\001\003\"3\n\016GcpCredenti" + + "als\022!\n\031service_account_id_tokens\030\002 \003(\t\";" + + "\n\014TokenOptions\022\026\n\010audience\030\001 \001(\tB\004\342A\001\001\022\023" + + "\n\005nonce\030\002 \003(\tB\004\342A\001\001\"\217\003\n\016TpmAttestation\022K" + + "\n\006quotes\030\001 \003(\0132;.google.cloud.confidenti" + + "alcomputing.v1.TpmAttestation.Quote\022\025\n\rt" + + "cg_event_log\030\002 \001(\014\022\033\n\023canonical_event_lo" + + "g\030\003 \001(\014\022\017\n\007ak_cert\030\004 \001(\014\022\022\n\ncert_chain\030\005" + + " \003(\014\032\326\001\n\005Quote\022\021\n\thash_algo\030\001 \001(\005\022^\n\npcr" + + "_values\030\002 \003(\0132J.google.cloud.confidentia" + + "lcomputing.v1.TpmAttestation.Quote.PcrVa" + + "luesEntry\022\021\n\traw_quote\030\003 \001(\014\022\025\n\rraw_sign" + + "ature\030\004 \001(\014\0320\n\016PcrValuesEntry\022\013\n\003key\030\001 \001" + + "(\005\022\r\n\005value\030\002 \001(\014:\0028\001\"k\n\025ConfidentialSpa" + + "ceInfo\022R\n\017signed_entities\030\001 \003(\01323.google" + + ".cloud.confidentialcomputing.v1.SignedEn" + + "tityB\004\342A\001\001\"x\n\014SignedEntity\022h\n\032container_" + + "image_signatures\030\001 \003(\0132>.google.cloud.co" + + "nfidentialcomputing.v1.ContainerImageSig" + + "natureB\004\342A\001\001\"\263\001\n\027ContainerImageSignature" + + "\022\025\n\007payload\030\001 \001(\014B\004\342A\001\002\022\027\n\tsignature\030\002 \001" + + "(\014B\004\342A\001\002\022\030\n\npublic_key\030\003 \001(\014B\004\342A\001\002\022N\n\007si" + + "g_alg\030\004 \001(\01627.google.cloud.confidentialc" + + "omputing.v1.SigningAlgorithmB\004\342A\001\002*\177\n\020Si" + + "gningAlgorithm\022!\n\035SIGNING_ALGORITHM_UNSP" + + "ECIFIED\020\000\022\025\n\021RSASSA_PSS_SHA256\020\001\022\032\n\026RSAS" + + "SA_PKCS1V15_SHA256\020\002\022\025\n\021ECDSA_P256_SHA25" + + "6\020\0032\267\004\n\025ConfidentialComputing\022\330\001\n\017Create" + + "Challenge\022=.google.cloud.confidentialcom" + + "puting.v1.CreateChallengeRequest\0320.googl" + + "e.cloud.confidentialcomputing.v1.Challen" + + "ge\"T\332A\020parent,challenge\202\323\344\223\002;\"./v1/{pare" + + "nt=projects/*/locations/*}/challenges:\tc" + + "hallenge\022\350\001\n\021VerifyAttestation\022?.google." + + "cloud.confidentialcomputing.v1.VerifyAtt" + + "estationRequest\032@.google.cloud.confident" + + "ialcomputing.v1.VerifyAttestationRespons" + + "e\"P\202\323\344\223\002J\"E/v1/{challenge=projects/*/loc" + + "ations/*/challenges/*}:verifyAttestation" + + ":\001*\032X\312A$confidentialcomputing.googleapis" + + ".com\322A.https://www.googleapis.com/auth/c" + + "loud-platformB\227\002\n)com.google.cloud.confi" + + "dentialcomputing.v1B\014ServiceProtoP\001Z_clo" + + "ud.google.com/go/confidentialcomputing/a" + + "piv1/confidentialcomputingpb;confidentia" + + "lcomputingpb\252\002%Google.Cloud.Confidential" + + "Computing.V1\312\002%Google\\Cloud\\Confidential" + + "Computing\\V1\352\002(Google::Cloud::Confidenti" + + "alComputing::V1b\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.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_confidentialcomputing_v1_Challenge_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_confidentialcomputing_v1_Challenge_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_confidentialcomputing_v1_Challenge_descriptor, + new java.lang.String[] { "Name", "CreateTime", "ExpireTime", "Used", "TpmNonce", }); + internal_static_google_cloud_confidentialcomputing_v1_CreateChallengeRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_confidentialcomputing_v1_CreateChallengeRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_confidentialcomputing_v1_CreateChallengeRequest_descriptor, + new java.lang.String[] { "Parent", "Challenge", }); + internal_static_google_cloud_confidentialcomputing_v1_VerifyAttestationRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_confidentialcomputing_v1_VerifyAttestationRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_confidentialcomputing_v1_VerifyAttestationRequest_descriptor, + new java.lang.String[] { "Challenge", "GcpCredentials", "TpmAttestation", "ConfidentialSpaceInfo", "TokenOptions", }); + internal_static_google_cloud_confidentialcomputing_v1_VerifyAttestationResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_confidentialcomputing_v1_VerifyAttestationResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_confidentialcomputing_v1_VerifyAttestationResponse_descriptor, + new java.lang.String[] { "OidcClaimsToken", }); + internal_static_google_cloud_confidentialcomputing_v1_GcpCredentials_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_confidentialcomputing_v1_GcpCredentials_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_confidentialcomputing_v1_GcpCredentials_descriptor, + new java.lang.String[] { "ServiceAccountIdTokens", }); + internal_static_google_cloud_confidentialcomputing_v1_TokenOptions_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_confidentialcomputing_v1_TokenOptions_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_confidentialcomputing_v1_TokenOptions_descriptor, + new java.lang.String[] { "Audience", "Nonce", }); + internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_descriptor, + new java.lang.String[] { "Quotes", "TcgEventLog", "CanonicalEventLog", "AkCert", "CertChain", }); + internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_Quote_descriptor = + internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_Quote_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_Quote_descriptor, + new java.lang.String[] { "HashAlgo", "PcrValues", "RawQuote", "RawSignature", }); + internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_Quote_PcrValuesEntry_descriptor = + internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_Quote_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_Quote_PcrValuesEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_Quote_PcrValuesEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_confidentialcomputing_v1_ConfidentialSpaceInfo_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_confidentialcomputing_v1_ConfidentialSpaceInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_confidentialcomputing_v1_ConfidentialSpaceInfo_descriptor, + new java.lang.String[] { "SignedEntities", }); + internal_static_google_cloud_confidentialcomputing_v1_SignedEntity_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_confidentialcomputing_v1_SignedEntity_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_confidentialcomputing_v1_SignedEntity_descriptor, + new java.lang.String[] { "ContainerImageSignatures", }); + internal_static_google_cloud_confidentialcomputing_v1_ContainerImageSignature_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_confidentialcomputing_v1_ContainerImageSignature_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_confidentialcomputing_v1_ContainerImageSignature_descriptor, + new java.lang.String[] { "Payload", "Signature", "PublicKey", "SigAlg", }); + 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.resource); + 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.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/SignedEntity.java b/owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/SignedEntity.java new file mode 100644 index 000000000000..c3d0689d3abd --- /dev/null +++ b/owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/SignedEntity.java @@ -0,0 +1,884 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/confidentialcomputing/v1/service.proto + +package com.google.cloud.confidentialcomputing.v1; + +/** + *
+ * SignedEntity represents an OCI image object containing everything necessary
+ * to verify container image signatures.
+ * 
+ * + * Protobuf type {@code google.cloud.confidentialcomputing.v1.SignedEntity} + */ +public final class SignedEntity extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.confidentialcomputing.v1.SignedEntity) + SignedEntityOrBuilder { +private static final long serialVersionUID = 0L; + // Use SignedEntity.newBuilder() to construct. + private SignedEntity(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SignedEntity() { + containerImageSignatures_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SignedEntity(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_SignedEntity_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_SignedEntity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.confidentialcomputing.v1.SignedEntity.class, com.google.cloud.confidentialcomputing.v1.SignedEntity.Builder.class); + } + + public static final int CONTAINER_IMAGE_SIGNATURES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List containerImageSignatures_; + /** + *
+   * Optional. A list of container image signatures attached to an OCI image
+   * object.
+   * 
+ * + * repeated .google.cloud.confidentialcomputing.v1.ContainerImageSignature container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.List getContainerImageSignaturesList() { + return containerImageSignatures_; + } + /** + *
+   * Optional. A list of container image signatures attached to an OCI image
+   * object.
+   * 
+ * + * repeated .google.cloud.confidentialcomputing.v1.ContainerImageSignature container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.List + getContainerImageSignaturesOrBuilderList() { + return containerImageSignatures_; + } + /** + *
+   * Optional. A list of container image signatures attached to an OCI image
+   * object.
+   * 
+ * + * repeated .google.cloud.confidentialcomputing.v1.ContainerImageSignature container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public int getContainerImageSignaturesCount() { + return containerImageSignatures_.size(); + } + /** + *
+   * Optional. A list of container image signatures attached to an OCI image
+   * object.
+   * 
+ * + * repeated .google.cloud.confidentialcomputing.v1.ContainerImageSignature container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.ContainerImageSignature getContainerImageSignatures(int index) { + return containerImageSignatures_.get(index); + } + /** + *
+   * Optional. A list of container image signatures attached to an OCI image
+   * object.
+   * 
+ * + * repeated .google.cloud.confidentialcomputing.v1.ContainerImageSignature container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.ContainerImageSignatureOrBuilder getContainerImageSignaturesOrBuilder( + int index) { + return containerImageSignatures_.get(index); + } + + 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 { + for (int i = 0; i < containerImageSignatures_.size(); i++) { + output.writeMessage(1, containerImageSignatures_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < containerImageSignatures_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, containerImageSignatures_.get(i)); + } + size += getUnknownFields().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.confidentialcomputing.v1.SignedEntity)) { + return super.equals(obj); + } + com.google.cloud.confidentialcomputing.v1.SignedEntity other = (com.google.cloud.confidentialcomputing.v1.SignedEntity) obj; + + if (!getContainerImageSignaturesList() + .equals(other.getContainerImageSignaturesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getContainerImageSignaturesCount() > 0) { + hash = (37 * hash) + CONTAINER_IMAGE_SIGNATURES_FIELD_NUMBER; + hash = (53 * hash) + getContainerImageSignaturesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.confidentialcomputing.v1.SignedEntity parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.confidentialcomputing.v1.SignedEntity 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.confidentialcomputing.v1.SignedEntity parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.confidentialcomputing.v1.SignedEntity 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.confidentialcomputing.v1.SignedEntity parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.confidentialcomputing.v1.SignedEntity parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.confidentialcomputing.v1.SignedEntity parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.confidentialcomputing.v1.SignedEntity 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.confidentialcomputing.v1.SignedEntity parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.confidentialcomputing.v1.SignedEntity 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.confidentialcomputing.v1.SignedEntity parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.confidentialcomputing.v1.SignedEntity 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.confidentialcomputing.v1.SignedEntity 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; + } + /** + *
+   * SignedEntity represents an OCI image object containing everything necessary
+   * to verify container image signatures.
+   * 
+ * + * Protobuf type {@code google.cloud.confidentialcomputing.v1.SignedEntity} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.confidentialcomputing.v1.SignedEntity) + com.google.cloud.confidentialcomputing.v1.SignedEntityOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_SignedEntity_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_SignedEntity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.confidentialcomputing.v1.SignedEntity.class, com.google.cloud.confidentialcomputing.v1.SignedEntity.Builder.class); + } + + // Construct using com.google.cloud.confidentialcomputing.v1.SignedEntity.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (containerImageSignaturesBuilder_ == null) { + containerImageSignatures_ = java.util.Collections.emptyList(); + } else { + containerImageSignatures_ = null; + containerImageSignaturesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_SignedEntity_descriptor; + } + + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.SignedEntity getDefaultInstanceForType() { + return com.google.cloud.confidentialcomputing.v1.SignedEntity.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.SignedEntity build() { + com.google.cloud.confidentialcomputing.v1.SignedEntity result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.SignedEntity buildPartial() { + com.google.cloud.confidentialcomputing.v1.SignedEntity result = new com.google.cloud.confidentialcomputing.v1.SignedEntity(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.confidentialcomputing.v1.SignedEntity result) { + if (containerImageSignaturesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + containerImageSignatures_ = java.util.Collections.unmodifiableList(containerImageSignatures_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.containerImageSignatures_ = containerImageSignatures_; + } else { + result.containerImageSignatures_ = containerImageSignaturesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.confidentialcomputing.v1.SignedEntity result) { + int from_bitField0_ = bitField0_; + } + + @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.confidentialcomputing.v1.SignedEntity) { + return mergeFrom((com.google.cloud.confidentialcomputing.v1.SignedEntity)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.confidentialcomputing.v1.SignedEntity other) { + if (other == com.google.cloud.confidentialcomputing.v1.SignedEntity.getDefaultInstance()) return this; + if (containerImageSignaturesBuilder_ == null) { + if (!other.containerImageSignatures_.isEmpty()) { + if (containerImageSignatures_.isEmpty()) { + containerImageSignatures_ = other.containerImageSignatures_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureContainerImageSignaturesIsMutable(); + containerImageSignatures_.addAll(other.containerImageSignatures_); + } + onChanged(); + } + } else { + if (!other.containerImageSignatures_.isEmpty()) { + if (containerImageSignaturesBuilder_.isEmpty()) { + containerImageSignaturesBuilder_.dispose(); + containerImageSignaturesBuilder_ = null; + containerImageSignatures_ = other.containerImageSignatures_; + bitField0_ = (bitField0_ & ~0x00000001); + containerImageSignaturesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getContainerImageSignaturesFieldBuilder() : null; + } else { + containerImageSignaturesBuilder_.addAllMessages(other.containerImageSignatures_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.cloud.confidentialcomputing.v1.ContainerImageSignature m = + input.readMessage( + com.google.cloud.confidentialcomputing.v1.ContainerImageSignature.parser(), + extensionRegistry); + if (containerImageSignaturesBuilder_ == null) { + ensureContainerImageSignaturesIsMutable(); + containerImageSignatures_.add(m); + } else { + containerImageSignaturesBuilder_.addMessage(m); + } + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.util.List containerImageSignatures_ = + java.util.Collections.emptyList(); + private void ensureContainerImageSignaturesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + containerImageSignatures_ = new java.util.ArrayList(containerImageSignatures_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.confidentialcomputing.v1.ContainerImageSignature, com.google.cloud.confidentialcomputing.v1.ContainerImageSignature.Builder, com.google.cloud.confidentialcomputing.v1.ContainerImageSignatureOrBuilder> containerImageSignaturesBuilder_; + + /** + *
+     * Optional. A list of container image signatures attached to an OCI image
+     * object.
+     * 
+ * + * repeated .google.cloud.confidentialcomputing.v1.ContainerImageSignature container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + public java.util.List getContainerImageSignaturesList() { + if (containerImageSignaturesBuilder_ == null) { + return java.util.Collections.unmodifiableList(containerImageSignatures_); + } else { + return containerImageSignaturesBuilder_.getMessageList(); + } + } + /** + *
+     * Optional. A list of container image signatures attached to an OCI image
+     * object.
+     * 
+ * + * repeated .google.cloud.confidentialcomputing.v1.ContainerImageSignature container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + public int getContainerImageSignaturesCount() { + if (containerImageSignaturesBuilder_ == null) { + return containerImageSignatures_.size(); + } else { + return containerImageSignaturesBuilder_.getCount(); + } + } + /** + *
+     * Optional. A list of container image signatures attached to an OCI image
+     * object.
+     * 
+ * + * repeated .google.cloud.confidentialcomputing.v1.ContainerImageSignature container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.cloud.confidentialcomputing.v1.ContainerImageSignature getContainerImageSignatures(int index) { + if (containerImageSignaturesBuilder_ == null) { + return containerImageSignatures_.get(index); + } else { + return containerImageSignaturesBuilder_.getMessage(index); + } + } + /** + *
+     * Optional. A list of container image signatures attached to an OCI image
+     * object.
+     * 
+ * + * repeated .google.cloud.confidentialcomputing.v1.ContainerImageSignature container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setContainerImageSignatures( + int index, com.google.cloud.confidentialcomputing.v1.ContainerImageSignature value) { + if (containerImageSignaturesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureContainerImageSignaturesIsMutable(); + containerImageSignatures_.set(index, value); + onChanged(); + } else { + containerImageSignaturesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * Optional. A list of container image signatures attached to an OCI image
+     * object.
+     * 
+ * + * repeated .google.cloud.confidentialcomputing.v1.ContainerImageSignature container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setContainerImageSignatures( + int index, com.google.cloud.confidentialcomputing.v1.ContainerImageSignature.Builder builderForValue) { + if (containerImageSignaturesBuilder_ == null) { + ensureContainerImageSignaturesIsMutable(); + containerImageSignatures_.set(index, builderForValue.build()); + onChanged(); + } else { + containerImageSignaturesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Optional. A list of container image signatures attached to an OCI image
+     * object.
+     * 
+ * + * repeated .google.cloud.confidentialcomputing.v1.ContainerImageSignature container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder addContainerImageSignatures(com.google.cloud.confidentialcomputing.v1.ContainerImageSignature value) { + if (containerImageSignaturesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureContainerImageSignaturesIsMutable(); + containerImageSignatures_.add(value); + onChanged(); + } else { + containerImageSignaturesBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * Optional. A list of container image signatures attached to an OCI image
+     * object.
+     * 
+ * + * repeated .google.cloud.confidentialcomputing.v1.ContainerImageSignature container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder addContainerImageSignatures( + int index, com.google.cloud.confidentialcomputing.v1.ContainerImageSignature value) { + if (containerImageSignaturesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureContainerImageSignaturesIsMutable(); + containerImageSignatures_.add(index, value); + onChanged(); + } else { + containerImageSignaturesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * Optional. A list of container image signatures attached to an OCI image
+     * object.
+     * 
+ * + * repeated .google.cloud.confidentialcomputing.v1.ContainerImageSignature container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder addContainerImageSignatures( + com.google.cloud.confidentialcomputing.v1.ContainerImageSignature.Builder builderForValue) { + if (containerImageSignaturesBuilder_ == null) { + ensureContainerImageSignaturesIsMutable(); + containerImageSignatures_.add(builderForValue.build()); + onChanged(); + } else { + containerImageSignaturesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * Optional. A list of container image signatures attached to an OCI image
+     * object.
+     * 
+ * + * repeated .google.cloud.confidentialcomputing.v1.ContainerImageSignature container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder addContainerImageSignatures( + int index, com.google.cloud.confidentialcomputing.v1.ContainerImageSignature.Builder builderForValue) { + if (containerImageSignaturesBuilder_ == null) { + ensureContainerImageSignaturesIsMutable(); + containerImageSignatures_.add(index, builderForValue.build()); + onChanged(); + } else { + containerImageSignaturesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Optional. A list of container image signatures attached to an OCI image
+     * object.
+     * 
+ * + * repeated .google.cloud.confidentialcomputing.v1.ContainerImageSignature container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder addAllContainerImageSignatures( + java.lang.Iterable values) { + if (containerImageSignaturesBuilder_ == null) { + ensureContainerImageSignaturesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, containerImageSignatures_); + onChanged(); + } else { + containerImageSignaturesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * Optional. A list of container image signatures attached to an OCI image
+     * object.
+     * 
+ * + * repeated .google.cloud.confidentialcomputing.v1.ContainerImageSignature container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder clearContainerImageSignatures() { + if (containerImageSignaturesBuilder_ == null) { + containerImageSignatures_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + containerImageSignaturesBuilder_.clear(); + } + return this; + } + /** + *
+     * Optional. A list of container image signatures attached to an OCI image
+     * object.
+     * 
+ * + * repeated .google.cloud.confidentialcomputing.v1.ContainerImageSignature container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder removeContainerImageSignatures(int index) { + if (containerImageSignaturesBuilder_ == null) { + ensureContainerImageSignaturesIsMutable(); + containerImageSignatures_.remove(index); + onChanged(); + } else { + containerImageSignaturesBuilder_.remove(index); + } + return this; + } + /** + *
+     * Optional. A list of container image signatures attached to an OCI image
+     * object.
+     * 
+ * + * repeated .google.cloud.confidentialcomputing.v1.ContainerImageSignature container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.cloud.confidentialcomputing.v1.ContainerImageSignature.Builder getContainerImageSignaturesBuilder( + int index) { + return getContainerImageSignaturesFieldBuilder().getBuilder(index); + } + /** + *
+     * Optional. A list of container image signatures attached to an OCI image
+     * object.
+     * 
+ * + * repeated .google.cloud.confidentialcomputing.v1.ContainerImageSignature container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.cloud.confidentialcomputing.v1.ContainerImageSignatureOrBuilder getContainerImageSignaturesOrBuilder( + int index) { + if (containerImageSignaturesBuilder_ == null) { + return containerImageSignatures_.get(index); } else { + return containerImageSignaturesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * Optional. A list of container image signatures attached to an OCI image
+     * object.
+     * 
+ * + * repeated .google.cloud.confidentialcomputing.v1.ContainerImageSignature container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + public java.util.List + getContainerImageSignaturesOrBuilderList() { + if (containerImageSignaturesBuilder_ != null) { + return containerImageSignaturesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(containerImageSignatures_); + } + } + /** + *
+     * Optional. A list of container image signatures attached to an OCI image
+     * object.
+     * 
+ * + * repeated .google.cloud.confidentialcomputing.v1.ContainerImageSignature container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.cloud.confidentialcomputing.v1.ContainerImageSignature.Builder addContainerImageSignaturesBuilder() { + return getContainerImageSignaturesFieldBuilder().addBuilder( + com.google.cloud.confidentialcomputing.v1.ContainerImageSignature.getDefaultInstance()); + } + /** + *
+     * Optional. A list of container image signatures attached to an OCI image
+     * object.
+     * 
+ * + * repeated .google.cloud.confidentialcomputing.v1.ContainerImageSignature container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.cloud.confidentialcomputing.v1.ContainerImageSignature.Builder addContainerImageSignaturesBuilder( + int index) { + return getContainerImageSignaturesFieldBuilder().addBuilder( + index, com.google.cloud.confidentialcomputing.v1.ContainerImageSignature.getDefaultInstance()); + } + /** + *
+     * Optional. A list of container image signatures attached to an OCI image
+     * object.
+     * 
+ * + * repeated .google.cloud.confidentialcomputing.v1.ContainerImageSignature container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + public java.util.List + getContainerImageSignaturesBuilderList() { + return getContainerImageSignaturesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.confidentialcomputing.v1.ContainerImageSignature, com.google.cloud.confidentialcomputing.v1.ContainerImageSignature.Builder, com.google.cloud.confidentialcomputing.v1.ContainerImageSignatureOrBuilder> + getContainerImageSignaturesFieldBuilder() { + if (containerImageSignaturesBuilder_ == null) { + containerImageSignaturesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.confidentialcomputing.v1.ContainerImageSignature, com.google.cloud.confidentialcomputing.v1.ContainerImageSignature.Builder, com.google.cloud.confidentialcomputing.v1.ContainerImageSignatureOrBuilder>( + containerImageSignatures_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + containerImageSignatures_ = null; + } + return containerImageSignaturesBuilder_; + } + @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.confidentialcomputing.v1.SignedEntity) + } + + // @@protoc_insertion_point(class_scope:google.cloud.confidentialcomputing.v1.SignedEntity) + private static final com.google.cloud.confidentialcomputing.v1.SignedEntity DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.confidentialcomputing.v1.SignedEntity(); + } + + public static com.google.cloud.confidentialcomputing.v1.SignedEntity getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SignedEntity parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.confidentialcomputing.v1.SignedEntity getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/SignedEntityOrBuilder.java b/owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/SignedEntityOrBuilder.java new file mode 100644 index 000000000000..a02288db7bc6 --- /dev/null +++ b/owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/SignedEntityOrBuilder.java @@ -0,0 +1,58 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/confidentialcomputing/v1/service.proto + +package com.google.cloud.confidentialcomputing.v1; + +public interface SignedEntityOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.confidentialcomputing.v1.SignedEntity) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Optional. A list of container image signatures attached to an OCI image
+   * object.
+   * 
+ * + * repeated .google.cloud.confidentialcomputing.v1.ContainerImageSignature container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.util.List + getContainerImageSignaturesList(); + /** + *
+   * Optional. A list of container image signatures attached to an OCI image
+   * object.
+   * 
+ * + * repeated .google.cloud.confidentialcomputing.v1.ContainerImageSignature container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + com.google.cloud.confidentialcomputing.v1.ContainerImageSignature getContainerImageSignatures(int index); + /** + *
+   * Optional. A list of container image signatures attached to an OCI image
+   * object.
+   * 
+ * + * repeated .google.cloud.confidentialcomputing.v1.ContainerImageSignature container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + int getContainerImageSignaturesCount(); + /** + *
+   * Optional. A list of container image signatures attached to an OCI image
+   * object.
+   * 
+ * + * repeated .google.cloud.confidentialcomputing.v1.ContainerImageSignature container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.util.List + getContainerImageSignaturesOrBuilderList(); + /** + *
+   * Optional. A list of container image signatures attached to an OCI image
+   * object.
+   * 
+ * + * repeated .google.cloud.confidentialcomputing.v1.ContainerImageSignature container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + com.google.cloud.confidentialcomputing.v1.ContainerImageSignatureOrBuilder getContainerImageSignaturesOrBuilder( + int index); +} diff --git a/owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/SigningAlgorithm.java b/owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/SigningAlgorithm.java new file mode 100644 index 000000000000..aec73144a978 --- /dev/null +++ b/owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/SigningAlgorithm.java @@ -0,0 +1,167 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/confidentialcomputing/v1/service.proto + +package com.google.cloud.confidentialcomputing.v1; + +/** + *
+ * SigningAlgorithm enumerates all the supported signing algorithms.
+ * 
+ * + * Protobuf enum {@code google.cloud.confidentialcomputing.v1.SigningAlgorithm} + */ +public enum SigningAlgorithm + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+   * Unspecified signing algorithm.
+   * 
+ * + * SIGNING_ALGORITHM_UNSPECIFIED = 0; + */ + SIGNING_ALGORITHM_UNSPECIFIED(0), + /** + *
+   * RSASSA-PSS with a SHA256 digest.
+   * 
+ * + * RSASSA_PSS_SHA256 = 1; + */ + RSASSA_PSS_SHA256(1), + /** + *
+   * RSASSA-PKCS1 v1.5 with a SHA256 digest.
+   * 
+ * + * RSASSA_PKCS1V15_SHA256 = 2; + */ + RSASSA_PKCS1V15_SHA256(2), + /** + *
+   * ECDSA on the P-256 Curve with a SHA256 digest.
+   * 
+ * + * ECDSA_P256_SHA256 = 3; + */ + ECDSA_P256_SHA256(3), + UNRECOGNIZED(-1), + ; + + /** + *
+   * Unspecified signing algorithm.
+   * 
+ * + * SIGNING_ALGORITHM_UNSPECIFIED = 0; + */ + public static final int SIGNING_ALGORITHM_UNSPECIFIED_VALUE = 0; + /** + *
+   * RSASSA-PSS with a SHA256 digest.
+   * 
+ * + * RSASSA_PSS_SHA256 = 1; + */ + public static final int RSASSA_PSS_SHA256_VALUE = 1; + /** + *
+   * RSASSA-PKCS1 v1.5 with a SHA256 digest.
+   * 
+ * + * RSASSA_PKCS1V15_SHA256 = 2; + */ + public static final int RSASSA_PKCS1V15_SHA256_VALUE = 2; + /** + *
+   * ECDSA on the P-256 Curve with a SHA256 digest.
+   * 
+ * + * ECDSA_P256_SHA256 = 3; + */ + public static final int ECDSA_P256_SHA256_VALUE = 3; + + + 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 SigningAlgorithm 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 SigningAlgorithm forNumber(int value) { + switch (value) { + case 0: return SIGNING_ALGORITHM_UNSPECIFIED; + case 1: return RSASSA_PSS_SHA256; + case 2: return RSASSA_PKCS1V15_SHA256; + case 3: return ECDSA_P256_SHA256; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + SigningAlgorithm> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SigningAlgorithm findValueByNumber(int number) { + return SigningAlgorithm.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.confidentialcomputing.v1.ServiceProto.getDescriptor().getEnumTypes().get(0); + } + + private static final SigningAlgorithm[] VALUES = values(); + + public static SigningAlgorithm 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 SigningAlgorithm(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.confidentialcomputing.v1.SigningAlgorithm) +} + diff --git a/owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/TokenOptions.java b/owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/TokenOptions.java new file mode 100644 index 000000000000..ce09f816ad74 --- /dev/null +++ b/owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/TokenOptions.java @@ -0,0 +1,851 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/confidentialcomputing/v1/service.proto + +package com.google.cloud.confidentialcomputing.v1; + +/** + *
+ * Options to modify claims in the token to generate custom-purpose tokens.
+ * 
+ * + * Protobuf type {@code google.cloud.confidentialcomputing.v1.TokenOptions} + */ +public final class TokenOptions extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.confidentialcomputing.v1.TokenOptions) + TokenOptionsOrBuilder { +private static final long serialVersionUID = 0L; + // Use TokenOptions.newBuilder() to construct. + private TokenOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TokenOptions() { + audience_ = ""; + nonce_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new TokenOptions(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_TokenOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_TokenOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.confidentialcomputing.v1.TokenOptions.class, com.google.cloud.confidentialcomputing.v1.TokenOptions.Builder.class); + } + + public static final int AUDIENCE_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object audience_ = ""; + /** + *
+   * Optional. Optional string to issue the token with a custom audience claim.
+   * Required if one or more nonces are specified.
+   * 
+ * + * string audience = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return The audience. + */ + @java.lang.Override + public java.lang.String getAudience() { + java.lang.Object ref = audience_; + 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(); + audience_ = s; + return s; + } + } + /** + *
+   * Optional. Optional string to issue the token with a custom audience claim.
+   * Required if one or more nonces are specified.
+   * 
+ * + * string audience = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for audience. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getAudienceBytes() { + java.lang.Object ref = audience_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + audience_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NONCE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList nonce_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+   * Optional. Optional parameter to place one or more nonces in the eat_nonce
+   * claim in the output token. The minimum size for JSON-encoded EATs is 10
+   * bytes and the maximum size is 74 bytes.
+   * 
+ * + * repeated string nonce = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return A list containing the nonce. + */ + public com.google.protobuf.ProtocolStringList + getNonceList() { + return nonce_; + } + /** + *
+   * Optional. Optional parameter to place one or more nonces in the eat_nonce
+   * claim in the output token. The minimum size for JSON-encoded EATs is 10
+   * bytes and the maximum size is 74 bytes.
+   * 
+ * + * repeated string nonce = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return The count of nonce. + */ + public int getNonceCount() { + return nonce_.size(); + } + /** + *
+   * Optional. Optional parameter to place one or more nonces in the eat_nonce
+   * claim in the output token. The minimum size for JSON-encoded EATs is 10
+   * bytes and the maximum size is 74 bytes.
+   * 
+ * + * repeated string nonce = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param index The index of the element to return. + * @return The nonce at the given index. + */ + public java.lang.String getNonce(int index) { + return nonce_.get(index); + } + /** + *
+   * Optional. Optional parameter to place one or more nonces in the eat_nonce
+   * claim in the output token. The minimum size for JSON-encoded EATs is 10
+   * bytes and the maximum size is 74 bytes.
+   * 
+ * + * repeated string nonce = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param index The index of the value to return. + * @return The bytes of the nonce at the given index. + */ + public com.google.protobuf.ByteString + getNonceBytes(int index) { + return nonce_.getByteString(index); + } + + 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(audience_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, audience_); + } + for (int i = 0; i < nonce_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nonce_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(audience_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, audience_); + } + { + int dataSize = 0; + for (int i = 0; i < nonce_.size(); i++) { + dataSize += computeStringSizeNoTag(nonce_.getRaw(i)); + } + size += dataSize; + size += 1 * getNonceList().size(); + } + size += getUnknownFields().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.confidentialcomputing.v1.TokenOptions)) { + return super.equals(obj); + } + com.google.cloud.confidentialcomputing.v1.TokenOptions other = (com.google.cloud.confidentialcomputing.v1.TokenOptions) obj; + + if (!getAudience() + .equals(other.getAudience())) return false; + if (!getNonceList() + .equals(other.getNonceList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + AUDIENCE_FIELD_NUMBER; + hash = (53 * hash) + getAudience().hashCode(); + if (getNonceCount() > 0) { + hash = (37 * hash) + NONCE_FIELD_NUMBER; + hash = (53 * hash) + getNonceList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.confidentialcomputing.v1.TokenOptions parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.confidentialcomputing.v1.TokenOptions 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.confidentialcomputing.v1.TokenOptions parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.confidentialcomputing.v1.TokenOptions 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.confidentialcomputing.v1.TokenOptions parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.confidentialcomputing.v1.TokenOptions parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.confidentialcomputing.v1.TokenOptions parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.confidentialcomputing.v1.TokenOptions 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.confidentialcomputing.v1.TokenOptions parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.confidentialcomputing.v1.TokenOptions 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.confidentialcomputing.v1.TokenOptions parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.confidentialcomputing.v1.TokenOptions 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.confidentialcomputing.v1.TokenOptions 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; + } + /** + *
+   * Options to modify claims in the token to generate custom-purpose tokens.
+   * 
+ * + * Protobuf type {@code google.cloud.confidentialcomputing.v1.TokenOptions} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.confidentialcomputing.v1.TokenOptions) + com.google.cloud.confidentialcomputing.v1.TokenOptionsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_TokenOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_TokenOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.confidentialcomputing.v1.TokenOptions.class, com.google.cloud.confidentialcomputing.v1.TokenOptions.Builder.class); + } + + // Construct using com.google.cloud.confidentialcomputing.v1.TokenOptions.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + audience_ = ""; + nonce_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_TokenOptions_descriptor; + } + + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.TokenOptions getDefaultInstanceForType() { + return com.google.cloud.confidentialcomputing.v1.TokenOptions.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.TokenOptions build() { + com.google.cloud.confidentialcomputing.v1.TokenOptions result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.TokenOptions buildPartial() { + com.google.cloud.confidentialcomputing.v1.TokenOptions result = new com.google.cloud.confidentialcomputing.v1.TokenOptions(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.confidentialcomputing.v1.TokenOptions result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.audience_ = audience_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + nonce_.makeImmutable(); + result.nonce_ = nonce_; + } + } + + @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.confidentialcomputing.v1.TokenOptions) { + return mergeFrom((com.google.cloud.confidentialcomputing.v1.TokenOptions)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.confidentialcomputing.v1.TokenOptions other) { + if (other == com.google.cloud.confidentialcomputing.v1.TokenOptions.getDefaultInstance()) return this; + if (!other.getAudience().isEmpty()) { + audience_ = other.audience_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.nonce_.isEmpty()) { + if (nonce_.isEmpty()) { + nonce_ = other.nonce_; + bitField0_ |= 0x00000002; + } else { + ensureNonceIsMutable(); + nonce_.addAll(other.nonce_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + audience_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + ensureNonceIsMutable(); + nonce_.add(s); + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object audience_ = ""; + /** + *
+     * Optional. Optional string to issue the token with a custom audience claim.
+     * Required if one or more nonces are specified.
+     * 
+ * + * string audience = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return The audience. + */ + public java.lang.String getAudience() { + java.lang.Object ref = audience_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + audience_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Optional. Optional string to issue the token with a custom audience claim.
+     * Required if one or more nonces are specified.
+     * 
+ * + * string audience = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for audience. + */ + public com.google.protobuf.ByteString + getAudienceBytes() { + java.lang.Object ref = audience_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + audience_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Optional. Optional string to issue the token with a custom audience claim.
+     * Required if one or more nonces are specified.
+     * 
+ * + * string audience = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param value The audience to set. + * @return This builder for chaining. + */ + public Builder setAudience( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + audience_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Optional. Optional string to issue the token with a custom audience claim.
+     * Required if one or more nonces are specified.
+     * 
+ * + * string audience = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return This builder for chaining. + */ + public Builder clearAudience() { + audience_ = getDefaultInstance().getAudience(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Optional. Optional string to issue the token with a custom audience claim.
+     * Required if one or more nonces are specified.
+     * 
+ * + * string audience = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param value The bytes for audience to set. + * @return This builder for chaining. + */ + public Builder setAudienceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + audience_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList nonce_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureNonceIsMutable() { + if (!nonce_.isModifiable()) { + nonce_ = new com.google.protobuf.LazyStringArrayList(nonce_); + } + bitField0_ |= 0x00000002; + } + /** + *
+     * Optional. Optional parameter to place one or more nonces in the eat_nonce
+     * claim in the output token. The minimum size for JSON-encoded EATs is 10
+     * bytes and the maximum size is 74 bytes.
+     * 
+ * + * repeated string nonce = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return A list containing the nonce. + */ + public com.google.protobuf.ProtocolStringList + getNonceList() { + nonce_.makeImmutable(); + return nonce_; + } + /** + *
+     * Optional. Optional parameter to place one or more nonces in the eat_nonce
+     * claim in the output token. The minimum size for JSON-encoded EATs is 10
+     * bytes and the maximum size is 74 bytes.
+     * 
+ * + * repeated string nonce = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return The count of nonce. + */ + public int getNonceCount() { + return nonce_.size(); + } + /** + *
+     * Optional. Optional parameter to place one or more nonces in the eat_nonce
+     * claim in the output token. The minimum size for JSON-encoded EATs is 10
+     * bytes and the maximum size is 74 bytes.
+     * 
+ * + * repeated string nonce = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param index The index of the element to return. + * @return The nonce at the given index. + */ + public java.lang.String getNonce(int index) { + return nonce_.get(index); + } + /** + *
+     * Optional. Optional parameter to place one or more nonces in the eat_nonce
+     * claim in the output token. The minimum size for JSON-encoded EATs is 10
+     * bytes and the maximum size is 74 bytes.
+     * 
+ * + * repeated string nonce = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param index The index of the value to return. + * @return The bytes of the nonce at the given index. + */ + public com.google.protobuf.ByteString + getNonceBytes(int index) { + return nonce_.getByteString(index); + } + /** + *
+     * Optional. Optional parameter to place one or more nonces in the eat_nonce
+     * claim in the output token. The minimum size for JSON-encoded EATs is 10
+     * bytes and the maximum size is 74 bytes.
+     * 
+ * + * repeated string nonce = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param index The index to set the value at. + * @param value The nonce to set. + * @return This builder for chaining. + */ + public Builder setNonce( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureNonceIsMutable(); + nonce_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Optional. Optional parameter to place one or more nonces in the eat_nonce
+     * claim in the output token. The minimum size for JSON-encoded EATs is 10
+     * bytes and the maximum size is 74 bytes.
+     * 
+ * + * repeated string nonce = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param value The nonce to add. + * @return This builder for chaining. + */ + public Builder addNonce( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureNonceIsMutable(); + nonce_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Optional. Optional parameter to place one or more nonces in the eat_nonce
+     * claim in the output token. The minimum size for JSON-encoded EATs is 10
+     * bytes and the maximum size is 74 bytes.
+     * 
+ * + * repeated string nonce = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param values The nonce to add. + * @return This builder for chaining. + */ + public Builder addAllNonce( + java.lang.Iterable values) { + ensureNonceIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, nonce_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Optional. Optional parameter to place one or more nonces in the eat_nonce
+     * claim in the output token. The minimum size for JSON-encoded EATs is 10
+     * bytes and the maximum size is 74 bytes.
+     * 
+ * + * repeated string nonce = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return This builder for chaining. + */ + public Builder clearNonce() { + nonce_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002);; + onChanged(); + return this; + } + /** + *
+     * Optional. Optional parameter to place one or more nonces in the eat_nonce
+     * claim in the output token. The minimum size for JSON-encoded EATs is 10
+     * bytes and the maximum size is 74 bytes.
+     * 
+ * + * repeated string nonce = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param value The bytes of the nonce to add. + * @return This builder for chaining. + */ + public Builder addNonceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureNonceIsMutable(); + nonce_.add(value); + bitField0_ |= 0x00000002; + 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.confidentialcomputing.v1.TokenOptions) + } + + // @@protoc_insertion_point(class_scope:google.cloud.confidentialcomputing.v1.TokenOptions) + private static final com.google.cloud.confidentialcomputing.v1.TokenOptions DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.confidentialcomputing.v1.TokenOptions(); + } + + public static com.google.cloud.confidentialcomputing.v1.TokenOptions getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TokenOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.confidentialcomputing.v1.TokenOptions getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/TokenOptionsOrBuilder.java b/owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/TokenOptionsOrBuilder.java new file mode 100644 index 000000000000..bc8e953a8c52 --- /dev/null +++ b/owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/TokenOptionsOrBuilder.java @@ -0,0 +1,80 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/confidentialcomputing/v1/service.proto + +package com.google.cloud.confidentialcomputing.v1; + +public interface TokenOptionsOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.confidentialcomputing.v1.TokenOptions) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Optional. Optional string to issue the token with a custom audience claim.
+   * Required if one or more nonces are specified.
+   * 
+ * + * string audience = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return The audience. + */ + java.lang.String getAudience(); + /** + *
+   * Optional. Optional string to issue the token with a custom audience claim.
+   * Required if one or more nonces are specified.
+   * 
+ * + * string audience = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for audience. + */ + com.google.protobuf.ByteString + getAudienceBytes(); + + /** + *
+   * Optional. Optional parameter to place one or more nonces in the eat_nonce
+   * claim in the output token. The minimum size for JSON-encoded EATs is 10
+   * bytes and the maximum size is 74 bytes.
+   * 
+ * + * repeated string nonce = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return A list containing the nonce. + */ + java.util.List + getNonceList(); + /** + *
+   * Optional. Optional parameter to place one or more nonces in the eat_nonce
+   * claim in the output token. The minimum size for JSON-encoded EATs is 10
+   * bytes and the maximum size is 74 bytes.
+   * 
+ * + * repeated string nonce = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return The count of nonce. + */ + int getNonceCount(); + /** + *
+   * Optional. Optional parameter to place one or more nonces in the eat_nonce
+   * claim in the output token. The minimum size for JSON-encoded EATs is 10
+   * bytes and the maximum size is 74 bytes.
+   * 
+ * + * repeated string nonce = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param index The index of the element to return. + * @return The nonce at the given index. + */ + java.lang.String getNonce(int index); + /** + *
+   * Optional. Optional parameter to place one or more nonces in the eat_nonce
+   * claim in the output token. The minimum size for JSON-encoded EATs is 10
+   * bytes and the maximum size is 74 bytes.
+   * 
+ * + * repeated string nonce = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param index The index of the value to return. + * @return The bytes of the nonce at the given index. + */ + com.google.protobuf.ByteString + getNonceBytes(int index); +} diff --git a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/TpmAttestation.java b/owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/TpmAttestation.java similarity index 73% rename from java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/TpmAttestation.java rename to owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/TpmAttestation.java index f6fd6c2a7142..74cf31876774 100644 --- a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/TpmAttestation.java +++ b/owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/TpmAttestation.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 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/confidentialcomputing/v1/service.proto package com.google.cloud.confidentialcomputing.v1; /** - * - * *
  * TPM2 data containing everything necessary to validate any platform state
  * measured into the TPM.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.confidentialcomputing.v1.TpmAttestation}
  */
-public final class TpmAttestation extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class TpmAttestation extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.confidentialcomputing.v1.TpmAttestation)
     TpmAttestationOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use TpmAttestation.newBuilder() to construct.
   private TpmAttestation(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private TpmAttestation() {
     quotes_ = java.util.Collections.emptyList();
     tcgEventLog_ = com.google.protobuf.ByteString.EMPTY;
@@ -48,46 +30,39 @@ private TpmAttestation() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new TpmAttestation();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.confidentialcomputing.v1.ServiceProto
-        .internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.confidentialcomputing.v1.ServiceProto
-        .internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_fieldAccessorTable
+    return com.google.cloud.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.confidentialcomputing.v1.TpmAttestation.class,
-            com.google.cloud.confidentialcomputing.v1.TpmAttestation.Builder.class);
+            com.google.cloud.confidentialcomputing.v1.TpmAttestation.class, com.google.cloud.confidentialcomputing.v1.TpmAttestation.Builder.class);
   }
 
-  public interface QuoteOrBuilder
-      extends
+  public interface QuoteOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.cloud.confidentialcomputing.v1.TpmAttestation.Quote)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * The hash algorithm of the PCR bank being quoted, encoded as a TPM_ALG_ID
      * 
* * int32 hash_algo = 1; - * * @return The hashAlgo. */ int getHashAlgo(); /** - * - * *
      * Raw binary values of each PCRs being quoted.
      * 
@@ -96,31 +71,30 @@ public interface QuoteOrBuilder */ int getPcrValuesCount(); /** - * - * *
      * Raw binary values of each PCRs being quoted.
      * 
* * map<int32, bytes> pcr_values = 2; */ - boolean containsPcrValues(int key); - /** Use {@link #getPcrValuesMap()} instead. */ + boolean containsPcrValues( + int key); + /** + * Use {@link #getPcrValuesMap()} instead. + */ @java.lang.Deprecated - java.util.Map getPcrValues(); + java.util.Map + getPcrValues(); /** - * - * *
      * Raw binary values of each PCRs being quoted.
      * 
* * map<int32, bytes> pcr_values = 2; */ - java.util.Map getPcrValuesMap(); + java.util.Map + getPcrValuesMap(); /** - * - * *
      * Raw binary values of each PCRs being quoted.
      * 
@@ -128,50 +102,41 @@ public interface QuoteOrBuilder * map<int32, bytes> pcr_values = 2; */ /* nullable */ - com.google.protobuf.ByteString getPcrValuesOrDefault( +com.google.protobuf.ByteString getPcrValuesOrDefault( int key, /* nullable */ - com.google.protobuf.ByteString defaultValue); +com.google.protobuf.ByteString defaultValue); /** - * - * *
      * Raw binary values of each PCRs being quoted.
      * 
* * map<int32, bytes> pcr_values = 2; */ - com.google.protobuf.ByteString getPcrValuesOrThrow(int key); + com.google.protobuf.ByteString getPcrValuesOrThrow( + int key); /** - * - * *
      * TPM2 quote, encoded as a TPMS_ATTEST
      * 
* * bytes raw_quote = 3; - * * @return The rawQuote. */ com.google.protobuf.ByteString getRawQuote(); /** - * - * *
      * TPM2 signature, encoded as a TPMT_SIGNATURE
      * 
* * bytes raw_signature = 4; - * * @return The rawSignature. */ com.google.protobuf.ByteString getRawSignature(); } /** - * - * *
    * Information about Platform Control Registers (PCRs) including a signature
    * over their values, which can be used for remote validation.
@@ -179,16 +144,15 @@ com.google.protobuf.ByteString getPcrValuesOrDefault(
    *
    * Protobuf type {@code google.cloud.confidentialcomputing.v1.TpmAttestation.Quote}
    */
-  public static final class Quote extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class Quote extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.cloud.confidentialcomputing.v1.TpmAttestation.Quote)
       QuoteOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use Quote.newBuilder() to construct.
     private Quote(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
     private Quote() {
       rawQuote_ = com.google.protobuf.ByteString.EMPTY;
       rawSignature_ = com.google.protobuf.ByteString.EMPTY;
@@ -196,47 +160,44 @@ private Quote() {
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new Quote();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.confidentialcomputing.v1.ServiceProto
-          .internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_Quote_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_Quote_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 2:
           return internalGetPcrValues();
         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.confidentialcomputing.v1.ServiceProto
-          .internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_Quote_fieldAccessorTable
+      return com.google.cloud.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_Quote_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote.class,
-              com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote.Builder.class);
+              com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote.class, com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote.Builder.class);
     }
 
     public static final int HASH_ALGO_FIELD_NUMBER = 1;
     private int hashAlgo_ = 0;
     /**
-     *
-     *
      * 
      * The hash algorithm of the PCR bank being quoted, encoded as a TPM_ALG_ID
      * 
* * int32 hash_algo = 1; - * * @return The hashAlgo. */ @java.lang.Override @@ -245,38 +206,32 @@ public int getHashAlgo() { } public static final int PCR_VALUES_FIELD_NUMBER = 2; - private static final class PcrValuesDefaultEntryHolder { - static final com.google.protobuf.MapEntry - defaultEntry = + static final com.google.protobuf.MapEntry< + java.lang.Integer, com.google.protobuf.ByteString> defaultEntry = com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.confidentialcomputing.v1.ServiceProto - .internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_Quote_PcrValuesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.INT32, - 0, - com.google.protobuf.WireFormat.FieldType.BYTES, - com.google.protobuf.ByteString.EMPTY); + .newDefaultInstance( + com.google.cloud.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_Quote_PcrValuesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.INT32, + 0, + com.google.protobuf.WireFormat.FieldType.BYTES, + com.google.protobuf.ByteString.EMPTY); } - @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.Integer, com.google.protobuf.ByteString> pcrValues_; private com.google.protobuf.MapField - pcrValues_; - - private com.google.protobuf.MapField - internalGetPcrValues() { + internalGetPcrValues() { if (pcrValues_ == null) { - return com.google.protobuf.MapField.emptyMapField(PcrValuesDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + PcrValuesDefaultEntryHolder.defaultEntry); } return pcrValues_; } - public int getPcrValuesCount() { return internalGetPcrValues().getMap().size(); } /** - * - * *
      * Raw binary values of each PCRs being quoted.
      * 
@@ -284,19 +239,20 @@ public int getPcrValuesCount() { * map<int32, bytes> pcr_values = 2; */ @java.lang.Override - public boolean containsPcrValues(int key) { + public boolean containsPcrValues( + int key) { return internalGetPcrValues().getMap().containsKey(key); } - /** Use {@link #getPcrValuesMap()} instead. */ + /** + * Use {@link #getPcrValuesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getPcrValues() { return getPcrValuesMap(); } /** - * - * *
      * Raw binary values of each PCRs being quoted.
      * 
@@ -308,8 +264,6 @@ public java.util.Map getPcrVa return internalGetPcrValues().getMap(); } /** - * - * *
      * Raw binary values of each PCRs being quoted.
      * 
@@ -317,18 +271,17 @@ public java.util.Map getPcrVa * map<int32, bytes> pcr_values = 2; */ @java.lang.Override - public /* nullable */ com.google.protobuf.ByteString getPcrValuesOrDefault( + public /* nullable */ +com.google.protobuf.ByteString getPcrValuesOrDefault( int key, /* nullable */ - com.google.protobuf.ByteString defaultValue) { +com.google.protobuf.ByteString defaultValue) { java.util.Map map = internalGetPcrValues().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Raw binary values of each PCRs being quoted.
      * 
@@ -336,7 +289,8 @@ public java.util.Map getPcrVa * map<int32, bytes> pcr_values = 2; */ @java.lang.Override - public com.google.protobuf.ByteString getPcrValuesOrThrow(int key) { + public com.google.protobuf.ByteString getPcrValuesOrThrow( + int key) { java.util.Map map = internalGetPcrValues().getMap(); @@ -349,14 +303,11 @@ public com.google.protobuf.ByteString getPcrValuesOrThrow(int key) { public static final int RAW_QUOTE_FIELD_NUMBER = 3; private com.google.protobuf.ByteString rawQuote_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
      * TPM2 quote, encoded as a TPMS_ATTEST
      * 
* * bytes raw_quote = 3; - * * @return The rawQuote. */ @java.lang.Override @@ -367,14 +318,11 @@ public com.google.protobuf.ByteString getRawQuote() { public static final int RAW_SIGNATURE_FIELD_NUMBER = 4; private com.google.protobuf.ByteString rawSignature_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
      * TPM2 signature, encoded as a TPMT_SIGNATURE
      * 
* * bytes raw_signature = 4; - * * @return The rawSignature. */ @java.lang.Override @@ -383,7 +331,6 @@ public com.google.protobuf.ByteString getRawSignature() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -395,12 +342,17 @@ 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 (hashAlgo_ != 0) { output.writeInt32(1, hashAlgo_); } - com.google.protobuf.GeneratedMessageV3.serializeIntegerMapTo( - output, internalGetPcrValues(), PcrValuesDefaultEntryHolder.defaultEntry, 2); + com.google.protobuf.GeneratedMessageV3 + .serializeIntegerMapTo( + output, + internalGetPcrValues(), + PcrValuesDefaultEntryHolder.defaultEntry, + 2); if (!rawQuote_.isEmpty()) { output.writeBytes(3, rawQuote_); } @@ -417,24 +369,26 @@ public int getSerializedSize() { size = 0; if (hashAlgo_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, hashAlgo_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, hashAlgo_); } - for (java.util.Map.Entry entry : - internalGetPcrValues().getMap().entrySet()) { + for (java.util.Map.Entry entry + : internalGetPcrValues().getMap().entrySet()) { com.google.protobuf.MapEntry - pcrValues__ = - PcrValuesDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, pcrValues__); + pcrValues__ = PcrValuesDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, pcrValues__); } if (!rawQuote_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(3, rawQuote_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(3, rawQuote_); } if (!rawSignature_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(4, rawSignature_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(4, rawSignature_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -444,18 +398,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.confidentialcomputing.v1.TpmAttestation.Quote)) { return super.equals(obj); } - com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote other = - (com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote) obj; + com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote other = (com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote) obj; - if (getHashAlgo() != other.getHashAlgo()) return false; - if (!internalGetPcrValues().equals(other.internalGetPcrValues())) return false; - if (!getRawQuote().equals(other.getRawQuote())) return false; - if (!getRawSignature().equals(other.getRawSignature())) return false; + if (getHashAlgo() + != other.getHashAlgo()) return false; + if (!internalGetPcrValues().equals( + other.internalGetPcrValues())) return false; + if (!getRawQuote() + .equals(other.getRawQuote())) return false; + if (!getRawSignature() + .equals(other.getRawSignature())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -483,94 +440,89 @@ public int hashCode() { } public static com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote 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.confidentialcomputing.v1.TpmAttestation.Quote 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.confidentialcomputing.v1.TpmAttestation.Quote parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote 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.confidentialcomputing.v1.TpmAttestation.Quote parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote 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.confidentialcomputing.v1.TpmAttestation.Quote parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote 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.confidentialcomputing.v1.TpmAttestation.Quote parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote 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.confidentialcomputing.v1.TpmAttestation.Quote 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.confidentialcomputing.v1.TpmAttestation.Quote 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.confidentialcomputing.v1.TpmAttestation.Quote prototype) { + public static Builder newBuilder(com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote 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 @@ -580,8 +532,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Information about Platform Control Registers (PCRs) including a signature
      * over their values, which can be used for remote validation.
@@ -589,53 +539,55 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.confidentialcomputing.v1.TpmAttestation.Quote}
      */
-    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.confidentialcomputing.v1.TpmAttestation.Quote)
         com.google.cloud.confidentialcomputing.v1.TpmAttestation.QuoteOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.cloud.confidentialcomputing.v1.ServiceProto
-            .internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_Quote_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.cloud.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_Quote_descriptor;
       }
 
       @SuppressWarnings({"rawtypes"})
-      protected com.google.protobuf.MapField internalGetMapField(int number) {
+      protected com.google.protobuf.MapField internalGetMapField(
+          int number) {
         switch (number) {
           case 2:
             return internalGetPcrValues();
           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 2:
             return internalGetMutablePcrValues();
           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.confidentialcomputing.v1.ServiceProto
-            .internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_Quote_fieldAccessorTable
+        return com.google.cloud.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_Quote_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote.class,
-                com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote.Builder.class);
+                com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote.class, com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote.Builder.class);
       }
 
       // Construct using com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote.newBuilder()
-      private Builder() {}
+      private Builder() {
 
-      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-        super(parent);
       }
 
+      private Builder(
+          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+        super(parent);
+
+      }
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -648,14 +600,13 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.cloud.confidentialcomputing.v1.ServiceProto
-            .internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_Quote_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.cloud.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_Quote_descriptor;
       }
 
       @java.lang.Override
-      public com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote
-          getDefaultInstanceForType() {
+      public com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote getDefaultInstanceForType() {
         return com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote.getDefaultInstance();
       }
 
@@ -670,17 +621,13 @@ public com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote build() {
 
       @java.lang.Override
       public com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote buildPartial() {
-        com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote result =
-            new com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote(this);
-        if (bitField0_ != 0) {
-          buildPartial0(result);
-        }
+        com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote result = new com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote(this);
+        if (bitField0_ != 0) { buildPartial0(result); }
         onBuilt();
         return result;
       }
 
-      private void buildPartial0(
-          com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote result) {
+      private void buildPartial0(com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote result) {
         int from_bitField0_ = bitField0_;
         if (((from_bitField0_ & 0x00000001) != 0)) {
           result.hashAlgo_ = hashAlgo_;
@@ -701,56 +648,51 @@ private void buildPartial0(
       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.confidentialcomputing.v1.TpmAttestation.Quote) {
-          return mergeFrom((com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote) other);
+          return mergeFrom((com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote)other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(
-          com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote other) {
-        if (other
-            == com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote.getDefaultInstance())
-          return this;
+      public Builder mergeFrom(com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote other) {
+        if (other == com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote.getDefaultInstance()) return this;
         if (other.getHashAlgo() != 0) {
           setHashAlgo(other.getHashAlgo());
         }
-        internalGetMutablePcrValues().mergeFrom(other.internalGetPcrValues());
+        internalGetMutablePcrValues().mergeFrom(
+            other.internalGetPcrValues());
         bitField0_ |= 0x00000002;
         if (other.getRawQuote() != com.google.protobuf.ByteString.EMPTY) {
           setRawQuote(other.getRawQuote());
@@ -784,44 +726,36 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 8:
-                {
-                  hashAlgo_ = input.readInt32();
-                  bitField0_ |= 0x00000001;
-                  break;
-                } // case 8
-              case 18:
-                {
-                  com.google.protobuf.MapEntry
-                      pcrValues__ =
-                          input.readMessage(
-                              PcrValuesDefaultEntryHolder.defaultEntry.getParserForType(),
-                              extensionRegistry);
-                  internalGetMutablePcrValues()
-                      .getMutableMap()
-                      .put(pcrValues__.getKey(), pcrValues__.getValue());
-                  bitField0_ |= 0x00000002;
-                  break;
-                } // case 18
-              case 26:
-                {
-                  rawQuote_ = input.readBytes();
-                  bitField0_ |= 0x00000004;
-                  break;
-                } // case 26
-              case 34:
-                {
-                  rawSignature_ = input.readBytes();
-                  bitField0_ |= 0x00000008;
-                  break;
-                } // case 34
-              default:
-                {
-                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                    done = true; // was an endgroup tag
-                  }
-                  break;
-                } // default:
+              case 8: {
+                hashAlgo_ = input.readInt32();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 8
+              case 18: {
+                com.google.protobuf.MapEntry
+                pcrValues__ = input.readMessage(
+                    PcrValuesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+                internalGetMutablePcrValues().getMutableMap().put(
+                    pcrValues__.getKey(), pcrValues__.getValue());
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+              case 26: {
+                rawQuote_ = input.readBytes();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+              case 34: {
+                rawSignature_ = input.readBytes();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 34
+              default: {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -831,19 +765,15 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
-
       private int bitField0_;
 
-      private int hashAlgo_;
+      private int hashAlgo_ ;
       /**
-       *
-       *
        * 
        * The hash algorithm of the PCR bank being quoted, encoded as a TPM_ALG_ID
        * 
* * int32 hash_algo = 1; - * * @return The hashAlgo. */ @java.lang.Override @@ -851,14 +781,11 @@ public int getHashAlgo() { return hashAlgo_; } /** - * - * *
        * The hash algorithm of the PCR bank being quoted, encoded as a TPM_ALG_ID
        * 
* * int32 hash_algo = 1; - * * @param value The hashAlgo to set. * @return This builder for chaining. */ @@ -870,14 +797,11 @@ public Builder setHashAlgo(int value) { return this; } /** - * - * *
        * The hash algorithm of the PCR bank being quoted, encoded as a TPM_ALG_ID
        * 
* * int32 hash_algo = 1; - * * @return This builder for chaining. */ public Builder clearHashAlgo() { @@ -887,9 +811,8 @@ public Builder clearHashAlgo() { return this; } - private com.google.protobuf.MapField - pcrValues_; - + private com.google.protobuf.MapField< + java.lang.Integer, com.google.protobuf.ByteString> pcrValues_; private com.google.protobuf.MapField internalGetPcrValues() { if (pcrValues_ == null) { @@ -898,12 +821,11 @@ public Builder clearHashAlgo() { } return pcrValues_; } - private com.google.protobuf.MapField internalGetMutablePcrValues() { if (pcrValues_ == null) { - pcrValues_ = - com.google.protobuf.MapField.newMapField(PcrValuesDefaultEntryHolder.defaultEntry); + pcrValues_ = com.google.protobuf.MapField.newMapField( + PcrValuesDefaultEntryHolder.defaultEntry); } if (!pcrValues_.isMutable()) { pcrValues_ = pcrValues_.copy(); @@ -912,13 +834,10 @@ public Builder clearHashAlgo() { onChanged(); return pcrValues_; } - public int getPcrValuesCount() { return internalGetPcrValues().getMap().size(); } /** - * - * *
        * Raw binary values of each PCRs being quoted.
        * 
@@ -926,19 +845,20 @@ public int getPcrValuesCount() { * map<int32, bytes> pcr_values = 2; */ @java.lang.Override - public boolean containsPcrValues(int key) { + public boolean containsPcrValues( + int key) { return internalGetPcrValues().getMap().containsKey(key); } - /** Use {@link #getPcrValuesMap()} instead. */ + /** + * Use {@link #getPcrValuesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getPcrValues() { return getPcrValuesMap(); } /** - * - * *
        * Raw binary values of each PCRs being quoted.
        * 
@@ -950,8 +870,6 @@ public java.util.Map getPcrVa return internalGetPcrValues().getMap(); } /** - * - * *
        * Raw binary values of each PCRs being quoted.
        * 
@@ -959,18 +877,17 @@ public java.util.Map getPcrVa * map<int32, bytes> pcr_values = 2; */ @java.lang.Override - public /* nullable */ com.google.protobuf.ByteString getPcrValuesOrDefault( + public /* nullable */ +com.google.protobuf.ByteString getPcrValuesOrDefault( int key, /* nullable */ - com.google.protobuf.ByteString defaultValue) { +com.google.protobuf.ByteString defaultValue) { java.util.Map map = internalGetPcrValues().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
        * Raw binary values of each PCRs being quoted.
        * 
@@ -978,7 +895,8 @@ public java.util.Map getPcrVa * map<int32, bytes> pcr_values = 2; */ @java.lang.Override - public com.google.protobuf.ByteString getPcrValuesOrThrow(int key) { + public com.google.protobuf.ByteString getPcrValuesOrThrow( + int key) { java.util.Map map = internalGetPcrValues().getMap(); @@ -987,27 +905,29 @@ public com.google.protobuf.ByteString getPcrValuesOrThrow(int key) { } return map.get(key); } - public Builder clearPcrValues() { bitField0_ = (bitField0_ & ~0x00000002); - internalGetMutablePcrValues().getMutableMap().clear(); + internalGetMutablePcrValues().getMutableMap() + .clear(); return this; } /** - * - * *
        * Raw binary values of each PCRs being quoted.
        * 
* * map<int32, bytes> pcr_values = 2; */ - public Builder removePcrValues(int key) { + public Builder removePcrValues( + int key) { - internalGetMutablePcrValues().getMutableMap().remove(key); + internalGetMutablePcrValues().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated public java.util.Map getMutablePcrValues() { @@ -1015,26 +935,23 @@ public Builder removePcrValues(int key) { return internalGetMutablePcrValues().getMutableMap(); } /** - * - * *
        * Raw binary values of each PCRs being quoted.
        * 
* * map<int32, bytes> pcr_values = 2; */ - public Builder putPcrValues(int key, com.google.protobuf.ByteString value) { + public Builder putPcrValues( + int key, + com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutablePcrValues().getMutableMap().put(key, value); + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutablePcrValues().getMutableMap() + .put(key, value); bitField0_ |= 0x00000002; return this; } /** - * - * *
        * Raw binary values of each PCRs being quoted.
        * 
@@ -1043,21 +960,19 @@ public Builder putPcrValues(int key, com.google.protobuf.ByteString value) { */ public Builder putAllPcrValues( java.util.Map values) { - internalGetMutablePcrValues().getMutableMap().putAll(values); + internalGetMutablePcrValues().getMutableMap() + .putAll(values); bitField0_ |= 0x00000002; return this; } private com.google.protobuf.ByteString rawQuote_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
        * TPM2 quote, encoded as a TPMS_ATTEST
        * 
* * bytes raw_quote = 3; - * * @return The rawQuote. */ @java.lang.Override @@ -1065,35 +980,27 @@ public com.google.protobuf.ByteString getRawQuote() { return rawQuote_; } /** - * - * *
        * TPM2 quote, encoded as a TPMS_ATTEST
        * 
* * bytes raw_quote = 3; - * * @param value The rawQuote to set. * @return This builder for chaining. */ public Builder setRawQuote(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + if (value == null) { throw new NullPointerException(); } rawQuote_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
        * TPM2 quote, encoded as a TPMS_ATTEST
        * 
* * bytes raw_quote = 3; - * * @return This builder for chaining. */ public Builder clearRawQuote() { @@ -1105,14 +1012,11 @@ public Builder clearRawQuote() { private com.google.protobuf.ByteString rawSignature_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
        * TPM2 signature, encoded as a TPMT_SIGNATURE
        * 
* * bytes raw_signature = 4; - * * @return The rawSignature. */ @java.lang.Override @@ -1120,35 +1024,27 @@ public com.google.protobuf.ByteString getRawSignature() { return rawSignature_; } /** - * - * *
        * TPM2 signature, encoded as a TPMT_SIGNATURE
        * 
* * bytes raw_signature = 4; - * * @param value The rawSignature to set. * @return This builder for chaining. */ public Builder setRawSignature(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + if (value == null) { throw new NullPointerException(); } rawSignature_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
        * TPM2 signature, encoded as a TPMT_SIGNATURE
        * 
* * bytes raw_signature = 4; - * * @return This builder for chaining. */ public Builder clearRawSignature() { @@ -1157,7 +1053,6 @@ public Builder clearRawSignature() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1170,44 +1065,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.confidentialcomputing.v1.TpmAttestation.Quote) } // @@protoc_insertion_point(class_scope:google.cloud.confidentialcomputing.v1.TpmAttestation.Quote) - private static final com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote - DEFAULT_INSTANCE; - + private static final com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote(); } - public static com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote - getDefaultInstance() { + public static com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Quote parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Quote parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1219,19 +1111,16 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote - getDefaultInstanceForType() { + public com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int QUOTES_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List quotes_; /** - * - * *
    * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
    * 
@@ -1239,13 +1128,10 @@ public com.google.protobuf.Parser getParserForType() { * repeated .google.cloud.confidentialcomputing.v1.TpmAttestation.Quote quotes = 1; */ @java.lang.Override - public java.util.List - getQuotesList() { + public java.util.List getQuotesList() { return quotes_; } /** - * - * *
    * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
    * 
@@ -1253,14 +1139,11 @@ public com.google.protobuf.Parser getParserForType() { * repeated .google.cloud.confidentialcomputing.v1.TpmAttestation.Quote quotes = 1; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.confidentialcomputing.v1.TpmAttestation.QuoteOrBuilder> + public java.util.List getQuotesOrBuilderList() { return quotes_; } /** - * - * *
    * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
    * 
@@ -1272,8 +1155,6 @@ public int getQuotesCount() { return quotes_.size(); } /** - * - * *
    * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
    * 
@@ -1285,8 +1166,6 @@ public com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote getQuotes( return quotes_.get(index); } /** - * - * *
    * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
    * 
@@ -1302,8 +1181,6 @@ public com.google.cloud.confidentialcomputing.v1.TpmAttestation.QuoteOrBuilder g public static final int TCG_EVENT_LOG_FIELD_NUMBER = 2; private com.google.protobuf.ByteString tcgEventLog_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
    * The binary TCG Event Log containing events measured into the TPM by the
    * platform firmware and operating system. Formatted as described in the
@@ -1311,7 +1188,6 @@ public com.google.cloud.confidentialcomputing.v1.TpmAttestation.QuoteOrBuilder g
    * 
* * bytes tcg_event_log = 2; - * * @return The tcgEventLog. */ @java.lang.Override @@ -1322,8 +1198,6 @@ public com.google.protobuf.ByteString getTcgEventLog() { public static final int CANONICAL_EVENT_LOG_FIELD_NUMBER = 3; private com.google.protobuf.ByteString canonicalEventLog_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
    * An Event Log containing additional events measured into the TPM that are
    * not already present in the tcg_event_log. Formatted as described in the
@@ -1331,7 +1205,6 @@ public com.google.protobuf.ByteString getTcgEventLog() {
    * 
* * bytes canonical_event_log = 3; - * * @return The canonicalEventLog. */ @java.lang.Override @@ -1342,15 +1215,12 @@ public com.google.protobuf.ByteString getCanonicalEventLog() { public static final int AK_CERT_FIELD_NUMBER = 4; private com.google.protobuf.ByteString akCert_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
    * DER-encoded X.509 certificate of the Attestation Key (otherwise known as
    * an AK or a TPM restricted signing key) used to generate the quotes.
    * 
* * bytes ak_cert = 4; - * * @return The akCert. */ @java.lang.Override @@ -1359,50 +1229,41 @@ public com.google.protobuf.ByteString getAkCert() { } public static final int CERT_CHAIN_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private java.util.List certChain_; /** - * - * *
    * List of DER-encoded X.509 certificates which, together with the ak_cert,
    * chain back to a trusted Root Certificate.
    * 
* * repeated bytes cert_chain = 5; - * * @return A list containing the certChain. */ @java.lang.Override - public java.util.List getCertChainList() { + public java.util.List + getCertChainList() { return certChain_; } /** - * - * *
    * List of DER-encoded X.509 certificates which, together with the ak_cert,
    * chain back to a trusted Root Certificate.
    * 
* * repeated bytes cert_chain = 5; - * * @return The count of certChain. */ public int getCertChainCount() { return certChain_.size(); } /** - * - * *
    * List of DER-encoded X.509 certificates which, together with the ak_cert,
    * chain back to a trusted Root Certificate.
    * 
* * repeated bytes cert_chain = 5; - * * @param index The index of the element to return. * @return The certChain at the given index. */ @@ -1411,7 +1272,6 @@ public com.google.protobuf.ByteString getCertChain(int index) { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1423,7 +1283,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 < quotes_.size(); i++) { output.writeMessage(1, quotes_.get(i)); } @@ -1449,21 +1310,26 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < quotes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, quotes_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, quotes_.get(i)); } if (!tcgEventLog_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, tcgEventLog_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, tcgEventLog_); } if (!canonicalEventLog_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(3, canonicalEventLog_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(3, canonicalEventLog_); } if (!akCert_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(4, akCert_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(4, akCert_); } { int dataSize = 0; for (int i = 0; i < certChain_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream.computeBytesSizeNoTag(certChain_.get(i)); + dataSize += com.google.protobuf.CodedOutputStream + .computeBytesSizeNoTag(certChain_.get(i)); } size += dataSize; size += 1 * getCertChainList().size(); @@ -1476,19 +1342,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.cloud.confidentialcomputing.v1.TpmAttestation)) { return super.equals(obj); } - com.google.cloud.confidentialcomputing.v1.TpmAttestation other = - (com.google.cloud.confidentialcomputing.v1.TpmAttestation) obj; - - if (!getQuotesList().equals(other.getQuotesList())) return false; - if (!getTcgEventLog().equals(other.getTcgEventLog())) return false; - if (!getCanonicalEventLog().equals(other.getCanonicalEventLog())) return false; - if (!getAkCert().equals(other.getAkCert())) return false; - if (!getCertChainList().equals(other.getCertChainList())) return false; + com.google.cloud.confidentialcomputing.v1.TpmAttestation other = (com.google.cloud.confidentialcomputing.v1.TpmAttestation) obj; + + if (!getQuotesList() + .equals(other.getQuotesList())) return false; + if (!getTcgEventLog() + .equals(other.getTcgEventLog())) return false; + if (!getCanonicalEventLog() + .equals(other.getCanonicalEventLog())) return false; + if (!getAkCert() + .equals(other.getAkCert())) return false; + if (!getCertChainList() + .equals(other.getCertChainList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1520,104 +1390,98 @@ public int hashCode() { } public static com.google.cloud.confidentialcomputing.v1.TpmAttestation 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.confidentialcomputing.v1.TpmAttestation 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.confidentialcomputing.v1.TpmAttestation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.confidentialcomputing.v1.TpmAttestation 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.confidentialcomputing.v1.TpmAttestation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.confidentialcomputing.v1.TpmAttestation 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.confidentialcomputing.v1.TpmAttestation parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.confidentialcomputing.v1.TpmAttestation parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.confidentialcomputing.v1.TpmAttestation 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.confidentialcomputing.v1.TpmAttestation parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.confidentialcomputing.v1.TpmAttestation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.confidentialcomputing.v1.TpmAttestation 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.confidentialcomputing.v1.TpmAttestation 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.confidentialcomputing.v1.TpmAttestation 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.confidentialcomputing.v1.TpmAttestation prototype) { + public static Builder newBuilder(com.google.cloud.confidentialcomputing.v1.TpmAttestation 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; } /** - * - * *
    * TPM2 data containing everything necessary to validate any platform state
    * measured into the TPM.
@@ -1625,32 +1489,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.confidentialcomputing.v1.TpmAttestation}
    */
-  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.confidentialcomputing.v1.TpmAttestation)
       com.google.cloud.confidentialcomputing.v1.TpmAttestationOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.confidentialcomputing.v1.ServiceProto
-          .internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.confidentialcomputing.v1.ServiceProto
-          .internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_fieldAccessorTable
+      return com.google.cloud.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.confidentialcomputing.v1.TpmAttestation.class,
-              com.google.cloud.confidentialcomputing.v1.TpmAttestation.Builder.class);
+              com.google.cloud.confidentialcomputing.v1.TpmAttestation.class, com.google.cloud.confidentialcomputing.v1.TpmAttestation.Builder.class);
     }
 
     // Construct using com.google.cloud.confidentialcomputing.v1.TpmAttestation.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1670,9 +1535,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.confidentialcomputing.v1.ServiceProto
-          .internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_descriptor;
     }
 
     @java.lang.Override
@@ -1691,18 +1556,14 @@ public com.google.cloud.confidentialcomputing.v1.TpmAttestation build() {
 
     @java.lang.Override
     public com.google.cloud.confidentialcomputing.v1.TpmAttestation buildPartial() {
-      com.google.cloud.confidentialcomputing.v1.TpmAttestation result =
-          new com.google.cloud.confidentialcomputing.v1.TpmAttestation(this);
+      com.google.cloud.confidentialcomputing.v1.TpmAttestation result = new com.google.cloud.confidentialcomputing.v1.TpmAttestation(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(
-        com.google.cloud.confidentialcomputing.v1.TpmAttestation result) {
+    private void buildPartialRepeatedFields(com.google.cloud.confidentialcomputing.v1.TpmAttestation result) {
       if (quotesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
           quotes_ = java.util.Collections.unmodifiableList(quotes_);
@@ -1736,39 +1597,38 @@ private void buildPartial0(com.google.cloud.confidentialcomputing.v1.TpmAttestat
     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.confidentialcomputing.v1.TpmAttestation) {
-        return mergeFrom((com.google.cloud.confidentialcomputing.v1.TpmAttestation) other);
+        return mergeFrom((com.google.cloud.confidentialcomputing.v1.TpmAttestation)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1776,8 +1636,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.confidentialcomputing.v1.TpmAttestation other) {
-      if (other == com.google.cloud.confidentialcomputing.v1.TpmAttestation.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.confidentialcomputing.v1.TpmAttestation.getDefaultInstance()) return this;
       if (quotesBuilder_ == null) {
         if (!other.quotes_.isEmpty()) {
           if (quotes_.isEmpty()) {
@@ -1796,10 +1655,9 @@ public Builder mergeFrom(com.google.cloud.confidentialcomputing.v1.TpmAttestatio
             quotesBuilder_ = null;
             quotes_ = other.quotes_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            quotesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getQuotesFieldBuilder()
-                    : null;
+            quotesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getQuotesFieldBuilder() : null;
           } else {
             quotesBuilder_.addAllMessages(other.quotes_);
           }
@@ -1850,52 +1708,46 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote m =
-                    input.readMessage(
-                        com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote.parser(),
-                        extensionRegistry);
-                if (quotesBuilder_ == null) {
-                  ensureQuotesIsMutable();
-                  quotes_.add(m);
-                } else {
-                  quotesBuilder_.addMessage(m);
-                }
-                break;
-              } // case 10
-            case 18:
-              {
-                tcgEventLog_ = input.readBytes();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                canonicalEventLog_ = input.readBytes();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            case 34:
-              {
-                akCert_ = input.readBytes();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 34
-            case 42:
-              {
-                com.google.protobuf.ByteString v = input.readBytes();
-                ensureCertChainIsMutable();
-                certChain_.add(v);
-                break;
-              } // case 42
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote m =
+                  input.readMessage(
+                      com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote.parser(),
+                      extensionRegistry);
+              if (quotesBuilder_ == null) {
+                ensureQuotesIsMutable();
+                quotes_.add(m);
+              } else {
+                quotesBuilder_.addMessage(m);
+              }
+              break;
+            } // case 10
+            case 18: {
+              tcgEventLog_ = input.readBytes();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              canonicalEventLog_ = input.readBytes();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            case 34: {
+              akCert_ = input.readBytes();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 34
+            case 42: {
+              com.google.protobuf.ByteString v = input.readBytes();
+              ensureCertChainIsMutable();
+              certChain_.add(v);
+              break;
+            } // case 42
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1905,38 +1757,28 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.util.List quotes_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureQuotesIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        quotes_ =
-            new java.util.ArrayList(
-                quotes_);
+        quotes_ = new java.util.ArrayList(quotes_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote,
-            com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote.Builder,
-            com.google.cloud.confidentialcomputing.v1.TpmAttestation.QuoteOrBuilder>
-        quotesBuilder_;
+        com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote, com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote.Builder, com.google.cloud.confidentialcomputing.v1.TpmAttestation.QuoteOrBuilder> quotesBuilder_;
 
     /**
-     *
-     *
      * 
      * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
      * 
* * repeated .google.cloud.confidentialcomputing.v1.TpmAttestation.Quote quotes = 1; */ - public java.util.List - getQuotesList() { + public java.util.List getQuotesList() { if (quotesBuilder_ == null) { return java.util.Collections.unmodifiableList(quotes_); } else { @@ -1944,8 +1786,6 @@ private void ensureQuotesIsMutable() { } } /** - * - * *
      * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
      * 
@@ -1960,8 +1800,6 @@ public int getQuotesCount() { } } /** - * - * *
      * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
      * 
@@ -1976,8 +1814,6 @@ public com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote getQuotes( } } /** - * - * *
      * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
      * 
@@ -1999,8 +1835,6 @@ public Builder setQuotes( return this; } /** - * - * *
      * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
      * 
@@ -2008,8 +1842,7 @@ public Builder setQuotes( * repeated .google.cloud.confidentialcomputing.v1.TpmAttestation.Quote quotes = 1; */ public Builder setQuotes( - int index, - com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote.Builder builderForValue) { + int index, com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote.Builder builderForValue) { if (quotesBuilder_ == null) { ensureQuotesIsMutable(); quotes_.set(index, builderForValue.build()); @@ -2020,8 +1853,6 @@ public Builder setQuotes( return this; } /** - * - * *
      * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
      * 
@@ -2042,8 +1873,6 @@ public Builder addQuotes(com.google.cloud.confidentialcomputing.v1.TpmAttestatio return this; } /** - * - * *
      * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
      * 
@@ -2065,8 +1894,6 @@ public Builder addQuotes( return this; } /** - * - * *
      * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
      * 
@@ -2085,8 +1912,6 @@ public Builder addQuotes( return this; } /** - * - * *
      * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
      * 
@@ -2094,8 +1919,7 @@ public Builder addQuotes( * repeated .google.cloud.confidentialcomputing.v1.TpmAttestation.Quote quotes = 1; */ public Builder addQuotes( - int index, - com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote.Builder builderForValue) { + int index, com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote.Builder builderForValue) { if (quotesBuilder_ == null) { ensureQuotesIsMutable(); quotes_.add(index, builderForValue.build()); @@ -2106,8 +1930,6 @@ public Builder addQuotes( return this; } /** - * - * *
      * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
      * 
@@ -2115,11 +1937,11 @@ public Builder addQuotes( * repeated .google.cloud.confidentialcomputing.v1.TpmAttestation.Quote quotes = 1; */ public Builder addAllQuotes( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (quotesBuilder_ == null) { ensureQuotesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, quotes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, quotes_); onChanged(); } else { quotesBuilder_.addAllMessages(values); @@ -2127,8 +1949,6 @@ public Builder addAllQuotes( return this; } /** - * - * *
      * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
      * 
@@ -2146,8 +1966,6 @@ public Builder clearQuotes() { return this; } /** - * - * *
      * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
      * 
@@ -2165,8 +1983,6 @@ public Builder removeQuotes(int index) { return this; } /** - * - * *
      * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
      * 
@@ -2178,34 +1994,28 @@ public com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote.Builder ge return getQuotesFieldBuilder().getBuilder(index); } /** - * - * *
      * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
      * 
* * repeated .google.cloud.confidentialcomputing.v1.TpmAttestation.Quote quotes = 1; */ - public com.google.cloud.confidentialcomputing.v1.TpmAttestation.QuoteOrBuilder - getQuotesOrBuilder(int index) { + public com.google.cloud.confidentialcomputing.v1.TpmAttestation.QuoteOrBuilder getQuotesOrBuilder( + int index) { if (quotesBuilder_ == null) { - return quotes_.get(index); - } else { + return quotes_.get(index); } else { return quotesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
      * 
* * repeated .google.cloud.confidentialcomputing.v1.TpmAttestation.Quote quotes = 1; */ - public java.util.List< - ? extends com.google.cloud.confidentialcomputing.v1.TpmAttestation.QuoteOrBuilder> - getQuotesOrBuilderList() { + public java.util.List + getQuotesOrBuilderList() { if (quotesBuilder_ != null) { return quotesBuilder_.getMessageOrBuilderList(); } else { @@ -2213,23 +2023,17 @@ public com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote.Builder ge } } /** - * - * *
      * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
      * 
* * repeated .google.cloud.confidentialcomputing.v1.TpmAttestation.Quote quotes = 1; */ - public com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote.Builder - addQuotesBuilder() { - return getQuotesFieldBuilder() - .addBuilder( - com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote.getDefaultInstance()); + public com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote.Builder addQuotesBuilder() { + return getQuotesFieldBuilder().addBuilder( + com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote.getDefaultInstance()); } /** - * - * *
      * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
      * 
@@ -2238,37 +2042,30 @@ public com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote.Builder ge */ public com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote.Builder addQuotesBuilder( int index) { - return getQuotesFieldBuilder() - .addBuilder( - index, - com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote.getDefaultInstance()); + return getQuotesFieldBuilder().addBuilder( + index, com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote.getDefaultInstance()); } /** - * - * *
      * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
      * 
* * repeated .google.cloud.confidentialcomputing.v1.TpmAttestation.Quote quotes = 1; */ - public java.util.List - getQuotesBuilderList() { + public java.util.List + getQuotesBuilderList() { return getQuotesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote, - com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote.Builder, - com.google.cloud.confidentialcomputing.v1.TpmAttestation.QuoteOrBuilder> + com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote, com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote.Builder, com.google.cloud.confidentialcomputing.v1.TpmAttestation.QuoteOrBuilder> getQuotesFieldBuilder() { if (quotesBuilder_ == null) { - quotesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote, - com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote.Builder, - com.google.cloud.confidentialcomputing.v1.TpmAttestation.QuoteOrBuilder>( - quotes_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + quotesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote, com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote.Builder, com.google.cloud.confidentialcomputing.v1.TpmAttestation.QuoteOrBuilder>( + quotes_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); quotes_ = null; } return quotesBuilder_; @@ -2276,8 +2073,6 @@ public com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote.Builder ad private com.google.protobuf.ByteString tcgEventLog_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
      * The binary TCG Event Log containing events measured into the TPM by the
      * platform firmware and operating system. Formatted as described in the
@@ -2285,7 +2080,6 @@ public com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote.Builder ad
      * 
* * bytes tcg_event_log = 2; - * * @return The tcgEventLog. */ @java.lang.Override @@ -2293,8 +2087,6 @@ public com.google.protobuf.ByteString getTcgEventLog() { return tcgEventLog_; } /** - * - * *
      * The binary TCG Event Log containing events measured into the TPM by the
      * platform firmware and operating system. Formatted as described in the
@@ -2302,22 +2094,17 @@ public com.google.protobuf.ByteString getTcgEventLog() {
      * 
* * bytes tcg_event_log = 2; - * * @param value The tcgEventLog to set. * @return This builder for chaining. */ public Builder setTcgEventLog(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + if (value == null) { throw new NullPointerException(); } tcgEventLog_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The binary TCG Event Log containing events measured into the TPM by the
      * platform firmware and operating system. Formatted as described in the
@@ -2325,7 +2112,6 @@ public Builder setTcgEventLog(com.google.protobuf.ByteString value) {
      * 
* * bytes tcg_event_log = 2; - * * @return This builder for chaining. */ public Builder clearTcgEventLog() { @@ -2335,11 +2121,8 @@ public Builder clearTcgEventLog() { return this; } - private com.google.protobuf.ByteString canonicalEventLog_ = - com.google.protobuf.ByteString.EMPTY; + private com.google.protobuf.ByteString canonicalEventLog_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
      * An Event Log containing additional events measured into the TPM that are
      * not already present in the tcg_event_log. Formatted as described in the
@@ -2347,7 +2130,6 @@ public Builder clearTcgEventLog() {
      * 
* * bytes canonical_event_log = 3; - * * @return The canonicalEventLog. */ @java.lang.Override @@ -2355,8 +2137,6 @@ public com.google.protobuf.ByteString getCanonicalEventLog() { return canonicalEventLog_; } /** - * - * *
      * An Event Log containing additional events measured into the TPM that are
      * not already present in the tcg_event_log. Formatted as described in the
@@ -2364,22 +2144,17 @@ public com.google.protobuf.ByteString getCanonicalEventLog() {
      * 
* * bytes canonical_event_log = 3; - * * @param value The canonicalEventLog to set. * @return This builder for chaining. */ public Builder setCanonicalEventLog(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + if (value == null) { throw new NullPointerException(); } canonicalEventLog_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * An Event Log containing additional events measured into the TPM that are
      * not already present in the tcg_event_log. Formatted as described in the
@@ -2387,7 +2162,6 @@ public Builder setCanonicalEventLog(com.google.protobuf.ByteString value) {
      * 
* * bytes canonical_event_log = 3; - * * @return This builder for chaining. */ public Builder clearCanonicalEventLog() { @@ -2399,15 +2173,12 @@ public Builder clearCanonicalEventLog() { private com.google.protobuf.ByteString akCert_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
      * DER-encoded X.509 certificate of the Attestation Key (otherwise known as
      * an AK or a TPM restricted signing key) used to generate the quotes.
      * 
* * bytes ak_cert = 4; - * * @return The akCert. */ @java.lang.Override @@ -2415,37 +2186,29 @@ public com.google.protobuf.ByteString getAkCert() { return akCert_; } /** - * - * *
      * DER-encoded X.509 certificate of the Attestation Key (otherwise known as
      * an AK or a TPM restricted signing key) used to generate the quotes.
      * 
* * bytes ak_cert = 4; - * * @param value The akCert to set. * @return This builder for chaining. */ public Builder setAkCert(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + if (value == null) { throw new NullPointerException(); } akCert_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * DER-encoded X.509 certificate of the Attestation Key (otherwise known as
      * an AK or a TPM restricted signing key) used to generate the quotes.
      * 
* * bytes ak_cert = 4; - * * @return This builder for chaining. */ public Builder clearAkCert() { @@ -2455,9 +2218,7 @@ public Builder clearAkCert() { return this; } - private java.util.List certChain_ = - java.util.Collections.emptyList(); - + private java.util.List certChain_ = java.util.Collections.emptyList(); private void ensureCertChainIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { certChain_ = new java.util.ArrayList(certChain_); @@ -2465,47 +2226,38 @@ private void ensureCertChainIsMutable() { } } /** - * - * *
      * List of DER-encoded X.509 certificates which, together with the ak_cert,
      * chain back to a trusted Root Certificate.
      * 
* * repeated bytes cert_chain = 5; - * * @return A list containing the certChain. */ - public java.util.List getCertChainList() { - return ((bitField0_ & 0x00000010) != 0) - ? java.util.Collections.unmodifiableList(certChain_) - : certChain_; + public java.util.List + getCertChainList() { + return ((bitField0_ & 0x00000010) != 0) ? + java.util.Collections.unmodifiableList(certChain_) : certChain_; } /** - * - * *
      * List of DER-encoded X.509 certificates which, together with the ak_cert,
      * chain back to a trusted Root Certificate.
      * 
* * repeated bytes cert_chain = 5; - * * @return The count of certChain. */ public int getCertChainCount() { return certChain_.size(); } /** - * - * *
      * List of DER-encoded X.509 certificates which, together with the ak_cert,
      * chain back to a trusted Root Certificate.
      * 
* * repeated bytes cert_chain = 5; - * * @param index The index of the element to return. * @return The certChain at the given index. */ @@ -2513,80 +2265,66 @@ public com.google.protobuf.ByteString getCertChain(int index) { return certChain_.get(index); } /** - * - * *
      * List of DER-encoded X.509 certificates which, together with the ak_cert,
      * chain back to a trusted Root Certificate.
      * 
* * repeated bytes cert_chain = 5; - * * @param index The index to set the value at. * @param value The certChain to set. * @return This builder for chaining. */ - public Builder setCertChain(int index, com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCertChain( + int index, com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } ensureCertChainIsMutable(); certChain_.set(index, value); onChanged(); return this; } /** - * - * *
      * List of DER-encoded X.509 certificates which, together with the ak_cert,
      * chain back to a trusted Root Certificate.
      * 
* * repeated bytes cert_chain = 5; - * * @param value The certChain to add. * @return This builder for chaining. */ public Builder addCertChain(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + if (value == null) { throw new NullPointerException(); } ensureCertChainIsMutable(); certChain_.add(value); onChanged(); return this; } /** - * - * *
      * List of DER-encoded X.509 certificates which, together with the ak_cert,
      * chain back to a trusted Root Certificate.
      * 
* * repeated bytes cert_chain = 5; - * * @param values The certChain to add. * @return This builder for chaining. */ public Builder addAllCertChain( java.lang.Iterable values) { ensureCertChainIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, certChain_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, certChain_); onChanged(); return this; } /** - * - * *
      * List of DER-encoded X.509 certificates which, together with the ak_cert,
      * chain back to a trusted Root Certificate.
      * 
* * repeated bytes cert_chain = 5; - * * @return This builder for chaining. */ public Builder clearCertChain() { @@ -2595,9 +2333,9 @@ public Builder clearCertChain() { 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); } @@ -2607,12 +2345,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.confidentialcomputing.v1.TpmAttestation) } // @@protoc_insertion_point(class_scope:google.cloud.confidentialcomputing.v1.TpmAttestation) private static final com.google.cloud.confidentialcomputing.v1.TpmAttestation DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.confidentialcomputing.v1.TpmAttestation(); } @@ -2621,27 +2359,27 @@ public static com.google.cloud.confidentialcomputing.v1.TpmAttestation getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TpmAttestation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TpmAttestation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2656,4 +2394,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.confidentialcomputing.v1.TpmAttestation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/TpmAttestationOrBuilder.java b/owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/TpmAttestationOrBuilder.java similarity index 81% rename from java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/TpmAttestationOrBuilder.java rename to owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/TpmAttestationOrBuilder.java index 4662a6310813..30fe3178f0b7 100644 --- a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/TpmAttestationOrBuilder.java +++ b/owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/TpmAttestationOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2023 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/confidentialcomputing/v1/service.proto package com.google.cloud.confidentialcomputing.v1; -public interface TpmAttestationOrBuilder - extends +public interface TpmAttestationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.confidentialcomputing.v1.TpmAttestation) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
    * 
* * repeated .google.cloud.confidentialcomputing.v1.TpmAttestation.Quote quotes = 1; */ - java.util.List getQuotesList(); + java.util.List + getQuotesList(); /** - * - * *
    * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
    * 
@@ -44,8 +25,6 @@ public interface TpmAttestationOrBuilder */ com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote getQuotes(int index); /** - * - * *
    * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
    * 
@@ -54,19 +33,15 @@ public interface TpmAttestationOrBuilder */ int getQuotesCount(); /** - * - * *
    * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
    * 
* * repeated .google.cloud.confidentialcomputing.v1.TpmAttestation.Quote quotes = 1; */ - java.util.List + java.util.List getQuotesOrBuilderList(); /** - * - * *
    * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
    * 
@@ -77,8 +52,6 @@ com.google.cloud.confidentialcomputing.v1.TpmAttestation.QuoteOrBuilder getQuote int index); /** - * - * *
    * The binary TCG Event Log containing events measured into the TPM by the
    * platform firmware and operating system. Formatted as described in the
@@ -86,14 +59,11 @@ com.google.cloud.confidentialcomputing.v1.TpmAttestation.QuoteOrBuilder getQuote
    * 
* * bytes tcg_event_log = 2; - * * @return The tcgEventLog. */ com.google.protobuf.ByteString getTcgEventLog(); /** - * - * *
    * An Event Log containing additional events measured into the TPM that are
    * not already present in the tcg_event_log. Formatted as described in the
@@ -101,61 +71,48 @@ com.google.cloud.confidentialcomputing.v1.TpmAttestation.QuoteOrBuilder getQuote
    * 
* * bytes canonical_event_log = 3; - * * @return The canonicalEventLog. */ com.google.protobuf.ByteString getCanonicalEventLog(); /** - * - * *
    * DER-encoded X.509 certificate of the Attestation Key (otherwise known as
    * an AK or a TPM restricted signing key) used to generate the quotes.
    * 
* * bytes ak_cert = 4; - * * @return The akCert. */ com.google.protobuf.ByteString getAkCert(); /** - * - * *
    * List of DER-encoded X.509 certificates which, together with the ak_cert,
    * chain back to a trusted Root Certificate.
    * 
* * repeated bytes cert_chain = 5; - * * @return A list containing the certChain. */ java.util.List getCertChainList(); /** - * - * *
    * List of DER-encoded X.509 certificates which, together with the ak_cert,
    * chain back to a trusted Root Certificate.
    * 
* * repeated bytes cert_chain = 5; - * * @return The count of certChain. */ int getCertChainCount(); /** - * - * *
    * List of DER-encoded X.509 certificates which, together with the ak_cert,
    * chain back to a trusted Root Certificate.
    * 
* * repeated bytes cert_chain = 5; - * * @param index The index of the element to return. * @return The certChain at the given index. */ diff --git a/owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyAttestationRequest.java b/owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyAttestationRequest.java new file mode 100644 index 000000000000..ae984170a5ac --- /dev/null +++ b/owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyAttestationRequest.java @@ -0,0 +1,1545 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/confidentialcomputing/v1/service.proto + +package com.google.cloud.confidentialcomputing.v1; + +/** + *
+ * A request for an OIDC token, providing all the necessary information needed
+ * for this service to verify the plaform state of the requestor.
+ * 
+ * + * Protobuf type {@code google.cloud.confidentialcomputing.v1.VerifyAttestationRequest} + */ +public final class VerifyAttestationRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.confidentialcomputing.v1.VerifyAttestationRequest) + VerifyAttestationRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use VerifyAttestationRequest.newBuilder() to construct. + private VerifyAttestationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private VerifyAttestationRequest() { + challenge_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new VerifyAttestationRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_VerifyAttestationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_VerifyAttestationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest.class, com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest.Builder.class); + } + + public static final int CHALLENGE_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object challenge_ = ""; + /** + *
+   * Required. The name of the Challenge whose nonce was used to generate the
+   * attestation, in the format `projects/*/locations/*/challenges/*`. The
+   * provided Challenge will be consumed, and cannot be used again.
+   * 
+ * + * string challenge = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The challenge. + */ + @java.lang.Override + public java.lang.String getChallenge() { + java.lang.Object ref = challenge_; + 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(); + challenge_ = s; + return s; + } + } + /** + *
+   * Required. The name of the Challenge whose nonce was used to generate the
+   * attestation, in the format `projects/*/locations/*/challenges/*`. The
+   * provided Challenge will be consumed, and cannot be used again.
+   * 
+ * + * string challenge = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for challenge. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getChallengeBytes() { + java.lang.Object ref = challenge_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + challenge_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GCP_CREDENTIALS_FIELD_NUMBER = 2; + private com.google.cloud.confidentialcomputing.v1.GcpCredentials gcpCredentials_; + /** + *
+   * Optional. Credentials used to populate the "emails" claim in the
+   * claims_token.
+   * 
+ * + * .google.cloud.confidentialcomputing.v1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return Whether the gcpCredentials field is set. + */ + @java.lang.Override + public boolean hasGcpCredentials() { + return gcpCredentials_ != null; + } + /** + *
+   * Optional. Credentials used to populate the "emails" claim in the
+   * claims_token.
+   * 
+ * + * .google.cloud.confidentialcomputing.v1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return The gcpCredentials. + */ + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.GcpCredentials getGcpCredentials() { + return gcpCredentials_ == null ? com.google.cloud.confidentialcomputing.v1.GcpCredentials.getDefaultInstance() : gcpCredentials_; + } + /** + *
+   * Optional. Credentials used to populate the "emails" claim in the
+   * claims_token.
+   * 
+ * + * .google.cloud.confidentialcomputing.v1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.GcpCredentialsOrBuilder getGcpCredentialsOrBuilder() { + return gcpCredentials_ == null ? com.google.cloud.confidentialcomputing.v1.GcpCredentials.getDefaultInstance() : gcpCredentials_; + } + + public static final int TPM_ATTESTATION_FIELD_NUMBER = 3; + private com.google.cloud.confidentialcomputing.v1.TpmAttestation tpmAttestation_; + /** + *
+   * Required. The TPM-specific data provided by the attesting platform, used to
+   * populate any of the claims regarding platform state.
+   * 
+ * + * .google.cloud.confidentialcomputing.v1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the tpmAttestation field is set. + */ + @java.lang.Override + public boolean hasTpmAttestation() { + return tpmAttestation_ != null; + } + /** + *
+   * Required. The TPM-specific data provided by the attesting platform, used to
+   * populate any of the claims regarding platform state.
+   * 
+ * + * .google.cloud.confidentialcomputing.v1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return The tpmAttestation. + */ + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.TpmAttestation getTpmAttestation() { + return tpmAttestation_ == null ? com.google.cloud.confidentialcomputing.v1.TpmAttestation.getDefaultInstance() : tpmAttestation_; + } + /** + *
+   * Required. The TPM-specific data provided by the attesting platform, used to
+   * populate any of the claims regarding platform state.
+   * 
+ * + * .google.cloud.confidentialcomputing.v1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.TpmAttestationOrBuilder getTpmAttestationOrBuilder() { + return tpmAttestation_ == null ? com.google.cloud.confidentialcomputing.v1.TpmAttestation.getDefaultInstance() : tpmAttestation_; + } + + public static final int CONFIDENTIAL_SPACE_INFO_FIELD_NUMBER = 4; + private com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo confidentialSpaceInfo_; + /** + *
+   * Optional. Optional information related to the Confidential Space TEE.
+   * 
+ * + * .google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo confidential_space_info = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return Whether the confidentialSpaceInfo field is set. + */ + @java.lang.Override + public boolean hasConfidentialSpaceInfo() { + return confidentialSpaceInfo_ != null; + } + /** + *
+   * Optional. Optional information related to the Confidential Space TEE.
+   * 
+ * + * .google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo confidential_space_info = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return The confidentialSpaceInfo. + */ + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo getConfidentialSpaceInfo() { + return confidentialSpaceInfo_ == null ? com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo.getDefaultInstance() : confidentialSpaceInfo_; + } + /** + *
+   * Optional. Optional information related to the Confidential Space TEE.
+   * 
+ * + * .google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo confidential_space_info = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfoOrBuilder getConfidentialSpaceInfoOrBuilder() { + return confidentialSpaceInfo_ == null ? com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo.getDefaultInstance() : confidentialSpaceInfo_; + } + + public static final int TOKEN_OPTIONS_FIELD_NUMBER = 5; + private com.google.cloud.confidentialcomputing.v1.TokenOptions tokenOptions_; + /** + *
+   * Optional. A collection of optional, workload-specified claims that modify
+   * the token output.
+   * 
+ * + * .google.cloud.confidentialcomputing.v1.TokenOptions token_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return Whether the tokenOptions field is set. + */ + @java.lang.Override + public boolean hasTokenOptions() { + return tokenOptions_ != null; + } + /** + *
+   * Optional. A collection of optional, workload-specified claims that modify
+   * the token output.
+   * 
+ * + * .google.cloud.confidentialcomputing.v1.TokenOptions token_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return The tokenOptions. + */ + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.TokenOptions getTokenOptions() { + return tokenOptions_ == null ? com.google.cloud.confidentialcomputing.v1.TokenOptions.getDefaultInstance() : tokenOptions_; + } + /** + *
+   * Optional. A collection of optional, workload-specified claims that modify
+   * the token output.
+   * 
+ * + * .google.cloud.confidentialcomputing.v1.TokenOptions token_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.TokenOptionsOrBuilder getTokenOptionsOrBuilder() { + return tokenOptions_ == null ? com.google.cloud.confidentialcomputing.v1.TokenOptions.getDefaultInstance() : tokenOptions_; + } + + 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(challenge_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, challenge_); + } + if (gcpCredentials_ != null) { + output.writeMessage(2, getGcpCredentials()); + } + if (tpmAttestation_ != null) { + output.writeMessage(3, getTpmAttestation()); + } + if (confidentialSpaceInfo_ != null) { + output.writeMessage(4, getConfidentialSpaceInfo()); + } + if (tokenOptions_ != null) { + output.writeMessage(5, getTokenOptions()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(challenge_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, challenge_); + } + if (gcpCredentials_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getGcpCredentials()); + } + if (tpmAttestation_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getTpmAttestation()); + } + if (confidentialSpaceInfo_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getConfidentialSpaceInfo()); + } + if (tokenOptions_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getTokenOptions()); + } + size += getUnknownFields().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.confidentialcomputing.v1.VerifyAttestationRequest)) { + return super.equals(obj); + } + com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest other = (com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest) obj; + + if (!getChallenge() + .equals(other.getChallenge())) return false; + if (hasGcpCredentials() != other.hasGcpCredentials()) return false; + if (hasGcpCredentials()) { + if (!getGcpCredentials() + .equals(other.getGcpCredentials())) return false; + } + if (hasTpmAttestation() != other.hasTpmAttestation()) return false; + if (hasTpmAttestation()) { + if (!getTpmAttestation() + .equals(other.getTpmAttestation())) return false; + } + if (hasConfidentialSpaceInfo() != other.hasConfidentialSpaceInfo()) return false; + if (hasConfidentialSpaceInfo()) { + if (!getConfidentialSpaceInfo() + .equals(other.getConfidentialSpaceInfo())) return false; + } + if (hasTokenOptions() != other.hasTokenOptions()) return false; + if (hasTokenOptions()) { + if (!getTokenOptions() + .equals(other.getTokenOptions())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + CHALLENGE_FIELD_NUMBER; + hash = (53 * hash) + getChallenge().hashCode(); + if (hasGcpCredentials()) { + hash = (37 * hash) + GCP_CREDENTIALS_FIELD_NUMBER; + hash = (53 * hash) + getGcpCredentials().hashCode(); + } + if (hasTpmAttestation()) { + hash = (37 * hash) + TPM_ATTESTATION_FIELD_NUMBER; + hash = (53 * hash) + getTpmAttestation().hashCode(); + } + if (hasConfidentialSpaceInfo()) { + hash = (37 * hash) + CONFIDENTIAL_SPACE_INFO_FIELD_NUMBER; + hash = (53 * hash) + getConfidentialSpaceInfo().hashCode(); + } + if (hasTokenOptions()) { + hash = (37 * hash) + TOKEN_OPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getTokenOptions().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest 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.confidentialcomputing.v1.VerifyAttestationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest 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.confidentialcomputing.v1.VerifyAttestationRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest 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.confidentialcomputing.v1.VerifyAttestationRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest 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.confidentialcomputing.v1.VerifyAttestationRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest 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.confidentialcomputing.v1.VerifyAttestationRequest 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 request for an OIDC token, providing all the necessary information needed
+   * for this service to verify the plaform state of the requestor.
+   * 
+ * + * Protobuf type {@code google.cloud.confidentialcomputing.v1.VerifyAttestationRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.confidentialcomputing.v1.VerifyAttestationRequest) + com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_VerifyAttestationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_VerifyAttestationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest.class, com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest.Builder.class); + } + + // Construct using com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + challenge_ = ""; + gcpCredentials_ = null; + if (gcpCredentialsBuilder_ != null) { + gcpCredentialsBuilder_.dispose(); + gcpCredentialsBuilder_ = null; + } + tpmAttestation_ = null; + if (tpmAttestationBuilder_ != null) { + tpmAttestationBuilder_.dispose(); + tpmAttestationBuilder_ = null; + } + confidentialSpaceInfo_ = null; + if (confidentialSpaceInfoBuilder_ != null) { + confidentialSpaceInfoBuilder_.dispose(); + confidentialSpaceInfoBuilder_ = null; + } + tokenOptions_ = null; + if (tokenOptionsBuilder_ != null) { + tokenOptionsBuilder_.dispose(); + tokenOptionsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_VerifyAttestationRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest getDefaultInstanceForType() { + return com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest build() { + com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest buildPartial() { + com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest result = new com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.challenge_ = challenge_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.gcpCredentials_ = gcpCredentialsBuilder_ == null + ? gcpCredentials_ + : gcpCredentialsBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.tpmAttestation_ = tpmAttestationBuilder_ == null + ? tpmAttestation_ + : tpmAttestationBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.confidentialSpaceInfo_ = confidentialSpaceInfoBuilder_ == null + ? confidentialSpaceInfo_ + : confidentialSpaceInfoBuilder_.build(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.tokenOptions_ = tokenOptionsBuilder_ == null + ? tokenOptions_ + : tokenOptionsBuilder_.build(); + } + } + + @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.confidentialcomputing.v1.VerifyAttestationRequest) { + return mergeFrom((com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest other) { + if (other == com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest.getDefaultInstance()) return this; + if (!other.getChallenge().isEmpty()) { + challenge_ = other.challenge_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasGcpCredentials()) { + mergeGcpCredentials(other.getGcpCredentials()); + } + if (other.hasTpmAttestation()) { + mergeTpmAttestation(other.getTpmAttestation()); + } + if (other.hasConfidentialSpaceInfo()) { + mergeConfidentialSpaceInfo(other.getConfidentialSpaceInfo()); + } + if (other.hasTokenOptions()) { + mergeTokenOptions(other.getTokenOptions()); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + challenge_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getGcpCredentialsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getTpmAttestationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getConfidentialSpaceInfoFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + input.readMessage( + getTokenOptionsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object challenge_ = ""; + /** + *
+     * Required. The name of the Challenge whose nonce was used to generate the
+     * attestation, in the format `projects/*/locations/*/challenges/*`. The
+     * provided Challenge will be consumed, and cannot be used again.
+     * 
+ * + * string challenge = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The challenge. + */ + public java.lang.String getChallenge() { + java.lang.Object ref = challenge_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + challenge_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. The name of the Challenge whose nonce was used to generate the
+     * attestation, in the format `projects/*/locations/*/challenges/*`. The
+     * provided Challenge will be consumed, and cannot be used again.
+     * 
+ * + * string challenge = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for challenge. + */ + public com.google.protobuf.ByteString + getChallengeBytes() { + java.lang.Object ref = challenge_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + challenge_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. The name of the Challenge whose nonce was used to generate the
+     * attestation, in the format `projects/*/locations/*/challenges/*`. The
+     * provided Challenge will be consumed, and cannot be used again.
+     * 
+ * + * string challenge = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The challenge to set. + * @return This builder for chaining. + */ + public Builder setChallenge( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + challenge_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Required. The name of the Challenge whose nonce was used to generate the
+     * attestation, in the format `projects/*/locations/*/challenges/*`. The
+     * provided Challenge will be consumed, and cannot be used again.
+     * 
+ * + * string challenge = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearChallenge() { + challenge_ = getDefaultInstance().getChallenge(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Required. The name of the Challenge whose nonce was used to generate the
+     * attestation, in the format `projects/*/locations/*/challenges/*`. The
+     * provided Challenge will be consumed, and cannot be used again.
+     * 
+ * + * string challenge = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The bytes for challenge to set. + * @return This builder for chaining. + */ + public Builder setChallengeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + challenge_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.confidentialcomputing.v1.GcpCredentials gcpCredentials_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.confidentialcomputing.v1.GcpCredentials, com.google.cloud.confidentialcomputing.v1.GcpCredentials.Builder, com.google.cloud.confidentialcomputing.v1.GcpCredentialsOrBuilder> gcpCredentialsBuilder_; + /** + *
+     * Optional. Credentials used to populate the "emails" claim in the
+     * claims_token.
+     * 
+ * + * .google.cloud.confidentialcomputing.v1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return Whether the gcpCredentials field is set. + */ + public boolean hasGcpCredentials() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+     * Optional. Credentials used to populate the "emails" claim in the
+     * claims_token.
+     * 
+ * + * .google.cloud.confidentialcomputing.v1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return The gcpCredentials. + */ + public com.google.cloud.confidentialcomputing.v1.GcpCredentials getGcpCredentials() { + if (gcpCredentialsBuilder_ == null) { + return gcpCredentials_ == null ? com.google.cloud.confidentialcomputing.v1.GcpCredentials.getDefaultInstance() : gcpCredentials_; + } else { + return gcpCredentialsBuilder_.getMessage(); + } + } + /** + *
+     * Optional. Credentials used to populate the "emails" claim in the
+     * claims_token.
+     * 
+ * + * .google.cloud.confidentialcomputing.v1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setGcpCredentials(com.google.cloud.confidentialcomputing.v1.GcpCredentials value) { + if (gcpCredentialsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + gcpCredentials_ = value; + } else { + gcpCredentialsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Optional. Credentials used to populate the "emails" claim in the
+     * claims_token.
+     * 
+ * + * .google.cloud.confidentialcomputing.v1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setGcpCredentials( + com.google.cloud.confidentialcomputing.v1.GcpCredentials.Builder builderForValue) { + if (gcpCredentialsBuilder_ == null) { + gcpCredentials_ = builderForValue.build(); + } else { + gcpCredentialsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Optional. Credentials used to populate the "emails" claim in the
+     * claims_token.
+     * 
+ * + * .google.cloud.confidentialcomputing.v1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder mergeGcpCredentials(com.google.cloud.confidentialcomputing.v1.GcpCredentials value) { + if (gcpCredentialsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + gcpCredentials_ != null && + gcpCredentials_ != com.google.cloud.confidentialcomputing.v1.GcpCredentials.getDefaultInstance()) { + getGcpCredentialsBuilder().mergeFrom(value); + } else { + gcpCredentials_ = value; + } + } else { + gcpCredentialsBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Optional. Credentials used to populate the "emails" claim in the
+     * claims_token.
+     * 
+ * + * .google.cloud.confidentialcomputing.v1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder clearGcpCredentials() { + bitField0_ = (bitField0_ & ~0x00000002); + gcpCredentials_ = null; + if (gcpCredentialsBuilder_ != null) { + gcpCredentialsBuilder_.dispose(); + gcpCredentialsBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Optional. Credentials used to populate the "emails" claim in the
+     * claims_token.
+     * 
+ * + * .google.cloud.confidentialcomputing.v1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.cloud.confidentialcomputing.v1.GcpCredentials.Builder getGcpCredentialsBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getGcpCredentialsFieldBuilder().getBuilder(); + } + /** + *
+     * Optional. Credentials used to populate the "emails" claim in the
+     * claims_token.
+     * 
+ * + * .google.cloud.confidentialcomputing.v1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.cloud.confidentialcomputing.v1.GcpCredentialsOrBuilder getGcpCredentialsOrBuilder() { + if (gcpCredentialsBuilder_ != null) { + return gcpCredentialsBuilder_.getMessageOrBuilder(); + } else { + return gcpCredentials_ == null ? + com.google.cloud.confidentialcomputing.v1.GcpCredentials.getDefaultInstance() : gcpCredentials_; + } + } + /** + *
+     * Optional. Credentials used to populate the "emails" claim in the
+     * claims_token.
+     * 
+ * + * .google.cloud.confidentialcomputing.v1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.confidentialcomputing.v1.GcpCredentials, com.google.cloud.confidentialcomputing.v1.GcpCredentials.Builder, com.google.cloud.confidentialcomputing.v1.GcpCredentialsOrBuilder> + getGcpCredentialsFieldBuilder() { + if (gcpCredentialsBuilder_ == null) { + gcpCredentialsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.confidentialcomputing.v1.GcpCredentials, com.google.cloud.confidentialcomputing.v1.GcpCredentials.Builder, com.google.cloud.confidentialcomputing.v1.GcpCredentialsOrBuilder>( + getGcpCredentials(), + getParentForChildren(), + isClean()); + gcpCredentials_ = null; + } + return gcpCredentialsBuilder_; + } + + private com.google.cloud.confidentialcomputing.v1.TpmAttestation tpmAttestation_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.confidentialcomputing.v1.TpmAttestation, com.google.cloud.confidentialcomputing.v1.TpmAttestation.Builder, com.google.cloud.confidentialcomputing.v1.TpmAttestationOrBuilder> tpmAttestationBuilder_; + /** + *
+     * Required. The TPM-specific data provided by the attesting platform, used to
+     * populate any of the claims regarding platform state.
+     * 
+ * + * .google.cloud.confidentialcomputing.v1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the tpmAttestation field is set. + */ + public boolean hasTpmAttestation() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+     * Required. The TPM-specific data provided by the attesting platform, used to
+     * populate any of the claims regarding platform state.
+     * 
+ * + * .google.cloud.confidentialcomputing.v1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return The tpmAttestation. + */ + public com.google.cloud.confidentialcomputing.v1.TpmAttestation getTpmAttestation() { + if (tpmAttestationBuilder_ == null) { + return tpmAttestation_ == null ? com.google.cloud.confidentialcomputing.v1.TpmAttestation.getDefaultInstance() : tpmAttestation_; + } else { + return tpmAttestationBuilder_.getMessage(); + } + } + /** + *
+     * Required. The TPM-specific data provided by the attesting platform, used to
+     * populate any of the claims regarding platform state.
+     * 
+ * + * .google.cloud.confidentialcomputing.v1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setTpmAttestation(com.google.cloud.confidentialcomputing.v1.TpmAttestation value) { + if (tpmAttestationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + tpmAttestation_ = value; + } else { + tpmAttestationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Required. The TPM-specific data provided by the attesting platform, used to
+     * populate any of the claims regarding platform state.
+     * 
+ * + * .google.cloud.confidentialcomputing.v1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setTpmAttestation( + com.google.cloud.confidentialcomputing.v1.TpmAttestation.Builder builderForValue) { + if (tpmAttestationBuilder_ == null) { + tpmAttestation_ = builderForValue.build(); + } else { + tpmAttestationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Required. The TPM-specific data provided by the attesting platform, used to
+     * populate any of the claims regarding platform state.
+     * 
+ * + * .google.cloud.confidentialcomputing.v1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder mergeTpmAttestation(com.google.cloud.confidentialcomputing.v1.TpmAttestation value) { + if (tpmAttestationBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && + tpmAttestation_ != null && + tpmAttestation_ != com.google.cloud.confidentialcomputing.v1.TpmAttestation.getDefaultInstance()) { + getTpmAttestationBuilder().mergeFrom(value); + } else { + tpmAttestation_ = value; + } + } else { + tpmAttestationBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Required. The TPM-specific data provided by the attesting platform, used to
+     * populate any of the claims regarding platform state.
+     * 
+ * + * .google.cloud.confidentialcomputing.v1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearTpmAttestation() { + bitField0_ = (bitField0_ & ~0x00000004); + tpmAttestation_ = null; + if (tpmAttestationBuilder_ != null) { + tpmAttestationBuilder_.dispose(); + tpmAttestationBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Required. The TPM-specific data provided by the attesting platform, used to
+     * populate any of the claims regarding platform state.
+     * 
+ * + * .google.cloud.confidentialcomputing.v1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.cloud.confidentialcomputing.v1.TpmAttestation.Builder getTpmAttestationBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getTpmAttestationFieldBuilder().getBuilder(); + } + /** + *
+     * Required. The TPM-specific data provided by the attesting platform, used to
+     * populate any of the claims regarding platform state.
+     * 
+ * + * .google.cloud.confidentialcomputing.v1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.cloud.confidentialcomputing.v1.TpmAttestationOrBuilder getTpmAttestationOrBuilder() { + if (tpmAttestationBuilder_ != null) { + return tpmAttestationBuilder_.getMessageOrBuilder(); + } else { + return tpmAttestation_ == null ? + com.google.cloud.confidentialcomputing.v1.TpmAttestation.getDefaultInstance() : tpmAttestation_; + } + } + /** + *
+     * Required. The TPM-specific data provided by the attesting platform, used to
+     * populate any of the claims regarding platform state.
+     * 
+ * + * .google.cloud.confidentialcomputing.v1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.confidentialcomputing.v1.TpmAttestation, com.google.cloud.confidentialcomputing.v1.TpmAttestation.Builder, com.google.cloud.confidentialcomputing.v1.TpmAttestationOrBuilder> + getTpmAttestationFieldBuilder() { + if (tpmAttestationBuilder_ == null) { + tpmAttestationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.confidentialcomputing.v1.TpmAttestation, com.google.cloud.confidentialcomputing.v1.TpmAttestation.Builder, com.google.cloud.confidentialcomputing.v1.TpmAttestationOrBuilder>( + getTpmAttestation(), + getParentForChildren(), + isClean()); + tpmAttestation_ = null; + } + return tpmAttestationBuilder_; + } + + private com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo confidentialSpaceInfo_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo, com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo.Builder, com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfoOrBuilder> confidentialSpaceInfoBuilder_; + /** + *
+     * Optional. Optional information related to the Confidential Space TEE.
+     * 
+ * + * .google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo confidential_space_info = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return Whether the confidentialSpaceInfo field is set. + */ + public boolean hasConfidentialSpaceInfo() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + *
+     * Optional. Optional information related to the Confidential Space TEE.
+     * 
+ * + * .google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo confidential_space_info = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return The confidentialSpaceInfo. + */ + public com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo getConfidentialSpaceInfo() { + if (confidentialSpaceInfoBuilder_ == null) { + return confidentialSpaceInfo_ == null ? com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo.getDefaultInstance() : confidentialSpaceInfo_; + } else { + return confidentialSpaceInfoBuilder_.getMessage(); + } + } + /** + *
+     * Optional. Optional information related to the Confidential Space TEE.
+     * 
+ * + * .google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo confidential_space_info = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setConfidentialSpaceInfo(com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo value) { + if (confidentialSpaceInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + confidentialSpaceInfo_ = value; + } else { + confidentialSpaceInfoBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * Optional. Optional information related to the Confidential Space TEE.
+     * 
+ * + * .google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo confidential_space_info = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setConfidentialSpaceInfo( + com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo.Builder builderForValue) { + if (confidentialSpaceInfoBuilder_ == null) { + confidentialSpaceInfo_ = builderForValue.build(); + } else { + confidentialSpaceInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * Optional. Optional information related to the Confidential Space TEE.
+     * 
+ * + * .google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo confidential_space_info = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder mergeConfidentialSpaceInfo(com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo value) { + if (confidentialSpaceInfoBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) && + confidentialSpaceInfo_ != null && + confidentialSpaceInfo_ != com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo.getDefaultInstance()) { + getConfidentialSpaceInfoBuilder().mergeFrom(value); + } else { + confidentialSpaceInfo_ = value; + } + } else { + confidentialSpaceInfoBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * Optional. Optional information related to the Confidential Space TEE.
+     * 
+ * + * .google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo confidential_space_info = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder clearConfidentialSpaceInfo() { + bitField0_ = (bitField0_ & ~0x00000008); + confidentialSpaceInfo_ = null; + if (confidentialSpaceInfoBuilder_ != null) { + confidentialSpaceInfoBuilder_.dispose(); + confidentialSpaceInfoBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Optional. Optional information related to the Confidential Space TEE.
+     * 
+ * + * .google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo confidential_space_info = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo.Builder getConfidentialSpaceInfoBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getConfidentialSpaceInfoFieldBuilder().getBuilder(); + } + /** + *
+     * Optional. Optional information related to the Confidential Space TEE.
+     * 
+ * + * .google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo confidential_space_info = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfoOrBuilder getConfidentialSpaceInfoOrBuilder() { + if (confidentialSpaceInfoBuilder_ != null) { + return confidentialSpaceInfoBuilder_.getMessageOrBuilder(); + } else { + return confidentialSpaceInfo_ == null ? + com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo.getDefaultInstance() : confidentialSpaceInfo_; + } + } + /** + *
+     * Optional. Optional information related to the Confidential Space TEE.
+     * 
+ * + * .google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo confidential_space_info = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo, com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo.Builder, com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfoOrBuilder> + getConfidentialSpaceInfoFieldBuilder() { + if (confidentialSpaceInfoBuilder_ == null) { + confidentialSpaceInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo, com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo.Builder, com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfoOrBuilder>( + getConfidentialSpaceInfo(), + getParentForChildren(), + isClean()); + confidentialSpaceInfo_ = null; + } + return confidentialSpaceInfoBuilder_; + } + + private com.google.cloud.confidentialcomputing.v1.TokenOptions tokenOptions_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.confidentialcomputing.v1.TokenOptions, com.google.cloud.confidentialcomputing.v1.TokenOptions.Builder, com.google.cloud.confidentialcomputing.v1.TokenOptionsOrBuilder> tokenOptionsBuilder_; + /** + *
+     * Optional. A collection of optional, workload-specified claims that modify
+     * the token output.
+     * 
+ * + * .google.cloud.confidentialcomputing.v1.TokenOptions token_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return Whether the tokenOptions field is set. + */ + public boolean hasTokenOptions() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + *
+     * Optional. A collection of optional, workload-specified claims that modify
+     * the token output.
+     * 
+ * + * .google.cloud.confidentialcomputing.v1.TokenOptions token_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return The tokenOptions. + */ + public com.google.cloud.confidentialcomputing.v1.TokenOptions getTokenOptions() { + if (tokenOptionsBuilder_ == null) { + return tokenOptions_ == null ? com.google.cloud.confidentialcomputing.v1.TokenOptions.getDefaultInstance() : tokenOptions_; + } else { + return tokenOptionsBuilder_.getMessage(); + } + } + /** + *
+     * Optional. A collection of optional, workload-specified claims that modify
+     * the token output.
+     * 
+ * + * .google.cloud.confidentialcomputing.v1.TokenOptions token_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setTokenOptions(com.google.cloud.confidentialcomputing.v1.TokenOptions value) { + if (tokenOptionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + tokenOptions_ = value; + } else { + tokenOptionsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * Optional. A collection of optional, workload-specified claims that modify
+     * the token output.
+     * 
+ * + * .google.cloud.confidentialcomputing.v1.TokenOptions token_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setTokenOptions( + com.google.cloud.confidentialcomputing.v1.TokenOptions.Builder builderForValue) { + if (tokenOptionsBuilder_ == null) { + tokenOptions_ = builderForValue.build(); + } else { + tokenOptionsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * Optional. A collection of optional, workload-specified claims that modify
+     * the token output.
+     * 
+ * + * .google.cloud.confidentialcomputing.v1.TokenOptions token_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder mergeTokenOptions(com.google.cloud.confidentialcomputing.v1.TokenOptions value) { + if (tokenOptionsBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) && + tokenOptions_ != null && + tokenOptions_ != com.google.cloud.confidentialcomputing.v1.TokenOptions.getDefaultInstance()) { + getTokenOptionsBuilder().mergeFrom(value); + } else { + tokenOptions_ = value; + } + } else { + tokenOptionsBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * Optional. A collection of optional, workload-specified claims that modify
+     * the token output.
+     * 
+ * + * .google.cloud.confidentialcomputing.v1.TokenOptions token_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder clearTokenOptions() { + bitField0_ = (bitField0_ & ~0x00000010); + tokenOptions_ = null; + if (tokenOptionsBuilder_ != null) { + tokenOptionsBuilder_.dispose(); + tokenOptionsBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Optional. A collection of optional, workload-specified claims that modify
+     * the token output.
+     * 
+ * + * .google.cloud.confidentialcomputing.v1.TokenOptions token_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.cloud.confidentialcomputing.v1.TokenOptions.Builder getTokenOptionsBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getTokenOptionsFieldBuilder().getBuilder(); + } + /** + *
+     * Optional. A collection of optional, workload-specified claims that modify
+     * the token output.
+     * 
+ * + * .google.cloud.confidentialcomputing.v1.TokenOptions token_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.cloud.confidentialcomputing.v1.TokenOptionsOrBuilder getTokenOptionsOrBuilder() { + if (tokenOptionsBuilder_ != null) { + return tokenOptionsBuilder_.getMessageOrBuilder(); + } else { + return tokenOptions_ == null ? + com.google.cloud.confidentialcomputing.v1.TokenOptions.getDefaultInstance() : tokenOptions_; + } + } + /** + *
+     * Optional. A collection of optional, workload-specified claims that modify
+     * the token output.
+     * 
+ * + * .google.cloud.confidentialcomputing.v1.TokenOptions token_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.confidentialcomputing.v1.TokenOptions, com.google.cloud.confidentialcomputing.v1.TokenOptions.Builder, com.google.cloud.confidentialcomputing.v1.TokenOptionsOrBuilder> + getTokenOptionsFieldBuilder() { + if (tokenOptionsBuilder_ == null) { + tokenOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.confidentialcomputing.v1.TokenOptions, com.google.cloud.confidentialcomputing.v1.TokenOptions.Builder, com.google.cloud.confidentialcomputing.v1.TokenOptionsOrBuilder>( + getTokenOptions(), + getParentForChildren(), + isClean()); + tokenOptions_ = null; + } + return tokenOptionsBuilder_; + } + @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.confidentialcomputing.v1.VerifyAttestationRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.confidentialcomputing.v1.VerifyAttestationRequest) + private static final com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest(); + } + + public static com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VerifyAttestationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.confidentialcomputing.v1.VerifyAttestationRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyAttestationRequestOrBuilder.java b/owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyAttestationRequestOrBuilder.java new file mode 100644 index 000000000000..436c6aa74161 --- /dev/null +++ b/owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyAttestationRequestOrBuilder.java @@ -0,0 +1,150 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/confidentialcomputing/v1/service.proto + +package com.google.cloud.confidentialcomputing.v1; + +public interface VerifyAttestationRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.confidentialcomputing.v1.VerifyAttestationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the Challenge whose nonce was used to generate the
+   * attestation, in the format `projects/*/locations/*/challenges/*`. The
+   * provided Challenge will be consumed, and cannot be used again.
+   * 
+ * + * string challenge = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The challenge. + */ + java.lang.String getChallenge(); + /** + *
+   * Required. The name of the Challenge whose nonce was used to generate the
+   * attestation, in the format `projects/*/locations/*/challenges/*`. The
+   * provided Challenge will be consumed, and cannot be used again.
+   * 
+ * + * string challenge = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for challenge. + */ + com.google.protobuf.ByteString + getChallengeBytes(); + + /** + *
+   * Optional. Credentials used to populate the "emails" claim in the
+   * claims_token.
+   * 
+ * + * .google.cloud.confidentialcomputing.v1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return Whether the gcpCredentials field is set. + */ + boolean hasGcpCredentials(); + /** + *
+   * Optional. Credentials used to populate the "emails" claim in the
+   * claims_token.
+   * 
+ * + * .google.cloud.confidentialcomputing.v1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return The gcpCredentials. + */ + com.google.cloud.confidentialcomputing.v1.GcpCredentials getGcpCredentials(); + /** + *
+   * Optional. Credentials used to populate the "emails" claim in the
+   * claims_token.
+   * 
+ * + * .google.cloud.confidentialcomputing.v1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + com.google.cloud.confidentialcomputing.v1.GcpCredentialsOrBuilder getGcpCredentialsOrBuilder(); + + /** + *
+   * Required. The TPM-specific data provided by the attesting platform, used to
+   * populate any of the claims regarding platform state.
+   * 
+ * + * .google.cloud.confidentialcomputing.v1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the tpmAttestation field is set. + */ + boolean hasTpmAttestation(); + /** + *
+   * Required. The TPM-specific data provided by the attesting platform, used to
+   * populate any of the claims regarding platform state.
+   * 
+ * + * .google.cloud.confidentialcomputing.v1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return The tpmAttestation. + */ + com.google.cloud.confidentialcomputing.v1.TpmAttestation getTpmAttestation(); + /** + *
+   * Required. The TPM-specific data provided by the attesting platform, used to
+   * populate any of the claims regarding platform state.
+   * 
+ * + * .google.cloud.confidentialcomputing.v1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.confidentialcomputing.v1.TpmAttestationOrBuilder getTpmAttestationOrBuilder(); + + /** + *
+   * Optional. Optional information related to the Confidential Space TEE.
+   * 
+ * + * .google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo confidential_space_info = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return Whether the confidentialSpaceInfo field is set. + */ + boolean hasConfidentialSpaceInfo(); + /** + *
+   * Optional. Optional information related to the Confidential Space TEE.
+   * 
+ * + * .google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo confidential_space_info = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return The confidentialSpaceInfo. + */ + com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo getConfidentialSpaceInfo(); + /** + *
+   * Optional. Optional information related to the Confidential Space TEE.
+   * 
+ * + * .google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo confidential_space_info = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfoOrBuilder getConfidentialSpaceInfoOrBuilder(); + + /** + *
+   * Optional. A collection of optional, workload-specified claims that modify
+   * the token output.
+   * 
+ * + * .google.cloud.confidentialcomputing.v1.TokenOptions token_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return Whether the tokenOptions field is set. + */ + boolean hasTokenOptions(); + /** + *
+   * Optional. A collection of optional, workload-specified claims that modify
+   * the token output.
+   * 
+ * + * .google.cloud.confidentialcomputing.v1.TokenOptions token_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return The tokenOptions. + */ + com.google.cloud.confidentialcomputing.v1.TokenOptions getTokenOptions(); + /** + *
+   * Optional. A collection of optional, workload-specified claims that modify
+   * the token output.
+   * 
+ * + * .google.cloud.confidentialcomputing.v1.TokenOptions token_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + com.google.cloud.confidentialcomputing.v1.TokenOptionsOrBuilder getTokenOptionsOrBuilder(); +} diff --git a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyAttestationResponse.java b/owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyAttestationResponse.java similarity index 63% rename from java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyAttestationResponse.java rename to owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyAttestationResponse.java index d7df508bd5b8..5c625c9e66c8 100644 --- a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyAttestationResponse.java +++ b/owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyAttestationResponse.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 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/confidentialcomputing/v1/service.proto package com.google.cloud.confidentialcomputing.v1; /** - * - * *
  * A response once an attestation has been successfully verified, containing a
  * signed OIDC token.
@@ -28,54 +11,48 @@
  *
  * Protobuf type {@code google.cloud.confidentialcomputing.v1.VerifyAttestationResponse}
  */
-public final class VerifyAttestationResponse extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class VerifyAttestationResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.confidentialcomputing.v1.VerifyAttestationResponse)
     VerifyAttestationResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use VerifyAttestationResponse.newBuilder() to construct.
   private VerifyAttestationResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private VerifyAttestationResponse() {
     oidcClaimsToken_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new VerifyAttestationResponse();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.confidentialcomputing.v1.ServiceProto
-        .internal_static_google_cloud_confidentialcomputing_v1_VerifyAttestationResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_VerifyAttestationResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.confidentialcomputing.v1.ServiceProto
-        .internal_static_google_cloud_confidentialcomputing_v1_VerifyAttestationResponse_fieldAccessorTable
+    return com.google.cloud.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_VerifyAttestationResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse.class,
-            com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse.Builder.class);
+            com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse.class, com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse.Builder.class);
   }
 
   public static final int OIDC_CLAIMS_TOKEN_FIELD_NUMBER = 2;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object oidcClaimsToken_ = "";
   /**
-   *
-   *
    * 
    * Output only. Same as claims_token, but as a string.
    * 
* * string oidc_claims_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The oidcClaimsToken. */ @java.lang.Override @@ -84,29 +61,29 @@ public java.lang.String getOidcClaimsToken() { 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(); oidcClaimsToken_ = s; return s; } } /** - * - * *
    * Output only. Same as claims_token, but as a string.
    * 
* * string oidc_claims_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for oidcClaimsToken. */ @java.lang.Override - public com.google.protobuf.ByteString getOidcClaimsTokenBytes() { + public com.google.protobuf.ByteString + getOidcClaimsTokenBytes() { java.lang.Object ref = oidcClaimsToken_; 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); oidcClaimsToken_ = b; return b; } else { @@ -115,7 +92,6 @@ public com.google.protobuf.ByteString getOidcClaimsTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -127,7 +103,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(oidcClaimsToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, oidcClaimsToken_); } @@ -151,15 +128,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.confidentialcomputing.v1.VerifyAttestationResponse)) { return super.equals(obj); } - com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse other = - (com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse) obj; + com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse other = (com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse) obj; - if (!getOidcClaimsToken().equals(other.getOidcClaimsToken())) return false; + if (!getOidcClaimsToken() + .equals(other.getOidcClaimsToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -179,105 +156,98 @@ public int hashCode() { } public static com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse 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.confidentialcomputing.v1.VerifyAttestationResponse 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.confidentialcomputing.v1.VerifyAttestationResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse 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.confidentialcomputing.v1.VerifyAttestationResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse 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.confidentialcomputing.v1.VerifyAttestationResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse 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.confidentialcomputing.v1.VerifyAttestationResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse - 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.confidentialcomputing.v1.VerifyAttestationResponse 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.confidentialcomputing.v1.VerifyAttestationResponse 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.confidentialcomputing.v1.VerifyAttestationResponse 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.confidentialcomputing.v1.VerifyAttestationResponse prototype) { + public static Builder newBuilder(com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse 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 response once an attestation has been successfully verified, containing a
    * signed OIDC token.
@@ -285,33 +255,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.confidentialcomputing.v1.VerifyAttestationResponse}
    */
-  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.confidentialcomputing.v1.VerifyAttestationResponse)
       com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.confidentialcomputing.v1.ServiceProto
-          .internal_static_google_cloud_confidentialcomputing_v1_VerifyAttestationResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_VerifyAttestationResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.confidentialcomputing.v1.ServiceProto
-          .internal_static_google_cloud_confidentialcomputing_v1_VerifyAttestationResponse_fieldAccessorTable
+      return com.google.cloud.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_VerifyAttestationResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse.class,
-              com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse.Builder.class);
+              com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse.class, com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse.Builder.class);
     }
 
-    // Construct using
-    // com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse.newBuilder()
-    private Builder() {}
+    // Construct using com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse.newBuilder()
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -321,16 +291,14 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.confidentialcomputing.v1.ServiceProto
-          .internal_static_google_cloud_confidentialcomputing_v1_VerifyAttestationResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_VerifyAttestationResponse_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse
-        getDefaultInstanceForType() {
-      return com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse
-          .getDefaultInstance();
+    public com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse getDefaultInstanceForType() {
+      return com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse.getDefaultInstance();
     }
 
     @java.lang.Override
@@ -344,17 +312,13 @@ public com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse build
 
     @java.lang.Override
     public com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse buildPartial() {
-      com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse result =
-          new com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse result = new com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(
-        com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse result) {
+    private void buildPartial0(com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.oidcClaimsToken_ = oidcClaimsToken_;
@@ -365,51 +329,46 @@ private void buildPartial0(
     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.confidentialcomputing.v1.VerifyAttestationResponse) {
-        return mergeFrom(
-            (com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse) other);
+        return mergeFrom((com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(
-        com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse other) {
-      if (other
-          == com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse
-              .getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse other) {
+      if (other == com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse.getDefaultInstance()) return this;
       if (!other.getOidcClaimsToken().isEmpty()) {
         oidcClaimsToken_ = other.oidcClaimsToken_;
         bitField0_ |= 0x00000001;
@@ -441,19 +400,17 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 18:
-              {
-                oidcClaimsToken_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 18
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 18: {
+              oidcClaimsToken_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 18
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -463,25 +420,22 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object oidcClaimsToken_ = "";
     /**
-     *
-     *
      * 
      * Output only. Same as claims_token, but as a string.
      * 
* * string oidc_claims_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The oidcClaimsToken. */ public java.lang.String getOidcClaimsToken() { java.lang.Object ref = oidcClaimsToken_; 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(); oidcClaimsToken_ = s; return s; @@ -490,21 +444,20 @@ public java.lang.String getOidcClaimsToken() { } } /** - * - * *
      * Output only. Same as claims_token, but as a string.
      * 
* * string oidc_claims_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for oidcClaimsToken. */ - public com.google.protobuf.ByteString getOidcClaimsTokenBytes() { + public com.google.protobuf.ByteString + getOidcClaimsTokenBytes() { java.lang.Object ref = oidcClaimsToken_; 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); oidcClaimsToken_ = b; return b; } else { @@ -512,35 +465,28 @@ public com.google.protobuf.ByteString getOidcClaimsTokenBytes() { } } /** - * - * *
      * Output only. Same as claims_token, but as a string.
      * 
* * string oidc_claims_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The oidcClaimsToken to set. * @return This builder for chaining. */ - public Builder setOidcClaimsToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOidcClaimsToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } oidcClaimsToken_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Output only. Same as claims_token, but as a string.
      * 
* * string oidc_claims_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearOidcClaimsToken() { @@ -550,30 +496,26 @@ public Builder clearOidcClaimsToken() { return this; } /** - * - * *
      * Output only. Same as claims_token, but as a string.
      * 
* * string oidc_claims_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for oidcClaimsToken to set. * @return This builder for chaining. */ - public Builder setOidcClaimsTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOidcClaimsTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); oidcClaimsToken_ = value; bitField0_ |= 0x00000001; 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); } @@ -583,43 +525,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.confidentialcomputing.v1.VerifyAttestationResponse) } // @@protoc_insertion_point(class_scope:google.cloud.confidentialcomputing.v1.VerifyAttestationResponse) - private static final com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse(); } - public static com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse - getDefaultInstance() { + public static com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VerifyAttestationResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VerifyAttestationResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -631,8 +571,9 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse - getDefaultInstanceForType() { + public com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyAttestationResponseOrBuilder.java b/owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyAttestationResponseOrBuilder.java similarity index 52% rename from java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyAttestationResponseOrBuilder.java rename to owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyAttestationResponseOrBuilder.java index 53829d7a6733..c59993b21b85 100644 --- a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyAttestationResponseOrBuilder.java +++ b/owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyAttestationResponseOrBuilder.java @@ -1,50 +1,29 @@ -/* - * Copyright 2023 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/confidentialcomputing/v1/service.proto package com.google.cloud.confidentialcomputing.v1; -public interface VerifyAttestationResponseOrBuilder - extends +public interface VerifyAttestationResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.confidentialcomputing.v1.VerifyAttestationResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. Same as claims_token, but as a string.
    * 
* * string oidc_claims_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The oidcClaimsToken. */ java.lang.String getOidcClaimsToken(); /** - * - * *
    * Output only. Same as claims_token, but as a string.
    * 
* * string oidc_claims_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for oidcClaimsToken. */ - com.google.protobuf.ByteString getOidcClaimsTokenBytes(); + com.google.protobuf.ByteString + getOidcClaimsTokenBytes(); } diff --git a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/proto/google/cloud/confidentialcomputing/v1/service.proto b/owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/proto/google/cloud/confidentialcomputing/v1/service.proto similarity index 68% rename from java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/proto/google/cloud/confidentialcomputing/v1/service.proto rename to owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/proto/google/cloud/confidentialcomputing/v1/service.proto index 846b4de0470a..4a97c94e0bad 100644 --- a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/proto/google/cloud/confidentialcomputing/v1/service.proto +++ b/owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/proto/google/cloud/confidentialcomputing/v1/service.proto @@ -55,6 +55,21 @@ service ConfidentialComputing { } } +// SigningAlgorithm enumerates all the supported signing algorithms. +enum SigningAlgorithm { + // Unspecified signing algorithm. + SIGNING_ALGORITHM_UNSPECIFIED = 0; + + // RSASSA-PSS with a SHA256 digest. + RSASSA_PSS_SHA256 = 1; + + // RSASSA-PKCS1 v1.5 with a SHA256 digest. + RSASSA_PKCS1V15_SHA256 = 2; + + // ECDSA on the P-256 Curve with a SHA256 digest. + ECDSA_P256_SHA256 = 3; +} + // A Challenge from the server used to guarantee freshness of attestations message Challenge { option (google.api.resource) = { @@ -118,6 +133,14 @@ message VerifyAttestationRequest { // Required. The TPM-specific data provided by the attesting platform, used to // populate any of the claims regarding platform state. TpmAttestation tpm_attestation = 3 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Optional information related to the Confidential Space TEE. + ConfidentialSpaceInfo confidential_space_info = 4 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A collection of optional, workload-specified claims that modify + // the token output. + TokenOptions token_options = 5 [(google.api.field_behavior) = OPTIONAL]; } // A response once an attestation has been successfully verified, containing a @@ -134,6 +157,18 @@ message GcpCredentials { repeated string service_account_id_tokens = 2; } +// Options to modify claims in the token to generate custom-purpose tokens. +message TokenOptions { + // Optional. Optional string to issue the token with a custom audience claim. + // Required if one or more nonces are specified. + string audience = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Optional parameter to place one or more nonces in the eat_nonce + // claim in the output token. The minimum size for JSON-encoded EATs is 10 + // bytes and the maximum size is 74 bytes. + repeated string nonce = 2 [(google.api.field_behavior) = OPTIONAL]; +} + // TPM2 data containing everything necessary to validate any platform state // measured into the TPM. message TpmAttestation { @@ -174,3 +209,45 @@ message TpmAttestation { // chain back to a trusted Root Certificate. repeated bytes cert_chain = 5; } + +// ConfidentialSpaceInfo contains information related to the Confidential Space +// TEE. +message ConfidentialSpaceInfo { + // Optional. A list of signed entities containing container image signatures + // that can be used for server-side signature verification. + repeated SignedEntity signed_entities = 1 + [(google.api.field_behavior) = OPTIONAL]; +} + +// SignedEntity represents an OCI image object containing everything necessary +// to verify container image signatures. +message SignedEntity { + // Optional. A list of container image signatures attached to an OCI image + // object. + repeated ContainerImageSignature container_image_signatures = 1 + [(google.api.field_behavior) = OPTIONAL]; +} + +// ContainerImageSignature holds necessary metadata to verify a container image +// signature. +message ContainerImageSignature { + // Required. The binary signature payload following the SimpleSigning format + // https://github.com/sigstore/cosign/blob/main/specs/SIGNATURE_SPEC.md#simple-signing. + // This payload includes the container image digest. + bytes payload = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. A signature over the payload. + // The container image digest is incorporated into the signature as follows: + // 1. Generate a SimpleSigning format payload that includes the container + // image digest. + // 2. Generate a signature over SHA256 digest of the payload. + // The signature generation process can be represented as follows: + // `Sign(sha256(SimpleSigningPayload(sha256(Image Manifest))))` + bytes signature = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. An associated public key used to verify the signature. + bytes public_key = 3 [(google.api.field_behavior) = REQUIRED]; + + // Required. The algorithm used to produce the container image signature. + SigningAlgorithm sig_alg = 4 [(google.api.field_behavior) = REQUIRED]; +} diff --git a/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-confidentialcomputing/v1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/java-confidentialcomputing/v1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/create/SyncCreateSetCredentialsProvider.java diff --git a/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/java-confidentialcomputing/v1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/create/SyncCreateSetCredentialsProvider1.java rename to owl-bot-staging/java-confidentialcomputing/v1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/create/SyncCreateSetCredentialsProvider1.java diff --git a/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-confidentialcomputing/v1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/create/SyncCreateSetEndpoint.java similarity index 100% rename from java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/java-confidentialcomputing/v1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/create/SyncCreateSetEndpoint.java diff --git a/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/createchallenge/AsyncCreateChallenge.java b/owl-bot-staging/java-confidentialcomputing/v1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/createchallenge/AsyncCreateChallenge.java similarity index 100% rename from java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/createchallenge/AsyncCreateChallenge.java rename to owl-bot-staging/java-confidentialcomputing/v1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/createchallenge/AsyncCreateChallenge.java diff --git a/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/createchallenge/SyncCreateChallenge.java b/owl-bot-staging/java-confidentialcomputing/v1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/createchallenge/SyncCreateChallenge.java similarity index 100% rename from java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/createchallenge/SyncCreateChallenge.java rename to owl-bot-staging/java-confidentialcomputing/v1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/createchallenge/SyncCreateChallenge.java diff --git a/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/createchallenge/SyncCreateChallengeLocationnameChallenge.java b/owl-bot-staging/java-confidentialcomputing/v1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/createchallenge/SyncCreateChallengeLocationnameChallenge.java similarity index 100% rename from java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/createchallenge/SyncCreateChallengeLocationnameChallenge.java rename to owl-bot-staging/java-confidentialcomputing/v1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/createchallenge/SyncCreateChallengeLocationnameChallenge.java diff --git a/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/createchallenge/SyncCreateChallengeStringChallenge.java b/owl-bot-staging/java-confidentialcomputing/v1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/createchallenge/SyncCreateChallengeStringChallenge.java similarity index 100% rename from java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/createchallenge/SyncCreateChallengeStringChallenge.java rename to owl-bot-staging/java-confidentialcomputing/v1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/createchallenge/SyncCreateChallengeStringChallenge.java diff --git a/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/getlocation/AsyncGetLocation.java b/owl-bot-staging/java-confidentialcomputing/v1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/getlocation/AsyncGetLocation.java similarity index 100% rename from java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/getlocation/AsyncGetLocation.java rename to owl-bot-staging/java-confidentialcomputing/v1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/getlocation/AsyncGetLocation.java diff --git a/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/getlocation/SyncGetLocation.java b/owl-bot-staging/java-confidentialcomputing/v1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/getlocation/SyncGetLocation.java similarity index 100% rename from java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/getlocation/SyncGetLocation.java rename to owl-bot-staging/java-confidentialcomputing/v1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/getlocation/SyncGetLocation.java diff --git a/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/listlocations/AsyncListLocations.java b/owl-bot-staging/java-confidentialcomputing/v1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/listlocations/AsyncListLocations.java similarity index 100% rename from java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/listlocations/AsyncListLocations.java rename to owl-bot-staging/java-confidentialcomputing/v1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/listlocations/AsyncListLocations.java diff --git a/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/listlocations/AsyncListLocationsPaged.java b/owl-bot-staging/java-confidentialcomputing/v1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/listlocations/AsyncListLocationsPaged.java similarity index 100% rename from java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/listlocations/AsyncListLocationsPaged.java rename to owl-bot-staging/java-confidentialcomputing/v1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/listlocations/AsyncListLocationsPaged.java diff --git a/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/listlocations/SyncListLocations.java b/owl-bot-staging/java-confidentialcomputing/v1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/listlocations/SyncListLocations.java similarity index 100% rename from java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/listlocations/SyncListLocations.java rename to owl-bot-staging/java-confidentialcomputing/v1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/listlocations/SyncListLocations.java diff --git a/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/verifyattestation/AsyncVerifyAttestation.java b/owl-bot-staging/java-confidentialcomputing/v1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/verifyattestation/AsyncVerifyAttestation.java similarity index 90% rename from java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/verifyattestation/AsyncVerifyAttestation.java rename to owl-bot-staging/java-confidentialcomputing/v1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/verifyattestation/AsyncVerifyAttestation.java index 7c6d9ad91f39..a5ae44040588 100644 --- a/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/verifyattestation/AsyncVerifyAttestation.java +++ b/owl-bot-staging/java-confidentialcomputing/v1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/verifyattestation/AsyncVerifyAttestation.java @@ -20,7 +20,9 @@ import com.google.api.core.ApiFuture; import com.google.cloud.confidentialcomputing.v1.ChallengeName; import com.google.cloud.confidentialcomputing.v1.ConfidentialComputingClient; +import com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo; import com.google.cloud.confidentialcomputing.v1.GcpCredentials; +import com.google.cloud.confidentialcomputing.v1.TokenOptions; import com.google.cloud.confidentialcomputing.v1.TpmAttestation; import com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest; import com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse; @@ -44,6 +46,8 @@ public static void asyncVerifyAttestation() throws Exception { .setChallenge(ChallengeName.of("[PROJECT]", "[LOCATION]", "[UUID]").toString()) .setGcpCredentials(GcpCredentials.newBuilder().build()) .setTpmAttestation(TpmAttestation.newBuilder().build()) + .setConfidentialSpaceInfo(ConfidentialSpaceInfo.newBuilder().build()) + .setTokenOptions(TokenOptions.newBuilder().build()) .build(); ApiFuture future = confidentialComputingClient.verifyAttestationCallable().futureCall(request); diff --git a/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/verifyattestation/SyncVerifyAttestation.java b/owl-bot-staging/java-confidentialcomputing/v1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/verifyattestation/SyncVerifyAttestation.java similarity index 89% rename from java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/verifyattestation/SyncVerifyAttestation.java rename to owl-bot-staging/java-confidentialcomputing/v1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/verifyattestation/SyncVerifyAttestation.java index fbbec0273406..526dca5fb066 100644 --- a/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/verifyattestation/SyncVerifyAttestation.java +++ b/owl-bot-staging/java-confidentialcomputing/v1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/verifyattestation/SyncVerifyAttestation.java @@ -19,7 +19,9 @@ // [START confidentialcomputing_v1_generated_ConfidentialComputing_VerifyAttestation_sync] import com.google.cloud.confidentialcomputing.v1.ChallengeName; import com.google.cloud.confidentialcomputing.v1.ConfidentialComputingClient; +import com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo; import com.google.cloud.confidentialcomputing.v1.GcpCredentials; +import com.google.cloud.confidentialcomputing.v1.TokenOptions; import com.google.cloud.confidentialcomputing.v1.TpmAttestation; import com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest; import com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse; @@ -43,6 +45,8 @@ public static void syncVerifyAttestation() throws Exception { .setChallenge(ChallengeName.of("[PROJECT]", "[LOCATION]", "[UUID]").toString()) .setGcpCredentials(GcpCredentials.newBuilder().build()) .setTpmAttestation(TpmAttestation.newBuilder().build()) + .setConfidentialSpaceInfo(ConfidentialSpaceInfo.newBuilder().build()) + .setTokenOptions(TokenOptions.newBuilder().build()) .build(); VerifyAttestationResponse response = confidentialComputingClient.verifyAttestation(request); } diff --git a/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputingsettings/createchallenge/SyncCreateChallenge.java b/owl-bot-staging/java-confidentialcomputing/v1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputingsettings/createchallenge/SyncCreateChallenge.java similarity index 100% rename from java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputingsettings/createchallenge/SyncCreateChallenge.java rename to owl-bot-staging/java-confidentialcomputing/v1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputingsettings/createchallenge/SyncCreateChallenge.java diff --git a/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/stub/confidentialcomputingstubsettings/createchallenge/SyncCreateChallenge.java b/owl-bot-staging/java-confidentialcomputing/v1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/stub/confidentialcomputingstubsettings/createchallenge/SyncCreateChallenge.java similarity index 100% rename from java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/stub/confidentialcomputingstubsettings/createchallenge/SyncCreateChallenge.java rename to owl-bot-staging/java-confidentialcomputing/v1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/stub/confidentialcomputingstubsettings/createchallenge/SyncCreateChallenge.java diff --git a/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/ConfidentialComputingClient.java b/owl-bot-staging/java-confidentialcomputing/v1alpha1/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/ConfidentialComputingClient.java similarity index 100% rename from java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/ConfidentialComputingClient.java rename to owl-bot-staging/java-confidentialcomputing/v1alpha1/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/ConfidentialComputingClient.java diff --git a/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/ConfidentialComputingSettings.java b/owl-bot-staging/java-confidentialcomputing/v1alpha1/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/ConfidentialComputingSettings.java similarity index 99% rename from java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/ConfidentialComputingSettings.java rename to owl-bot-staging/java-confidentialcomputing/v1alpha1/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/ConfidentialComputingSettings.java index 575f5c24ee7f..4496692b437d 100644 --- a/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/ConfidentialComputingSettings.java +++ b/owl-bot-staging/java-confidentialcomputing/v1alpha1/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/ConfidentialComputingSettings.java @@ -28,6 +28,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.confidentialcomputing.v1alpha1.stub.ConfidentialComputingStubSettings; diff --git a/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/gapic_metadata.json b/owl-bot-staging/java-confidentialcomputing/v1alpha1/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/gapic_metadata.json similarity index 100% rename from java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/gapic_metadata.json rename to owl-bot-staging/java-confidentialcomputing/v1alpha1/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/gapic_metadata.json diff --git a/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/package-info.java b/owl-bot-staging/java-confidentialcomputing/v1alpha1/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/package-info.java similarity index 100% rename from java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/package-info.java rename to owl-bot-staging/java-confidentialcomputing/v1alpha1/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/package-info.java diff --git a/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/stub/ConfidentialComputingStub.java b/owl-bot-staging/java-confidentialcomputing/v1alpha1/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/stub/ConfidentialComputingStub.java similarity index 100% rename from java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/stub/ConfidentialComputingStub.java rename to owl-bot-staging/java-confidentialcomputing/v1alpha1/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/stub/ConfidentialComputingStub.java diff --git a/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/stub/ConfidentialComputingStubSettings.java b/owl-bot-staging/java-confidentialcomputing/v1alpha1/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/stub/ConfidentialComputingStubSettings.java similarity index 100% rename from java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/stub/ConfidentialComputingStubSettings.java rename to owl-bot-staging/java-confidentialcomputing/v1alpha1/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/stub/ConfidentialComputingStubSettings.java diff --git a/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/stub/GrpcConfidentialComputingCallableFactory.java b/owl-bot-staging/java-confidentialcomputing/v1alpha1/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/stub/GrpcConfidentialComputingCallableFactory.java similarity index 100% rename from java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/stub/GrpcConfidentialComputingCallableFactory.java rename to owl-bot-staging/java-confidentialcomputing/v1alpha1/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/stub/GrpcConfidentialComputingCallableFactory.java diff --git a/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/stub/GrpcConfidentialComputingStub.java b/owl-bot-staging/java-confidentialcomputing/v1alpha1/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/stub/GrpcConfidentialComputingStub.java similarity index 99% rename from java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/stub/GrpcConfidentialComputingStub.java rename to owl-bot-staging/java-confidentialcomputing/v1alpha1/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/stub/GrpcConfidentialComputingStub.java index 8acf53afca45..5861c922da6c 100644 --- a/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/stub/GrpcConfidentialComputingStub.java +++ b/owl-bot-staging/java-confidentialcomputing/v1alpha1/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/stub/GrpcConfidentialComputingStub.java @@ -38,6 +38,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/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/stub/HttpJsonConfidentialComputingCallableFactory.java b/owl-bot-staging/java-confidentialcomputing/v1alpha1/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/stub/HttpJsonConfidentialComputingCallableFactory.java similarity index 100% rename from java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/stub/HttpJsonConfidentialComputingCallableFactory.java rename to owl-bot-staging/java-confidentialcomputing/v1alpha1/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/stub/HttpJsonConfidentialComputingCallableFactory.java diff --git a/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/stub/HttpJsonConfidentialComputingStub.java b/owl-bot-staging/java-confidentialcomputing/v1alpha1/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/stub/HttpJsonConfidentialComputingStub.java similarity index 100% rename from java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/stub/HttpJsonConfidentialComputingStub.java rename to owl-bot-staging/java-confidentialcomputing/v1alpha1/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/stub/HttpJsonConfidentialComputingStub.java diff --git a/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/resources/META-INF/native-image/com.google.cloud.confidentialcomputing.v1alpha1/reflect-config.json b/owl-bot-staging/java-confidentialcomputing/v1alpha1/google-cloud-confidentialcomputing/src/main/resources/META-INF/native-image/com.google.cloud.confidentialcomputing.v1alpha1/reflect-config.json similarity index 100% rename from java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/resources/META-INF/native-image/com.google.cloud.confidentialcomputing.v1alpha1/reflect-config.json rename to owl-bot-staging/java-confidentialcomputing/v1alpha1/google-cloud-confidentialcomputing/src/main/resources/META-INF/native-image/com.google.cloud.confidentialcomputing.v1alpha1/reflect-config.json diff --git a/java-confidentialcomputing/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1alpha1/ConfidentialComputingClientHttpJsonTest.java b/owl-bot-staging/java-confidentialcomputing/v1alpha1/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1alpha1/ConfidentialComputingClientHttpJsonTest.java similarity index 100% rename from java-confidentialcomputing/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1alpha1/ConfidentialComputingClientHttpJsonTest.java rename to owl-bot-staging/java-confidentialcomputing/v1alpha1/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1alpha1/ConfidentialComputingClientHttpJsonTest.java diff --git a/java-confidentialcomputing/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1alpha1/ConfidentialComputingClientTest.java b/owl-bot-staging/java-confidentialcomputing/v1alpha1/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1alpha1/ConfidentialComputingClientTest.java similarity index 100% rename from java-confidentialcomputing/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1alpha1/ConfidentialComputingClientTest.java rename to owl-bot-staging/java-confidentialcomputing/v1alpha1/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1alpha1/ConfidentialComputingClientTest.java diff --git a/java-confidentialcomputing/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1alpha1/MockConfidentialComputing.java b/owl-bot-staging/java-confidentialcomputing/v1alpha1/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1alpha1/MockConfidentialComputing.java similarity index 100% rename from java-confidentialcomputing/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1alpha1/MockConfidentialComputing.java rename to owl-bot-staging/java-confidentialcomputing/v1alpha1/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1alpha1/MockConfidentialComputing.java diff --git a/java-confidentialcomputing/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1alpha1/MockConfidentialComputingImpl.java b/owl-bot-staging/java-confidentialcomputing/v1alpha1/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1alpha1/MockConfidentialComputingImpl.java similarity index 100% rename from java-confidentialcomputing/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1alpha1/MockConfidentialComputingImpl.java rename to owl-bot-staging/java-confidentialcomputing/v1alpha1/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1alpha1/MockConfidentialComputingImpl.java diff --git a/java-confidentialcomputing/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1alpha1/MockLocations.java b/owl-bot-staging/java-confidentialcomputing/v1alpha1/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1alpha1/MockLocations.java similarity index 100% rename from java-confidentialcomputing/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1alpha1/MockLocations.java rename to owl-bot-staging/java-confidentialcomputing/v1alpha1/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1alpha1/MockLocations.java diff --git a/java-confidentialcomputing/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1alpha1/MockLocationsImpl.java b/owl-bot-staging/java-confidentialcomputing/v1alpha1/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1alpha1/MockLocationsImpl.java similarity index 100% rename from java-confidentialcomputing/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1alpha1/MockLocationsImpl.java rename to owl-bot-staging/java-confidentialcomputing/v1alpha1/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1alpha1/MockLocationsImpl.java diff --git a/owl-bot-staging/java-confidentialcomputing/v1alpha1/grpc-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/ConfidentialComputingGrpc.java b/owl-bot-staging/java-confidentialcomputing/v1alpha1/grpc-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/ConfidentialComputingGrpc.java new file mode 100644 index 000000000000..2d7ba167ad24 --- /dev/null +++ b/owl-bot-staging/java-confidentialcomputing/v1alpha1/grpc-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/ConfidentialComputingGrpc.java @@ -0,0 +1,409 @@ +package com.google.cloud.confidentialcomputing.v1alpha1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *
+ * Service describing handlers for resources
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/confidentialcomputing/v1alpha1/service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class ConfidentialComputingGrpc { + + private ConfidentialComputingGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.confidentialcomputing.v1alpha1.ConfidentialComputing"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getCreateChallengeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateChallenge", + requestType = com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest.class, + responseType = com.google.cloud.confidentialcomputing.v1alpha1.Challenge.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateChallengeMethod() { + io.grpc.MethodDescriptor getCreateChallengeMethod; + if ((getCreateChallengeMethod = ConfidentialComputingGrpc.getCreateChallengeMethod) == null) { + synchronized (ConfidentialComputingGrpc.class) { + if ((getCreateChallengeMethod = ConfidentialComputingGrpc.getCreateChallengeMethod) == null) { + ConfidentialComputingGrpc.getCreateChallengeMethod = getCreateChallengeMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateChallenge")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.confidentialcomputing.v1alpha1.Challenge.getDefaultInstance())) + .setSchemaDescriptor(new ConfidentialComputingMethodDescriptorSupplier("CreateChallenge")) + .build(); + } + } + } + return getCreateChallengeMethod; + } + + private static volatile io.grpc.MethodDescriptor getVerifyAttestationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "VerifyAttestation", + requestType = com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest.class, + responseType = com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getVerifyAttestationMethod() { + io.grpc.MethodDescriptor getVerifyAttestationMethod; + if ((getVerifyAttestationMethod = ConfidentialComputingGrpc.getVerifyAttestationMethod) == null) { + synchronized (ConfidentialComputingGrpc.class) { + if ((getVerifyAttestationMethod = ConfidentialComputingGrpc.getVerifyAttestationMethod) == null) { + ConfidentialComputingGrpc.getVerifyAttestationMethod = getVerifyAttestationMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "VerifyAttestation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse.getDefaultInstance())) + .setSchemaDescriptor(new ConfidentialComputingMethodDescriptorSupplier("VerifyAttestation")) + .build(); + } + } + } + return getVerifyAttestationMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static ConfidentialComputingStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ConfidentialComputingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConfidentialComputingStub(channel, callOptions); + } + }; + return ConfidentialComputingStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static ConfidentialComputingBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ConfidentialComputingBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConfidentialComputingBlockingStub(channel, callOptions); + } + }; + return ConfidentialComputingBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static ConfidentialComputingFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ConfidentialComputingFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConfidentialComputingFutureStub(channel, callOptions); + } + }; + return ConfidentialComputingFutureStub.newStub(factory, channel); + } + + /** + *
+   * Service describing handlers for resources
+   * 
+ */ + public interface AsyncService { + + /** + *
+     * Creates a new Challenge in a given project and location.
+     * 
+ */ + default void createChallenge(com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateChallengeMethod(), responseObserver); + } + + /** + *
+     * Verifies the provided attestation info, returning a signed OIDC token.
+     * 
+ */ + default void verifyAttestation(com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getVerifyAttestationMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service ConfidentialComputing. + *
+   * Service describing handlers for resources
+   * 
+ */ + public static abstract class ConfidentialComputingImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return ConfidentialComputingGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service ConfidentialComputing. + *
+   * Service describing handlers for resources
+   * 
+ */ + public static final class ConfidentialComputingStub + extends io.grpc.stub.AbstractAsyncStub { + private ConfidentialComputingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ConfidentialComputingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConfidentialComputingStub(channel, callOptions); + } + + /** + *
+     * Creates a new Challenge in a given project and location.
+     * 
+ */ + public void createChallenge(com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateChallengeMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Verifies the provided attestation info, returning a signed OIDC token.
+     * 
+ */ + public void verifyAttestation(com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getVerifyAttestationMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service ConfidentialComputing. + *
+   * Service describing handlers for resources
+   * 
+ */ + public static final class ConfidentialComputingBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private ConfidentialComputingBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ConfidentialComputingBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConfidentialComputingBlockingStub(channel, callOptions); + } + + /** + *
+     * Creates a new Challenge in a given project and location.
+     * 
+ */ + public com.google.cloud.confidentialcomputing.v1alpha1.Challenge createChallenge(com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateChallengeMethod(), getCallOptions(), request); + } + + /** + *
+     * Verifies the provided attestation info, returning a signed OIDC token.
+     * 
+ */ + public com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse verifyAttestation(com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getVerifyAttestationMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service ConfidentialComputing. + *
+   * Service describing handlers for resources
+   * 
+ */ + public static final class ConfidentialComputingFutureStub + extends io.grpc.stub.AbstractFutureStub { + private ConfidentialComputingFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ConfidentialComputingFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConfidentialComputingFutureStub(channel, callOptions); + } + + /** + *
+     * Creates a new Challenge in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createChallenge( + com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateChallengeMethod(), getCallOptions()), request); + } + + /** + *
+     * Verifies the provided attestation info, returning a signed OIDC token.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture verifyAttestation( + com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getVerifyAttestationMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_CHALLENGE = 0; + private static final int METHODID_VERIFY_ATTESTATION = 1; + + 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 AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService 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_CREATE_CHALLENGE: + serviceImpl.createChallenge((com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_VERIFY_ATTESTATION: + serviceImpl.verifyAttestation((com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest) 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(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateChallengeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest, + com.google.cloud.confidentialcomputing.v1alpha1.Challenge>( + service, METHODID_CREATE_CHALLENGE))) + .addMethod( + getVerifyAttestationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest, + com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse>( + service, METHODID_VERIFY_ATTESTATION))) + .build(); + } + + private static abstract class ConfidentialComputingBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + ConfidentialComputingBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("ConfidentialComputing"); + } + } + + private static final class ConfidentialComputingFileDescriptorSupplier + extends ConfidentialComputingBaseDescriptorSupplier { + ConfidentialComputingFileDescriptorSupplier() {} + } + + private static final class ConfidentialComputingMethodDescriptorSupplier + extends ConfidentialComputingBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + ConfidentialComputingMethodDescriptorSupplier(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 (ConfidentialComputingGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new ConfidentialComputingFileDescriptorSupplier()) + .addMethod(getCreateChallengeMethod()) + .addMethod(getVerifyAttestationMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/Challenge.java b/owl-bot-staging/java-confidentialcomputing/v1alpha1/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/Challenge.java similarity index 68% rename from java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/Challenge.java rename to owl-bot-staging/java-confidentialcomputing/v1alpha1/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/Challenge.java index ad7fcc512c01..0bb84e7e12d0 100644 --- a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/Challenge.java +++ b/owl-bot-staging/java-confidentialcomputing/v1alpha1/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/Challenge.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 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/confidentialcomputing/v1alpha1/service.proto package com.google.cloud.confidentialcomputing.v1alpha1; /** - * - * *
  * A Challenge from the server used to guarantee freshness of attestations
  * 
* * Protobuf type {@code google.cloud.confidentialcomputing.v1alpha1.Challenge} */ -public final class Challenge extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Challenge extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.confidentialcomputing.v1alpha1.Challenge) ChallengeOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Challenge.newBuilder() to construct. private Challenge(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Challenge() { name_ = ""; nonce_ = com.google.protobuf.ByteString.EMPTY; @@ -44,39 +26,34 @@ private Challenge() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Challenge(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto - .internal_static_google_cloud_confidentialcomputing_v1alpha1_Challenge_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1alpha1_Challenge_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto - .internal_static_google_cloud_confidentialcomputing_v1alpha1_Challenge_fieldAccessorTable + return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1alpha1_Challenge_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.confidentialcomputing.v1alpha1.Challenge.class, - com.google.cloud.confidentialcomputing.v1alpha1.Challenge.Builder.class); + com.google.cloud.confidentialcomputing.v1alpha1.Challenge.class, com.google.cloud.confidentialcomputing.v1alpha1.Challenge.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Output only. The resource name for this Challenge in the format
    * `projects/*/locations/*/challenges/*`
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -85,30 +62,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 for this Challenge in the format
    * `projects/*/locations/*/challenges/*`
    * 
* * 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 { @@ -119,15 +96,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int CREATE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The time at which this Challenge was created
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -135,15 +108,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The time at which this Challenge was created
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -151,14 +120,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The time at which this Challenge was created
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -168,16 +134,12 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int EXPIRE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp expireTime_; /** - * - * *
    * Output only. The time at which this Challenge will no longer be usable. It
    * is also the expiration time for any tokens generated from this Challenge.
    * 
* - * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the expireTime field is set. */ @java.lang.Override @@ -185,16 +147,12 @@ public boolean hasExpireTime() { return expireTime_ != null; } /** - * - * *
    * Output only. The time at which this Challenge will no longer be usable. It
    * is also the expiration time for any tokens generated from this Challenge.
    * 
* - * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The expireTime. */ @java.lang.Override @@ -202,15 +160,12 @@ public com.google.protobuf.Timestamp getExpireTime() { return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } /** - * - * *
    * Output only. The time at which this Challenge will no longer be usable. It
    * is also the expiration time for any tokens generated from this Challenge.
    * 
* - * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { @@ -220,14 +175,11 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { public static final int USED_FIELD_NUMBER = 4; private boolean used_ = false; /** - * - * *
    * Output only. Indicates if this challenge has been used to generate a token.
    * 
* * bool used = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The used. */ @java.lang.Override @@ -238,15 +190,12 @@ public boolean getUsed() { public static final int NONCE_FIELD_NUMBER = 5; private com.google.protobuf.ByteString nonce_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
    * Output only. Random data which should be used when calling TPM2_Quote.
    * --
    * 
* * bytes nonce = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The nonce. */ @java.lang.Override @@ -255,7 +204,6 @@ public com.google.protobuf.ByteString getNonce() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -267,7 +215,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_); } @@ -296,16 +245,20 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getCreateTime()); } if (expireTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getExpireTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getExpireTime()); } if (used_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, used_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, used_); } if (!nonce_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(5, nonce_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(5, nonce_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -315,25 +268,29 @@ 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.confidentialcomputing.v1alpha1.Challenge)) { return super.equals(obj); } - com.google.cloud.confidentialcomputing.v1alpha1.Challenge other = - (com.google.cloud.confidentialcomputing.v1alpha1.Challenge) obj; + com.google.cloud.confidentialcomputing.v1alpha1.Challenge other = (com.google.cloud.confidentialcomputing.v1alpha1.Challenge) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasExpireTime() != other.hasExpireTime()) return false; if (hasExpireTime()) { - if (!getExpireTime().equals(other.getExpireTime())) return false; + if (!getExpireTime() + .equals(other.getExpireTime())) return false; } - if (getUsed() != other.getUsed()) return false; - if (!getNonce().equals(other.getNonce())) return false; + if (getUsed() + != other.getUsed()) return false; + if (!getNonce() + .equals(other.getNonce())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -356,7 +313,8 @@ public int hashCode() { hash = (53 * hash) + getExpireTime().hashCode(); } hash = (37 * hash) + USED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUsed()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getUsed()); hash = (37 * hash) + NONCE_FIELD_NUMBER; hash = (53 * hash) + getNonce().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -365,136 +323,131 @@ public int hashCode() { } public static com.google.cloud.confidentialcomputing.v1alpha1.Challenge 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.confidentialcomputing.v1alpha1.Challenge 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.confidentialcomputing.v1alpha1.Challenge parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.confidentialcomputing.v1alpha1.Challenge 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.confidentialcomputing.v1alpha1.Challenge parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.confidentialcomputing.v1alpha1.Challenge 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.confidentialcomputing.v1alpha1.Challenge parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.confidentialcomputing.v1alpha1.Challenge parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.confidentialcomputing.v1alpha1.Challenge 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.confidentialcomputing.v1alpha1.Challenge parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.confidentialcomputing.v1alpha1.Challenge parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.confidentialcomputing.v1alpha1.Challenge 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.confidentialcomputing.v1alpha1.Challenge 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.confidentialcomputing.v1alpha1.Challenge 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.confidentialcomputing.v1alpha1.Challenge prototype) { + public static Builder newBuilder(com.google.cloud.confidentialcomputing.v1alpha1.Challenge 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 Challenge from the server used to guarantee freshness of attestations
    * 
* * Protobuf type {@code google.cloud.confidentialcomputing.v1alpha1.Challenge} */ - 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.confidentialcomputing.v1alpha1.Challenge) com.google.cloud.confidentialcomputing.v1alpha1.ChallengeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto - .internal_static_google_cloud_confidentialcomputing_v1alpha1_Challenge_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1alpha1_Challenge_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto - .internal_static_google_cloud_confidentialcomputing_v1alpha1_Challenge_fieldAccessorTable + return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1alpha1_Challenge_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.confidentialcomputing.v1alpha1.Challenge.class, - com.google.cloud.confidentialcomputing.v1alpha1.Challenge.Builder.class); + com.google.cloud.confidentialcomputing.v1alpha1.Challenge.class, com.google.cloud.confidentialcomputing.v1alpha1.Challenge.Builder.class); } // Construct using com.google.cloud.confidentialcomputing.v1alpha1.Challenge.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -516,9 +469,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto - .internal_static_google_cloud_confidentialcomputing_v1alpha1_Challenge_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1alpha1_Challenge_descriptor; } @java.lang.Override @@ -537,11 +490,8 @@ public com.google.cloud.confidentialcomputing.v1alpha1.Challenge build() { @java.lang.Override public com.google.cloud.confidentialcomputing.v1alpha1.Challenge buildPartial() { - com.google.cloud.confidentialcomputing.v1alpha1.Challenge result = - new com.google.cloud.confidentialcomputing.v1alpha1.Challenge(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.confidentialcomputing.v1alpha1.Challenge result = new com.google.cloud.confidentialcomputing.v1alpha1.Challenge(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -552,10 +502,14 @@ private void buildPartial0(com.google.cloud.confidentialcomputing.v1alpha1.Chall result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null + ? createTime_ + : createTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { - result.expireTime_ = expireTimeBuilder_ == null ? expireTime_ : expireTimeBuilder_.build(); + result.expireTime_ = expireTimeBuilder_ == null + ? expireTime_ + : expireTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.used_ = used_; @@ -569,39 +523,38 @@ private void buildPartial0(com.google.cloud.confidentialcomputing.v1alpha1.Chall 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.confidentialcomputing.v1alpha1.Challenge) { - return mergeFrom((com.google.cloud.confidentialcomputing.v1alpha1.Challenge) other); + return mergeFrom((com.google.cloud.confidentialcomputing.v1alpha1.Challenge)other); } else { super.mergeFrom(other); return this; @@ -609,8 +562,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.confidentialcomputing.v1alpha1.Challenge other) { - if (other == com.google.cloud.confidentialcomputing.v1alpha1.Challenge.getDefaultInstance()) - return this; + if (other == com.google.cloud.confidentialcomputing.v1alpha1.Challenge.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -654,43 +606,41 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage(getExpireTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: - { - used_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 42: - { - nonce_ = input.readBytes(); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getExpireTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: { + used_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: { + nonce_ = input.readBytes(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -700,26 +650,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Output only. The resource name for this Challenge in the format
      * `projects/*/locations/*/challenges/*`
      * 
* * 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; @@ -728,22 +675,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. The resource name for this Challenge in the format
      * `projects/*/locations/*/challenges/*`
      * 
* * 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 { @@ -751,37 +697,30 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. The resource name for this Challenge in the format
      * `projects/*/locations/*/challenges/*`
      * 
* * 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(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Output only. The resource name for this Challenge in the format
      * `projects/*/locations/*/challenges/*`
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -791,22 +730,18 @@ public Builder clearName() { return this; } /** - * - * *
      * Output only. The resource name for this Challenge in the format
      * `projects/*/locations/*/challenges/*`
      * 
* * 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(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -816,58 +751,39 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. The time at which this Challenge was created
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Output only. The time at which this Challenge was created
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time at which this Challenge was created
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -883,17 +799,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which this Challenge was created
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -904,21 +817,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time at which this Challenge was created
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -931,15 +840,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which this Challenge was created
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000002); @@ -952,15 +857,11 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The time at which this Challenge was created
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000002; @@ -968,48 +869,36 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time at which this Challenge was created
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. The time at which this Challenge was created
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.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> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -1017,61 +906,42 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp expireTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - expireTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> expireTimeBuilder_; /** - * - * *
      * Output only. The time at which this Challenge will no longer be usable. It
      * is also the expiration time for any tokens generated from this Challenge.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the expireTime field is set. */ public boolean hasExpireTime() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Output only. The time at which this Challenge will no longer be usable. It
      * is also the expiration time for any tokens generated from this Challenge.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The expireTime. */ public com.google.protobuf.Timestamp getExpireTime() { if (expireTimeBuilder_ == null) { - return expireTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : expireTime_; + return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } else { return expireTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time at which this Challenge will no longer be usable. It
      * is also the expiration time for any tokens generated from this Challenge.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setExpireTime(com.google.protobuf.Timestamp value) { if (expireTimeBuilder_ == null) { @@ -1087,18 +957,15 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which this Challenge will no longer be usable. It
      * is also the expiration time for any tokens generated from this Challenge.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setExpireTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (expireTimeBuilder_ == null) { expireTime_ = builderForValue.build(); } else { @@ -1109,22 +976,18 @@ public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time at which this Challenge will no longer be usable. It
      * is also the expiration time for any tokens generated from this Challenge.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { if (expireTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && expireTime_ != null - && expireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + expireTime_ != null && + expireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getExpireTimeBuilder().mergeFrom(value); } else { expireTime_ = value; @@ -1137,16 +1000,12 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which this Challenge will no longer be usable. It
      * is also the expiration time for any tokens generated from this Challenge.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearExpireTime() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1159,16 +1018,12 @@ public Builder clearExpireTime() { return this; } /** - * - * *
      * Output only. The time at which this Challenge will no longer be usable. It
      * is also the expiration time for any tokens generated from this Challenge.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { bitField0_ |= 0x00000004; @@ -1176,65 +1031,50 @@ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { return getExpireTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time at which this Challenge will no longer be usable. It
      * is also the expiration time for any tokens generated from this Challenge.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { if (expireTimeBuilder_ != null) { return expireTimeBuilder_.getMessageOrBuilder(); } else { - return expireTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : expireTime_; + return expireTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } } /** - * - * *
      * Output only. The time at which this Challenge will no longer be usable. It
      * is also the expiration time for any tokens generated from this Challenge.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 3 [(.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> getExpireTimeFieldBuilder() { if (expireTimeBuilder_ == null) { - expireTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getExpireTime(), getParentForChildren(), isClean()); + expireTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getExpireTime(), + getParentForChildren(), + isClean()); expireTime_ = null; } return expireTimeBuilder_; } - private boolean used_; + private boolean used_ ; /** - * - * *
      * Output only. Indicates if this challenge has been used to generate a token.
      * 
* * bool used = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The used. */ @java.lang.Override @@ -1242,14 +1082,11 @@ public boolean getUsed() { return used_; } /** - * - * *
      * Output only. Indicates if this challenge has been used to generate a token.
      * 
* * bool used = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The used to set. * @return This builder for chaining. */ @@ -1261,14 +1098,11 @@ public Builder setUsed(boolean value) { return this; } /** - * - * *
      * Output only. Indicates if this challenge has been used to generate a token.
      * 
* * bool used = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearUsed() { @@ -1280,15 +1114,12 @@ public Builder clearUsed() { private com.google.protobuf.ByteString nonce_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
      * Output only. Random data which should be used when calling TPM2_Quote.
      * --
      * 
* * bytes nonce = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The nonce. */ @java.lang.Override @@ -1296,37 +1127,29 @@ public com.google.protobuf.ByteString getNonce() { return nonce_; } /** - * - * *
      * Output only. Random data which should be used when calling TPM2_Quote.
      * --
      * 
* * bytes nonce = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The nonce to set. * @return This builder for chaining. */ public Builder setNonce(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + if (value == null) { throw new NullPointerException(); } nonce_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * Output only. Random data which should be used when calling TPM2_Quote.
      * --
      * 
* * bytes nonce = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearNonce() { @@ -1335,9 +1158,9 @@ public Builder clearNonce() { 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); } @@ -1347,12 +1170,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.confidentialcomputing.v1alpha1.Challenge) } // @@protoc_insertion_point(class_scope:google.cloud.confidentialcomputing.v1alpha1.Challenge) private static final com.google.cloud.confidentialcomputing.v1alpha1.Challenge DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.confidentialcomputing.v1alpha1.Challenge(); } @@ -1361,27 +1184,27 @@ public static com.google.cloud.confidentialcomputing.v1alpha1.Challenge getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Challenge parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Challenge parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1396,4 +1219,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.confidentialcomputing.v1alpha1.Challenge getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/ChallengeName.java b/owl-bot-staging/java-confidentialcomputing/v1alpha1/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/ChallengeName.java similarity index 100% rename from java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/ChallengeName.java rename to owl-bot-staging/java-confidentialcomputing/v1alpha1/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/ChallengeName.java diff --git a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/ChallengeOrBuilder.java b/owl-bot-staging/java-confidentialcomputing/v1alpha1/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/ChallengeOrBuilder.java similarity index 73% rename from java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/ChallengeOrBuilder.java rename to owl-bot-staging/java-confidentialcomputing/v1alpha1/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/ChallengeOrBuilder.java index 5654121fddc9..f9d10e70e958 100644 --- a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/ChallengeOrBuilder.java +++ b/owl-bot-staging/java-confidentialcomputing/v1alpha1/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/ChallengeOrBuilder.java @@ -1,157 +1,108 @@ -/* - * Copyright 2023 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/confidentialcomputing/v1alpha1/service.proto package com.google.cloud.confidentialcomputing.v1alpha1; -public interface ChallengeOrBuilder - extends +public interface ChallengeOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.confidentialcomputing.v1alpha1.Challenge) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The resource name for this Challenge in the format
    * `projects/*/locations/*/challenges/*`
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. The resource name for this Challenge in the format
    * `projects/*/locations/*/challenges/*`
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Output only. The time at which this Challenge was created
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The time at which this Challenge was created
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The time at which this Challenge was created
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. The time at which this Challenge will no longer be usable. It
    * is also the expiration time for any tokens generated from this Challenge.
    * 
* - * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the expireTime field is set. */ boolean hasExpireTime(); /** - * - * *
    * Output only. The time at which this Challenge will no longer be usable. It
    * is also the expiration time for any tokens generated from this Challenge.
    * 
* - * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The expireTime. */ com.google.protobuf.Timestamp getExpireTime(); /** - * - * *
    * Output only. The time at which this Challenge will no longer be usable. It
    * is also the expiration time for any tokens generated from this Challenge.
    * 
* - * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder(); /** - * - * *
    * Output only. Indicates if this challenge has been used to generate a token.
    * 
* * bool used = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The used. */ boolean getUsed(); /** - * - * *
    * Output only. Random data which should be used when calling TPM2_Quote.
    * --
    * 
* * bytes nonce = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The nonce. */ com.google.protobuf.ByteString getNonce(); diff --git a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/CreateChallengeRequest.java b/owl-bot-staging/java-confidentialcomputing/v1alpha1/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/CreateChallengeRequest.java similarity index 59% rename from java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/CreateChallengeRequest.java rename to owl-bot-staging/java-confidentialcomputing/v1alpha1/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/CreateChallengeRequest.java index 1a6feaa5215b..7cca2ae5aee4 100644 --- a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/CreateChallengeRequest.java +++ b/owl-bot-staging/java-confidentialcomputing/v1alpha1/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/CreateChallengeRequest.java @@ -1,83 +1,58 @@ -/* - * Copyright 2023 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/confidentialcomputing/v1alpha1/service.proto package com.google.cloud.confidentialcomputing.v1alpha1; /** - * - * *
  * Message for creating a Challenge
  * 
* * Protobuf type {@code google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest} */ -public final class CreateChallengeRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateChallengeRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest) CreateChallengeRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateChallengeRequest.newBuilder() to construct. private CreateChallengeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateChallengeRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateChallengeRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto - .internal_static_google_cloud_confidentialcomputing_v1alpha1_CreateChallengeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1alpha1_CreateChallengeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto - .internal_static_google_cloud_confidentialcomputing_v1alpha1_CreateChallengeRequest_fieldAccessorTable + return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1alpha1_CreateChallengeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest.class, - com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest.Builder.class); + com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest.class, com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The resource name of the location where the Challenge will be
    * used, in the format `projects/*/locations/*`.
    * 
* - * - * 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 @@ -86,32 +61,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 location where the Challenge will be
    * used, in the format `projects/*/locations/*`.
    * 
* - * - * 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 { @@ -122,17 +95,12 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int CHALLENGE_FIELD_NUMBER = 2; private com.google.cloud.confidentialcomputing.v1alpha1.Challenge challenge_; /** - * - * *
    * Required. The Challenge to be created. Currently this field can be empty as
    * all the Challenge fields are set by the server.
    * 
* - * - * .google.cloud.confidentialcomputing.v1alpha1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.confidentialcomputing.v1alpha1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the challenge field is set. */ @java.lang.Override @@ -140,47 +108,32 @@ public boolean hasChallenge() { return challenge_ != null; } /** - * - * *
    * Required. The Challenge to be created. Currently this field can be empty as
    * all the Challenge fields are set by the server.
    * 
* - * - * .google.cloud.confidentialcomputing.v1alpha1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.confidentialcomputing.v1alpha1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The challenge. */ @java.lang.Override public com.google.cloud.confidentialcomputing.v1alpha1.Challenge getChallenge() { - return challenge_ == null - ? com.google.cloud.confidentialcomputing.v1alpha1.Challenge.getDefaultInstance() - : challenge_; + return challenge_ == null ? com.google.cloud.confidentialcomputing.v1alpha1.Challenge.getDefaultInstance() : challenge_; } /** - * - * *
    * Required. The Challenge to be created. Currently this field can be empty as
    * all the Challenge fields are set by the server.
    * 
* - * - * .google.cloud.confidentialcomputing.v1alpha1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.confidentialcomputing.v1alpha1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.confidentialcomputing.v1alpha1.ChallengeOrBuilder - getChallengeOrBuilder() { - return challenge_ == null - ? com.google.cloud.confidentialcomputing.v1alpha1.Challenge.getDefaultInstance() - : challenge_; + public com.google.cloud.confidentialcomputing.v1alpha1.ChallengeOrBuilder getChallengeOrBuilder() { + return challenge_ == null ? com.google.cloud.confidentialcomputing.v1alpha1.Challenge.getDefaultInstance() : challenge_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -192,7 +145,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_); } @@ -212,7 +166,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (challenge_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getChallenge()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getChallenge()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -222,18 +177,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.confidentialcomputing.v1alpha1.CreateChallengeRequest)) { return super.equals(obj); } - com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest other = - (com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest) obj; + com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest other = (com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasChallenge() != other.hasChallenge()) return false; if (hasChallenge()) { - if (!getChallenge().equals(other.getChallenge())) return false; + if (!getChallenge() + .equals(other.getChallenge())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -258,138 +214,131 @@ public int hashCode() { } public static com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest 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.confidentialcomputing.v1alpha1.CreateChallengeRequest 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.confidentialcomputing.v1alpha1.CreateChallengeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest 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.confidentialcomputing.v1alpha1.CreateChallengeRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest 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.confidentialcomputing.v1alpha1.CreateChallengeRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest 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.confidentialcomputing.v1alpha1.CreateChallengeRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest - 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.confidentialcomputing.v1alpha1.CreateChallengeRequest 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.confidentialcomputing.v1alpha1.CreateChallengeRequest 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.confidentialcomputing.v1alpha1.CreateChallengeRequest 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.confidentialcomputing.v1alpha1.CreateChallengeRequest prototype) { + public static Builder newBuilder(com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest 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; } /** - * - * *
    * Message for creating a Challenge
    * 
* * Protobuf type {@code google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest} */ - 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.confidentialcomputing.v1alpha1.CreateChallengeRequest) com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto - .internal_static_google_cloud_confidentialcomputing_v1alpha1_CreateChallengeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1alpha1_CreateChallengeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto - .internal_static_google_cloud_confidentialcomputing_v1alpha1_CreateChallengeRequest_fieldAccessorTable + return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1alpha1_CreateChallengeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest.class, - com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest.Builder.class); + com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest.class, com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest.Builder.class); } - // Construct using - // com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest.newBuilder() - private Builder() {} + // Construct using com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -404,22 +353,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto - .internal_static_google_cloud_confidentialcomputing_v1alpha1_CreateChallengeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1alpha1_CreateChallengeRequest_descriptor; } @java.lang.Override - public com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest - getDefaultInstanceForType() { - return com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest - .getDefaultInstance(); + public com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest getDefaultInstanceForType() { + return com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest.getDefaultInstance(); } @java.lang.Override public com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest build() { - com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest result = - buildPartial(); + com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -428,23 +374,21 @@ public com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest bu @java.lang.Override public com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest buildPartial() { - com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest result = - new com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest result = new com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest result) { + private void buildPartial0(com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.challenge_ = challengeBuilder_ == null ? challenge_ : challengeBuilder_.build(); + result.challenge_ = challengeBuilder_ == null + ? challenge_ + : challengeBuilder_.build(); } } @@ -452,51 +396,46 @@ private void buildPartial0( 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.confidentialcomputing.v1alpha1.CreateChallengeRequest) { - return mergeFrom( - (com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest) other); + return mergeFrom((com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest other) { - if (other - == com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest other) { + if (other == com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -531,25 +470,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getChallengeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getChallengeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -559,28 +497,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The resource name of the location where the Challenge will be
      * used, in the format `projects/*/locations/*`.
      * 
* - * - * 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; @@ -589,24 +522,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The resource name of the location where the Challenge will be
      * used, in the format `projects/*/locations/*`.
      * 
* - * - * 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 { @@ -614,41 +544,30 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The resource name of the location where the Challenge will be
      * used, in the format `projects/*/locations/*`.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the location where the Challenge will be
      * used, in the format `projects/*/locations/*`.
      * 
* - * - * 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() { @@ -658,24 +577,18 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The resource name of the location where the Challenge will be
      * used, in the format `projects/*/locations/*`.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -685,61 +598,42 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.confidentialcomputing.v1alpha1.Challenge challenge_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.confidentialcomputing.v1alpha1.Challenge, - com.google.cloud.confidentialcomputing.v1alpha1.Challenge.Builder, - com.google.cloud.confidentialcomputing.v1alpha1.ChallengeOrBuilder> - challengeBuilder_; + com.google.cloud.confidentialcomputing.v1alpha1.Challenge, com.google.cloud.confidentialcomputing.v1alpha1.Challenge.Builder, com.google.cloud.confidentialcomputing.v1alpha1.ChallengeOrBuilder> challengeBuilder_; /** - * - * *
      * Required. The Challenge to be created. Currently this field can be empty as
      * all the Challenge fields are set by the server.
      * 
* - * - * .google.cloud.confidentialcomputing.v1alpha1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.confidentialcomputing.v1alpha1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the challenge field is set. */ public boolean hasChallenge() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. The Challenge to be created. Currently this field can be empty as
      * all the Challenge fields are set by the server.
      * 
* - * - * .google.cloud.confidentialcomputing.v1alpha1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.confidentialcomputing.v1alpha1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The challenge. */ public com.google.cloud.confidentialcomputing.v1alpha1.Challenge getChallenge() { if (challengeBuilder_ == null) { - return challenge_ == null - ? com.google.cloud.confidentialcomputing.v1alpha1.Challenge.getDefaultInstance() - : challenge_; + return challenge_ == null ? com.google.cloud.confidentialcomputing.v1alpha1.Challenge.getDefaultInstance() : challenge_; } else { return challengeBuilder_.getMessage(); } } /** - * - * *
      * Required. The Challenge to be created. Currently this field can be empty as
      * all the Challenge fields are set by the server.
      * 
* - * - * .google.cloud.confidentialcomputing.v1alpha1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.confidentialcomputing.v1alpha1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setChallenge(com.google.cloud.confidentialcomputing.v1alpha1.Challenge value) { if (challengeBuilder_ == null) { @@ -755,16 +649,12 @@ public Builder setChallenge(com.google.cloud.confidentialcomputing.v1alpha1.Chal return this; } /** - * - * *
      * Required. The Challenge to be created. Currently this field can be empty as
      * all the Challenge fields are set by the server.
      * 
* - * - * .google.cloud.confidentialcomputing.v1alpha1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.confidentialcomputing.v1alpha1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setChallenge( com.google.cloud.confidentialcomputing.v1alpha1.Challenge.Builder builderForValue) { @@ -778,23 +668,18 @@ public Builder setChallenge( return this; } /** - * - * *
      * Required. The Challenge to be created. Currently this field can be empty as
      * all the Challenge fields are set by the server.
      * 
* - * - * .google.cloud.confidentialcomputing.v1alpha1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.confidentialcomputing.v1alpha1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeChallenge(com.google.cloud.confidentialcomputing.v1alpha1.Challenge value) { if (challengeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && challenge_ != null - && challenge_ - != com.google.cloud.confidentialcomputing.v1alpha1.Challenge.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + challenge_ != null && + challenge_ != com.google.cloud.confidentialcomputing.v1alpha1.Challenge.getDefaultInstance()) { getChallengeBuilder().mergeFrom(value); } else { challenge_ = value; @@ -807,16 +692,12 @@ public Builder mergeChallenge(com.google.cloud.confidentialcomputing.v1alpha1.Ch return this; } /** - * - * *
      * Required. The Challenge to be created. Currently this field can be empty as
      * all the Challenge fields are set by the server.
      * 
* - * - * .google.cloud.confidentialcomputing.v1alpha1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.confidentialcomputing.v1alpha1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearChallenge() { bitField0_ = (bitField0_ & ~0x00000002); @@ -829,16 +710,12 @@ public Builder clearChallenge() { return this; } /** - * - * *
      * Required. The Challenge to be created. Currently this field can be empty as
      * all the Challenge fields are set by the server.
      * 
* - * - * .google.cloud.confidentialcomputing.v1alpha1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.confidentialcomputing.v1alpha1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.confidentialcomputing.v1alpha1.Challenge.Builder getChallengeBuilder() { bitField0_ |= 0x00000002; @@ -846,58 +723,45 @@ public com.google.cloud.confidentialcomputing.v1alpha1.Challenge.Builder getChal return getChallengeFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The Challenge to be created. Currently this field can be empty as
      * all the Challenge fields are set by the server.
      * 
* - * - * .google.cloud.confidentialcomputing.v1alpha1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.confidentialcomputing.v1alpha1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.confidentialcomputing.v1alpha1.ChallengeOrBuilder - getChallengeOrBuilder() { + public com.google.cloud.confidentialcomputing.v1alpha1.ChallengeOrBuilder getChallengeOrBuilder() { if (challengeBuilder_ != null) { return challengeBuilder_.getMessageOrBuilder(); } else { - return challenge_ == null - ? com.google.cloud.confidentialcomputing.v1alpha1.Challenge.getDefaultInstance() - : challenge_; + return challenge_ == null ? + com.google.cloud.confidentialcomputing.v1alpha1.Challenge.getDefaultInstance() : challenge_; } } /** - * - * *
      * Required. The Challenge to be created. Currently this field can be empty as
      * all the Challenge fields are set by the server.
      * 
* - * - * .google.cloud.confidentialcomputing.v1alpha1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.confidentialcomputing.v1alpha1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.confidentialcomputing.v1alpha1.Challenge, - com.google.cloud.confidentialcomputing.v1alpha1.Challenge.Builder, - com.google.cloud.confidentialcomputing.v1alpha1.ChallengeOrBuilder> + com.google.cloud.confidentialcomputing.v1alpha1.Challenge, com.google.cloud.confidentialcomputing.v1alpha1.Challenge.Builder, com.google.cloud.confidentialcomputing.v1alpha1.ChallengeOrBuilder> getChallengeFieldBuilder() { if (challengeBuilder_ == null) { - challengeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.confidentialcomputing.v1alpha1.Challenge, - com.google.cloud.confidentialcomputing.v1alpha1.Challenge.Builder, - com.google.cloud.confidentialcomputing.v1alpha1.ChallengeOrBuilder>( - getChallenge(), getParentForChildren(), isClean()); + challengeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.confidentialcomputing.v1alpha1.Challenge, com.google.cloud.confidentialcomputing.v1alpha1.Challenge.Builder, com.google.cloud.confidentialcomputing.v1alpha1.ChallengeOrBuilder>( + getChallenge(), + getParentForChildren(), + isClean()); challenge_ = null; } return challengeBuilder_; } - @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); } @@ -907,43 +771,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest) - private static final com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest(); } - public static com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest - getDefaultInstance() { + public static com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateChallengeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateChallengeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -955,8 +817,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest - getDefaultInstanceForType() { + public com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/CreateChallengeRequestOrBuilder.java b/owl-bot-staging/java-confidentialcomputing/v1alpha1/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/CreateChallengeRequestOrBuilder.java similarity index 52% rename from java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/CreateChallengeRequestOrBuilder.java rename to owl-bot-staging/java-confidentialcomputing/v1alpha1/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/CreateChallengeRequestOrBuilder.java index 2a935675332d..bb1432c948a3 100644 --- a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/CreateChallengeRequestOrBuilder.java +++ b/owl-bot-staging/java-confidentialcomputing/v1alpha1/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/CreateChallengeRequestOrBuilder.java @@ -1,100 +1,61 @@ -/* - * Copyright 2023 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/confidentialcomputing/v1alpha1/service.proto package com.google.cloud.confidentialcomputing.v1alpha1; -public interface CreateChallengeRequestOrBuilder - extends +public interface CreateChallengeRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name of the location where the Challenge will be
    * used, in the format `projects/*/locations/*`.
    * 
* - * - * 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 location where the Challenge will be
    * used, in the format `projects/*/locations/*`.
    * 
* - * - * 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 Challenge to be created. Currently this field can be empty as
    * all the Challenge fields are set by the server.
    * 
* - * - * .google.cloud.confidentialcomputing.v1alpha1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.confidentialcomputing.v1alpha1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the challenge field is set. */ boolean hasChallenge(); /** - * - * *
    * Required. The Challenge to be created. Currently this field can be empty as
    * all the Challenge fields are set by the server.
    * 
* - * - * .google.cloud.confidentialcomputing.v1alpha1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.confidentialcomputing.v1alpha1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The challenge. */ com.google.cloud.confidentialcomputing.v1alpha1.Challenge getChallenge(); /** - * - * *
    * Required. The Challenge to be created. Currently this field can be empty as
    * all the Challenge fields are set by the server.
    * 
* - * - * .google.cloud.confidentialcomputing.v1alpha1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.confidentialcomputing.v1alpha1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.confidentialcomputing.v1alpha1.ChallengeOrBuilder getChallengeOrBuilder(); } diff --git a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/GcpCredentials.java b/owl-bot-staging/java-confidentialcomputing/v1alpha1/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/GcpCredentials.java similarity index 70% rename from java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/GcpCredentials.java rename to owl-bot-staging/java-confidentialcomputing/v1alpha1/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/GcpCredentials.java index b1c5e8386949..6e2ef8b3f743 100644 --- a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/GcpCredentials.java +++ b/owl-bot-staging/java-confidentialcomputing/v1alpha1/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/GcpCredentials.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 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/confidentialcomputing/v1alpha1/service.proto package com.google.cloud.confidentialcomputing.v1alpha1; /** - * - * *
  * Credentials issued by GCP which are linked to the platform attestation. These
  * will be verified server-side as part of attestaion verification.
@@ -28,48 +11,43 @@
  *
  * Protobuf type {@code google.cloud.confidentialcomputing.v1alpha1.GcpCredentials}
  */
-public final class GcpCredentials extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class GcpCredentials extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.confidentialcomputing.v1alpha1.GcpCredentials)
     GcpCredentialsOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use GcpCredentials.newBuilder() to construct.
   private GcpCredentials(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private GcpCredentials() {
     idTokens_ = java.util.Collections.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new GcpCredentials();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto
-        .internal_static_google_cloud_confidentialcomputing_v1alpha1_GcpCredentials_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1alpha1_GcpCredentials_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto
-        .internal_static_google_cloud_confidentialcomputing_v1alpha1_GcpCredentials_fieldAccessorTable
+    return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1alpha1_GcpCredentials_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials.class,
-            com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials.Builder.class);
+            com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials.class, com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials.Builder.class);
   }
 
   public static final int ID_TOKENS_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private java.util.List idTokens_;
   /**
-   *
-   *
    * 
    * A list of service account OpenID Connect ID tokens identifying which
    * service account identities should be included in the claims_token. These
@@ -80,16 +58,14 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * repeated bytes id_tokens = 1; - * * @return A list containing the idTokens. */ @java.lang.Override - public java.util.List getIdTokensList() { + public java.util.List + getIdTokensList() { return idTokens_; } /** - * - * *
    * A list of service account OpenID Connect ID tokens identifying which
    * service account identities should be included in the claims_token. These
@@ -100,15 +76,12 @@ public java.util.List getIdTokensList() {
    * 
* * repeated bytes id_tokens = 1; - * * @return The count of idTokens. */ public int getIdTokensCount() { return idTokens_.size(); } /** - * - * *
    * A list of service account OpenID Connect ID tokens identifying which
    * service account identities should be included in the claims_token. These
@@ -119,7 +92,6 @@ public int getIdTokensCount() {
    * 
* * repeated bytes id_tokens = 1; - * * @param index The index of the element to return. * @return The idTokens at the given index. */ @@ -128,7 +100,6 @@ public com.google.protobuf.ByteString getIdTokens(int index) { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -140,7 +111,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 < idTokens_.size(); i++) { output.writeBytes(1, idTokens_.get(i)); } @@ -156,7 +128,8 @@ public int getSerializedSize() { { int dataSize = 0; for (int i = 0; i < idTokens_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream.computeBytesSizeNoTag(idTokens_.get(i)); + dataSize += com.google.protobuf.CodedOutputStream + .computeBytesSizeNoTag(idTokens_.get(i)); } size += dataSize; size += 1 * getIdTokensList().size(); @@ -169,15 +142,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.confidentialcomputing.v1alpha1.GcpCredentials)) { return super.equals(obj); } - com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials other = - (com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials) obj; + com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials other = (com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials) obj; - if (!getIdTokensList().equals(other.getIdTokensList())) return false; + if (!getIdTokensList() + .equals(other.getIdTokensList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -199,104 +172,98 @@ public int hashCode() { } public static com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials 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.confidentialcomputing.v1alpha1.GcpCredentials 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.confidentialcomputing.v1alpha1.GcpCredentials parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials 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.confidentialcomputing.v1alpha1.GcpCredentials parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials 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.confidentialcomputing.v1alpha1.GcpCredentials parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials 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.confidentialcomputing.v1alpha1.GcpCredentials parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials 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.confidentialcomputing.v1alpha1.GcpCredentials 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.confidentialcomputing.v1alpha1.GcpCredentials 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.confidentialcomputing.v1alpha1.GcpCredentials prototype) { + public static Builder newBuilder(com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials 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; } /** - * - * *
    * Credentials issued by GCP which are linked to the platform attestation. These
    * will be verified server-side as part of attestaion verification.
@@ -304,32 +271,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.confidentialcomputing.v1alpha1.GcpCredentials}
    */
-  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.confidentialcomputing.v1alpha1.GcpCredentials)
       com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentialsOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto
-          .internal_static_google_cloud_confidentialcomputing_v1alpha1_GcpCredentials_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1alpha1_GcpCredentials_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto
-          .internal_static_google_cloud_confidentialcomputing_v1alpha1_GcpCredentials_fieldAccessorTable
+      return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1alpha1_GcpCredentials_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials.class,
-              com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials.Builder.class);
+              com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials.class, com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials.Builder.class);
     }
 
     // Construct using com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -339,14 +307,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto
-          .internal_static_google_cloud_confidentialcomputing_v1alpha1_GcpCredentials_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1alpha1_GcpCredentials_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials
-        getDefaultInstanceForType() {
+    public com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials getDefaultInstanceForType() {
       return com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials.getDefaultInstance();
     }
 
@@ -361,18 +328,14 @@ public com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials build() {
 
     @java.lang.Override
     public com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials buildPartial() {
-      com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials result =
-          new com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials(this);
+      com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials result = new com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(
-        com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials result) {
+    private void buildPartialRepeatedFields(com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials result) {
       if (((bitField0_ & 0x00000001) != 0)) {
         idTokens_ = java.util.Collections.unmodifiableList(idTokens_);
         bitField0_ = (bitField0_ & ~0x00000001);
@@ -380,8 +343,7 @@ private void buildPartialRepeatedFields(
       result.idTokens_ = idTokens_;
     }
 
-    private void buildPartial0(
-        com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials result) {
+    private void buildPartial0(com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials result) {
       int from_bitField0_ = bitField0_;
     }
 
@@ -389,39 +351,38 @@ private void buildPartial0(
     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.confidentialcomputing.v1alpha1.GcpCredentials) {
-        return mergeFrom((com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials) other);
+        return mergeFrom((com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -429,9 +390,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials other) {
-      if (other
-          == com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials.getDefaultInstance()) return this;
       if (!other.idTokens_.isEmpty()) {
         if (idTokens_.isEmpty()) {
           idTokens_ = other.idTokens_;
@@ -468,20 +427,18 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                com.google.protobuf.ByteString v = input.readBytes();
-                ensureIdTokensIsMutable();
-                idTokens_.add(v);
-                break;
-              } // case 10
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              com.google.protobuf.ByteString v = input.readBytes();
+              ensureIdTokensIsMutable();
+              idTokens_.add(v);
+              break;
+            } // case 10
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -491,12 +448,9 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
-    private java.util.List idTokens_ =
-        java.util.Collections.emptyList();
-
+    private java.util.List idTokens_ = java.util.Collections.emptyList();
     private void ensureIdTokensIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         idTokens_ = new java.util.ArrayList(idTokens_);
@@ -504,8 +458,6 @@ private void ensureIdTokensIsMutable() {
       }
     }
     /**
-     *
-     *
      * 
      * A list of service account OpenID Connect ID tokens identifying which
      * service account identities should be included in the claims_token. These
@@ -516,17 +468,14 @@ private void ensureIdTokensIsMutable() {
      * 
* * repeated bytes id_tokens = 1; - * * @return A list containing the idTokens. */ - public java.util.List getIdTokensList() { - return ((bitField0_ & 0x00000001) != 0) - ? java.util.Collections.unmodifiableList(idTokens_) - : idTokens_; + public java.util.List + getIdTokensList() { + return ((bitField0_ & 0x00000001) != 0) ? + java.util.Collections.unmodifiableList(idTokens_) : idTokens_; } /** - * - * *
      * A list of service account OpenID Connect ID tokens identifying which
      * service account identities should be included in the claims_token. These
@@ -537,15 +486,12 @@ public java.util.List getIdTokensList() {
      * 
* * repeated bytes id_tokens = 1; - * * @return The count of idTokens. */ public int getIdTokensCount() { return idTokens_.size(); } /** - * - * *
      * A list of service account OpenID Connect ID tokens identifying which
      * service account identities should be included in the claims_token. These
@@ -556,7 +502,6 @@ public int getIdTokensCount() {
      * 
* * repeated bytes id_tokens = 1; - * * @param index The index of the element to return. * @return The idTokens at the given index. */ @@ -564,8 +509,6 @@ public com.google.protobuf.ByteString getIdTokens(int index) { return idTokens_.get(index); } /** - * - * *
      * A list of service account OpenID Connect ID tokens identifying which
      * service account identities should be included in the claims_token. These
@@ -576,23 +519,19 @@ public com.google.protobuf.ByteString getIdTokens(int index) {
      * 
* * repeated bytes id_tokens = 1; - * * @param index The index to set the value at. * @param value The idTokens to set. * @return This builder for chaining. */ - public Builder setIdTokens(int index, com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setIdTokens( + int index, com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } ensureIdTokensIsMutable(); idTokens_.set(index, value); onChanged(); return this; } /** - * - * *
      * A list of service account OpenID Connect ID tokens identifying which
      * service account identities should be included in the claims_token. These
@@ -603,22 +542,17 @@ public Builder setIdTokens(int index, com.google.protobuf.ByteString value) {
      * 
* * repeated bytes id_tokens = 1; - * * @param value The idTokens to add. * @return This builder for chaining. */ public Builder addIdTokens(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + if (value == null) { throw new NullPointerException(); } ensureIdTokensIsMutable(); idTokens_.add(value); onChanged(); return this; } /** - * - * *
      * A list of service account OpenID Connect ID tokens identifying which
      * service account identities should be included in the claims_token. These
@@ -629,20 +563,18 @@ public Builder addIdTokens(com.google.protobuf.ByteString value) {
      * 
* * repeated bytes id_tokens = 1; - * * @param values The idTokens to add. * @return This builder for chaining. */ public Builder addAllIdTokens( java.lang.Iterable values) { ensureIdTokensIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, idTokens_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, idTokens_); onChanged(); return this; } /** - * - * *
      * A list of service account OpenID Connect ID tokens identifying which
      * service account identities should be included in the claims_token. These
@@ -653,7 +585,6 @@ public Builder addAllIdTokens(
      * 
* * repeated bytes id_tokens = 1; - * * @return This builder for chaining. */ public Builder clearIdTokens() { @@ -662,9 +593,9 @@ public Builder clearIdTokens() { 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); } @@ -674,43 +605,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.confidentialcomputing.v1alpha1.GcpCredentials) } // @@protoc_insertion_point(class_scope:google.cloud.confidentialcomputing.v1alpha1.GcpCredentials) - private static final com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials - DEFAULT_INSTANCE; - + private static final com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials(); } - public static com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials - getDefaultInstance() { + public static com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GcpCredentials parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcpCredentials parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -722,8 +651,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials - getDefaultInstanceForType() { + public com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/GcpCredentialsOrBuilder.java b/owl-bot-staging/java-confidentialcomputing/v1alpha1/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/GcpCredentialsOrBuilder.java similarity index 74% rename from java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/GcpCredentialsOrBuilder.java rename to owl-bot-staging/java-confidentialcomputing/v1alpha1/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/GcpCredentialsOrBuilder.java index 8971a2ede837..9c9371dfbc17 100644 --- a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/GcpCredentialsOrBuilder.java +++ b/owl-bot-staging/java-confidentialcomputing/v1alpha1/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/GcpCredentialsOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 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/confidentialcomputing/v1alpha1/service.proto package com.google.cloud.confidentialcomputing.v1alpha1; -public interface GcpCredentialsOrBuilder - extends +public interface GcpCredentialsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.confidentialcomputing.v1alpha1.GcpCredentials) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * A list of service account OpenID Connect ID tokens identifying which
    * service account identities should be included in the claims_token. These
@@ -36,13 +18,10 @@ public interface GcpCredentialsOrBuilder
    * 
* * repeated bytes id_tokens = 1; - * * @return A list containing the idTokens. */ java.util.List getIdTokensList(); /** - * - * *
    * A list of service account OpenID Connect ID tokens identifying which
    * service account identities should be included in the claims_token. These
@@ -53,13 +32,10 @@ public interface GcpCredentialsOrBuilder
    * 
* * repeated bytes id_tokens = 1; - * * @return The count of idTokens. */ int getIdTokensCount(); /** - * - * *
    * A list of service account OpenID Connect ID tokens identifying which
    * service account identities should be included in the claims_token. These
@@ -70,7 +46,6 @@ public interface GcpCredentialsOrBuilder
    * 
* * repeated bytes id_tokens = 1; - * * @param index The index of the element to return. * @return The idTokens at the given index. */ diff --git a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/LocationName.java b/owl-bot-staging/java-confidentialcomputing/v1alpha1/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/LocationName.java similarity index 100% rename from java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/LocationName.java rename to owl-bot-staging/java-confidentialcomputing/v1alpha1/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/LocationName.java diff --git a/owl-bot-staging/java-confidentialcomputing/v1alpha1/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/ServiceProto.java b/owl-bot-staging/java-confidentialcomputing/v1alpha1/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/ServiceProto.java new file mode 100644 index 000000000000..89dfae1c42b0 --- /dev/null +++ b/owl-bot-staging/java-confidentialcomputing/v1alpha1/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/ServiceProto.java @@ -0,0 +1,204 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/confidentialcomputing/v1alpha1/service.proto + +package com.google.cloud.confidentialcomputing.v1alpha1; + +public final class ServiceProto { + private ServiceProto() {} + 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_confidentialcomputing_v1alpha1_Challenge_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_confidentialcomputing_v1alpha1_Challenge_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_confidentialcomputing_v1alpha1_CreateChallengeRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_confidentialcomputing_v1alpha1_CreateChallengeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_confidentialcomputing_v1alpha1_VerifyAttestationRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_confidentialcomputing_v1alpha1_VerifyAttestationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_confidentialcomputing_v1alpha1_VerifyAttestationResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_confidentialcomputing_v1alpha1_VerifyAttestationResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_confidentialcomputing_v1alpha1_GcpCredentials_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_confidentialcomputing_v1alpha1_GcpCredentials_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_Quote_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_Quote_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_Quote_PcrValuesEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_Quote_PcrValuesEntry_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n9google/cloud/confidentialcomputing/v1a" + + "lpha1/service.proto\022+google.cloud.confid" + + "entialcomputing.v1alpha1\032\034google/api/ann" + + "otations.proto\032\027google/api/client.proto\032" + + "\037google/api/field_behavior.proto\032\031google" + + "/api/resource.proto\032\037google/protobuf/tim" + + "estamp.proto\"\246\002\n\tChallenge\022\022\n\004name\030\001 \001(\t" + + "B\004\342A\001\003\0225\n\013create_time\030\002 \001(\0132\032.google.pro" + + "tobuf.TimestampB\004\342A\001\003\0225\n\013expire_time\030\003 \001" + + "(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022\022\n\004" + + "used\030\004 \001(\010B\004\342A\001\003\022\023\n\005nonce\030\005 \001(\014B\004\342A\001\003:n\352" + + "Ak\n.confidentialcomputing.googleapis.com" + + "/Challenge\0229projects/{project}/locations" + + "/{location}/challenges/{uuid}\"\245\001\n\026Create" + + "ChallengeRequest\022:\n\006parent\030\001 \001(\tB*\342A\001\002\372A" + + "#\n!locations.googleapis.com/Location\022O\n\t" + + "challenge\030\002 \001(\01326.google.cloud.confident" + + "ialcomputing.v1alpha1.ChallengeB\004\342A\001\002\"\236\002" + + "\n\030VerifyAttestationRequest\022J\n\tchallenge\030" + + "\001 \001(\tB7\342A\001\002\372A0\n.confidentialcomputing.go" + + "ogleapis.com/Challenge\022Z\n\017gcp_credential" + + "s\030\002 \001(\0132;.google.cloud.confidentialcompu" + + "ting.v1alpha1.GcpCredentialsB\004\342A\001\001\022Z\n\017tp" + + "m_attestation\030\003 \001(\0132;.google.cloud.confi" + + "dentialcomputing.v1alpha1.TpmAttestation" + + "B\004\342A\001\002\"7\n\031VerifyAttestationResponse\022\032\n\014c" + + "laims_token\030\001 \001(\014B\004\342A\001\003\"#\n\016GcpCredential" + + "s\022\021\n\tid_tokens\030\001 \003(\014\"\233\003\n\016TpmAttestation\022" + + "Q\n\006quotes\030\001 \003(\0132A.google.cloud.confident" + + "ialcomputing.v1alpha1.TpmAttestation.Quo" + + "te\022\025\n\rtcg_event_log\030\002 \001(\014\022\033\n\023canonical_e" + + "vent_log\030\003 \001(\014\022\017\n\007ak_cert\030\004 \001(\014\022\022\n\ncert_" + + "chain\030\005 \003(\014\032\334\001\n\005Quote\022\021\n\thash_algo\030\001 \001(\005" + + "\022d\n\npcr_values\030\002 \003(\0132P.google.cloud.conf" + + "identialcomputing.v1alpha1.TpmAttestatio" + + "n.Quote.PcrValuesEntry\022\021\n\traw_quote\030\003 \001(" + + "\014\022\025\n\rraw_signature\030\004 \001(\014\0320\n\016PcrValuesEnt" + + "ry\022\013\n\003key\030\001 \001(\005\022\r\n\005value\030\002 \001(\014:\0028\0012\333\004\n\025C" + + "onfidentialComputing\022\352\001\n\017CreateChallenge" + + "\022C.google.cloud.confidentialcomputing.v1" + + "alpha1.CreateChallengeRequest\0326.google.c" + + "loud.confidentialcomputing.v1alpha1.Chal" + + "lenge\"Z\332A\020parent,challenge\202\323\344\223\002A\"4/v1alp" + + "ha1/{parent=projects/*/locations/*}/chal" + + "lenges:\tchallenge\022\372\001\n\021VerifyAttestation\022" + + "E.google.cloud.confidentialcomputing.v1a" + + "lpha1.VerifyAttestationRequest\032F.google." + + "cloud.confidentialcomputing.v1alpha1.Ver" + + "ifyAttestationResponse\"V\202\323\344\223\002P\"K/v1alpha" + + "1/{challenge=projects/*/locations/*/chal" + + "lenges/*}:verifyAttestation:\001*\032X\312A$confi" + + "dentialcomputing.googleapis.com\322A.https:" + + "//www.googleapis.com/auth/cloud-platform" + + "B\265\002\n/com.google.cloud.confidentialcomput" + + "ing.v1alpha1B\014ServiceProtoP\001Zecloud.goog" + + "le.com/go/confidentialcomputing/apiv1alp" + + "ha1/confidentialcomputingpb;confidential" + + "computingpb\252\002+Google.Cloud.ConfidentialC" + + "omputing.V1Alpha1\312\002+Google\\Cloud\\Confide" + + "ntialComputing\\V1alpha1\352\002.Google::Cloud:" + + ":ConfidentialComputing::V1alpha1b\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.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_confidentialcomputing_v1alpha1_Challenge_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_confidentialcomputing_v1alpha1_Challenge_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_confidentialcomputing_v1alpha1_Challenge_descriptor, + new java.lang.String[] { "Name", "CreateTime", "ExpireTime", "Used", "Nonce", }); + internal_static_google_cloud_confidentialcomputing_v1alpha1_CreateChallengeRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_confidentialcomputing_v1alpha1_CreateChallengeRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_confidentialcomputing_v1alpha1_CreateChallengeRequest_descriptor, + new java.lang.String[] { "Parent", "Challenge", }); + internal_static_google_cloud_confidentialcomputing_v1alpha1_VerifyAttestationRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_confidentialcomputing_v1alpha1_VerifyAttestationRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_confidentialcomputing_v1alpha1_VerifyAttestationRequest_descriptor, + new java.lang.String[] { "Challenge", "GcpCredentials", "TpmAttestation", }); + internal_static_google_cloud_confidentialcomputing_v1alpha1_VerifyAttestationResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_confidentialcomputing_v1alpha1_VerifyAttestationResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_confidentialcomputing_v1alpha1_VerifyAttestationResponse_descriptor, + new java.lang.String[] { "ClaimsToken", }); + internal_static_google_cloud_confidentialcomputing_v1alpha1_GcpCredentials_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_confidentialcomputing_v1alpha1_GcpCredentials_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_confidentialcomputing_v1alpha1_GcpCredentials_descriptor, + new java.lang.String[] { "IdTokens", }); + internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_descriptor, + new java.lang.String[] { "Quotes", "TcgEventLog", "CanonicalEventLog", "AkCert", "CertChain", }); + internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_Quote_descriptor = + internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_Quote_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_Quote_descriptor, + new java.lang.String[] { "HashAlgo", "PcrValues", "RawQuote", "RawSignature", }); + internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_Quote_PcrValuesEntry_descriptor = + internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_Quote_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_Quote_PcrValuesEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_Quote_PcrValuesEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + 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.resource); + 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.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/TpmAttestation.java b/owl-bot-staging/java-confidentialcomputing/v1alpha1/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/TpmAttestation.java similarity index 70% rename from java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/TpmAttestation.java rename to owl-bot-staging/java-confidentialcomputing/v1alpha1/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/TpmAttestation.java index 04b8fa08beee..28678a3a56f4 100644 --- a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/TpmAttestation.java +++ b/owl-bot-staging/java-confidentialcomputing/v1alpha1/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/TpmAttestation.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 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/confidentialcomputing/v1alpha1/service.proto package com.google.cloud.confidentialcomputing.v1alpha1; /** - * - * *
  * TPM2 data containing everything necessary to validate any platform state
  * measured into the TPM.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.confidentialcomputing.v1alpha1.TpmAttestation}
  */
-public final class TpmAttestation extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class TpmAttestation extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.confidentialcomputing.v1alpha1.TpmAttestation)
     TpmAttestationOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use TpmAttestation.newBuilder() to construct.
   private TpmAttestation(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private TpmAttestation() {
     quotes_ = java.util.Collections.emptyList();
     tcgEventLog_ = com.google.protobuf.ByteString.EMPTY;
@@ -48,46 +30,39 @@ private TpmAttestation() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new TpmAttestation();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto
-        .internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto
-        .internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_fieldAccessorTable
+    return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.class,
-            com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Builder.class);
+            com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.class, com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Builder.class);
   }
 
-  public interface QuoteOrBuilder
-      extends
+  public interface QuoteOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * The hash algorithm of the PCR bank being quoted, encoded as a TPM_ALG_ID
      * 
* * int32 hash_algo = 1; - * * @return The hashAlgo. */ int getHashAlgo(); /** - * - * *
      * Raw binary values of each PCRs being quoted.
      * 
@@ -96,31 +71,30 @@ public interface QuoteOrBuilder */ int getPcrValuesCount(); /** - * - * *
      * Raw binary values of each PCRs being quoted.
      * 
* * map<int32, bytes> pcr_values = 2; */ - boolean containsPcrValues(int key); - /** Use {@link #getPcrValuesMap()} instead. */ + boolean containsPcrValues( + int key); + /** + * Use {@link #getPcrValuesMap()} instead. + */ @java.lang.Deprecated - java.util.Map getPcrValues(); + java.util.Map + getPcrValues(); /** - * - * *
      * Raw binary values of each PCRs being quoted.
      * 
* * map<int32, bytes> pcr_values = 2; */ - java.util.Map getPcrValuesMap(); + java.util.Map + getPcrValuesMap(); /** - * - * *
      * Raw binary values of each PCRs being quoted.
      * 
@@ -128,50 +102,41 @@ public interface QuoteOrBuilder * map<int32, bytes> pcr_values = 2; */ /* nullable */ - com.google.protobuf.ByteString getPcrValuesOrDefault( +com.google.protobuf.ByteString getPcrValuesOrDefault( int key, /* nullable */ - com.google.protobuf.ByteString defaultValue); +com.google.protobuf.ByteString defaultValue); /** - * - * *
      * Raw binary values of each PCRs being quoted.
      * 
* * map<int32, bytes> pcr_values = 2; */ - com.google.protobuf.ByteString getPcrValuesOrThrow(int key); + com.google.protobuf.ByteString getPcrValuesOrThrow( + int key); /** - * - * *
      * TPM2 quote, encoded as a TPMS_ATTEST
      * 
* * bytes raw_quote = 3; - * * @return The rawQuote. */ com.google.protobuf.ByteString getRawQuote(); /** - * - * *
      * TPM2 signature, encoded as a TPMT_SIGNATURE
      * 
* * bytes raw_signature = 4; - * * @return The rawSignature. */ com.google.protobuf.ByteString getRawSignature(); } /** - * - * *
    * Information about Platform Control Registers (PCRs) including a signature
    * over their values, which can be used for remote validation.
@@ -179,16 +144,15 @@ com.google.protobuf.ByteString getPcrValuesOrDefault(
    *
    * Protobuf type {@code google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote}
    */
-  public static final class Quote extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class Quote extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote)
       QuoteOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use Quote.newBuilder() to construct.
     private Quote(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
     private Quote() {
       rawQuote_ = com.google.protobuf.ByteString.EMPTY;
       rawSignature_ = com.google.protobuf.ByteString.EMPTY;
@@ -196,47 +160,44 @@ private Quote() {
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new Quote();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto
-          .internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_Quote_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_Quote_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 2:
           return internalGetPcrValues();
         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.confidentialcomputing.v1alpha1.ServiceProto
-          .internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_Quote_fieldAccessorTable
+      return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_Quote_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote.class,
-              com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote.Builder.class);
+              com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote.class, com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote.Builder.class);
     }
 
     public static final int HASH_ALGO_FIELD_NUMBER = 1;
     private int hashAlgo_ = 0;
     /**
-     *
-     *
      * 
      * The hash algorithm of the PCR bank being quoted, encoded as a TPM_ALG_ID
      * 
* * int32 hash_algo = 1; - * * @return The hashAlgo. */ @java.lang.Override @@ -245,38 +206,32 @@ public int getHashAlgo() { } public static final int PCR_VALUES_FIELD_NUMBER = 2; - private static final class PcrValuesDefaultEntryHolder { - static final com.google.protobuf.MapEntry - defaultEntry = + static final com.google.protobuf.MapEntry< + java.lang.Integer, com.google.protobuf.ByteString> defaultEntry = com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto - .internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_Quote_PcrValuesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.INT32, - 0, - com.google.protobuf.WireFormat.FieldType.BYTES, - com.google.protobuf.ByteString.EMPTY); + .newDefaultInstance( + com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_Quote_PcrValuesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.INT32, + 0, + com.google.protobuf.WireFormat.FieldType.BYTES, + com.google.protobuf.ByteString.EMPTY); } - @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.Integer, com.google.protobuf.ByteString> pcrValues_; private com.google.protobuf.MapField - pcrValues_; - - private com.google.protobuf.MapField - internalGetPcrValues() { + internalGetPcrValues() { if (pcrValues_ == null) { - return com.google.protobuf.MapField.emptyMapField(PcrValuesDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + PcrValuesDefaultEntryHolder.defaultEntry); } return pcrValues_; } - public int getPcrValuesCount() { return internalGetPcrValues().getMap().size(); } /** - * - * *
      * Raw binary values of each PCRs being quoted.
      * 
@@ -284,19 +239,20 @@ public int getPcrValuesCount() { * map<int32, bytes> pcr_values = 2; */ @java.lang.Override - public boolean containsPcrValues(int key) { + public boolean containsPcrValues( + int key) { return internalGetPcrValues().getMap().containsKey(key); } - /** Use {@link #getPcrValuesMap()} instead. */ + /** + * Use {@link #getPcrValuesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getPcrValues() { return getPcrValuesMap(); } /** - * - * *
      * Raw binary values of each PCRs being quoted.
      * 
@@ -308,8 +264,6 @@ public java.util.Map getPcrVa return internalGetPcrValues().getMap(); } /** - * - * *
      * Raw binary values of each PCRs being quoted.
      * 
@@ -317,18 +271,17 @@ public java.util.Map getPcrVa * map<int32, bytes> pcr_values = 2; */ @java.lang.Override - public /* nullable */ com.google.protobuf.ByteString getPcrValuesOrDefault( + public /* nullable */ +com.google.protobuf.ByteString getPcrValuesOrDefault( int key, /* nullable */ - com.google.protobuf.ByteString defaultValue) { +com.google.protobuf.ByteString defaultValue) { java.util.Map map = internalGetPcrValues().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Raw binary values of each PCRs being quoted.
      * 
@@ -336,7 +289,8 @@ public java.util.Map getPcrVa * map<int32, bytes> pcr_values = 2; */ @java.lang.Override - public com.google.protobuf.ByteString getPcrValuesOrThrow(int key) { + public com.google.protobuf.ByteString getPcrValuesOrThrow( + int key) { java.util.Map map = internalGetPcrValues().getMap(); @@ -349,14 +303,11 @@ public com.google.protobuf.ByteString getPcrValuesOrThrow(int key) { public static final int RAW_QUOTE_FIELD_NUMBER = 3; private com.google.protobuf.ByteString rawQuote_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
      * TPM2 quote, encoded as a TPMS_ATTEST
      * 
* * bytes raw_quote = 3; - * * @return The rawQuote. */ @java.lang.Override @@ -367,14 +318,11 @@ public com.google.protobuf.ByteString getRawQuote() { public static final int RAW_SIGNATURE_FIELD_NUMBER = 4; private com.google.protobuf.ByteString rawSignature_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
      * TPM2 signature, encoded as a TPMT_SIGNATURE
      * 
* * bytes raw_signature = 4; - * * @return The rawSignature. */ @java.lang.Override @@ -383,7 +331,6 @@ public com.google.protobuf.ByteString getRawSignature() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -395,12 +342,17 @@ 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 (hashAlgo_ != 0) { output.writeInt32(1, hashAlgo_); } - com.google.protobuf.GeneratedMessageV3.serializeIntegerMapTo( - output, internalGetPcrValues(), PcrValuesDefaultEntryHolder.defaultEntry, 2); + com.google.protobuf.GeneratedMessageV3 + .serializeIntegerMapTo( + output, + internalGetPcrValues(), + PcrValuesDefaultEntryHolder.defaultEntry, + 2); if (!rawQuote_.isEmpty()) { output.writeBytes(3, rawQuote_); } @@ -417,24 +369,26 @@ public int getSerializedSize() { size = 0; if (hashAlgo_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, hashAlgo_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, hashAlgo_); } - for (java.util.Map.Entry entry : - internalGetPcrValues().getMap().entrySet()) { + for (java.util.Map.Entry entry + : internalGetPcrValues().getMap().entrySet()) { com.google.protobuf.MapEntry - pcrValues__ = - PcrValuesDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, pcrValues__); + pcrValues__ = PcrValuesDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, pcrValues__); } if (!rawQuote_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(3, rawQuote_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(3, rawQuote_); } if (!rawSignature_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(4, rawSignature_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(4, rawSignature_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -444,18 +398,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.confidentialcomputing.v1alpha1.TpmAttestation.Quote)) { return super.equals(obj); } - com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote other = - (com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote) obj; + com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote other = (com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote) obj; - if (getHashAlgo() != other.getHashAlgo()) return false; - if (!internalGetPcrValues().equals(other.internalGetPcrValues())) return false; - if (!getRawQuote().equals(other.getRawQuote())) return false; - if (!getRawSignature().equals(other.getRawSignature())) return false; + if (getHashAlgo() + != other.getHashAlgo()) return false; + if (!internalGetPcrValues().equals( + other.internalGetPcrValues())) return false; + if (!getRawQuote() + .equals(other.getRawQuote())) return false; + if (!getRawSignature() + .equals(other.getRawSignature())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -483,95 +440,89 @@ public int hashCode() { } public static com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote 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.confidentialcomputing.v1alpha1.TpmAttestation.Quote 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.confidentialcomputing.v1alpha1.TpmAttestation.Quote parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote 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.confidentialcomputing.v1alpha1.TpmAttestation.Quote parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote 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.confidentialcomputing.v1alpha1.TpmAttestation.Quote parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote 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.confidentialcomputing.v1alpha1.TpmAttestation.Quote - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote - 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.confidentialcomputing.v1alpha1.TpmAttestation.Quote 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.confidentialcomputing.v1alpha1.TpmAttestation.Quote 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.confidentialcomputing.v1alpha1.TpmAttestation.Quote 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.confidentialcomputing.v1alpha1.TpmAttestation.Quote prototype) { + public static Builder newBuilder(com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote 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 @@ -581,8 +532,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Information about Platform Control Registers (PCRs) including a signature
      * over their values, which can be used for remote validation.
@@ -590,54 +539,55 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote}
      */
-    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.confidentialcomputing.v1alpha1.TpmAttestation.Quote)
         com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.QuoteOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto
-            .internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_Quote_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_Quote_descriptor;
       }
 
       @SuppressWarnings({"rawtypes"})
-      protected com.google.protobuf.MapField internalGetMapField(int number) {
+      protected com.google.protobuf.MapField internalGetMapField(
+          int number) {
         switch (number) {
           case 2:
             return internalGetPcrValues();
           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 2:
             return internalGetMutablePcrValues();
           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.confidentialcomputing.v1alpha1.ServiceProto
-            .internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_Quote_fieldAccessorTable
+        return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_Quote_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote.class,
-                com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote.Builder.class);
+                com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote.class, com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote.Builder.class);
       }
 
-      // Construct using
-      // com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote.newBuilder()
-      private Builder() {}
+      // Construct using com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote.newBuilder()
+      private Builder() {
 
-      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-        super(parent);
       }
 
+      private Builder(
+          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+        super(parent);
+
+      }
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -650,22 +600,19 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto
-            .internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_Quote_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_Quote_descriptor;
       }
 
       @java.lang.Override
-      public com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote
-          getDefaultInstanceForType() {
-        return com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote
-            .getDefaultInstance();
+      public com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote getDefaultInstanceForType() {
+        return com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote.getDefaultInstance();
       }
 
       @java.lang.Override
       public com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote build() {
-        com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote result =
-            buildPartial();
+        com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote result = buildPartial();
         if (!result.isInitialized()) {
           throw newUninitializedMessageException(result);
         }
@@ -674,17 +621,13 @@ public com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote buil
 
       @java.lang.Override
       public com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote buildPartial() {
-        com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote result =
-            new com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote(this);
-        if (bitField0_ != 0) {
-          buildPartial0(result);
-        }
+        com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote result = new com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote(this);
+        if (bitField0_ != 0) { buildPartial0(result); }
         onBuilt();
         return result;
       }
 
-      private void buildPartial0(
-          com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote result) {
+      private void buildPartial0(com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote result) {
         int from_bitField0_ = bitField0_;
         if (((from_bitField0_ & 0x00000001) != 0)) {
           result.hashAlgo_ = hashAlgo_;
@@ -705,57 +648,51 @@ private void buildPartial0(
       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.confidentialcomputing.v1alpha1.TpmAttestation.Quote) {
-          return mergeFrom(
-              (com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote) other);
+          return mergeFrom((com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote)other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(
-          com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote other) {
-        if (other
-            == com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote
-                .getDefaultInstance()) return this;
+      public Builder mergeFrom(com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote other) {
+        if (other == com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote.getDefaultInstance()) return this;
         if (other.getHashAlgo() != 0) {
           setHashAlgo(other.getHashAlgo());
         }
-        internalGetMutablePcrValues().mergeFrom(other.internalGetPcrValues());
+        internalGetMutablePcrValues().mergeFrom(
+            other.internalGetPcrValues());
         bitField0_ |= 0x00000002;
         if (other.getRawQuote() != com.google.protobuf.ByteString.EMPTY) {
           setRawQuote(other.getRawQuote());
@@ -789,44 +726,36 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 8:
-                {
-                  hashAlgo_ = input.readInt32();
-                  bitField0_ |= 0x00000001;
-                  break;
-                } // case 8
-              case 18:
-                {
-                  com.google.protobuf.MapEntry
-                      pcrValues__ =
-                          input.readMessage(
-                              PcrValuesDefaultEntryHolder.defaultEntry.getParserForType(),
-                              extensionRegistry);
-                  internalGetMutablePcrValues()
-                      .getMutableMap()
-                      .put(pcrValues__.getKey(), pcrValues__.getValue());
-                  bitField0_ |= 0x00000002;
-                  break;
-                } // case 18
-              case 26:
-                {
-                  rawQuote_ = input.readBytes();
-                  bitField0_ |= 0x00000004;
-                  break;
-                } // case 26
-              case 34:
-                {
-                  rawSignature_ = input.readBytes();
-                  bitField0_ |= 0x00000008;
-                  break;
-                } // case 34
-              default:
-                {
-                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                    done = true; // was an endgroup tag
-                  }
-                  break;
-                } // default:
+              case 8: {
+                hashAlgo_ = input.readInt32();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 8
+              case 18: {
+                com.google.protobuf.MapEntry
+                pcrValues__ = input.readMessage(
+                    PcrValuesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+                internalGetMutablePcrValues().getMutableMap().put(
+                    pcrValues__.getKey(), pcrValues__.getValue());
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+              case 26: {
+                rawQuote_ = input.readBytes();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+              case 34: {
+                rawSignature_ = input.readBytes();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 34
+              default: {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -836,19 +765,15 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
-
       private int bitField0_;
 
-      private int hashAlgo_;
+      private int hashAlgo_ ;
       /**
-       *
-       *
        * 
        * The hash algorithm of the PCR bank being quoted, encoded as a TPM_ALG_ID
        * 
* * int32 hash_algo = 1; - * * @return The hashAlgo. */ @java.lang.Override @@ -856,14 +781,11 @@ public int getHashAlgo() { return hashAlgo_; } /** - * - * *
        * The hash algorithm of the PCR bank being quoted, encoded as a TPM_ALG_ID
        * 
* * int32 hash_algo = 1; - * * @param value The hashAlgo to set. * @return This builder for chaining. */ @@ -875,14 +797,11 @@ public Builder setHashAlgo(int value) { return this; } /** - * - * *
        * The hash algorithm of the PCR bank being quoted, encoded as a TPM_ALG_ID
        * 
* * int32 hash_algo = 1; - * * @return This builder for chaining. */ public Builder clearHashAlgo() { @@ -892,9 +811,8 @@ public Builder clearHashAlgo() { return this; } - private com.google.protobuf.MapField - pcrValues_; - + private com.google.protobuf.MapField< + java.lang.Integer, com.google.protobuf.ByteString> pcrValues_; private com.google.protobuf.MapField internalGetPcrValues() { if (pcrValues_ == null) { @@ -903,12 +821,11 @@ public Builder clearHashAlgo() { } return pcrValues_; } - private com.google.protobuf.MapField internalGetMutablePcrValues() { if (pcrValues_ == null) { - pcrValues_ = - com.google.protobuf.MapField.newMapField(PcrValuesDefaultEntryHolder.defaultEntry); + pcrValues_ = com.google.protobuf.MapField.newMapField( + PcrValuesDefaultEntryHolder.defaultEntry); } if (!pcrValues_.isMutable()) { pcrValues_ = pcrValues_.copy(); @@ -917,13 +834,10 @@ public Builder clearHashAlgo() { onChanged(); return pcrValues_; } - public int getPcrValuesCount() { return internalGetPcrValues().getMap().size(); } /** - * - * *
        * Raw binary values of each PCRs being quoted.
        * 
@@ -931,19 +845,20 @@ public int getPcrValuesCount() { * map<int32, bytes> pcr_values = 2; */ @java.lang.Override - public boolean containsPcrValues(int key) { + public boolean containsPcrValues( + int key) { return internalGetPcrValues().getMap().containsKey(key); } - /** Use {@link #getPcrValuesMap()} instead. */ + /** + * Use {@link #getPcrValuesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getPcrValues() { return getPcrValuesMap(); } /** - * - * *
        * Raw binary values of each PCRs being quoted.
        * 
@@ -955,8 +870,6 @@ public java.util.Map getPcrVa return internalGetPcrValues().getMap(); } /** - * - * *
        * Raw binary values of each PCRs being quoted.
        * 
@@ -964,18 +877,17 @@ public java.util.Map getPcrVa * map<int32, bytes> pcr_values = 2; */ @java.lang.Override - public /* nullable */ com.google.protobuf.ByteString getPcrValuesOrDefault( + public /* nullable */ +com.google.protobuf.ByteString getPcrValuesOrDefault( int key, /* nullable */ - com.google.protobuf.ByteString defaultValue) { +com.google.protobuf.ByteString defaultValue) { java.util.Map map = internalGetPcrValues().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
        * Raw binary values of each PCRs being quoted.
        * 
@@ -983,7 +895,8 @@ public java.util.Map getPcrVa * map<int32, bytes> pcr_values = 2; */ @java.lang.Override - public com.google.protobuf.ByteString getPcrValuesOrThrow(int key) { + public com.google.protobuf.ByteString getPcrValuesOrThrow( + int key) { java.util.Map map = internalGetPcrValues().getMap(); @@ -992,27 +905,29 @@ public com.google.protobuf.ByteString getPcrValuesOrThrow(int key) { } return map.get(key); } - public Builder clearPcrValues() { bitField0_ = (bitField0_ & ~0x00000002); - internalGetMutablePcrValues().getMutableMap().clear(); + internalGetMutablePcrValues().getMutableMap() + .clear(); return this; } /** - * - * *
        * Raw binary values of each PCRs being quoted.
        * 
* * map<int32, bytes> pcr_values = 2; */ - public Builder removePcrValues(int key) { + public Builder removePcrValues( + int key) { - internalGetMutablePcrValues().getMutableMap().remove(key); + internalGetMutablePcrValues().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated public java.util.Map getMutablePcrValues() { @@ -1020,26 +935,23 @@ public Builder removePcrValues(int key) { return internalGetMutablePcrValues().getMutableMap(); } /** - * - * *
        * Raw binary values of each PCRs being quoted.
        * 
* * map<int32, bytes> pcr_values = 2; */ - public Builder putPcrValues(int key, com.google.protobuf.ByteString value) { + public Builder putPcrValues( + int key, + com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutablePcrValues().getMutableMap().put(key, value); + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutablePcrValues().getMutableMap() + .put(key, value); bitField0_ |= 0x00000002; return this; } /** - * - * *
        * Raw binary values of each PCRs being quoted.
        * 
@@ -1048,21 +960,19 @@ public Builder putPcrValues(int key, com.google.protobuf.ByteString value) { */ public Builder putAllPcrValues( java.util.Map values) { - internalGetMutablePcrValues().getMutableMap().putAll(values); + internalGetMutablePcrValues().getMutableMap() + .putAll(values); bitField0_ |= 0x00000002; return this; } private com.google.protobuf.ByteString rawQuote_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
        * TPM2 quote, encoded as a TPMS_ATTEST
        * 
* * bytes raw_quote = 3; - * * @return The rawQuote. */ @java.lang.Override @@ -1070,35 +980,27 @@ public com.google.protobuf.ByteString getRawQuote() { return rawQuote_; } /** - * - * *
        * TPM2 quote, encoded as a TPMS_ATTEST
        * 
* * bytes raw_quote = 3; - * * @param value The rawQuote to set. * @return This builder for chaining. */ public Builder setRawQuote(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + if (value == null) { throw new NullPointerException(); } rawQuote_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
        * TPM2 quote, encoded as a TPMS_ATTEST
        * 
* * bytes raw_quote = 3; - * * @return This builder for chaining. */ public Builder clearRawQuote() { @@ -1110,14 +1012,11 @@ public Builder clearRawQuote() { private com.google.protobuf.ByteString rawSignature_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
        * TPM2 signature, encoded as a TPMT_SIGNATURE
        * 
* * bytes raw_signature = 4; - * * @return The rawSignature. */ @java.lang.Override @@ -1125,35 +1024,27 @@ public com.google.protobuf.ByteString getRawSignature() { return rawSignature_; } /** - * - * *
        * TPM2 signature, encoded as a TPMT_SIGNATURE
        * 
* * bytes raw_signature = 4; - * * @param value The rawSignature to set. * @return This builder for chaining. */ public Builder setRawSignature(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + if (value == null) { throw new NullPointerException(); } rawSignature_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
        * TPM2 signature, encoded as a TPMT_SIGNATURE
        * 
* * bytes raw_signature = 4; - * * @return This builder for chaining. */ public Builder clearRawSignature() { @@ -1162,7 +1053,6 @@ public Builder clearRawSignature() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1175,44 +1065,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote) } // @@protoc_insertion_point(class_scope:google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote) - private static final com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote - DEFAULT_INSTANCE; - + private static final com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote(); } - public static com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote - getDefaultInstance() { + public static com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Quote parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Quote parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1224,97 +1111,76 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote - getDefaultInstanceForType() { + public com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int QUOTES_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List - quotes_; + private java.util.List quotes_; /** - * - * *
    * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
    * 
* - * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; - * + * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; */ @java.lang.Override - public java.util.List - getQuotesList() { + public java.util.List getQuotesList() { return quotes_; } /** - * - * *
    * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
    * 
* - * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; - * + * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.QuoteOrBuilder> + public java.util.List getQuotesOrBuilderList() { return quotes_; } /** - * - * *
    * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
    * 
* - * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; - * + * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; */ @java.lang.Override public int getQuotesCount() { return quotes_.size(); } /** - * - * *
    * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
    * 
* - * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; - * + * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; */ @java.lang.Override public com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote getQuotes(int index) { return quotes_.get(index); } /** - * - * *
    * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
    * 
* - * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; - * + * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; */ @java.lang.Override - public com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.QuoteOrBuilder - getQuotesOrBuilder(int index) { + public com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.QuoteOrBuilder getQuotesOrBuilder( + int index) { return quotes_.get(index); } public static final int TCG_EVENT_LOG_FIELD_NUMBER = 2; private com.google.protobuf.ByteString tcgEventLog_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
    * The binary TCG Event Log containing events measured into the TPM by the
    * platform firmware and operating system. Formatted as described in the
@@ -1322,7 +1188,6 @@ public com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote getQ
    * 
* * bytes tcg_event_log = 2; - * * @return The tcgEventLog. */ @java.lang.Override @@ -1333,8 +1198,6 @@ public com.google.protobuf.ByteString getTcgEventLog() { public static final int CANONICAL_EVENT_LOG_FIELD_NUMBER = 3; private com.google.protobuf.ByteString canonicalEventLog_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
    * An Event Log containing additional events measured into the TPM that are
    * not already present in the tcg_event_log. Formatted as described in the
@@ -1342,7 +1205,6 @@ public com.google.protobuf.ByteString getTcgEventLog() {
    * 
* * bytes canonical_event_log = 3; - * * @return The canonicalEventLog. */ @java.lang.Override @@ -1353,15 +1215,12 @@ public com.google.protobuf.ByteString getCanonicalEventLog() { public static final int AK_CERT_FIELD_NUMBER = 4; private com.google.protobuf.ByteString akCert_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
    * DER-encoded X.509 certificate of the Attestation Key (otherwise known as
    * an AK or a TPM restricted signing key) used to generate the quotes.
    * 
* * bytes ak_cert = 4; - * * @return The akCert. */ @java.lang.Override @@ -1370,50 +1229,41 @@ public com.google.protobuf.ByteString getAkCert() { } public static final int CERT_CHAIN_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private java.util.List certChain_; /** - * - * *
    * List of DER-encoded X.509 certificates which, together with the ak_cert,
    * chain back to a trusted Root Certificate.
    * 
* * repeated bytes cert_chain = 5; - * * @return A list containing the certChain. */ @java.lang.Override - public java.util.List getCertChainList() { + public java.util.List + getCertChainList() { return certChain_; } /** - * - * *
    * List of DER-encoded X.509 certificates which, together with the ak_cert,
    * chain back to a trusted Root Certificate.
    * 
* * repeated bytes cert_chain = 5; - * * @return The count of certChain. */ public int getCertChainCount() { return certChain_.size(); } /** - * - * *
    * List of DER-encoded X.509 certificates which, together with the ak_cert,
    * chain back to a trusted Root Certificate.
    * 
* * repeated bytes cert_chain = 5; - * * @param index The index of the element to return. * @return The certChain at the given index. */ @@ -1422,7 +1272,6 @@ public com.google.protobuf.ByteString getCertChain(int index) { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1434,7 +1283,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 < quotes_.size(); i++) { output.writeMessage(1, quotes_.get(i)); } @@ -1460,21 +1310,26 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < quotes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, quotes_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, quotes_.get(i)); } if (!tcgEventLog_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, tcgEventLog_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, tcgEventLog_); } if (!canonicalEventLog_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(3, canonicalEventLog_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(3, canonicalEventLog_); } if (!akCert_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(4, akCert_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(4, akCert_); } { int dataSize = 0; for (int i = 0; i < certChain_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream.computeBytesSizeNoTag(certChain_.get(i)); + dataSize += com.google.protobuf.CodedOutputStream + .computeBytesSizeNoTag(certChain_.get(i)); } size += dataSize; size += 1 * getCertChainList().size(); @@ -1487,19 +1342,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.cloud.confidentialcomputing.v1alpha1.TpmAttestation)) { return super.equals(obj); } - com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation other = - (com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation) obj; - - if (!getQuotesList().equals(other.getQuotesList())) return false; - if (!getTcgEventLog().equals(other.getTcgEventLog())) return false; - if (!getCanonicalEventLog().equals(other.getCanonicalEventLog())) return false; - if (!getAkCert().equals(other.getAkCert())) return false; - if (!getCertChainList().equals(other.getCertChainList())) return false; + com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation other = (com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation) obj; + + if (!getQuotesList() + .equals(other.getQuotesList())) return false; + if (!getTcgEventLog() + .equals(other.getTcgEventLog())) return false; + if (!getCanonicalEventLog() + .equals(other.getCanonicalEventLog())) return false; + if (!getAkCert() + .equals(other.getAkCert())) return false; + if (!getCertChainList() + .equals(other.getCertChainList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1531,104 +1390,98 @@ public int hashCode() { } public static com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation 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.confidentialcomputing.v1alpha1.TpmAttestation 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.confidentialcomputing.v1alpha1.TpmAttestation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation 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.confidentialcomputing.v1alpha1.TpmAttestation parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation 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.confidentialcomputing.v1alpha1.TpmAttestation parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation 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.confidentialcomputing.v1alpha1.TpmAttestation parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation 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.confidentialcomputing.v1alpha1.TpmAttestation 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.confidentialcomputing.v1alpha1.TpmAttestation 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.confidentialcomputing.v1alpha1.TpmAttestation prototype) { + public static Builder newBuilder(com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation 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; } /** - * - * *
    * TPM2 data containing everything necessary to validate any platform state
    * measured into the TPM.
@@ -1636,32 +1489,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.confidentialcomputing.v1alpha1.TpmAttestation}
    */
-  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.confidentialcomputing.v1alpha1.TpmAttestation)
       com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestationOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto
-          .internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto
-          .internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_fieldAccessorTable
+      return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.class,
-              com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Builder.class);
+              com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.class, com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Builder.class);
     }
 
     // Construct using com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1681,14 +1535,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto
-          .internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation
-        getDefaultInstanceForType() {
+    public com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation getDefaultInstanceForType() {
       return com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.getDefaultInstance();
     }
 
@@ -1703,18 +1556,14 @@ public com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation build() {
 
     @java.lang.Override
     public com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation buildPartial() {
-      com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation result =
-          new com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation(this);
+      com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation result = new com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(
-        com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation result) {
+    private void buildPartialRepeatedFields(com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation result) {
       if (quotesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
           quotes_ = java.util.Collections.unmodifiableList(quotes_);
@@ -1731,8 +1580,7 @@ private void buildPartialRepeatedFields(
       result.certChain_ = certChain_;
     }
 
-    private void buildPartial0(
-        com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation result) {
+    private void buildPartial0(com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000002) != 0)) {
         result.tcgEventLog_ = tcgEventLog_;
@@ -1749,39 +1597,38 @@ private void buildPartial0(
     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.confidentialcomputing.v1alpha1.TpmAttestation) {
-        return mergeFrom((com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation) other);
+        return mergeFrom((com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1789,9 +1636,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation other) {
-      if (other
-          == com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.getDefaultInstance()) return this;
       if (quotesBuilder_ == null) {
         if (!other.quotes_.isEmpty()) {
           if (quotes_.isEmpty()) {
@@ -1810,10 +1655,9 @@ public Builder mergeFrom(com.google.cloud.confidentialcomputing.v1alpha1.TpmAtte
             quotesBuilder_ = null;
             quotes_ = other.quotes_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            quotesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getQuotesFieldBuilder()
-                    : null;
+            quotesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getQuotesFieldBuilder() : null;
           } else {
             quotesBuilder_.addAllMessages(other.quotes_);
           }
@@ -1864,53 +1708,46 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote m =
-                    input.readMessage(
-                        com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote
-                            .parser(),
-                        extensionRegistry);
-                if (quotesBuilder_ == null) {
-                  ensureQuotesIsMutable();
-                  quotes_.add(m);
-                } else {
-                  quotesBuilder_.addMessage(m);
-                }
-                break;
-              } // case 10
-            case 18:
-              {
-                tcgEventLog_ = input.readBytes();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                canonicalEventLog_ = input.readBytes();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            case 34:
-              {
-                akCert_ = input.readBytes();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 34
-            case 42:
-              {
-                com.google.protobuf.ByteString v = input.readBytes();
-                ensureCertChainIsMutable();
-                certChain_.add(v);
-                break;
-              } // case 42
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote m =
+                  input.readMessage(
+                      com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote.parser(),
+                      extensionRegistry);
+              if (quotesBuilder_ == null) {
+                ensureQuotesIsMutable();
+                quotes_.add(m);
+              } else {
+                quotesBuilder_.addMessage(m);
+              }
+              break;
+            } // case 10
+            case 18: {
+              tcgEventLog_ = input.readBytes();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              canonicalEventLog_ = input.readBytes();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            case 34: {
+              akCert_ = input.readBytes();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 34
+            case 42: {
+              com.google.protobuf.ByteString v = input.readBytes();
+              ensureCertChainIsMutable();
+              certChain_.add(v);
+              break;
+            } // case 42
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1920,39 +1757,28 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
-    private java.util.List
-        quotes_ = java.util.Collections.emptyList();
-
+    private java.util.List quotes_ =
+      java.util.Collections.emptyList();
     private void ensureQuotesIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        quotes_ =
-            new java.util.ArrayList<
-                com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote>(quotes_);
+        quotes_ = new java.util.ArrayList(quotes_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote,
-            com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote.Builder,
-            com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.QuoteOrBuilder>
-        quotesBuilder_;
+        com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote, com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote.Builder, com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.QuoteOrBuilder> quotesBuilder_;
 
     /**
-     *
-     *
      * 
      * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
      * 
* - * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; - * + * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; */ - public java.util.List - getQuotesList() { + public java.util.List getQuotesList() { if (quotesBuilder_ == null) { return java.util.Collections.unmodifiableList(quotes_); } else { @@ -1960,14 +1786,11 @@ private void ensureQuotesIsMutable() { } } /** - * - * *
      * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
      * 
* - * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; - * + * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; */ public int getQuotesCount() { if (quotesBuilder_ == null) { @@ -1977,17 +1800,13 @@ public int getQuotesCount() { } } /** - * - * *
      * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
      * 
* - * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; - * + * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; */ - public com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote getQuotes( - int index) { + public com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote getQuotes(int index) { if (quotesBuilder_ == null) { return quotes_.get(index); } else { @@ -1995,14 +1814,11 @@ public com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote getQ } } /** - * - * *
      * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
      * 
* - * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; - * + * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; */ public Builder setQuotes( int index, com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote value) { @@ -2019,19 +1835,14 @@ public Builder setQuotes( return this; } /** - * - * *
      * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
      * 
* - * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; - * + * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; */ public Builder setQuotes( - int index, - com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote.Builder - builderForValue) { + int index, com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote.Builder builderForValue) { if (quotesBuilder_ == null) { ensureQuotesIsMutable(); quotes_.set(index, builderForValue.build()); @@ -2042,17 +1853,13 @@ public Builder setQuotes( return this; } /** - * - * *
      * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
      * 
* - * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; - * + * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; */ - public Builder addQuotes( - com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote value) { + public Builder addQuotes(com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote value) { if (quotesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2066,14 +1873,11 @@ public Builder addQuotes( return this; } /** - * - * *
      * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
      * 
* - * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; - * + * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; */ public Builder addQuotes( int index, com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote value) { @@ -2090,18 +1894,14 @@ public Builder addQuotes( return this; } /** - * - * *
      * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
      * 
* - * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; - * + * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; */ public Builder addQuotes( - com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote.Builder - builderForValue) { + com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote.Builder builderForValue) { if (quotesBuilder_ == null) { ensureQuotesIsMutable(); quotes_.add(builderForValue.build()); @@ -2112,19 +1912,14 @@ public Builder addQuotes( return this; } /** - * - * *
      * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
      * 
* - * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; - * + * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; */ public Builder addQuotes( - int index, - com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote.Builder - builderForValue) { + int index, com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote.Builder builderForValue) { if (quotesBuilder_ == null) { ensureQuotesIsMutable(); quotes_.add(index, builderForValue.build()); @@ -2135,22 +1930,18 @@ public Builder addQuotes( return this; } /** - * - * *
      * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
      * 
* - * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; - * + * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; */ public Builder addAllQuotes( - java.lang.Iterable< - ? extends com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote> - values) { + java.lang.Iterable values) { if (quotesBuilder_ == null) { ensureQuotesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, quotes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, quotes_); onChanged(); } else { quotesBuilder_.addAllMessages(values); @@ -2158,14 +1949,11 @@ public Builder addAllQuotes( return this; } /** - * - * *
      * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
      * 
* - * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; - * + * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; */ public Builder clearQuotes() { if (quotesBuilder_ == null) { @@ -2178,14 +1966,11 @@ public Builder clearQuotes() { return this; } /** - * - * *
      * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
      * 
* - * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; - * + * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; */ public Builder removeQuotes(int index) { if (quotesBuilder_ == null) { @@ -2198,50 +1983,39 @@ public Builder removeQuotes(int index) { return this; } /** - * - * *
      * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
      * 
* - * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; - * + * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; */ - public com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote.Builder - getQuotesBuilder(int index) { + public com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote.Builder getQuotesBuilder( + int index) { return getQuotesFieldBuilder().getBuilder(index); } /** - * - * *
      * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
      * 
* - * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; - * + * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; */ - public com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.QuoteOrBuilder - getQuotesOrBuilder(int index) { + public com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.QuoteOrBuilder getQuotesOrBuilder( + int index) { if (quotesBuilder_ == null) { - return quotes_.get(index); - } else { + return quotes_.get(index); } else { return quotesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
      * 
* - * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; - * + * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; */ - public java.util.List< - ? extends com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.QuoteOrBuilder> - getQuotesOrBuilderList() { + public java.util.List + getQuotesOrBuilderList() { if (quotesBuilder_ != null) { return quotesBuilder_.getMessageOrBuilderList(); } else { @@ -2249,68 +2023,49 @@ public Builder removeQuotes(int index) { } } /** - * - * *
      * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
      * 
* - * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; - * + * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; */ - public com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote.Builder - addQuotesBuilder() { - return getQuotesFieldBuilder() - .addBuilder( - com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote - .getDefaultInstance()); + public com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote.Builder addQuotesBuilder() { + return getQuotesFieldBuilder().addBuilder( + com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote.getDefaultInstance()); } /** - * - * *
      * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
      * 
* - * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; - * + * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; */ - public com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote.Builder - addQuotesBuilder(int index) { - return getQuotesFieldBuilder() - .addBuilder( - index, - com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote - .getDefaultInstance()); + public com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote.Builder addQuotesBuilder( + int index) { + return getQuotesFieldBuilder().addBuilder( + index, com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote.getDefaultInstance()); } /** - * - * *
      * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
      * 
* - * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; - * + * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; */ - public java.util.List< - com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote.Builder> - getQuotesBuilderList() { + public java.util.List + getQuotesBuilderList() { return getQuotesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote, - com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote.Builder, - com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.QuoteOrBuilder> + com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote, com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote.Builder, com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.QuoteOrBuilder> getQuotesFieldBuilder() { if (quotesBuilder_ == null) { - quotesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote, - com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote.Builder, - com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.QuoteOrBuilder>( - quotes_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + quotesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote, com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote.Builder, com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.QuoteOrBuilder>( + quotes_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); quotes_ = null; } return quotesBuilder_; @@ -2318,8 +2073,6 @@ public Builder removeQuotes(int index) { private com.google.protobuf.ByteString tcgEventLog_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
      * The binary TCG Event Log containing events measured into the TPM by the
      * platform firmware and operating system. Formatted as described in the
@@ -2327,7 +2080,6 @@ public Builder removeQuotes(int index) {
      * 
* * bytes tcg_event_log = 2; - * * @return The tcgEventLog. */ @java.lang.Override @@ -2335,8 +2087,6 @@ public com.google.protobuf.ByteString getTcgEventLog() { return tcgEventLog_; } /** - * - * *
      * The binary TCG Event Log containing events measured into the TPM by the
      * platform firmware and operating system. Formatted as described in the
@@ -2344,22 +2094,17 @@ public com.google.protobuf.ByteString getTcgEventLog() {
      * 
* * bytes tcg_event_log = 2; - * * @param value The tcgEventLog to set. * @return This builder for chaining. */ public Builder setTcgEventLog(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + if (value == null) { throw new NullPointerException(); } tcgEventLog_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The binary TCG Event Log containing events measured into the TPM by the
      * platform firmware and operating system. Formatted as described in the
@@ -2367,7 +2112,6 @@ public Builder setTcgEventLog(com.google.protobuf.ByteString value) {
      * 
* * bytes tcg_event_log = 2; - * * @return This builder for chaining. */ public Builder clearTcgEventLog() { @@ -2377,11 +2121,8 @@ public Builder clearTcgEventLog() { return this; } - private com.google.protobuf.ByteString canonicalEventLog_ = - com.google.protobuf.ByteString.EMPTY; + private com.google.protobuf.ByteString canonicalEventLog_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
      * An Event Log containing additional events measured into the TPM that are
      * not already present in the tcg_event_log. Formatted as described in the
@@ -2389,7 +2130,6 @@ public Builder clearTcgEventLog() {
      * 
* * bytes canonical_event_log = 3; - * * @return The canonicalEventLog. */ @java.lang.Override @@ -2397,8 +2137,6 @@ public com.google.protobuf.ByteString getCanonicalEventLog() { return canonicalEventLog_; } /** - * - * *
      * An Event Log containing additional events measured into the TPM that are
      * not already present in the tcg_event_log. Formatted as described in the
@@ -2406,22 +2144,17 @@ public com.google.protobuf.ByteString getCanonicalEventLog() {
      * 
* * bytes canonical_event_log = 3; - * * @param value The canonicalEventLog to set. * @return This builder for chaining. */ public Builder setCanonicalEventLog(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + if (value == null) { throw new NullPointerException(); } canonicalEventLog_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * An Event Log containing additional events measured into the TPM that are
      * not already present in the tcg_event_log. Formatted as described in the
@@ -2429,7 +2162,6 @@ public Builder setCanonicalEventLog(com.google.protobuf.ByteString value) {
      * 
* * bytes canonical_event_log = 3; - * * @return This builder for chaining. */ public Builder clearCanonicalEventLog() { @@ -2441,15 +2173,12 @@ public Builder clearCanonicalEventLog() { private com.google.protobuf.ByteString akCert_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
      * DER-encoded X.509 certificate of the Attestation Key (otherwise known as
      * an AK or a TPM restricted signing key) used to generate the quotes.
      * 
* * bytes ak_cert = 4; - * * @return The akCert. */ @java.lang.Override @@ -2457,37 +2186,29 @@ public com.google.protobuf.ByteString getAkCert() { return akCert_; } /** - * - * *
      * DER-encoded X.509 certificate of the Attestation Key (otherwise known as
      * an AK or a TPM restricted signing key) used to generate the quotes.
      * 
* * bytes ak_cert = 4; - * * @param value The akCert to set. * @return This builder for chaining. */ public Builder setAkCert(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + if (value == null) { throw new NullPointerException(); } akCert_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * DER-encoded X.509 certificate of the Attestation Key (otherwise known as
      * an AK or a TPM restricted signing key) used to generate the quotes.
      * 
* * bytes ak_cert = 4; - * * @return This builder for chaining. */ public Builder clearAkCert() { @@ -2497,9 +2218,7 @@ public Builder clearAkCert() { return this; } - private java.util.List certChain_ = - java.util.Collections.emptyList(); - + private java.util.List certChain_ = java.util.Collections.emptyList(); private void ensureCertChainIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { certChain_ = new java.util.ArrayList(certChain_); @@ -2507,47 +2226,38 @@ private void ensureCertChainIsMutable() { } } /** - * - * *
      * List of DER-encoded X.509 certificates which, together with the ak_cert,
      * chain back to a trusted Root Certificate.
      * 
* * repeated bytes cert_chain = 5; - * * @return A list containing the certChain. */ - public java.util.List getCertChainList() { - return ((bitField0_ & 0x00000010) != 0) - ? java.util.Collections.unmodifiableList(certChain_) - : certChain_; + public java.util.List + getCertChainList() { + return ((bitField0_ & 0x00000010) != 0) ? + java.util.Collections.unmodifiableList(certChain_) : certChain_; } /** - * - * *
      * List of DER-encoded X.509 certificates which, together with the ak_cert,
      * chain back to a trusted Root Certificate.
      * 
* * repeated bytes cert_chain = 5; - * * @return The count of certChain. */ public int getCertChainCount() { return certChain_.size(); } /** - * - * *
      * List of DER-encoded X.509 certificates which, together with the ak_cert,
      * chain back to a trusted Root Certificate.
      * 
* * repeated bytes cert_chain = 5; - * * @param index The index of the element to return. * @return The certChain at the given index. */ @@ -2555,80 +2265,66 @@ public com.google.protobuf.ByteString getCertChain(int index) { return certChain_.get(index); } /** - * - * *
      * List of DER-encoded X.509 certificates which, together with the ak_cert,
      * chain back to a trusted Root Certificate.
      * 
* * repeated bytes cert_chain = 5; - * * @param index The index to set the value at. * @param value The certChain to set. * @return This builder for chaining. */ - public Builder setCertChain(int index, com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCertChain( + int index, com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } ensureCertChainIsMutable(); certChain_.set(index, value); onChanged(); return this; } /** - * - * *
      * List of DER-encoded X.509 certificates which, together with the ak_cert,
      * chain back to a trusted Root Certificate.
      * 
* * repeated bytes cert_chain = 5; - * * @param value The certChain to add. * @return This builder for chaining. */ public Builder addCertChain(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + if (value == null) { throw new NullPointerException(); } ensureCertChainIsMutable(); certChain_.add(value); onChanged(); return this; } /** - * - * *
      * List of DER-encoded X.509 certificates which, together with the ak_cert,
      * chain back to a trusted Root Certificate.
      * 
* * repeated bytes cert_chain = 5; - * * @param values The certChain to add. * @return This builder for chaining. */ public Builder addAllCertChain( java.lang.Iterable values) { ensureCertChainIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, certChain_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, certChain_); onChanged(); return this; } /** - * - * *
      * List of DER-encoded X.509 certificates which, together with the ak_cert,
      * chain back to a trusted Root Certificate.
      * 
* * repeated bytes cert_chain = 5; - * * @return This builder for chaining. */ public Builder clearCertChain() { @@ -2637,9 +2333,9 @@ public Builder clearCertChain() { 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); } @@ -2649,43 +2345,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.confidentialcomputing.v1alpha1.TpmAttestation) } // @@protoc_insertion_point(class_scope:google.cloud.confidentialcomputing.v1alpha1.TpmAttestation) - private static final com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation - DEFAULT_INSTANCE; - + private static final com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation(); } - public static com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation - getDefaultInstance() { + public static com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TpmAttestation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TpmAttestation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2697,8 +2391,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation - getDefaultInstanceForType() { + public com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/TpmAttestationOrBuilder.java b/owl-bot-staging/java-confidentialcomputing/v1alpha1/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/TpmAttestationOrBuilder.java similarity index 75% rename from java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/TpmAttestationOrBuilder.java rename to owl-bot-staging/java-confidentialcomputing/v1alpha1/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/TpmAttestationOrBuilder.java index 75bec7d32baa..01ffa7d36b30 100644 --- a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/TpmAttestationOrBuilder.java +++ b/owl-bot-staging/java-confidentialcomputing/v1alpha1/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/TpmAttestationOrBuilder.java @@ -1,91 +1,57 @@ -/* - * Copyright 2023 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/confidentialcomputing/v1alpha1/service.proto package com.google.cloud.confidentialcomputing.v1alpha1; -public interface TpmAttestationOrBuilder - extends +public interface TpmAttestationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.confidentialcomputing.v1alpha1.TpmAttestation) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
    * 
* - * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; - * + * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; */ - java.util.List + java.util.List getQuotesList(); /** - * - * *
    * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
    * 
* - * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; - * + * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; */ com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote getQuotes(int index); /** - * - * *
    * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
    * 
* - * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; - * + * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; */ int getQuotesCount(); /** - * - * *
    * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
    * 
* - * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; - * + * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; */ - java.util.List< - ? extends com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.QuoteOrBuilder> + java.util.List getQuotesOrBuilderList(); /** - * - * *
    * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
    * 
* - * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; - * + * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; */ com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.QuoteOrBuilder getQuotesOrBuilder( int index); /** - * - * *
    * The binary TCG Event Log containing events measured into the TPM by the
    * platform firmware and operating system. Formatted as described in the
@@ -93,14 +59,11 @@ com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.QuoteOrBuilder ge
    * 
* * bytes tcg_event_log = 2; - * * @return The tcgEventLog. */ com.google.protobuf.ByteString getTcgEventLog(); /** - * - * *
    * An Event Log containing additional events measured into the TPM that are
    * not already present in the tcg_event_log. Formatted as described in the
@@ -108,61 +71,48 @@ com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.QuoteOrBuilder ge
    * 
* * bytes canonical_event_log = 3; - * * @return The canonicalEventLog. */ com.google.protobuf.ByteString getCanonicalEventLog(); /** - * - * *
    * DER-encoded X.509 certificate of the Attestation Key (otherwise known as
    * an AK or a TPM restricted signing key) used to generate the quotes.
    * 
* * bytes ak_cert = 4; - * * @return The akCert. */ com.google.protobuf.ByteString getAkCert(); /** - * - * *
    * List of DER-encoded X.509 certificates which, together with the ak_cert,
    * chain back to a trusted Root Certificate.
    * 
* * repeated bytes cert_chain = 5; - * * @return A list containing the certChain. */ java.util.List getCertChainList(); /** - * - * *
    * List of DER-encoded X.509 certificates which, together with the ak_cert,
    * chain back to a trusted Root Certificate.
    * 
* * repeated bytes cert_chain = 5; - * * @return The count of certChain. */ int getCertChainCount(); /** - * - * *
    * List of DER-encoded X.509 certificates which, together with the ak_cert,
    * chain back to a trusted Root Certificate.
    * 
* * repeated bytes cert_chain = 5; - * * @param index The index of the element to return. * @return The certChain at the given index. */ diff --git a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/VerifyAttestationRequest.java b/owl-bot-staging/java-confidentialcomputing/v1alpha1/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/VerifyAttestationRequest.java similarity index 58% rename from java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/VerifyAttestationRequest.java rename to owl-bot-staging/java-confidentialcomputing/v1alpha1/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/VerifyAttestationRequest.java index 3594098ba3d4..c29a04c0a0bb 100644 --- a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/VerifyAttestationRequest.java +++ b/owl-bot-staging/java-confidentialcomputing/v1alpha1/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/VerifyAttestationRequest.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 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/confidentialcomputing/v1alpha1/service.proto package com.google.cloud.confidentialcomputing.v1alpha1; /** - * - * *
  * A request for an OIDC token, providing all the necessary information needed
  * for this service to verify the plaform state of the requestor.
@@ -28,58 +11,50 @@
  *
  * Protobuf type {@code google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest}
  */
-public final class VerifyAttestationRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class VerifyAttestationRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest)
     VerifyAttestationRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use VerifyAttestationRequest.newBuilder() to construct.
   private VerifyAttestationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private VerifyAttestationRequest() {
     challenge_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new VerifyAttestationRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto
-        .internal_static_google_cloud_confidentialcomputing_v1alpha1_VerifyAttestationRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1alpha1_VerifyAttestationRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto
-        .internal_static_google_cloud_confidentialcomputing_v1alpha1_VerifyAttestationRequest_fieldAccessorTable
+    return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1alpha1_VerifyAttestationRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest.class,
-            com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest.Builder.class);
+            com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest.class, com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest.Builder.class);
   }
 
   public static final int CHALLENGE_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object challenge_ = "";
   /**
-   *
-   *
    * 
    * Required. The name of the Challenge whose nonce was used to generate the
    * attestation, in the format `projects/*/locations/*/challenges/*`. The
    * provided Challenge will be consumed, and cannot be used again.
    * 
* - * - * string challenge = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string challenge = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The challenge. */ @java.lang.Override @@ -88,33 +63,31 @@ public java.lang.String getChallenge() { 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(); challenge_ = s; return s; } } /** - * - * *
    * Required. The name of the Challenge whose nonce was used to generate the
    * attestation, in the format `projects/*/locations/*/challenges/*`. The
    * provided Challenge will be consumed, and cannot be used again.
    * 
* - * - * string challenge = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string challenge = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for challenge. */ @java.lang.Override - public com.google.protobuf.ByteString getChallengeBytes() { + public com.google.protobuf.ByteString + getChallengeBytes() { java.lang.Object ref = challenge_; 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); challenge_ = b; return b; } else { @@ -125,17 +98,12 @@ public com.google.protobuf.ByteString getChallengeBytes() { public static final int GCP_CREDENTIALS_FIELD_NUMBER = 2; private com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials gcpCredentials_; /** - * - * *
    * Optional. Credentials used to populate the "emails" claim in the
    * claims_token.
    * 
* - * - * .google.cloud.confidentialcomputing.v1alpha1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.confidentialcomputing.v1alpha1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the gcpCredentials field is set. */ @java.lang.Override @@ -143,59 +111,40 @@ public boolean hasGcpCredentials() { return gcpCredentials_ != null; } /** - * - * *
    * Optional. Credentials used to populate the "emails" claim in the
    * claims_token.
    * 
* - * - * .google.cloud.confidentialcomputing.v1alpha1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.confidentialcomputing.v1alpha1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The gcpCredentials. */ @java.lang.Override public com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials getGcpCredentials() { - return gcpCredentials_ == null - ? com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials.getDefaultInstance() - : gcpCredentials_; + return gcpCredentials_ == null ? com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials.getDefaultInstance() : gcpCredentials_; } /** - * - * *
    * Optional. Credentials used to populate the "emails" claim in the
    * claims_token.
    * 
* - * - * .google.cloud.confidentialcomputing.v1alpha1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.confidentialcomputing.v1alpha1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentialsOrBuilder - getGcpCredentialsOrBuilder() { - return gcpCredentials_ == null - ? com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials.getDefaultInstance() - : gcpCredentials_; + public com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentialsOrBuilder getGcpCredentialsOrBuilder() { + return gcpCredentials_ == null ? com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials.getDefaultInstance() : gcpCredentials_; } public static final int TPM_ATTESTATION_FIELD_NUMBER = 3; private com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation tpmAttestation_; /** - * - * *
    * Required. The TPM-specific data provided by the attesting platform, used to
    * populate any of the claims regarding platform state.
    * 
* - * - * .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the tpmAttestation field is set. */ @java.lang.Override @@ -203,47 +152,32 @@ public boolean hasTpmAttestation() { return tpmAttestation_ != null; } /** - * - * *
    * Required. The TPM-specific data provided by the attesting platform, used to
    * populate any of the claims regarding platform state.
    * 
* - * - * .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The tpmAttestation. */ @java.lang.Override public com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation getTpmAttestation() { - return tpmAttestation_ == null - ? com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.getDefaultInstance() - : tpmAttestation_; + return tpmAttestation_ == null ? com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.getDefaultInstance() : tpmAttestation_; } /** - * - * *
    * Required. The TPM-specific data provided by the attesting platform, used to
    * populate any of the claims regarding platform state.
    * 
* - * - * .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestationOrBuilder - getTpmAttestationOrBuilder() { - return tpmAttestation_ == null - ? com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.getDefaultInstance() - : tpmAttestation_; + public com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestationOrBuilder getTpmAttestationOrBuilder() { + return tpmAttestation_ == null ? com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.getDefaultInstance() : tpmAttestation_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -255,7 +189,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(challenge_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, challenge_); } @@ -278,10 +213,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, challenge_); } if (gcpCredentials_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getGcpCredentials()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getGcpCredentials()); } if (tpmAttestation_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getTpmAttestation()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getTpmAttestation()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -291,23 +228,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.confidentialcomputing.v1alpha1.VerifyAttestationRequest)) { + if (!(obj instanceof com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest)) { return super.equals(obj); } - com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest other = - (com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest) obj; + com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest other = (com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest) obj; - if (!getChallenge().equals(other.getChallenge())) return false; + if (!getChallenge() + .equals(other.getChallenge())) return false; if (hasGcpCredentials() != other.hasGcpCredentials()) return false; if (hasGcpCredentials()) { - if (!getGcpCredentials().equals(other.getGcpCredentials())) return false; + if (!getGcpCredentials() + .equals(other.getGcpCredentials())) return false; } if (hasTpmAttestation() != other.hasTpmAttestation()) return false; if (hasTpmAttestation()) { - if (!getTpmAttestation().equals(other.getTpmAttestation())) return false; + if (!getTpmAttestation() + .equals(other.getTpmAttestation())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -336,105 +274,98 @@ public int hashCode() { } public static com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest 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.confidentialcomputing.v1alpha1.VerifyAttestationRequest 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.confidentialcomputing.v1alpha1.VerifyAttestationRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest 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.confidentialcomputing.v1alpha1.VerifyAttestationRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest 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.confidentialcomputing.v1alpha1.VerifyAttestationRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest 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.confidentialcomputing.v1alpha1.VerifyAttestationRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest - 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.confidentialcomputing.v1alpha1.VerifyAttestationRequest 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.confidentialcomputing.v1alpha1.VerifyAttestationRequest 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.confidentialcomputing.v1alpha1.VerifyAttestationRequest 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.confidentialcomputing.v1alpha1.VerifyAttestationRequest prototype) { + public static Builder newBuilder(com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest 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 request for an OIDC token, providing all the necessary information needed
    * for this service to verify the plaform state of the requestor.
@@ -442,34 +373,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest}
    */
-  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.confidentialcomputing.v1alpha1.VerifyAttestationRequest)
       com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto
-          .internal_static_google_cloud_confidentialcomputing_v1alpha1_VerifyAttestationRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1alpha1_VerifyAttestationRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto
-          .internal_static_google_cloud_confidentialcomputing_v1alpha1_VerifyAttestationRequest_fieldAccessorTable
+      return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1alpha1_VerifyAttestationRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest.class,
-              com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest.Builder
-                  .class);
+              com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest.class, com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest.Builder.class);
     }
 
-    // Construct using
-    // com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest.newBuilder()
-    private Builder() {}
+    // Construct using com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest.newBuilder()
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -489,22 +419,19 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto
-          .internal_static_google_cloud_confidentialcomputing_v1alpha1_VerifyAttestationRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1alpha1_VerifyAttestationRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest
-        getDefaultInstanceForType() {
-      return com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest
-          .getDefaultInstance();
+    public com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest getDefaultInstanceForType() {
+      return com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest.getDefaultInstance();
     }
 
     @java.lang.Override
     public com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest build() {
-      com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest result =
-          buildPartial();
+      com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest result = buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
@@ -513,28 +440,26 @@ public com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest
 
     @java.lang.Override
     public com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest buildPartial() {
-      com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest result =
-          new com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest result = new com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(
-        com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest result) {
+    private void buildPartial0(com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.challenge_ = challenge_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.gcpCredentials_ =
-            gcpCredentialsBuilder_ == null ? gcpCredentials_ : gcpCredentialsBuilder_.build();
+        result.gcpCredentials_ = gcpCredentialsBuilder_ == null
+            ? gcpCredentials_
+            : gcpCredentialsBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.tpmAttestation_ =
-            tpmAttestationBuilder_ == null ? tpmAttestation_ : tpmAttestationBuilder_.build();
+        result.tpmAttestation_ = tpmAttestationBuilder_ == null
+            ? tpmAttestation_
+            : tpmAttestationBuilder_.build();
       }
     }
 
@@ -542,52 +467,46 @@ private void buildPartial0(
     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.confidentialcomputing.v1alpha1.VerifyAttestationRequest) {
-        return mergeFrom(
-            (com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest) other);
+      if (other instanceof com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest) {
+        return mergeFrom((com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(
-        com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest other) {
-      if (other
-          == com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest
-              .getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest other) {
+      if (other == com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest.getDefaultInstance()) return this;
       if (!other.getChallenge().isEmpty()) {
         challenge_ = other.challenge_;
         bitField0_ |= 0x00000001;
@@ -625,31 +544,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                challenge_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                input.readMessage(getGcpCredentialsFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                input.readMessage(getTpmAttestationFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              challenge_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              input.readMessage(
+                  getGcpCredentialsFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              input.readMessage(
+                  getTpmAttestationFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -659,29 +578,24 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object challenge_ = "";
     /**
-     *
-     *
      * 
      * Required. The name of the Challenge whose nonce was used to generate the
      * attestation, in the format `projects/*/locations/*/challenges/*`. The
      * provided Challenge will be consumed, and cannot be used again.
      * 
* - * - * string challenge = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string challenge = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The challenge. */ public java.lang.String getChallenge() { java.lang.Object ref = challenge_; 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(); challenge_ = s; return s; @@ -690,25 +604,22 @@ public java.lang.String getChallenge() { } } /** - * - * *
      * Required. The name of the Challenge whose nonce was used to generate the
      * attestation, in the format `projects/*/locations/*/challenges/*`. The
      * provided Challenge will be consumed, and cannot be used again.
      * 
* - * - * string challenge = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string challenge = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for challenge. */ - public com.google.protobuf.ByteString getChallengeBytes() { + public com.google.protobuf.ByteString + getChallengeBytes() { java.lang.Object ref = challenge_; 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); challenge_ = b; return b; } else { @@ -716,43 +627,32 @@ public com.google.protobuf.ByteString getChallengeBytes() { } } /** - * - * *
      * Required. The name of the Challenge whose nonce was used to generate the
      * attestation, in the format `projects/*/locations/*/challenges/*`. The
      * provided Challenge will be consumed, and cannot be used again.
      * 
* - * - * string challenge = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string challenge = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The challenge to set. * @return This builder for chaining. */ - public Builder setChallenge(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setChallenge( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } challenge_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the Challenge whose nonce was used to generate the
      * attestation, in the format `projects/*/locations/*/challenges/*`. The
      * provided Challenge will be consumed, and cannot be used again.
      * 
* - * - * string challenge = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string challenge = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearChallenge() { @@ -762,25 +662,19 @@ public Builder clearChallenge() { return this; } /** - * - * *
      * Required. The name of the Challenge whose nonce was used to generate the
      * attestation, in the format `projects/*/locations/*/challenges/*`. The
      * provided Challenge will be consumed, and cannot be used again.
      * 
* - * - * string challenge = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string challenge = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for challenge to set. * @return This builder for chaining. */ - public Builder setChallengeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setChallengeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); challenge_ = value; bitField0_ |= 0x00000001; @@ -790,64 +684,44 @@ public Builder setChallengeBytes(com.google.protobuf.ByteString value) { private com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials gcpCredentials_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials, - com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials.Builder, - com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentialsOrBuilder> - gcpCredentialsBuilder_; + com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials, com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials.Builder, com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentialsOrBuilder> gcpCredentialsBuilder_; /** - * - * *
      * Optional. Credentials used to populate the "emails" claim in the
      * claims_token.
      * 
* - * - * .google.cloud.confidentialcomputing.v1alpha1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.confidentialcomputing.v1alpha1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the gcpCredentials field is set. */ public boolean hasGcpCredentials() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Optional. Credentials used to populate the "emails" claim in the
      * claims_token.
      * 
* - * - * .google.cloud.confidentialcomputing.v1alpha1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.confidentialcomputing.v1alpha1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The gcpCredentials. */ public com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials getGcpCredentials() { if (gcpCredentialsBuilder_ == null) { - return gcpCredentials_ == null - ? com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials.getDefaultInstance() - : gcpCredentials_; + return gcpCredentials_ == null ? com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials.getDefaultInstance() : gcpCredentials_; } else { return gcpCredentialsBuilder_.getMessage(); } } /** - * - * *
      * Optional. Credentials used to populate the "emails" claim in the
      * claims_token.
      * 
* - * - * .google.cloud.confidentialcomputing.v1alpha1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.confidentialcomputing.v1alpha1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setGcpCredentials( - com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials value) { + public Builder setGcpCredentials(com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials value) { if (gcpCredentialsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -861,16 +735,12 @@ public Builder setGcpCredentials( return this; } /** - * - * *
      * Optional. Credentials used to populate the "emails" claim in the
      * claims_token.
      * 
* - * - * .google.cloud.confidentialcomputing.v1alpha1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.confidentialcomputing.v1alpha1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setGcpCredentials( com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials.Builder builderForValue) { @@ -884,25 +754,18 @@ public Builder setGcpCredentials( return this; } /** - * - * *
      * Optional. Credentials used to populate the "emails" claim in the
      * claims_token.
      * 
* - * - * .google.cloud.confidentialcomputing.v1alpha1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.confidentialcomputing.v1alpha1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergeGcpCredentials( - com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials value) { + public Builder mergeGcpCredentials(com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials value) { if (gcpCredentialsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && gcpCredentials_ != null - && gcpCredentials_ - != com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials - .getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + gcpCredentials_ != null && + gcpCredentials_ != com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials.getDefaultInstance()) { getGcpCredentialsBuilder().mergeFrom(value); } else { gcpCredentials_ = value; @@ -915,16 +778,12 @@ public Builder mergeGcpCredentials( return this; } /** - * - * *
      * Optional. Credentials used to populate the "emails" claim in the
      * claims_token.
      * 
* - * - * .google.cloud.confidentialcomputing.v1alpha1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.confidentialcomputing.v1alpha1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearGcpCredentials() { bitField0_ = (bitField0_ & ~0x00000002); @@ -937,69 +796,51 @@ public Builder clearGcpCredentials() { return this; } /** - * - * *
      * Optional. Credentials used to populate the "emails" claim in the
      * claims_token.
      * 
* - * - * .google.cloud.confidentialcomputing.v1alpha1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.confidentialcomputing.v1alpha1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials.Builder - getGcpCredentialsBuilder() { + public com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials.Builder getGcpCredentialsBuilder() { bitField0_ |= 0x00000002; onChanged(); return getGcpCredentialsFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Credentials used to populate the "emails" claim in the
      * claims_token.
      * 
* - * - * .google.cloud.confidentialcomputing.v1alpha1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.confidentialcomputing.v1alpha1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentialsOrBuilder - getGcpCredentialsOrBuilder() { + public com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentialsOrBuilder getGcpCredentialsOrBuilder() { if (gcpCredentialsBuilder_ != null) { return gcpCredentialsBuilder_.getMessageOrBuilder(); } else { - return gcpCredentials_ == null - ? com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials.getDefaultInstance() - : gcpCredentials_; + return gcpCredentials_ == null ? + com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials.getDefaultInstance() : gcpCredentials_; } } /** - * - * *
      * Optional. Credentials used to populate the "emails" claim in the
      * claims_token.
      * 
* - * - * .google.cloud.confidentialcomputing.v1alpha1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.confidentialcomputing.v1alpha1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials, - com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials.Builder, - com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentialsOrBuilder> + com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials, com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials.Builder, com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentialsOrBuilder> getGcpCredentialsFieldBuilder() { if (gcpCredentialsBuilder_ == null) { - gcpCredentialsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials, - com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials.Builder, - com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentialsOrBuilder>( - getGcpCredentials(), getParentForChildren(), isClean()); + gcpCredentialsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials, com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials.Builder, com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentialsOrBuilder>( + getGcpCredentials(), + getParentForChildren(), + isClean()); gcpCredentials_ = null; } return gcpCredentialsBuilder_; @@ -1007,64 +848,44 @@ public Builder clearGcpCredentials() { private com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation tpmAttestation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation, - com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Builder, - com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestationOrBuilder> - tpmAttestationBuilder_; + com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation, com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Builder, com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestationOrBuilder> tpmAttestationBuilder_; /** - * - * *
      * Required. The TPM-specific data provided by the attesting platform, used to
      * populate any of the claims regarding platform state.
      * 
* - * - * .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the tpmAttestation field is set. */ public boolean hasTpmAttestation() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Required. The TPM-specific data provided by the attesting platform, used to
      * populate any of the claims regarding platform state.
      * 
* - * - * .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The tpmAttestation. */ public com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation getTpmAttestation() { if (tpmAttestationBuilder_ == null) { - return tpmAttestation_ == null - ? com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.getDefaultInstance() - : tpmAttestation_; + return tpmAttestation_ == null ? com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.getDefaultInstance() : tpmAttestation_; } else { return tpmAttestationBuilder_.getMessage(); } } /** - * - * *
      * Required. The TPM-specific data provided by the attesting platform, used to
      * populate any of the claims regarding platform state.
      * 
* - * - * .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setTpmAttestation( - com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation value) { + public Builder setTpmAttestation(com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation value) { if (tpmAttestationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1078,16 +899,12 @@ public Builder setTpmAttestation( return this; } /** - * - * *
      * Required. The TPM-specific data provided by the attesting platform, used to
      * populate any of the claims regarding platform state.
      * 
* - * - * .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setTpmAttestation( com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Builder builderForValue) { @@ -1101,25 +918,18 @@ public Builder setTpmAttestation( return this; } /** - * - * *
      * Required. The TPM-specific data provided by the attesting platform, used to
      * populate any of the claims regarding platform state.
      * 
* - * - * .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeTpmAttestation( - com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation value) { + public Builder mergeTpmAttestation(com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation value) { if (tpmAttestationBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && tpmAttestation_ != null - && tpmAttestation_ - != com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation - .getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + tpmAttestation_ != null && + tpmAttestation_ != com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.getDefaultInstance()) { getTpmAttestationBuilder().mergeFrom(value); } else { tpmAttestation_ = value; @@ -1132,16 +942,12 @@ public Builder mergeTpmAttestation( return this; } /** - * - * *
      * Required. The TPM-specific data provided by the attesting platform, used to
      * populate any of the claims regarding platform state.
      * 
* - * - * .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearTpmAttestation() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1154,76 +960,58 @@ public Builder clearTpmAttestation() { return this; } /** - * - * *
      * Required. The TPM-specific data provided by the attesting platform, used to
      * populate any of the claims regarding platform state.
      * 
* - * - * .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Builder - getTpmAttestationBuilder() { + public com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Builder getTpmAttestationBuilder() { bitField0_ |= 0x00000004; onChanged(); return getTpmAttestationFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The TPM-specific data provided by the attesting platform, used to
      * populate any of the claims regarding platform state.
      * 
* - * - * .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestationOrBuilder - getTpmAttestationOrBuilder() { + public com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestationOrBuilder getTpmAttestationOrBuilder() { if (tpmAttestationBuilder_ != null) { return tpmAttestationBuilder_.getMessageOrBuilder(); } else { - return tpmAttestation_ == null - ? com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.getDefaultInstance() - : tpmAttestation_; + return tpmAttestation_ == null ? + com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.getDefaultInstance() : tpmAttestation_; } } /** - * - * *
      * Required. The TPM-specific data provided by the attesting platform, used to
      * populate any of the claims regarding platform state.
      * 
* - * - * .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation, - com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Builder, - com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestationOrBuilder> + com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation, com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Builder, com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestationOrBuilder> getTpmAttestationFieldBuilder() { if (tpmAttestationBuilder_ == null) { - tpmAttestationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation, - com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Builder, - com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestationOrBuilder>( - getTpmAttestation(), getParentForChildren(), isClean()); + tpmAttestationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation, com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Builder, com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestationOrBuilder>( + getTpmAttestation(), + getParentForChildren(), + isClean()); tpmAttestation_ = null; } return tpmAttestationBuilder_; } - @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); } @@ -1233,44 +1021,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest) } // @@protoc_insertion_point(class_scope:google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest) - private static final com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest(); + DEFAULT_INSTANCE = new com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest(); } - public static com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest - getDefaultInstance() { + public static com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VerifyAttestationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VerifyAttestationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1282,8 +1067,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest - getDefaultInstanceForType() { + public com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/VerifyAttestationRequestOrBuilder.java b/owl-bot-staging/java-confidentialcomputing/v1alpha1/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/VerifyAttestationRequestOrBuilder.java similarity index 54% rename from java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/VerifyAttestationRequestOrBuilder.java rename to owl-bot-staging/java-confidentialcomputing/v1alpha1/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/VerifyAttestationRequestOrBuilder.java index 1b5a7fd634b4..c2488450decd 100644 --- a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/VerifyAttestationRequestOrBuilder.java +++ b/owl-bot-staging/java-confidentialcomputing/v1alpha1/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/VerifyAttestationRequestOrBuilder.java @@ -1,148 +1,93 @@ -/* - * Copyright 2023 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/confidentialcomputing/v1alpha1/service.proto package com.google.cloud.confidentialcomputing.v1alpha1; -public interface VerifyAttestationRequestOrBuilder - extends +public interface VerifyAttestationRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the Challenge whose nonce was used to generate the
    * attestation, in the format `projects/*/locations/*/challenges/*`. The
    * provided Challenge will be consumed, and cannot be used again.
    * 
* - * - * string challenge = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string challenge = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The challenge. */ java.lang.String getChallenge(); /** - * - * *
    * Required. The name of the Challenge whose nonce was used to generate the
    * attestation, in the format `projects/*/locations/*/challenges/*`. The
    * provided Challenge will be consumed, and cannot be used again.
    * 
* - * - * string challenge = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string challenge = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for challenge. */ - com.google.protobuf.ByteString getChallengeBytes(); + com.google.protobuf.ByteString + getChallengeBytes(); /** - * - * *
    * Optional. Credentials used to populate the "emails" claim in the
    * claims_token.
    * 
* - * - * .google.cloud.confidentialcomputing.v1alpha1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.confidentialcomputing.v1alpha1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the gcpCredentials field is set. */ boolean hasGcpCredentials(); /** - * - * *
    * Optional. Credentials used to populate the "emails" claim in the
    * claims_token.
    * 
* - * - * .google.cloud.confidentialcomputing.v1alpha1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.confidentialcomputing.v1alpha1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The gcpCredentials. */ com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials getGcpCredentials(); /** - * - * *
    * Optional. Credentials used to populate the "emails" claim in the
    * claims_token.
    * 
* - * - * .google.cloud.confidentialcomputing.v1alpha1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.confidentialcomputing.v1alpha1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentialsOrBuilder - getGcpCredentialsOrBuilder(); + com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentialsOrBuilder getGcpCredentialsOrBuilder(); /** - * - * *
    * Required. The TPM-specific data provided by the attesting platform, used to
    * populate any of the claims regarding platform state.
    * 
* - * - * .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the tpmAttestation field is set. */ boolean hasTpmAttestation(); /** - * - * *
    * Required. The TPM-specific data provided by the attesting platform, used to
    * populate any of the claims regarding platform state.
    * 
* - * - * .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The tpmAttestation. */ com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation getTpmAttestation(); /** - * - * *
    * Required. The TPM-specific data provided by the attesting platform, used to
    * populate any of the claims regarding platform state.
    * 
* - * - * .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; */ - com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestationOrBuilder - getTpmAttestationOrBuilder(); + com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestationOrBuilder getTpmAttestationOrBuilder(); } diff --git a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/VerifyAttestationResponse.java b/owl-bot-staging/java-confidentialcomputing/v1alpha1/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/VerifyAttestationResponse.java similarity index 60% rename from java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/VerifyAttestationResponse.java rename to owl-bot-staging/java-confidentialcomputing/v1alpha1/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/VerifyAttestationResponse.java index c9d2a619b919..dc6b4a948887 100644 --- a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/VerifyAttestationResponse.java +++ b/owl-bot-staging/java-confidentialcomputing/v1alpha1/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/VerifyAttestationResponse.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 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/confidentialcomputing/v1alpha1/service.proto package com.google.cloud.confidentialcomputing.v1alpha1; /** - * - * *
  * A response once an attestation has been successfully verified, containing a
  * signed OIDC token.
@@ -28,47 +11,42 @@
  *
  * Protobuf type {@code google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse}
  */
-public final class VerifyAttestationResponse extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class VerifyAttestationResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse)
     VerifyAttestationResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use VerifyAttestationResponse.newBuilder() to construct.
   private VerifyAttestationResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private VerifyAttestationResponse() {
     claimsToken_ = com.google.protobuf.ByteString.EMPTY;
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new VerifyAttestationResponse();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto
-        .internal_static_google_cloud_confidentialcomputing_v1alpha1_VerifyAttestationResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1alpha1_VerifyAttestationResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto
-        .internal_static_google_cloud_confidentialcomputing_v1alpha1_VerifyAttestationResponse_fieldAccessorTable
+    return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1alpha1_VerifyAttestationResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse.class,
-            com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse.Builder
-                .class);
+            com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse.class, com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse.Builder.class);
   }
 
   public static final int CLAIMS_TOKEN_FIELD_NUMBER = 1;
   private com.google.protobuf.ByteString claimsToken_ = com.google.protobuf.ByteString.EMPTY;
   /**
-   *
-   *
    * 
    * Output only. The OIDC token issued by this service. It contains specific
    * platform claims based on the contents of the provided attestation.
@@ -76,7 +54,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * bytes claims_token = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The claimsToken. */ @java.lang.Override @@ -85,7 +62,6 @@ public com.google.protobuf.ByteString getClaimsToken() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -97,7 +73,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 (!claimsToken_.isEmpty()) { output.writeBytes(1, claimsToken_); } @@ -111,7 +88,8 @@ public int getSerializedSize() { size = 0; if (!claimsToken_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, claimsToken_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, claimsToken_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -121,16 +99,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.confidentialcomputing.v1alpha1.VerifyAttestationResponse)) { + if (!(obj instanceof com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse)) { return super.equals(obj); } - com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse other = - (com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse) obj; + com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse other = (com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse) obj; - if (!getClaimsToken().equals(other.getClaimsToken())) return false; + if (!getClaimsToken() + .equals(other.getClaimsToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -150,105 +127,98 @@ public int hashCode() { } public static com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse 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.confidentialcomputing.v1alpha1.VerifyAttestationResponse 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.confidentialcomputing.v1alpha1.VerifyAttestationResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse 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.confidentialcomputing.v1alpha1.VerifyAttestationResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse 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.confidentialcomputing.v1alpha1.VerifyAttestationResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse 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.confidentialcomputing.v1alpha1.VerifyAttestationResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse - 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.confidentialcomputing.v1alpha1.VerifyAttestationResponse 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.confidentialcomputing.v1alpha1.VerifyAttestationResponse 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.confidentialcomputing.v1alpha1.VerifyAttestationResponse 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.confidentialcomputing.v1alpha1.VerifyAttestationResponse prototype) { + public static Builder newBuilder(com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse 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 response once an attestation has been successfully verified, containing a
    * signed OIDC token.
@@ -256,34 +226,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse}
    */
-  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.confidentialcomputing.v1alpha1.VerifyAttestationResponse)
       com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto
-          .internal_static_google_cloud_confidentialcomputing_v1alpha1_VerifyAttestationResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1alpha1_VerifyAttestationResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto
-          .internal_static_google_cloud_confidentialcomputing_v1alpha1_VerifyAttestationResponse_fieldAccessorTable
+      return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1alpha1_VerifyAttestationResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse.class,
-              com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse.Builder
-                  .class);
+              com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse.class, com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse.Builder.class);
     }
 
-    // Construct using
-    // com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse.newBuilder()
-    private Builder() {}
+    // Construct using com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse.newBuilder()
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -293,22 +262,19 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto
-          .internal_static_google_cloud_confidentialcomputing_v1alpha1_VerifyAttestationResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1alpha1_VerifyAttestationResponse_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse
-        getDefaultInstanceForType() {
-      return com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse
-          .getDefaultInstance();
+    public com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse getDefaultInstanceForType() {
+      return com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse.getDefaultInstance();
     }
 
     @java.lang.Override
     public com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse build() {
-      com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse result =
-          buildPartial();
+      com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse result = buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
@@ -316,19 +282,14 @@ public com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse
     }
 
     @java.lang.Override
-    public com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse
-        buildPartial() {
-      com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse result =
-          new com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+    public com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse buildPartial() {
+      com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse result = new com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(
-        com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse result) {
+    private void buildPartial0(com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.claimsToken_ = claimsToken_;
@@ -339,52 +300,46 @@ private void buildPartial0(
     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.confidentialcomputing.v1alpha1.VerifyAttestationResponse) {
-        return mergeFrom(
-            (com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse) other);
+      if (other instanceof com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse) {
+        return mergeFrom((com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(
-        com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse other) {
-      if (other
-          == com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse
-              .getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse other) {
+      if (other == com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse.getDefaultInstance()) return this;
       if (other.getClaimsToken() != com.google.protobuf.ByteString.EMPTY) {
         setClaimsToken(other.getClaimsToken());
       }
@@ -414,19 +369,17 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                claimsToken_ = input.readBytes();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              claimsToken_ = input.readBytes();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -436,13 +389,10 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private com.google.protobuf.ByteString claimsToken_ = com.google.protobuf.ByteString.EMPTY;
     /**
-     *
-     *
      * 
      * Output only. The OIDC token issued by this service. It contains specific
      * platform claims based on the contents of the provided attestation.
@@ -450,7 +400,6 @@ public Builder mergeFrom(
      * 
* * bytes claims_token = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The claimsToken. */ @java.lang.Override @@ -458,8 +407,6 @@ public com.google.protobuf.ByteString getClaimsToken() { return claimsToken_; } /** - * - * *
      * Output only. The OIDC token issued by this service. It contains specific
      * platform claims based on the contents of the provided attestation.
@@ -467,22 +414,17 @@ public com.google.protobuf.ByteString getClaimsToken() {
      * 
* * bytes claims_token = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The claimsToken to set. * @return This builder for chaining. */ public Builder setClaimsToken(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + if (value == null) { throw new NullPointerException(); } claimsToken_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Output only. The OIDC token issued by this service. It contains specific
      * platform claims based on the contents of the provided attestation.
@@ -490,7 +432,6 @@ public Builder setClaimsToken(com.google.protobuf.ByteString value) {
      * 
* * bytes claims_token = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearClaimsToken() { @@ -499,9 +440,9 @@ public Builder clearClaimsToken() { 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); } @@ -511,44 +452,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse) } // @@protoc_insertion_point(class_scope:google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse) - private static final com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse(); + DEFAULT_INSTANCE = new com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse(); } - public static com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse - getDefaultInstance() { + public static com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VerifyAttestationResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VerifyAttestationResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -560,8 +498,9 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse - getDefaultInstanceForType() { + public com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/VerifyAttestationResponseOrBuilder.java b/owl-bot-staging/java-confidentialcomputing/v1alpha1/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/VerifyAttestationResponseOrBuilder.java similarity index 51% rename from java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/VerifyAttestationResponseOrBuilder.java rename to owl-bot-staging/java-confidentialcomputing/v1alpha1/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/VerifyAttestationResponseOrBuilder.java index e00546ed9786..d303ead63f8c 100644 --- a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/VerifyAttestationResponseOrBuilder.java +++ b/owl-bot-staging/java-confidentialcomputing/v1alpha1/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/VerifyAttestationResponseOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 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/confidentialcomputing/v1alpha1/service.proto package com.google.cloud.confidentialcomputing.v1alpha1; -public interface VerifyAttestationResponseOrBuilder - extends +public interface VerifyAttestationResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The OIDC token issued by this service. It contains specific
    * platform claims based on the contents of the provided attestation.
@@ -33,7 +15,6 @@ public interface VerifyAttestationResponseOrBuilder
    * 
* * bytes claims_token = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The claimsToken. */ com.google.protobuf.ByteString getClaimsToken(); diff --git a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/proto/google/cloud/confidentialcomputing/v1alpha1/service.proto b/owl-bot-staging/java-confidentialcomputing/v1alpha1/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/proto/google/cloud/confidentialcomputing/v1alpha1/service.proto similarity index 100% rename from java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/proto/google/cloud/confidentialcomputing/v1alpha1/service.proto rename to owl-bot-staging/java-confidentialcomputing/v1alpha1/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/proto/google/cloud/confidentialcomputing/v1alpha1/service.proto diff --git a/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-confidentialcomputing/v1alpha1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/java-confidentialcomputing/v1alpha1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/create/SyncCreateSetCredentialsProvider.java diff --git a/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/java-confidentialcomputing/v1alpha1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/create/SyncCreateSetCredentialsProvider1.java rename to owl-bot-staging/java-confidentialcomputing/v1alpha1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/create/SyncCreateSetCredentialsProvider1.java diff --git a/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-confidentialcomputing/v1alpha1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/create/SyncCreateSetEndpoint.java similarity index 100% rename from java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/java-confidentialcomputing/v1alpha1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/create/SyncCreateSetEndpoint.java diff --git a/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/createchallenge/AsyncCreateChallenge.java b/owl-bot-staging/java-confidentialcomputing/v1alpha1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/createchallenge/AsyncCreateChallenge.java similarity index 100% rename from java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/createchallenge/AsyncCreateChallenge.java rename to owl-bot-staging/java-confidentialcomputing/v1alpha1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/createchallenge/AsyncCreateChallenge.java diff --git a/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/createchallenge/SyncCreateChallenge.java b/owl-bot-staging/java-confidentialcomputing/v1alpha1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/createchallenge/SyncCreateChallenge.java similarity index 100% rename from java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/createchallenge/SyncCreateChallenge.java rename to owl-bot-staging/java-confidentialcomputing/v1alpha1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/createchallenge/SyncCreateChallenge.java diff --git a/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/createchallenge/SyncCreateChallengeLocationnameChallenge.java b/owl-bot-staging/java-confidentialcomputing/v1alpha1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/createchallenge/SyncCreateChallengeLocationnameChallenge.java similarity index 100% rename from java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/createchallenge/SyncCreateChallengeLocationnameChallenge.java rename to owl-bot-staging/java-confidentialcomputing/v1alpha1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/createchallenge/SyncCreateChallengeLocationnameChallenge.java diff --git a/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/createchallenge/SyncCreateChallengeStringChallenge.java b/owl-bot-staging/java-confidentialcomputing/v1alpha1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/createchallenge/SyncCreateChallengeStringChallenge.java similarity index 100% rename from java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/createchallenge/SyncCreateChallengeStringChallenge.java rename to owl-bot-staging/java-confidentialcomputing/v1alpha1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/createchallenge/SyncCreateChallengeStringChallenge.java diff --git a/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/getlocation/AsyncGetLocation.java b/owl-bot-staging/java-confidentialcomputing/v1alpha1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/getlocation/AsyncGetLocation.java similarity index 100% rename from java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/getlocation/AsyncGetLocation.java rename to owl-bot-staging/java-confidentialcomputing/v1alpha1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/getlocation/AsyncGetLocation.java diff --git a/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/getlocation/SyncGetLocation.java b/owl-bot-staging/java-confidentialcomputing/v1alpha1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/getlocation/SyncGetLocation.java similarity index 100% rename from java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/getlocation/SyncGetLocation.java rename to owl-bot-staging/java-confidentialcomputing/v1alpha1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/getlocation/SyncGetLocation.java diff --git a/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/listlocations/AsyncListLocations.java b/owl-bot-staging/java-confidentialcomputing/v1alpha1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/listlocations/AsyncListLocations.java similarity index 100% rename from java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/listlocations/AsyncListLocations.java rename to owl-bot-staging/java-confidentialcomputing/v1alpha1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/listlocations/AsyncListLocations.java diff --git a/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/listlocations/AsyncListLocationsPaged.java b/owl-bot-staging/java-confidentialcomputing/v1alpha1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/listlocations/AsyncListLocationsPaged.java similarity index 100% rename from java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/listlocations/AsyncListLocationsPaged.java rename to owl-bot-staging/java-confidentialcomputing/v1alpha1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/listlocations/AsyncListLocationsPaged.java diff --git a/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/listlocations/SyncListLocations.java b/owl-bot-staging/java-confidentialcomputing/v1alpha1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/listlocations/SyncListLocations.java similarity index 100% rename from java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/listlocations/SyncListLocations.java rename to owl-bot-staging/java-confidentialcomputing/v1alpha1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/listlocations/SyncListLocations.java diff --git a/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/verifyattestation/AsyncVerifyAttestation.java b/owl-bot-staging/java-confidentialcomputing/v1alpha1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/verifyattestation/AsyncVerifyAttestation.java similarity index 100% rename from java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/verifyattestation/AsyncVerifyAttestation.java rename to owl-bot-staging/java-confidentialcomputing/v1alpha1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/verifyattestation/AsyncVerifyAttestation.java diff --git a/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/verifyattestation/SyncVerifyAttestation.java b/owl-bot-staging/java-confidentialcomputing/v1alpha1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/verifyattestation/SyncVerifyAttestation.java similarity index 100% rename from java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/verifyattestation/SyncVerifyAttestation.java rename to owl-bot-staging/java-confidentialcomputing/v1alpha1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/verifyattestation/SyncVerifyAttestation.java diff --git a/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputingsettings/createchallenge/SyncCreateChallenge.java b/owl-bot-staging/java-confidentialcomputing/v1alpha1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputingsettings/createchallenge/SyncCreateChallenge.java similarity index 100% rename from java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputingsettings/createchallenge/SyncCreateChallenge.java rename to owl-bot-staging/java-confidentialcomputing/v1alpha1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputingsettings/createchallenge/SyncCreateChallenge.java diff --git a/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/stub/confidentialcomputingstubsettings/createchallenge/SyncCreateChallenge.java b/owl-bot-staging/java-confidentialcomputing/v1alpha1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/stub/confidentialcomputingstubsettings/createchallenge/SyncCreateChallenge.java similarity index 100% rename from java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/stub/confidentialcomputingstubsettings/createchallenge/SyncCreateChallenge.java rename to owl-bot-staging/java-confidentialcomputing/v1alpha1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/stub/confidentialcomputingstubsettings/createchallenge/SyncCreateChallenge.java From f78ad2954cb08ba2b9209e4c7e10e761d3333377 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Wed, 26 Jul 2023 17:51:40 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20po?= =?UTF-8?q?st-processor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- java-confidentialcomputing/README.md | 2 +- .../v1/ConfidentialComputingClient.java | 0 .../v1/ConfidentialComputingSettings.java | 1 - .../v1/gapic_metadata.json | 0 .../v1/package-info.java | 0 .../v1/stub/ConfidentialComputingStub.java | 0 .../ConfidentialComputingStubSettings.java | 0 ...cConfidentialComputingCallableFactory.java | 0 .../stub/GrpcConfidentialComputingStub.java | 1 - ...nConfidentialComputingCallableFactory.java | 0 .../HttpJsonConfidentialComputingStub.java | 0 .../v1alpha1/ConfidentialComputingClient.java | 0 .../ConfidentialComputingSettings.java | 1 - .../v1alpha1/gapic_metadata.json | 0 .../v1alpha1/package-info.java | 0 .../stub/ConfidentialComputingStub.java | 0 .../ConfidentialComputingStubSettings.java | 0 ...cConfidentialComputingCallableFactory.java | 0 .../stub/GrpcConfidentialComputingStub.java | 1 - ...nConfidentialComputingCallableFactory.java | 0 .../HttpJsonConfidentialComputingStub.java | 0 .../reflect-config.json | 0 .../reflect-config.json | 0 ...nfidentialComputingClientHttpJsonTest.java | 0 .../v1/ConfidentialComputingClientTest.java | 0 .../v1/MockConfidentialComputing.java | 0 .../v1/MockConfidentialComputingImpl.java | 0 .../v1/MockLocations.java | 0 .../v1/MockLocationsImpl.java | 0 ...nfidentialComputingClientHttpJsonTest.java | 0 .../ConfidentialComputingClientTest.java | 0 .../v1alpha1/MockConfidentialComputing.java | 0 .../MockConfidentialComputingImpl.java | 0 .../v1alpha1/MockLocations.java | 0 .../v1alpha1/MockLocationsImpl.java | 0 .../v1/ConfidentialComputingGrpc.java | 511 +++++++ .../v1alpha1/ConfidentialComputingGrpc.java | 515 +++++++ .../confidentialcomputing/v1/Challenge.java | 693 +++++---- .../v1/ChallengeName.java | 0 .../v1/ChallengeOrBuilder.java | 73 +- .../v1/ConfidentialSpaceInfo.java | 522 ++++--- .../v1/ConfidentialSpaceInfoOrBuilder.java | 53 +- .../v1/ContainerImageSignature.java | 474 +++--- .../v1/ContainerImageSignatureOrBuilder.java | 41 +- .../v1/CreateChallengeRequest.java | 516 ++++--- .../v1/CreateChallengeRequestOrBuilder.java | 55 +- .../v1/GcpCredentials.java | 365 +++-- .../v1/GcpCredentialsOrBuilder.java | 36 +- .../v1/LocationName.java | 0 .../v1/ServiceProto.java | 300 ++++ .../v1/SignedEntity.java | 545 ++++--- .../v1/SignedEntityOrBuilder.java | 96 ++ .../v1/SigningAlgorithm.java | 93 +- .../v1/TokenOptions.java | 430 +++--- .../v1/TokenOptionsOrBuilder.java | 45 +- .../v1/TpmAttestation.java | 1192 +++++++++------ .../v1/TpmAttestationOrBuilder.java | 51 +- .../v1/VerifyAttestationRequest.java | 1023 ++++++++----- .../v1/VerifyAttestationRequestOrBuilder.java | 118 +- .../v1/VerifyAttestationResponse.java | 357 +++-- .../VerifyAttestationResponseOrBuilder.java | 27 +- .../confidentialcomputing/v1/service.proto | 0 .../v1alpha1/Challenge.java | 657 +++++--- .../v1alpha1/ChallengeName.java | 0 .../v1alpha1/ChallengeOrBuilder.java | 67 +- .../v1alpha1/CreateChallengeRequest.java | 537 ++++--- .../CreateChallengeRequestOrBuilder.java | 55 +- .../v1alpha1/GcpCredentials.java | 352 +++-- .../v1alpha1/GcpCredentialsOrBuilder.java | 27 +- .../v1alpha1/LocationName.java | 0 .../v1alpha1/ServiceProto.java | 230 +++ .../v1alpha1/TpmAttestation.java | 1329 ++++++++++------- .../v1alpha1/TpmAttestationOrBuilder.java | 66 +- .../v1alpha1/VerifyAttestationRequest.java | 718 +++++---- .../VerifyAttestationRequestOrBuilder.java | 81 +- .../v1alpha1/VerifyAttestationResponse.java | 335 +++-- .../VerifyAttestationResponseOrBuilder.java | 21 +- .../v1alpha1/service.proto | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../createchallenge/AsyncCreateChallenge.java | 0 .../createchallenge/SyncCreateChallenge.java | 0 ...cCreateChallengeLocationnameChallenge.java | 0 .../SyncCreateChallengeStringChallenge.java | 0 .../getlocation/AsyncGetLocation.java | 0 .../getlocation/SyncGetLocation.java | 0 .../listlocations/AsyncListLocations.java | 0 .../AsyncListLocationsPaged.java | 0 .../listlocations/SyncListLocations.java | 0 .../AsyncVerifyAttestation.java | 0 .../SyncVerifyAttestation.java | 0 .../createchallenge/SyncCreateChallenge.java | 0 .../createchallenge/SyncCreateChallenge.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../createchallenge/AsyncCreateChallenge.java | 0 .../createchallenge/SyncCreateChallenge.java | 0 ...cCreateChallengeLocationnameChallenge.java | 0 .../SyncCreateChallengeStringChallenge.java | 0 .../getlocation/AsyncGetLocation.java | 0 .../getlocation/SyncGetLocation.java | 0 .../listlocations/AsyncListLocations.java | 0 .../AsyncListLocationsPaged.java | 0 .../listlocations/SyncListLocations.java | 0 .../AsyncVerifyAttestation.java | 0 .../SyncVerifyAttestation.java | 0 .../createchallenge/SyncCreateChallenge.java | 0 .../createchallenge/SyncCreateChallenge.java | 0 .../v1/ConfidentialComputingGrpc.java | 409 ----- .../v1/ServiceProto.java | 266 ---- .../v1/SignedEntityOrBuilder.java | 58 - .../v1alpha1/ConfidentialComputingGrpc.java | 409 ----- .../v1alpha1/ServiceProto.java | 204 --- 115 files changed, 8707 insertions(+), 5251 deletions(-) rename {owl-bot-staging/java-confidentialcomputing/v1 => java-confidentialcomputing}/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingClient.java (100%) rename {owl-bot-staging/java-confidentialcomputing/v1 => java-confidentialcomputing}/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingSettings.java (99%) rename {owl-bot-staging/java-confidentialcomputing/v1 => java-confidentialcomputing}/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/gapic_metadata.json (100%) rename {owl-bot-staging/java-confidentialcomputing/v1 => java-confidentialcomputing}/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/package-info.java (100%) rename {owl-bot-staging/java-confidentialcomputing/v1 => java-confidentialcomputing}/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/stub/ConfidentialComputingStub.java (100%) rename {owl-bot-staging/java-confidentialcomputing/v1 => java-confidentialcomputing}/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/stub/ConfidentialComputingStubSettings.java (100%) rename {owl-bot-staging/java-confidentialcomputing/v1 => java-confidentialcomputing}/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/stub/GrpcConfidentialComputingCallableFactory.java (100%) rename {owl-bot-staging/java-confidentialcomputing/v1 => java-confidentialcomputing}/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/stub/GrpcConfidentialComputingStub.java (99%) rename {owl-bot-staging/java-confidentialcomputing/v1 => java-confidentialcomputing}/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/stub/HttpJsonConfidentialComputingCallableFactory.java (100%) rename {owl-bot-staging/java-confidentialcomputing/v1 => java-confidentialcomputing}/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/stub/HttpJsonConfidentialComputingStub.java (100%) rename {owl-bot-staging/java-confidentialcomputing/v1alpha1 => java-confidentialcomputing}/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/ConfidentialComputingClient.java (100%) rename {owl-bot-staging/java-confidentialcomputing/v1alpha1 => java-confidentialcomputing}/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/ConfidentialComputingSettings.java (99%) rename {owl-bot-staging/java-confidentialcomputing/v1alpha1 => java-confidentialcomputing}/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/gapic_metadata.json (100%) rename {owl-bot-staging/java-confidentialcomputing/v1alpha1 => java-confidentialcomputing}/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/package-info.java (100%) rename {owl-bot-staging/java-confidentialcomputing/v1alpha1 => java-confidentialcomputing}/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/stub/ConfidentialComputingStub.java (100%) rename {owl-bot-staging/java-confidentialcomputing/v1alpha1 => java-confidentialcomputing}/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/stub/ConfidentialComputingStubSettings.java (100%) rename {owl-bot-staging/java-confidentialcomputing/v1alpha1 => java-confidentialcomputing}/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/stub/GrpcConfidentialComputingCallableFactory.java (100%) rename {owl-bot-staging/java-confidentialcomputing/v1alpha1 => java-confidentialcomputing}/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/stub/GrpcConfidentialComputingStub.java (99%) rename {owl-bot-staging/java-confidentialcomputing/v1alpha1 => java-confidentialcomputing}/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/stub/HttpJsonConfidentialComputingCallableFactory.java (100%) rename {owl-bot-staging/java-confidentialcomputing/v1alpha1 => java-confidentialcomputing}/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/stub/HttpJsonConfidentialComputingStub.java (100%) rename {owl-bot-staging/java-confidentialcomputing/v1 => java-confidentialcomputing}/google-cloud-confidentialcomputing/src/main/resources/META-INF/native-image/com.google.cloud.confidentialcomputing.v1/reflect-config.json (100%) rename {owl-bot-staging/java-confidentialcomputing/v1alpha1 => java-confidentialcomputing}/google-cloud-confidentialcomputing/src/main/resources/META-INF/native-image/com.google.cloud.confidentialcomputing.v1alpha1/reflect-config.json (100%) rename {owl-bot-staging/java-confidentialcomputing/v1 => java-confidentialcomputing}/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingClientHttpJsonTest.java (100%) rename {owl-bot-staging/java-confidentialcomputing/v1 => java-confidentialcomputing}/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingClientTest.java (100%) rename {owl-bot-staging/java-confidentialcomputing/v1 => java-confidentialcomputing}/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1/MockConfidentialComputing.java (100%) rename {owl-bot-staging/java-confidentialcomputing/v1 => java-confidentialcomputing}/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1/MockConfidentialComputingImpl.java (100%) rename {owl-bot-staging/java-confidentialcomputing/v1 => java-confidentialcomputing}/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1/MockLocations.java (100%) rename {owl-bot-staging/java-confidentialcomputing/v1 => java-confidentialcomputing}/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1/MockLocationsImpl.java (100%) rename {owl-bot-staging/java-confidentialcomputing/v1alpha1 => java-confidentialcomputing}/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1alpha1/ConfidentialComputingClientHttpJsonTest.java (100%) rename {owl-bot-staging/java-confidentialcomputing/v1alpha1 => java-confidentialcomputing}/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1alpha1/ConfidentialComputingClientTest.java (100%) rename {owl-bot-staging/java-confidentialcomputing/v1alpha1 => java-confidentialcomputing}/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1alpha1/MockConfidentialComputing.java (100%) rename {owl-bot-staging/java-confidentialcomputing/v1alpha1 => java-confidentialcomputing}/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1alpha1/MockConfidentialComputingImpl.java (100%) rename {owl-bot-staging/java-confidentialcomputing/v1alpha1 => java-confidentialcomputing}/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1alpha1/MockLocations.java (100%) rename {owl-bot-staging/java-confidentialcomputing/v1alpha1 => java-confidentialcomputing}/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1alpha1/MockLocationsImpl.java (100%) create mode 100644 java-confidentialcomputing/grpc-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingGrpc.java create mode 100644 java-confidentialcomputing/grpc-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/ConfidentialComputingGrpc.java rename {owl-bot-staging/java-confidentialcomputing/v1 => java-confidentialcomputing}/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/Challenge.java (68%) rename {owl-bot-staging/java-confidentialcomputing/v1 => java-confidentialcomputing}/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ChallengeName.java (100%) rename {owl-bot-staging/java-confidentialcomputing/v1 => java-confidentialcomputing}/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ChallengeOrBuilder.java (73%) rename {owl-bot-staging/java-confidentialcomputing/v1 => java-confidentialcomputing}/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ConfidentialSpaceInfo.java (63%) rename {owl-bot-staging/java-confidentialcomputing/v1 => java-confidentialcomputing}/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ConfidentialSpaceInfoOrBuilder.java (51%) rename {owl-bot-staging/java-confidentialcomputing/v1 => java-confidentialcomputing}/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ContainerImageSignature.java (67%) rename {owl-bot-staging/java-confidentialcomputing/v1 => java-confidentialcomputing}/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ContainerImageSignatureOrBuilder.java (66%) rename {owl-bot-staging/java-confidentialcomputing/v1 => java-confidentialcomputing}/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/CreateChallengeRequest.java (61%) rename {owl-bot-staging/java-confidentialcomputing/v1 => java-confidentialcomputing}/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/CreateChallengeRequestOrBuilder.java (51%) rename {owl-bot-staging/java-confidentialcomputing/v1 => java-confidentialcomputing}/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/GcpCredentials.java (68%) rename {owl-bot-staging/java-confidentialcomputing/v1 => java-confidentialcomputing}/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/GcpCredentialsOrBuilder.java (61%) rename {owl-bot-staging/java-confidentialcomputing/v1 => java-confidentialcomputing}/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/LocationName.java (100%) create mode 100644 java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ServiceProto.java rename {owl-bot-staging/java-confidentialcomputing/v1 => java-confidentialcomputing}/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/SignedEntity.java (60%) create mode 100644 java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/SignedEntityOrBuilder.java rename {owl-bot-staging/java-confidentialcomputing/v1 => java-confidentialcomputing}/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/SigningAlgorithm.java (67%) rename {owl-bot-staging/java-confidentialcomputing/v1 => java-confidentialcomputing}/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/TokenOptions.java (72%) rename {owl-bot-staging/java-confidentialcomputing/v1 => java-confidentialcomputing}/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/TokenOptionsOrBuilder.java (74%) rename {owl-bot-staging/java-confidentialcomputing/v1 => java-confidentialcomputing}/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/TpmAttestation.java (73%) rename {owl-bot-staging/java-confidentialcomputing/v1 => java-confidentialcomputing}/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/TpmAttestationOrBuilder.java (81%) rename {owl-bot-staging/java-confidentialcomputing/v1 => java-confidentialcomputing}/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyAttestationRequest.java (58%) rename {owl-bot-staging/java-confidentialcomputing/v1 => java-confidentialcomputing}/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyAttestationRequestOrBuilder.java (56%) rename {owl-bot-staging/java-confidentialcomputing/v1 => java-confidentialcomputing}/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyAttestationResponse.java (63%) rename {owl-bot-staging/java-confidentialcomputing/v1 => java-confidentialcomputing}/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyAttestationResponseOrBuilder.java (52%) rename {owl-bot-staging/java-confidentialcomputing/v1 => java-confidentialcomputing}/proto-google-cloud-confidentialcomputing-v1/src/main/proto/google/cloud/confidentialcomputing/v1/service.proto (100%) rename {owl-bot-staging/java-confidentialcomputing/v1alpha1 => java-confidentialcomputing}/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/Challenge.java (68%) rename {owl-bot-staging/java-confidentialcomputing/v1alpha1 => java-confidentialcomputing}/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/ChallengeName.java (100%) rename {owl-bot-staging/java-confidentialcomputing/v1alpha1 => java-confidentialcomputing}/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/ChallengeOrBuilder.java (73%) rename {owl-bot-staging/java-confidentialcomputing/v1alpha1 => java-confidentialcomputing}/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/CreateChallengeRequest.java (59%) rename {owl-bot-staging/java-confidentialcomputing/v1alpha1 => java-confidentialcomputing}/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/CreateChallengeRequestOrBuilder.java (52%) rename {owl-bot-staging/java-confidentialcomputing/v1alpha1 => java-confidentialcomputing}/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/GcpCredentials.java (70%) rename {owl-bot-staging/java-confidentialcomputing/v1alpha1 => java-confidentialcomputing}/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/GcpCredentialsOrBuilder.java (74%) rename {owl-bot-staging/java-confidentialcomputing/v1alpha1 => java-confidentialcomputing}/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/LocationName.java (100%) create mode 100644 java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/ServiceProto.java rename {owl-bot-staging/java-confidentialcomputing/v1alpha1 => java-confidentialcomputing}/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/TpmAttestation.java (70%) rename {owl-bot-staging/java-confidentialcomputing/v1alpha1 => java-confidentialcomputing}/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/TpmAttestationOrBuilder.java (75%) rename {owl-bot-staging/java-confidentialcomputing/v1alpha1 => java-confidentialcomputing}/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/VerifyAttestationRequest.java (58%) rename {owl-bot-staging/java-confidentialcomputing/v1alpha1 => java-confidentialcomputing}/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/VerifyAttestationRequestOrBuilder.java (54%) rename {owl-bot-staging/java-confidentialcomputing/v1alpha1 => java-confidentialcomputing}/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/VerifyAttestationResponse.java (60%) rename {owl-bot-staging/java-confidentialcomputing/v1alpha1 => java-confidentialcomputing}/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/VerifyAttestationResponseOrBuilder.java (51%) rename {owl-bot-staging/java-confidentialcomputing/v1alpha1 => java-confidentialcomputing}/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/proto/google/cloud/confidentialcomputing/v1alpha1/service.proto (100%) rename {owl-bot-staging/java-confidentialcomputing/v1 => java-confidentialcomputing}/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/java-confidentialcomputing/v1 => java-confidentialcomputing}/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/create/SyncCreateSetCredentialsProvider1.java (100%) rename {owl-bot-staging/java-confidentialcomputing/v1 => java-confidentialcomputing}/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/java-confidentialcomputing/v1 => java-confidentialcomputing}/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/createchallenge/AsyncCreateChallenge.java (100%) rename {owl-bot-staging/java-confidentialcomputing/v1 => java-confidentialcomputing}/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/createchallenge/SyncCreateChallenge.java (100%) rename {owl-bot-staging/java-confidentialcomputing/v1 => java-confidentialcomputing}/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/createchallenge/SyncCreateChallengeLocationnameChallenge.java (100%) rename {owl-bot-staging/java-confidentialcomputing/v1 => java-confidentialcomputing}/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/createchallenge/SyncCreateChallengeStringChallenge.java (100%) rename {owl-bot-staging/java-confidentialcomputing/v1 => java-confidentialcomputing}/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/getlocation/AsyncGetLocation.java (100%) rename {owl-bot-staging/java-confidentialcomputing/v1 => java-confidentialcomputing}/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/getlocation/SyncGetLocation.java (100%) rename {owl-bot-staging/java-confidentialcomputing/v1 => java-confidentialcomputing}/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/listlocations/AsyncListLocations.java (100%) rename {owl-bot-staging/java-confidentialcomputing/v1 => java-confidentialcomputing}/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/listlocations/AsyncListLocationsPaged.java (100%) rename {owl-bot-staging/java-confidentialcomputing/v1 => java-confidentialcomputing}/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/listlocations/SyncListLocations.java (100%) rename {owl-bot-staging/java-confidentialcomputing/v1 => java-confidentialcomputing}/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/verifyattestation/AsyncVerifyAttestation.java (100%) rename {owl-bot-staging/java-confidentialcomputing/v1 => java-confidentialcomputing}/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/verifyattestation/SyncVerifyAttestation.java (100%) rename {owl-bot-staging/java-confidentialcomputing/v1 => java-confidentialcomputing}/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputingsettings/createchallenge/SyncCreateChallenge.java (100%) rename {owl-bot-staging/java-confidentialcomputing/v1 => java-confidentialcomputing}/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/stub/confidentialcomputingstubsettings/createchallenge/SyncCreateChallenge.java (100%) rename {owl-bot-staging/java-confidentialcomputing/v1alpha1 => java-confidentialcomputing}/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/java-confidentialcomputing/v1alpha1 => java-confidentialcomputing}/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/create/SyncCreateSetCredentialsProvider1.java (100%) rename {owl-bot-staging/java-confidentialcomputing/v1alpha1 => java-confidentialcomputing}/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/java-confidentialcomputing/v1alpha1 => java-confidentialcomputing}/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/createchallenge/AsyncCreateChallenge.java (100%) rename {owl-bot-staging/java-confidentialcomputing/v1alpha1 => java-confidentialcomputing}/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/createchallenge/SyncCreateChallenge.java (100%) rename {owl-bot-staging/java-confidentialcomputing/v1alpha1 => java-confidentialcomputing}/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/createchallenge/SyncCreateChallengeLocationnameChallenge.java (100%) rename {owl-bot-staging/java-confidentialcomputing/v1alpha1 => java-confidentialcomputing}/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/createchallenge/SyncCreateChallengeStringChallenge.java (100%) rename {owl-bot-staging/java-confidentialcomputing/v1alpha1 => java-confidentialcomputing}/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/getlocation/AsyncGetLocation.java (100%) rename {owl-bot-staging/java-confidentialcomputing/v1alpha1 => java-confidentialcomputing}/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/getlocation/SyncGetLocation.java (100%) rename {owl-bot-staging/java-confidentialcomputing/v1alpha1 => java-confidentialcomputing}/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/listlocations/AsyncListLocations.java (100%) rename {owl-bot-staging/java-confidentialcomputing/v1alpha1 => java-confidentialcomputing}/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/listlocations/AsyncListLocationsPaged.java (100%) rename {owl-bot-staging/java-confidentialcomputing/v1alpha1 => java-confidentialcomputing}/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/listlocations/SyncListLocations.java (100%) rename {owl-bot-staging/java-confidentialcomputing/v1alpha1 => java-confidentialcomputing}/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/verifyattestation/AsyncVerifyAttestation.java (100%) rename {owl-bot-staging/java-confidentialcomputing/v1alpha1 => java-confidentialcomputing}/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/verifyattestation/SyncVerifyAttestation.java (100%) rename {owl-bot-staging/java-confidentialcomputing/v1alpha1 => java-confidentialcomputing}/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputingsettings/createchallenge/SyncCreateChallenge.java (100%) rename {owl-bot-staging/java-confidentialcomputing/v1alpha1 => java-confidentialcomputing}/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/stub/confidentialcomputingstubsettings/createchallenge/SyncCreateChallenge.java (100%) delete mode 100644 owl-bot-staging/java-confidentialcomputing/v1/grpc-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingGrpc.java delete mode 100644 owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ServiceProto.java delete mode 100644 owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/SignedEntityOrBuilder.java delete mode 100644 owl-bot-staging/java-confidentialcomputing/v1alpha1/grpc-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/ConfidentialComputingGrpc.java delete mode 100644 owl-bot-staging/java-confidentialcomputing/v1alpha1/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/ServiceProto.java diff --git a/java-confidentialcomputing/README.md b/java-confidentialcomputing/README.md index 711586bc9905..746a38f4a480 100644 --- a/java-confidentialcomputing/README.md +++ b/java-confidentialcomputing/README.md @@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-confidentialcomputing/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-confidentialcomputing.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-confidentialcomputing/0.7.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-confidentialcomputing/0.8.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/owl-bot-staging/java-confidentialcomputing/v1/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingClient.java b/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingClient.java similarity index 100% rename from owl-bot-staging/java-confidentialcomputing/v1/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingClient.java rename to java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingClient.java diff --git a/owl-bot-staging/java-confidentialcomputing/v1/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingSettings.java b/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingSettings.java similarity index 99% rename from owl-bot-staging/java-confidentialcomputing/v1/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingSettings.java rename to java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingSettings.java index 1c624fdf57e1..38c8c2cf2de4 100644 --- a/owl-bot-staging/java-confidentialcomputing/v1/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingSettings.java +++ b/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingSettings.java @@ -28,7 +28,6 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.confidentialcomputing.v1.stub.ConfidentialComputingStubSettings; diff --git a/owl-bot-staging/java-confidentialcomputing/v1/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/gapic_metadata.json b/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/gapic_metadata.json similarity index 100% rename from owl-bot-staging/java-confidentialcomputing/v1/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/gapic_metadata.json rename to java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/gapic_metadata.json diff --git a/owl-bot-staging/java-confidentialcomputing/v1/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/package-info.java b/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/package-info.java similarity index 100% rename from owl-bot-staging/java-confidentialcomputing/v1/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/package-info.java rename to java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/package-info.java diff --git a/owl-bot-staging/java-confidentialcomputing/v1/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/stub/ConfidentialComputingStub.java b/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/stub/ConfidentialComputingStub.java similarity index 100% rename from owl-bot-staging/java-confidentialcomputing/v1/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/stub/ConfidentialComputingStub.java rename to java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/stub/ConfidentialComputingStub.java diff --git a/owl-bot-staging/java-confidentialcomputing/v1/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/stub/ConfidentialComputingStubSettings.java b/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/stub/ConfidentialComputingStubSettings.java similarity index 100% rename from owl-bot-staging/java-confidentialcomputing/v1/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/stub/ConfidentialComputingStubSettings.java rename to java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/stub/ConfidentialComputingStubSettings.java diff --git a/owl-bot-staging/java-confidentialcomputing/v1/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/stub/GrpcConfidentialComputingCallableFactory.java b/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/stub/GrpcConfidentialComputingCallableFactory.java similarity index 100% rename from owl-bot-staging/java-confidentialcomputing/v1/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/stub/GrpcConfidentialComputingCallableFactory.java rename to java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/stub/GrpcConfidentialComputingCallableFactory.java diff --git a/owl-bot-staging/java-confidentialcomputing/v1/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/stub/GrpcConfidentialComputingStub.java b/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/stub/GrpcConfidentialComputingStub.java similarity index 99% rename from owl-bot-staging/java-confidentialcomputing/v1/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/stub/GrpcConfidentialComputingStub.java rename to java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/stub/GrpcConfidentialComputingStub.java index d2e2d9bfbd50..c8066bd19a38 100644 --- a/owl-bot-staging/java-confidentialcomputing/v1/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/stub/GrpcConfidentialComputingStub.java +++ b/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/stub/GrpcConfidentialComputingStub.java @@ -37,7 +37,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/java-confidentialcomputing/v1/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/stub/HttpJsonConfidentialComputingCallableFactory.java b/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/stub/HttpJsonConfidentialComputingCallableFactory.java similarity index 100% rename from owl-bot-staging/java-confidentialcomputing/v1/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/stub/HttpJsonConfidentialComputingCallableFactory.java rename to java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/stub/HttpJsonConfidentialComputingCallableFactory.java diff --git a/owl-bot-staging/java-confidentialcomputing/v1/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/stub/HttpJsonConfidentialComputingStub.java b/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/stub/HttpJsonConfidentialComputingStub.java similarity index 100% rename from owl-bot-staging/java-confidentialcomputing/v1/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/stub/HttpJsonConfidentialComputingStub.java rename to java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/stub/HttpJsonConfidentialComputingStub.java diff --git a/owl-bot-staging/java-confidentialcomputing/v1alpha1/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/ConfidentialComputingClient.java b/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/ConfidentialComputingClient.java similarity index 100% rename from owl-bot-staging/java-confidentialcomputing/v1alpha1/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/ConfidentialComputingClient.java rename to java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/ConfidentialComputingClient.java diff --git a/owl-bot-staging/java-confidentialcomputing/v1alpha1/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/ConfidentialComputingSettings.java b/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/ConfidentialComputingSettings.java similarity index 99% rename from owl-bot-staging/java-confidentialcomputing/v1alpha1/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/ConfidentialComputingSettings.java rename to java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/ConfidentialComputingSettings.java index 4496692b437d..575f5c24ee7f 100644 --- a/owl-bot-staging/java-confidentialcomputing/v1alpha1/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/ConfidentialComputingSettings.java +++ b/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/ConfidentialComputingSettings.java @@ -28,7 +28,6 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.confidentialcomputing.v1alpha1.stub.ConfidentialComputingStubSettings; diff --git a/owl-bot-staging/java-confidentialcomputing/v1alpha1/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/gapic_metadata.json b/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/gapic_metadata.json similarity index 100% rename from owl-bot-staging/java-confidentialcomputing/v1alpha1/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/gapic_metadata.json rename to java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/gapic_metadata.json diff --git a/owl-bot-staging/java-confidentialcomputing/v1alpha1/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/package-info.java b/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/package-info.java similarity index 100% rename from owl-bot-staging/java-confidentialcomputing/v1alpha1/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/package-info.java rename to java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/package-info.java diff --git a/owl-bot-staging/java-confidentialcomputing/v1alpha1/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/stub/ConfidentialComputingStub.java b/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/stub/ConfidentialComputingStub.java similarity index 100% rename from owl-bot-staging/java-confidentialcomputing/v1alpha1/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/stub/ConfidentialComputingStub.java rename to java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/stub/ConfidentialComputingStub.java diff --git a/owl-bot-staging/java-confidentialcomputing/v1alpha1/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/stub/ConfidentialComputingStubSettings.java b/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/stub/ConfidentialComputingStubSettings.java similarity index 100% rename from owl-bot-staging/java-confidentialcomputing/v1alpha1/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/stub/ConfidentialComputingStubSettings.java rename to java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/stub/ConfidentialComputingStubSettings.java diff --git a/owl-bot-staging/java-confidentialcomputing/v1alpha1/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/stub/GrpcConfidentialComputingCallableFactory.java b/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/stub/GrpcConfidentialComputingCallableFactory.java similarity index 100% rename from owl-bot-staging/java-confidentialcomputing/v1alpha1/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/stub/GrpcConfidentialComputingCallableFactory.java rename to java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/stub/GrpcConfidentialComputingCallableFactory.java diff --git a/owl-bot-staging/java-confidentialcomputing/v1alpha1/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/stub/GrpcConfidentialComputingStub.java b/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/stub/GrpcConfidentialComputingStub.java similarity index 99% rename from owl-bot-staging/java-confidentialcomputing/v1alpha1/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/stub/GrpcConfidentialComputingStub.java rename to java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/stub/GrpcConfidentialComputingStub.java index 5861c922da6c..8acf53afca45 100644 --- a/owl-bot-staging/java-confidentialcomputing/v1alpha1/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/stub/GrpcConfidentialComputingStub.java +++ b/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/stub/GrpcConfidentialComputingStub.java @@ -38,7 +38,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/java-confidentialcomputing/v1alpha1/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/stub/HttpJsonConfidentialComputingCallableFactory.java b/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/stub/HttpJsonConfidentialComputingCallableFactory.java similarity index 100% rename from owl-bot-staging/java-confidentialcomputing/v1alpha1/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/stub/HttpJsonConfidentialComputingCallableFactory.java rename to java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/stub/HttpJsonConfidentialComputingCallableFactory.java diff --git a/owl-bot-staging/java-confidentialcomputing/v1alpha1/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/stub/HttpJsonConfidentialComputingStub.java b/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/stub/HttpJsonConfidentialComputingStub.java similarity index 100% rename from owl-bot-staging/java-confidentialcomputing/v1alpha1/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/stub/HttpJsonConfidentialComputingStub.java rename to java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/stub/HttpJsonConfidentialComputingStub.java diff --git a/owl-bot-staging/java-confidentialcomputing/v1/google-cloud-confidentialcomputing/src/main/resources/META-INF/native-image/com.google.cloud.confidentialcomputing.v1/reflect-config.json b/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/resources/META-INF/native-image/com.google.cloud.confidentialcomputing.v1/reflect-config.json similarity index 100% rename from owl-bot-staging/java-confidentialcomputing/v1/google-cloud-confidentialcomputing/src/main/resources/META-INF/native-image/com.google.cloud.confidentialcomputing.v1/reflect-config.json rename to java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/resources/META-INF/native-image/com.google.cloud.confidentialcomputing.v1/reflect-config.json diff --git a/owl-bot-staging/java-confidentialcomputing/v1alpha1/google-cloud-confidentialcomputing/src/main/resources/META-INF/native-image/com.google.cloud.confidentialcomputing.v1alpha1/reflect-config.json b/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/resources/META-INF/native-image/com.google.cloud.confidentialcomputing.v1alpha1/reflect-config.json similarity index 100% rename from owl-bot-staging/java-confidentialcomputing/v1alpha1/google-cloud-confidentialcomputing/src/main/resources/META-INF/native-image/com.google.cloud.confidentialcomputing.v1alpha1/reflect-config.json rename to java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/resources/META-INF/native-image/com.google.cloud.confidentialcomputing.v1alpha1/reflect-config.json diff --git a/owl-bot-staging/java-confidentialcomputing/v1/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingClientHttpJsonTest.java b/java-confidentialcomputing/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/java-confidentialcomputing/v1/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingClientHttpJsonTest.java rename to java-confidentialcomputing/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingClientHttpJsonTest.java diff --git a/owl-bot-staging/java-confidentialcomputing/v1/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingClientTest.java b/java-confidentialcomputing/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingClientTest.java similarity index 100% rename from owl-bot-staging/java-confidentialcomputing/v1/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingClientTest.java rename to java-confidentialcomputing/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingClientTest.java diff --git a/owl-bot-staging/java-confidentialcomputing/v1/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1/MockConfidentialComputing.java b/java-confidentialcomputing/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1/MockConfidentialComputing.java similarity index 100% rename from owl-bot-staging/java-confidentialcomputing/v1/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1/MockConfidentialComputing.java rename to java-confidentialcomputing/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1/MockConfidentialComputing.java diff --git a/owl-bot-staging/java-confidentialcomputing/v1/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1/MockConfidentialComputingImpl.java b/java-confidentialcomputing/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1/MockConfidentialComputingImpl.java similarity index 100% rename from owl-bot-staging/java-confidentialcomputing/v1/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1/MockConfidentialComputingImpl.java rename to java-confidentialcomputing/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1/MockConfidentialComputingImpl.java diff --git a/owl-bot-staging/java-confidentialcomputing/v1/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1/MockLocations.java b/java-confidentialcomputing/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1/MockLocations.java similarity index 100% rename from owl-bot-staging/java-confidentialcomputing/v1/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1/MockLocations.java rename to java-confidentialcomputing/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1/MockLocations.java diff --git a/owl-bot-staging/java-confidentialcomputing/v1/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1/MockLocationsImpl.java b/java-confidentialcomputing/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1/MockLocationsImpl.java similarity index 100% rename from owl-bot-staging/java-confidentialcomputing/v1/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1/MockLocationsImpl.java rename to java-confidentialcomputing/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1/MockLocationsImpl.java diff --git a/owl-bot-staging/java-confidentialcomputing/v1alpha1/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1alpha1/ConfidentialComputingClientHttpJsonTest.java b/java-confidentialcomputing/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1alpha1/ConfidentialComputingClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/java-confidentialcomputing/v1alpha1/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1alpha1/ConfidentialComputingClientHttpJsonTest.java rename to java-confidentialcomputing/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1alpha1/ConfidentialComputingClientHttpJsonTest.java diff --git a/owl-bot-staging/java-confidentialcomputing/v1alpha1/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1alpha1/ConfidentialComputingClientTest.java b/java-confidentialcomputing/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1alpha1/ConfidentialComputingClientTest.java similarity index 100% rename from owl-bot-staging/java-confidentialcomputing/v1alpha1/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1alpha1/ConfidentialComputingClientTest.java rename to java-confidentialcomputing/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1alpha1/ConfidentialComputingClientTest.java diff --git a/owl-bot-staging/java-confidentialcomputing/v1alpha1/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1alpha1/MockConfidentialComputing.java b/java-confidentialcomputing/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1alpha1/MockConfidentialComputing.java similarity index 100% rename from owl-bot-staging/java-confidentialcomputing/v1alpha1/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1alpha1/MockConfidentialComputing.java rename to java-confidentialcomputing/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1alpha1/MockConfidentialComputing.java diff --git a/owl-bot-staging/java-confidentialcomputing/v1alpha1/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1alpha1/MockConfidentialComputingImpl.java b/java-confidentialcomputing/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1alpha1/MockConfidentialComputingImpl.java similarity index 100% rename from owl-bot-staging/java-confidentialcomputing/v1alpha1/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1alpha1/MockConfidentialComputingImpl.java rename to java-confidentialcomputing/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1alpha1/MockConfidentialComputingImpl.java diff --git a/owl-bot-staging/java-confidentialcomputing/v1alpha1/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1alpha1/MockLocations.java b/java-confidentialcomputing/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1alpha1/MockLocations.java similarity index 100% rename from owl-bot-staging/java-confidentialcomputing/v1alpha1/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1alpha1/MockLocations.java rename to java-confidentialcomputing/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1alpha1/MockLocations.java diff --git a/owl-bot-staging/java-confidentialcomputing/v1alpha1/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1alpha1/MockLocationsImpl.java b/java-confidentialcomputing/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1alpha1/MockLocationsImpl.java similarity index 100% rename from owl-bot-staging/java-confidentialcomputing/v1alpha1/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1alpha1/MockLocationsImpl.java rename to java-confidentialcomputing/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1alpha1/MockLocationsImpl.java diff --git a/java-confidentialcomputing/grpc-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingGrpc.java b/java-confidentialcomputing/grpc-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingGrpc.java new file mode 100644 index 000000000000..af1b24eeb6fe --- /dev/null +++ b/java-confidentialcomputing/grpc-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingGrpc.java @@ -0,0 +1,511 @@ +/* + * Copyright 2023 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.confidentialcomputing.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * Service describing handlers for resources
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/confidentialcomputing/v1/service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class ConfidentialComputingGrpc { + + private ConfidentialComputingGrpc() {} + + public static final String SERVICE_NAME = + "google.cloud.confidentialcomputing.v1.ConfidentialComputing"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest, + com.google.cloud.confidentialcomputing.v1.Challenge> + getCreateChallengeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateChallenge", + requestType = com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest.class, + responseType = com.google.cloud.confidentialcomputing.v1.Challenge.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest, + com.google.cloud.confidentialcomputing.v1.Challenge> + getCreateChallengeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest, + com.google.cloud.confidentialcomputing.v1.Challenge> + getCreateChallengeMethod; + if ((getCreateChallengeMethod = ConfidentialComputingGrpc.getCreateChallengeMethod) == null) { + synchronized (ConfidentialComputingGrpc.class) { + if ((getCreateChallengeMethod = ConfidentialComputingGrpc.getCreateChallengeMethod) + == null) { + ConfidentialComputingGrpc.getCreateChallengeMethod = + getCreateChallengeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateChallenge")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.confidentialcomputing.v1.Challenge + .getDefaultInstance())) + .setSchemaDescriptor( + new ConfidentialComputingMethodDescriptorSupplier("CreateChallenge")) + .build(); + } + } + } + return getCreateChallengeMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest, + com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse> + getVerifyAttestationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "VerifyAttestation", + requestType = com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest.class, + responseType = com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest, + com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse> + getVerifyAttestationMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest, + com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse> + getVerifyAttestationMethod; + if ((getVerifyAttestationMethod = ConfidentialComputingGrpc.getVerifyAttestationMethod) + == null) { + synchronized (ConfidentialComputingGrpc.class) { + if ((getVerifyAttestationMethod = ConfidentialComputingGrpc.getVerifyAttestationMethod) + == null) { + ConfidentialComputingGrpc.getVerifyAttestationMethod = + getVerifyAttestationMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "VerifyAttestation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new ConfidentialComputingMethodDescriptorSupplier("VerifyAttestation")) + .build(); + } + } + } + return getVerifyAttestationMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static ConfidentialComputingStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ConfidentialComputingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConfidentialComputingStub(channel, callOptions); + } + }; + return ConfidentialComputingStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static ConfidentialComputingBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ConfidentialComputingBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConfidentialComputingBlockingStub(channel, callOptions); + } + }; + return ConfidentialComputingBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static ConfidentialComputingFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ConfidentialComputingFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConfidentialComputingFutureStub(channel, callOptions); + } + }; + return ConfidentialComputingFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Service describing handlers for resources
+   * 
+ */ + public interface AsyncService { + + /** + * + * + *
+     * Creates a new Challenge in a given project and location.
+     * 
+ */ + default void createChallenge( + com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateChallengeMethod(), responseObserver); + } + + /** + * + * + *
+     * Verifies the provided attestation info, returning a signed OIDC token.
+     * 
+ */ + default void verifyAttestation( + com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getVerifyAttestationMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service ConfidentialComputing. + * + *
+   * Service describing handlers for resources
+   * 
+ */ + public abstract static class ConfidentialComputingImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return ConfidentialComputingGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service ConfidentialComputing. + * + *
+   * Service describing handlers for resources
+   * 
+ */ + public static final class ConfidentialComputingStub + extends io.grpc.stub.AbstractAsyncStub { + private ConfidentialComputingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ConfidentialComputingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConfidentialComputingStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a new Challenge in a given project and location.
+     * 
+ */ + public void createChallenge( + com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateChallengeMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Verifies the provided attestation info, returning a signed OIDC token.
+     * 
+ */ + public void verifyAttestation( + com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getVerifyAttestationMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service ConfidentialComputing. + * + *
+   * Service describing handlers for resources
+   * 
+ */ + public static final class ConfidentialComputingBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private ConfidentialComputingBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ConfidentialComputingBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConfidentialComputingBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a new Challenge in a given project and location.
+     * 
+ */ + public com.google.cloud.confidentialcomputing.v1.Challenge createChallenge( + com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateChallengeMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Verifies the provided attestation info, returning a signed OIDC token.
+     * 
+ */ + public com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse verifyAttestation( + com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getVerifyAttestationMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service + * ConfidentialComputing. + * + *
+   * Service describing handlers for resources
+   * 
+ */ + public static final class ConfidentialComputingFutureStub + extends io.grpc.stub.AbstractFutureStub { + private ConfidentialComputingFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ConfidentialComputingFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConfidentialComputingFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a new Challenge in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.confidentialcomputing.v1.Challenge> + createChallenge(com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateChallengeMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Verifies the provided attestation info, returning a signed OIDC token.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse> + verifyAttestation( + com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getVerifyAttestationMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_CHALLENGE = 0; + private static final int METHODID_VERIFY_ATTESTATION = 1; + + 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 AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService 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_CREATE_CHALLENGE: + serviceImpl.createChallenge( + (com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_VERIFY_ATTESTATION: + serviceImpl.verifyAttestation( + (com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse>) + 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(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateChallengeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest, + com.google.cloud.confidentialcomputing.v1.Challenge>( + service, METHODID_CREATE_CHALLENGE))) + .addMethod( + getVerifyAttestationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest, + com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse>( + service, METHODID_VERIFY_ATTESTATION))) + .build(); + } + + private abstract static class ConfidentialComputingBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + ConfidentialComputingBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("ConfidentialComputing"); + } + } + + private static final class ConfidentialComputingFileDescriptorSupplier + extends ConfidentialComputingBaseDescriptorSupplier { + ConfidentialComputingFileDescriptorSupplier() {} + } + + private static final class ConfidentialComputingMethodDescriptorSupplier + extends ConfidentialComputingBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + ConfidentialComputingMethodDescriptorSupplier(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 (ConfidentialComputingGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new ConfidentialComputingFileDescriptorSupplier()) + .addMethod(getCreateChallengeMethod()) + .addMethod(getVerifyAttestationMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-confidentialcomputing/grpc-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/ConfidentialComputingGrpc.java b/java-confidentialcomputing/grpc-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/ConfidentialComputingGrpc.java new file mode 100644 index 000000000000..74ccf04bdd86 --- /dev/null +++ b/java-confidentialcomputing/grpc-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/ConfidentialComputingGrpc.java @@ -0,0 +1,515 @@ +/* + * Copyright 2023 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.confidentialcomputing.v1alpha1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * Service describing handlers for resources
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/confidentialcomputing/v1alpha1/service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class ConfidentialComputingGrpc { + + private ConfidentialComputingGrpc() {} + + public static final String SERVICE_NAME = + "google.cloud.confidentialcomputing.v1alpha1.ConfidentialComputing"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest, + com.google.cloud.confidentialcomputing.v1alpha1.Challenge> + getCreateChallengeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateChallenge", + requestType = com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest.class, + responseType = com.google.cloud.confidentialcomputing.v1alpha1.Challenge.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest, + com.google.cloud.confidentialcomputing.v1alpha1.Challenge> + getCreateChallengeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest, + com.google.cloud.confidentialcomputing.v1alpha1.Challenge> + getCreateChallengeMethod; + if ((getCreateChallengeMethod = ConfidentialComputingGrpc.getCreateChallengeMethod) == null) { + synchronized (ConfidentialComputingGrpc.class) { + if ((getCreateChallengeMethod = ConfidentialComputingGrpc.getCreateChallengeMethod) + == null) { + ConfidentialComputingGrpc.getCreateChallengeMethod = + getCreateChallengeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateChallenge")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.confidentialcomputing.v1alpha1.Challenge + .getDefaultInstance())) + .setSchemaDescriptor( + new ConfidentialComputingMethodDescriptorSupplier("CreateChallenge")) + .build(); + } + } + } + return getCreateChallengeMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest, + com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse> + getVerifyAttestationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "VerifyAttestation", + requestType = com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest.class, + responseType = + com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest, + com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse> + getVerifyAttestationMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest, + com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse> + getVerifyAttestationMethod; + if ((getVerifyAttestationMethod = ConfidentialComputingGrpc.getVerifyAttestationMethod) + == null) { + synchronized (ConfidentialComputingGrpc.class) { + if ((getVerifyAttestationMethod = ConfidentialComputingGrpc.getVerifyAttestationMethod) + == null) { + ConfidentialComputingGrpc.getVerifyAttestationMethod = + getVerifyAttestationMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "VerifyAttestation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.confidentialcomputing.v1alpha1 + .VerifyAttestationRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.confidentialcomputing.v1alpha1 + .VerifyAttestationResponse.getDefaultInstance())) + .setSchemaDescriptor( + new ConfidentialComputingMethodDescriptorSupplier("VerifyAttestation")) + .build(); + } + } + } + return getVerifyAttestationMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static ConfidentialComputingStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ConfidentialComputingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConfidentialComputingStub(channel, callOptions); + } + }; + return ConfidentialComputingStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static ConfidentialComputingBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ConfidentialComputingBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConfidentialComputingBlockingStub(channel, callOptions); + } + }; + return ConfidentialComputingBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static ConfidentialComputingFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ConfidentialComputingFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConfidentialComputingFutureStub(channel, callOptions); + } + }; + return ConfidentialComputingFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Service describing handlers for resources
+   * 
+ */ + public interface AsyncService { + + /** + * + * + *
+     * Creates a new Challenge in a given project and location.
+     * 
+ */ + default void createChallenge( + com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateChallengeMethod(), responseObserver); + } + + /** + * + * + *
+     * Verifies the provided attestation info, returning a signed OIDC token.
+     * 
+ */ + default void verifyAttestation( + com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getVerifyAttestationMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service ConfidentialComputing. + * + *
+   * Service describing handlers for resources
+   * 
+ */ + public abstract static class ConfidentialComputingImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return ConfidentialComputingGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service ConfidentialComputing. + * + *
+   * Service describing handlers for resources
+   * 
+ */ + public static final class ConfidentialComputingStub + extends io.grpc.stub.AbstractAsyncStub { + private ConfidentialComputingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ConfidentialComputingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConfidentialComputingStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a new Challenge in a given project and location.
+     * 
+ */ + public void createChallenge( + com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateChallengeMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Verifies the provided attestation info, returning a signed OIDC token.
+     * 
+ */ + public void verifyAttestation( + com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getVerifyAttestationMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service ConfidentialComputing. + * + *
+   * Service describing handlers for resources
+   * 
+ */ + public static final class ConfidentialComputingBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private ConfidentialComputingBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ConfidentialComputingBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConfidentialComputingBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a new Challenge in a given project and location.
+     * 
+ */ + public com.google.cloud.confidentialcomputing.v1alpha1.Challenge createChallenge( + com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateChallengeMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Verifies the provided attestation info, returning a signed OIDC token.
+     * 
+ */ + public com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse + verifyAttestation( + com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getVerifyAttestationMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service + * ConfidentialComputing. + * + *
+   * Service describing handlers for resources
+   * 
+ */ + public static final class ConfidentialComputingFutureStub + extends io.grpc.stub.AbstractFutureStub { + private ConfidentialComputingFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ConfidentialComputingFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConfidentialComputingFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a new Challenge in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.confidentialcomputing.v1alpha1.Challenge> + createChallenge( + com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateChallengeMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Verifies the provided attestation info, returning a signed OIDC token.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse> + verifyAttestation( + com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getVerifyAttestationMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_CHALLENGE = 0; + private static final int METHODID_VERIFY_ATTESTATION = 1; + + 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 AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService 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_CREATE_CHALLENGE: + serviceImpl.createChallenge( + (com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.confidentialcomputing.v1alpha1.Challenge>) + responseObserver); + break; + case METHODID_VERIFY_ATTESTATION: + serviceImpl.verifyAttestation( + (com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse>) + 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(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateChallengeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest, + com.google.cloud.confidentialcomputing.v1alpha1.Challenge>( + service, METHODID_CREATE_CHALLENGE))) + .addMethod( + getVerifyAttestationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest, + com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse>( + service, METHODID_VERIFY_ATTESTATION))) + .build(); + } + + private abstract static class ConfidentialComputingBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + ConfidentialComputingBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("ConfidentialComputing"); + } + } + + private static final class ConfidentialComputingFileDescriptorSupplier + extends ConfidentialComputingBaseDescriptorSupplier { + ConfidentialComputingFileDescriptorSupplier() {} + } + + private static final class ConfidentialComputingMethodDescriptorSupplier + extends ConfidentialComputingBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + ConfidentialComputingMethodDescriptorSupplier(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 (ConfidentialComputingGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new ConfidentialComputingFileDescriptorSupplier()) + .addMethod(getCreateChallengeMethod()) + .addMethod(getVerifyAttestationMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/Challenge.java b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/Challenge.java similarity index 68% rename from owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/Challenge.java rename to java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/Challenge.java index e1509cbe27a4..3e1732de06b9 100644 --- a/owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/Challenge.java +++ b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/Challenge.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 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/confidentialcomputing/v1/service.proto package com.google.cloud.confidentialcomputing.v1; /** + * + * *
  * A Challenge from the server used to guarantee freshness of attestations
  * 
* * Protobuf type {@code google.cloud.confidentialcomputing.v1.Challenge} */ -public final class Challenge extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Challenge extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.confidentialcomputing.v1.Challenge) ChallengeOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Challenge.newBuilder() to construct. private Challenge(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Challenge() { name_ = ""; tpmNonce_ = ""; @@ -26,34 +44,39 @@ private Challenge() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Challenge(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_Challenge_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_Challenge_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_Challenge_fieldAccessorTable + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_Challenge_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.confidentialcomputing.v1.Challenge.class, com.google.cloud.confidentialcomputing.v1.Challenge.Builder.class); + com.google.cloud.confidentialcomputing.v1.Challenge.class, + com.google.cloud.confidentialcomputing.v1.Challenge.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Output only. The resource name for this Challenge in the format
    * `projects/*/locations/*/challenges/*`
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -62,30 +85,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 for this Challenge in the format
    * `projects/*/locations/*/challenges/*`
    * 
* * 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 { @@ -96,11 +119,15 @@ public java.lang.String getName() { public static final int CREATE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. The time at which this Challenge was created
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -108,11 +135,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. The time at which this Challenge was created
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -120,11 +151,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. The time at which this Challenge was created
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -134,12 +168,16 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int EXPIRE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp expireTime_; /** + * + * *
    * Output only. The time at which this Challenge will no longer be usable. It
    * is also the expiration time for any tokens generated from this Challenge.
    * 
* - * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the expireTime field is set. */ @java.lang.Override @@ -147,12 +185,16 @@ public boolean hasExpireTime() { return expireTime_ != null; } /** + * + * *
    * Output only. The time at which this Challenge will no longer be usable. It
    * is also the expiration time for any tokens generated from this Challenge.
    * 
* - * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The expireTime. */ @java.lang.Override @@ -160,12 +202,15 @@ public com.google.protobuf.Timestamp getExpireTime() { return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } /** + * + * *
    * Output only. The time at which this Challenge will no longer be usable. It
    * is also the expiration time for any tokens generated from this Challenge.
    * 
* - * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { @@ -175,11 +220,14 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { public static final int USED_FIELD_NUMBER = 4; private boolean used_ = false; /** + * + * *
    * Output only. Indicates if this challenge has been used to generate a token.
    * 
* * bool used = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The used. */ @java.lang.Override @@ -188,14 +236,18 @@ public boolean getUsed() { } public static final int TPM_NONCE_FIELD_NUMBER = 6; + @SuppressWarnings("serial") private volatile java.lang.Object tpmNonce_ = ""; /** + * + * *
    * Output only. Identical to nonce, but as a string.
    * 
* * string tpm_nonce = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The tpmNonce. */ @java.lang.Override @@ -204,29 +256,29 @@ public java.lang.String getTpmNonce() { 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(); tpmNonce_ = s; return s; } } /** + * + * *
    * Output only. Identical to nonce, but as a string.
    * 
* * string tpm_nonce = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for tpmNonce. */ @java.lang.Override - public com.google.protobuf.ByteString - getTpmNonceBytes() { + public com.google.protobuf.ByteString getTpmNonceBytes() { java.lang.Object ref = tpmNonce_; 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); tpmNonce_ = b; return b; } else { @@ -235,6 +287,7 @@ public java.lang.String getTpmNonce() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -246,8 +299,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_); } @@ -276,16 +328,13 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); } if (expireTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getExpireTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getExpireTime()); } if (used_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, used_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, used_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tpmNonce_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, tpmNonce_); @@ -298,29 +347,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.cloud.confidentialcomputing.v1.Challenge)) { return super.equals(obj); } - com.google.cloud.confidentialcomputing.v1.Challenge other = (com.google.cloud.confidentialcomputing.v1.Challenge) obj; + com.google.cloud.confidentialcomputing.v1.Challenge other = + (com.google.cloud.confidentialcomputing.v1.Challenge) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasExpireTime() != other.hasExpireTime()) return false; if (hasExpireTime()) { - if (!getExpireTime() - .equals(other.getExpireTime())) return false; + if (!getExpireTime().equals(other.getExpireTime())) return false; } - if (getUsed() - != other.getUsed()) return false; - if (!getTpmNonce() - .equals(other.getTpmNonce())) return false; + if (getUsed() != other.getUsed()) return false; + if (!getTpmNonce().equals(other.getTpmNonce())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -343,8 +388,7 @@ public int hashCode() { hash = (53 * hash) + getExpireTime().hashCode(); } hash = (37 * hash) + USED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getUsed()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUsed()); hash = (37 * hash) + TPM_NONCE_FIELD_NUMBER; hash = (53 * hash) + getTpmNonce().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -353,131 +397,135 @@ public int hashCode() { } public static com.google.cloud.confidentialcomputing.v1.Challenge 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.confidentialcomputing.v1.Challenge 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.confidentialcomputing.v1.Challenge parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.confidentialcomputing.v1.Challenge 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.confidentialcomputing.v1.Challenge parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.confidentialcomputing.v1.Challenge 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.confidentialcomputing.v1.Challenge parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.confidentialcomputing.v1.Challenge parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.confidentialcomputing.v1.Challenge 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.confidentialcomputing.v1.Challenge parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.confidentialcomputing.v1.Challenge parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.confidentialcomputing.v1.Challenge 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.confidentialcomputing.v1.Challenge 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.confidentialcomputing.v1.Challenge 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.confidentialcomputing.v1.Challenge 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 Challenge from the server used to guarantee freshness of attestations
    * 
* * Protobuf type {@code google.cloud.confidentialcomputing.v1.Challenge} */ - 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.confidentialcomputing.v1.Challenge) com.google.cloud.confidentialcomputing.v1.ChallengeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_Challenge_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_Challenge_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_Challenge_fieldAccessorTable + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_Challenge_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.confidentialcomputing.v1.Challenge.class, com.google.cloud.confidentialcomputing.v1.Challenge.Builder.class); + com.google.cloud.confidentialcomputing.v1.Challenge.class, + com.google.cloud.confidentialcomputing.v1.Challenge.Builder.class); } // Construct using com.google.cloud.confidentialcomputing.v1.Challenge.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -499,9 +547,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_Challenge_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_Challenge_descriptor; } @java.lang.Override @@ -520,8 +568,11 @@ public com.google.cloud.confidentialcomputing.v1.Challenge build() { @java.lang.Override public com.google.cloud.confidentialcomputing.v1.Challenge buildPartial() { - com.google.cloud.confidentialcomputing.v1.Challenge result = new com.google.cloud.confidentialcomputing.v1.Challenge(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.confidentialcomputing.v1.Challenge result = + new com.google.cloud.confidentialcomputing.v1.Challenge(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -532,14 +583,10 @@ private void buildPartial0(com.google.cloud.confidentialcomputing.v1.Challenge r result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.createTime_ = createTimeBuilder_ == null - ? createTime_ - : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { - result.expireTime_ = expireTimeBuilder_ == null - ? expireTime_ - : expireTimeBuilder_.build(); + result.expireTime_ = expireTimeBuilder_ == null ? expireTime_ : expireTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.used_ = used_; @@ -553,38 +600,39 @@ private void buildPartial0(com.google.cloud.confidentialcomputing.v1.Challenge r 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.confidentialcomputing.v1.Challenge) { - return mergeFrom((com.google.cloud.confidentialcomputing.v1.Challenge)other); + return mergeFrom((com.google.cloud.confidentialcomputing.v1.Challenge) other); } else { super.mergeFrom(other); return this; @@ -592,7 +640,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.confidentialcomputing.v1.Challenge other) { - if (other == com.google.cloud.confidentialcomputing.v1.Challenge.getDefaultInstance()) return this; + if (other == com.google.cloud.confidentialcomputing.v1.Challenge.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -638,41 +687,43 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getCreateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getExpireTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: { - used_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 50: { - tpmNonce_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 50 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getExpireTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + used_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 50: + { + tpmNonce_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -682,23 +733,26 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Output only. The resource name for this Challenge in the format
      * `projects/*/locations/*/challenges/*`
      * 
* * 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; @@ -707,21 +761,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name for this Challenge in the format
      * `projects/*/locations/*/challenges/*`
      * 
* * 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 { @@ -729,30 +784,37 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name for this Challenge in the format
      * `projects/*/locations/*/challenges/*`
      * 
* * 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(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Output only. The resource name for this Challenge in the format
      * `projects/*/locations/*/challenges/*`
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -762,18 +824,22 @@ public Builder clearName() { return this; } /** + * + * *
      * Output only. The resource name for this Challenge in the format
      * `projects/*/locations/*/challenges/*`
      * 
* * 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(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -783,39 +849,58 @@ public Builder setNameBytes( private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * Output only. The time at which this Challenge was created
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Output only. The time at which this Challenge was created
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The time at which this Challenge was created
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -831,14 +916,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time at which this Challenge was created
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -849,17 +937,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. The time at which this Challenge was created
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -872,11 +964,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time at which this Challenge was created
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000002); @@ -889,11 +985,15 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. The time at which this Challenge was created
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000002; @@ -901,36 +1001,48 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time at which this Challenge was created
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. The time at which this Challenge was created
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.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> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -938,42 +1050,61 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp expireTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> expireTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + expireTimeBuilder_; /** + * + * *
      * Output only. The time at which this Challenge will no longer be usable. It
      * is also the expiration time for any tokens generated from this Challenge.
      * 
* - * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the expireTime field is set. */ public boolean hasExpireTime() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Output only. The time at which this Challenge will no longer be usable. It
      * is also the expiration time for any tokens generated from this Challenge.
      * 
* - * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The expireTime. */ public com.google.protobuf.Timestamp getExpireTime() { if (expireTimeBuilder_ == null) { - return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; + return expireTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : expireTime_; } else { return expireTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The time at which this Challenge will no longer be usable. It
      * is also the expiration time for any tokens generated from this Challenge.
      * 
* - * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setExpireTime(com.google.protobuf.Timestamp value) { if (expireTimeBuilder_ == null) { @@ -989,15 +1120,18 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time at which this Challenge will no longer be usable. It
      * is also the expiration time for any tokens generated from this Challenge.
      * 
* - * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setExpireTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (expireTimeBuilder_ == null) { expireTime_ = builderForValue.build(); } else { @@ -1008,18 +1142,22 @@ public Builder setExpireTime( return this; } /** + * + * *
      * Output only. The time at which this Challenge will no longer be usable. It
      * is also the expiration time for any tokens generated from this Challenge.
      * 
* - * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { if (expireTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - expireTime_ != null && - expireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && expireTime_ != null + && expireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getExpireTimeBuilder().mergeFrom(value); } else { expireTime_ = value; @@ -1032,12 +1170,16 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time at which this Challenge will no longer be usable. It
      * is also the expiration time for any tokens generated from this Challenge.
      * 
* - * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearExpireTime() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1050,12 +1192,16 @@ public Builder clearExpireTime() { return this; } /** + * + * *
      * Output only. The time at which this Challenge will no longer be usable. It
      * is also the expiration time for any tokens generated from this Challenge.
      * 
* - * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { bitField0_ |= 0x00000004; @@ -1063,50 +1209,65 @@ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { return getExpireTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time at which this Challenge will no longer be usable. It
      * is also the expiration time for any tokens generated from this Challenge.
      * 
* - * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { if (expireTimeBuilder_ != null) { return expireTimeBuilder_.getMessageOrBuilder(); } else { - return expireTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; + return expireTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : expireTime_; } } /** + * + * *
      * Output only. The time at which this Challenge will no longer be usable. It
      * is also the expiration time for any tokens generated from this Challenge.
      * 
* - * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 3 [(.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> getExpireTimeFieldBuilder() { if (expireTimeBuilder_ == null) { - expireTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getExpireTime(), - getParentForChildren(), - isClean()); + expireTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getExpireTime(), getParentForChildren(), isClean()); expireTime_ = null; } return expireTimeBuilder_; } - private boolean used_ ; + private boolean used_; /** + * + * *
      * Output only. Indicates if this challenge has been used to generate a token.
      * 
* * bool used = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The used. */ @java.lang.Override @@ -1114,11 +1275,14 @@ public boolean getUsed() { return used_; } /** + * + * *
      * Output only. Indicates if this challenge has been used to generate a token.
      * 
* * bool used = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The used to set. * @return This builder for chaining. */ @@ -1130,11 +1294,14 @@ public Builder setUsed(boolean value) { return this; } /** + * + * *
      * Output only. Indicates if this challenge has been used to generate a token.
      * 
* * bool used = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearUsed() { @@ -1146,18 +1313,20 @@ public Builder clearUsed() { private java.lang.Object tpmNonce_ = ""; /** + * + * *
      * Output only. Identical to nonce, but as a string.
      * 
* * string tpm_nonce = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The tpmNonce. */ public java.lang.String getTpmNonce() { java.lang.Object ref = tpmNonce_; 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(); tpmNonce_ = s; return s; @@ -1166,20 +1335,21 @@ public java.lang.String getTpmNonce() { } } /** + * + * *
      * Output only. Identical to nonce, but as a string.
      * 
* * string tpm_nonce = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for tpmNonce. */ - public com.google.protobuf.ByteString - getTpmNonceBytes() { + public com.google.protobuf.ByteString getTpmNonceBytes() { java.lang.Object ref = tpmNonce_; 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); tpmNonce_ = b; return b; } else { @@ -1187,28 +1357,35 @@ public java.lang.String getTpmNonce() { } } /** + * + * *
      * Output only. Identical to nonce, but as a string.
      * 
* * string tpm_nonce = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The tpmNonce to set. * @return This builder for chaining. */ - public Builder setTpmNonce( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTpmNonce(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } tpmNonce_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * Output only. Identical to nonce, but as a string.
      * 
* * string tpm_nonce = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearTpmNonce() { @@ -1218,26 +1395,30 @@ public Builder clearTpmNonce() { return this; } /** + * + * *
      * Output only. Identical to nonce, but as a string.
      * 
* * string tpm_nonce = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for tpmNonce to set. * @return This builder for chaining. */ - public Builder setTpmNonceBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTpmNonceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); tpmNonce_ = value; bitField0_ |= 0x00000010; 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); } @@ -1247,12 +1428,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.confidentialcomputing.v1.Challenge) } // @@protoc_insertion_point(class_scope:google.cloud.confidentialcomputing.v1.Challenge) private static final com.google.cloud.confidentialcomputing.v1.Challenge DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.confidentialcomputing.v1.Challenge(); } @@ -1261,27 +1442,27 @@ public static com.google.cloud.confidentialcomputing.v1.Challenge getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Challenge parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Challenge parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1296,6 +1477,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.confidentialcomputing.v1.Challenge getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ChallengeName.java b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ChallengeName.java similarity index 100% rename from owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ChallengeName.java rename to java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ChallengeName.java diff --git a/owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ChallengeOrBuilder.java b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ChallengeOrBuilder.java similarity index 73% rename from owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ChallengeOrBuilder.java rename to java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ChallengeOrBuilder.java index fda3d909b7cf..e1a8bef0778f 100644 --- a/owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ChallengeOrBuilder.java +++ b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ChallengeOrBuilder.java @@ -1,118 +1,169 @@ +/* + * Copyright 2023 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/confidentialcomputing/v1/service.proto package com.google.cloud.confidentialcomputing.v1; -public interface ChallengeOrBuilder extends +public interface ChallengeOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.confidentialcomputing.v1.Challenge) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The resource name for this Challenge in the format
    * `projects/*/locations/*/challenges/*`
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. The resource name for this Challenge in the format
    * `projects/*/locations/*/challenges/*`
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Output only. The time at which this Challenge was created
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. The time at which this Challenge was created
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. The time at which this Challenge was created
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. The time at which this Challenge will no longer be usable. It
    * is also the expiration time for any tokens generated from this Challenge.
    * 
* - * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the expireTime field is set. */ boolean hasExpireTime(); /** + * + * *
    * Output only. The time at which this Challenge will no longer be usable. It
    * is also the expiration time for any tokens generated from this Challenge.
    * 
* - * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The expireTime. */ com.google.protobuf.Timestamp getExpireTime(); /** + * + * *
    * Output only. The time at which this Challenge will no longer be usable. It
    * is also the expiration time for any tokens generated from this Challenge.
    * 
* - * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder(); /** + * + * *
    * Output only. Indicates if this challenge has been used to generate a token.
    * 
* * bool used = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The used. */ boolean getUsed(); /** + * + * *
    * Output only. Identical to nonce, but as a string.
    * 
* * string tpm_nonce = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The tpmNonce. */ java.lang.String getTpmNonce(); /** + * + * *
    * Output only. Identical to nonce, but as a string.
    * 
* * string tpm_nonce = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for tpmNonce. */ - com.google.protobuf.ByteString - getTpmNonceBytes(); + com.google.protobuf.ByteString getTpmNonceBytes(); } diff --git a/owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ConfidentialSpaceInfo.java b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ConfidentialSpaceInfo.java similarity index 63% rename from owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ConfidentialSpaceInfo.java rename to java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ConfidentialSpaceInfo.java index 5441ef370fa6..07458506ec0d 100644 --- a/owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ConfidentialSpaceInfo.java +++ b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ConfidentialSpaceInfo.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 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/confidentialcomputing/v1/service.proto package com.google.cloud.confidentialcomputing.v1; /** + * + * *
  * ConfidentialSpaceInfo contains information related to the Confidential Space
  * TEE.
@@ -11,98 +28,122 @@
  *
  * Protobuf type {@code google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo}
  */
-public final class ConfidentialSpaceInfo extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ConfidentialSpaceInfo extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo)
     ConfidentialSpaceInfoOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ConfidentialSpaceInfo.newBuilder() to construct.
   private ConfidentialSpaceInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ConfidentialSpaceInfo() {
     signedEntities_ = java.util.Collections.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ConfidentialSpaceInfo();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_ConfidentialSpaceInfo_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.confidentialcomputing.v1.ServiceProto
+        .internal_static_google_cloud_confidentialcomputing_v1_ConfidentialSpaceInfo_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_ConfidentialSpaceInfo_fieldAccessorTable
+    return com.google.cloud.confidentialcomputing.v1.ServiceProto
+        .internal_static_google_cloud_confidentialcomputing_v1_ConfidentialSpaceInfo_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo.class, com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo.Builder.class);
+            com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo.class,
+            com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo.Builder.class);
   }
 
   public static final int SIGNED_ENTITIES_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private java.util.List signedEntities_;
   /**
+   *
+   *
    * 
    * Optional. A list of signed entities containing container image signatures
    * that can be used for server-side signature verification.
    * 
* - * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.List getSignedEntitiesList() { + public java.util.List + getSignedEntitiesList() { return signedEntities_; } /** + * + * *
    * Optional. A list of signed entities containing container image signatures
    * that can be used for server-side signature verification.
    * 
* - * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.List + public java.util.List getSignedEntitiesOrBuilderList() { return signedEntities_; } /** + * + * *
    * Optional. A list of signed entities containing container image signatures
    * that can be used for server-side signature verification.
    * 
* - * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public int getSignedEntitiesCount() { return signedEntities_.size(); } /** + * + * *
    * Optional. A list of signed entities containing container image signatures
    * that can be used for server-side signature verification.
    * 
* - * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.confidentialcomputing.v1.SignedEntity getSignedEntities(int index) { return signedEntities_.get(index); } /** + * + * *
    * Optional. A list of signed entities containing container image signatures
    * that can be used for server-side signature verification.
    * 
* - * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.confidentialcomputing.v1.SignedEntityOrBuilder getSignedEntitiesOrBuilder( @@ -111,6 +152,7 @@ public com.google.cloud.confidentialcomputing.v1.SignedEntityOrBuilder getSigned } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -122,8 +164,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 < signedEntities_.size(); i++) { output.writeMessage(1, signedEntities_.get(i)); } @@ -137,8 +178,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < signedEntities_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, signedEntities_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, signedEntities_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -148,15 +188,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.confidentialcomputing.v1.ConfidentialSpaceInfo)) { return super.equals(obj); } - com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo other = (com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo) obj; + com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo other = + (com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo) obj; - if (!getSignedEntitiesList() - .equals(other.getSignedEntitiesList())) return false; + if (!getSignedEntitiesList().equals(other.getSignedEntitiesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -178,98 +218,104 @@ public int hashCode() { } public static com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo 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.confidentialcomputing.v1.ConfidentialSpaceInfo 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.confidentialcomputing.v1.ConfidentialSpaceInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo 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.confidentialcomputing.v1.ConfidentialSpaceInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo 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.confidentialcomputing.v1.ConfidentialSpaceInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo 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.confidentialcomputing.v1.ConfidentialSpaceInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo 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.confidentialcomputing.v1.ConfidentialSpaceInfo 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.confidentialcomputing.v1.ConfidentialSpaceInfo 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.confidentialcomputing.v1.ConfidentialSpaceInfo prototype) { + + public static Builder newBuilder( + com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo 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; } /** + * + * *
    * ConfidentialSpaceInfo contains information related to the Confidential Space
    * TEE.
@@ -277,33 +323,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo}
    */
-  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.confidentialcomputing.v1.ConfidentialSpaceInfo)
       com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfoOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_ConfidentialSpaceInfo_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.confidentialcomputing.v1.ServiceProto
+          .internal_static_google_cloud_confidentialcomputing_v1_ConfidentialSpaceInfo_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_ConfidentialSpaceInfo_fieldAccessorTable
+      return com.google.cloud.confidentialcomputing.v1.ServiceProto
+          .internal_static_google_cloud_confidentialcomputing_v1_ConfidentialSpaceInfo_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo.class, com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo.Builder.class);
+              com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo.class,
+              com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo.Builder.class);
     }
 
     // Construct using com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -319,13 +364,14 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_ConfidentialSpaceInfo_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.confidentialcomputing.v1.ServiceProto
+          .internal_static_google_cloud_confidentialcomputing_v1_ConfidentialSpaceInfo_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo getDefaultInstanceForType() {
+    public com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo
+        getDefaultInstanceForType() {
       return com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo.getDefaultInstance();
     }
 
@@ -340,14 +386,18 @@ public com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo build() {
 
     @java.lang.Override
     public com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo buildPartial() {
-      com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo result = new com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo(this);
+      com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo result =
+          new com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo result) {
+    private void buildPartialRepeatedFields(
+        com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo result) {
       if (signedEntitiesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
           signedEntities_ = java.util.Collections.unmodifiableList(signedEntities_);
@@ -359,7 +409,8 @@ private void buildPartialRepeatedFields(com.google.cloud.confidentialcomputing.v
       }
     }
 
-    private void buildPartial0(com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo result) {
+    private void buildPartial0(
+        com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo result) {
       int from_bitField0_ = bitField0_;
     }
 
@@ -367,46 +418,50 @@ private void buildPartial0(com.google.cloud.confidentialcomputing.v1.Confidentia
     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.confidentialcomputing.v1.ConfidentialSpaceInfo) {
-        return mergeFrom((com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo)other);
+        return mergeFrom((com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo other) {
-      if (other == com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo other) {
+      if (other
+          == com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo.getDefaultInstance())
+        return this;
       if (signedEntitiesBuilder_ == null) {
         if (!other.signedEntities_.isEmpty()) {
           if (signedEntities_.isEmpty()) {
@@ -425,9 +480,10 @@ public Builder mergeFrom(com.google.cloud.confidentialcomputing.v1.ConfidentialS
             signedEntitiesBuilder_ = null;
             signedEntities_ = other.signedEntities_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            signedEntitiesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getSignedEntitiesFieldBuilder() : null;
+            signedEntitiesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getSignedEntitiesFieldBuilder()
+                    : null;
           } else {
             signedEntitiesBuilder_.addAllMessages(other.signedEntities_);
           }
@@ -459,25 +515,27 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              com.google.cloud.confidentialcomputing.v1.SignedEntity m =
-                  input.readMessage(
-                      com.google.cloud.confidentialcomputing.v1.SignedEntity.parser(),
-                      extensionRegistry);
-              if (signedEntitiesBuilder_ == null) {
-                ensureSignedEntitiesIsMutable();
-                signedEntities_.add(m);
-              } else {
-                signedEntitiesBuilder_.addMessage(m);
-              }
-              break;
-            } // case 10
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                com.google.cloud.confidentialcomputing.v1.SignedEntity m =
+                    input.readMessage(
+                        com.google.cloud.confidentialcomputing.v1.SignedEntity.parser(),
+                        extensionRegistry);
+                if (signedEntitiesBuilder_ == null) {
+                  ensureSignedEntitiesIsMutable();
+                  signedEntities_.add(m);
+                } else {
+                  signedEntitiesBuilder_.addMessage(m);
+                }
+                break;
+              } // case 10
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -487,29 +545,41 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.util.List signedEntities_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureSignedEntitiesIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        signedEntities_ = new java.util.ArrayList(signedEntities_);
+        signedEntities_ =
+            new java.util.ArrayList(
+                signedEntities_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.confidentialcomputing.v1.SignedEntity, com.google.cloud.confidentialcomputing.v1.SignedEntity.Builder, com.google.cloud.confidentialcomputing.v1.SignedEntityOrBuilder> signedEntitiesBuilder_;
+            com.google.cloud.confidentialcomputing.v1.SignedEntity,
+            com.google.cloud.confidentialcomputing.v1.SignedEntity.Builder,
+            com.google.cloud.confidentialcomputing.v1.SignedEntityOrBuilder>
+        signedEntitiesBuilder_;
 
     /**
+     *
+     *
      * 
      * Optional. A list of signed entities containing container image signatures
      * that can be used for server-side signature verification.
      * 
* - * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List getSignedEntitiesList() { + public java.util.List + getSignedEntitiesList() { if (signedEntitiesBuilder_ == null) { return java.util.Collections.unmodifiableList(signedEntities_); } else { @@ -517,12 +587,16 @@ public java.util.List ge } } /** + * + * *
      * Optional. A list of signed entities containing container image signatures
      * that can be used for server-side signature verification.
      * 
* - * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public int getSignedEntitiesCount() { if (signedEntitiesBuilder_ == null) { @@ -532,12 +606,16 @@ public int getSignedEntitiesCount() { } } /** + * + * *
      * Optional. A list of signed entities containing container image signatures
      * that can be used for server-side signature verification.
      * 
* - * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.confidentialcomputing.v1.SignedEntity getSignedEntities(int index) { if (signedEntitiesBuilder_ == null) { @@ -547,12 +625,16 @@ public com.google.cloud.confidentialcomputing.v1.SignedEntity getSignedEntities( } } /** + * + * *
      * Optional. A list of signed entities containing container image signatures
      * that can be used for server-side signature verification.
      * 
* - * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setSignedEntities( int index, com.google.cloud.confidentialcomputing.v1.SignedEntity value) { @@ -569,12 +651,16 @@ public Builder setSignedEntities( return this; } /** + * + * *
      * Optional. A list of signed entities containing container image signatures
      * that can be used for server-side signature verification.
      * 
* - * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setSignedEntities( int index, com.google.cloud.confidentialcomputing.v1.SignedEntity.Builder builderForValue) { @@ -588,12 +674,16 @@ public Builder setSignedEntities( return this; } /** + * + * *
      * Optional. A list of signed entities containing container image signatures
      * that can be used for server-side signature verification.
      * 
* - * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addSignedEntities(com.google.cloud.confidentialcomputing.v1.SignedEntity value) { if (signedEntitiesBuilder_ == null) { @@ -609,12 +699,16 @@ public Builder addSignedEntities(com.google.cloud.confidentialcomputing.v1.Signe return this; } /** + * + * *
      * Optional. A list of signed entities containing container image signatures
      * that can be used for server-side signature verification.
      * 
* - * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addSignedEntities( int index, com.google.cloud.confidentialcomputing.v1.SignedEntity value) { @@ -631,12 +725,16 @@ public Builder addSignedEntities( return this; } /** + * + * *
      * Optional. A list of signed entities containing container image signatures
      * that can be used for server-side signature verification.
      * 
* - * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addSignedEntities( com.google.cloud.confidentialcomputing.v1.SignedEntity.Builder builderForValue) { @@ -650,12 +748,16 @@ public Builder addSignedEntities( return this; } /** + * + * *
      * Optional. A list of signed entities containing container image signatures
      * that can be used for server-side signature verification.
      * 
* - * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addSignedEntities( int index, com.google.cloud.confidentialcomputing.v1.SignedEntity.Builder builderForValue) { @@ -669,19 +771,23 @@ public Builder addSignedEntities( return this; } /** + * + * *
      * Optional. A list of signed entities containing container image signatures
      * that can be used for server-side signature verification.
      * 
* - * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAllSignedEntities( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (signedEntitiesBuilder_ == null) { ensureSignedEntitiesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, signedEntities_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, signedEntities_); onChanged(); } else { signedEntitiesBuilder_.addAllMessages(values); @@ -689,12 +795,16 @@ public Builder addAllSignedEntities( return this; } /** + * + * *
      * Optional. A list of signed entities containing container image signatures
      * that can be used for server-side signature verification.
      * 
* - * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearSignedEntities() { if (signedEntitiesBuilder_ == null) { @@ -707,12 +817,16 @@ public Builder clearSignedEntities() { return this; } /** + * + * *
      * Optional. A list of signed entities containing container image signatures
      * that can be used for server-side signature verification.
      * 
* - * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder removeSignedEntities(int index) { if (signedEntitiesBuilder_ == null) { @@ -725,42 +839,55 @@ public Builder removeSignedEntities(int index) { return this; } /** + * + * *
      * Optional. A list of signed entities containing container image signatures
      * that can be used for server-side signature verification.
      * 
* - * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.confidentialcomputing.v1.SignedEntity.Builder getSignedEntitiesBuilder( int index) { return getSignedEntitiesFieldBuilder().getBuilder(index); } /** + * + * *
      * Optional. A list of signed entities containing container image signatures
      * that can be used for server-side signature verification.
      * 
* - * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.confidentialcomputing.v1.SignedEntityOrBuilder getSignedEntitiesOrBuilder( - int index) { + public com.google.cloud.confidentialcomputing.v1.SignedEntityOrBuilder + getSignedEntitiesOrBuilder(int index) { if (signedEntitiesBuilder_ == null) { - return signedEntities_.get(index); } else { + return signedEntities_.get(index); + } else { return signedEntitiesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Optional. A list of signed entities containing container image signatures
      * that can be used for server-side signature verification.
      * 
* - * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getSignedEntitiesOrBuilderList() { + public java.util.List + getSignedEntitiesOrBuilderList() { if (signedEntitiesBuilder_ != null) { return signedEntitiesBuilder_.getMessageOrBuilderList(); } else { @@ -768,48 +895,68 @@ public com.google.cloud.confidentialcomputing.v1.SignedEntityOrBuilder getSigned } } /** + * + * *
      * Optional. A list of signed entities containing container image signatures
      * that can be used for server-side signature verification.
      * 
* - * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.confidentialcomputing.v1.SignedEntity.Builder addSignedEntitiesBuilder() { - return getSignedEntitiesFieldBuilder().addBuilder( - com.google.cloud.confidentialcomputing.v1.SignedEntity.getDefaultInstance()); + public com.google.cloud.confidentialcomputing.v1.SignedEntity.Builder + addSignedEntitiesBuilder() { + return getSignedEntitiesFieldBuilder() + .addBuilder(com.google.cloud.confidentialcomputing.v1.SignedEntity.getDefaultInstance()); } /** + * + * *
      * Optional. A list of signed entities containing container image signatures
      * that can be used for server-side signature verification.
      * 
* - * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.confidentialcomputing.v1.SignedEntity.Builder addSignedEntitiesBuilder( int index) { - return getSignedEntitiesFieldBuilder().addBuilder( - index, com.google.cloud.confidentialcomputing.v1.SignedEntity.getDefaultInstance()); + return getSignedEntitiesFieldBuilder() + .addBuilder( + index, com.google.cloud.confidentialcomputing.v1.SignedEntity.getDefaultInstance()); } /** + * + * *
      * Optional. A list of signed entities containing container image signatures
      * that can be used for server-side signature verification.
      * 
* - * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getSignedEntitiesBuilderList() { + public java.util.List + getSignedEntitiesBuilderList() { return getSignedEntitiesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.confidentialcomputing.v1.SignedEntity, com.google.cloud.confidentialcomputing.v1.SignedEntity.Builder, com.google.cloud.confidentialcomputing.v1.SignedEntityOrBuilder> + com.google.cloud.confidentialcomputing.v1.SignedEntity, + com.google.cloud.confidentialcomputing.v1.SignedEntity.Builder, + com.google.cloud.confidentialcomputing.v1.SignedEntityOrBuilder> getSignedEntitiesFieldBuilder() { if (signedEntitiesBuilder_ == null) { - signedEntitiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.confidentialcomputing.v1.SignedEntity, com.google.cloud.confidentialcomputing.v1.SignedEntity.Builder, com.google.cloud.confidentialcomputing.v1.SignedEntityOrBuilder>( + signedEntitiesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.confidentialcomputing.v1.SignedEntity, + com.google.cloud.confidentialcomputing.v1.SignedEntity.Builder, + com.google.cloud.confidentialcomputing.v1.SignedEntityOrBuilder>( signedEntities_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -818,9 +965,9 @@ public com.google.cloud.confidentialcomputing.v1.SignedEntity.Builder addSignedE } return signedEntitiesBuilder_; } + @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); } @@ -830,41 +977,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo) } // @@protoc_insertion_point(class_scope:google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo) - private static final com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo DEFAULT_INSTANCE; + private static final com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo(); } - public static com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo getDefaultInstance() { + public static com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConfidentialSpaceInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConfidentialSpaceInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -876,9 +1025,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo getDefaultInstanceForType() { + public com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ConfidentialSpaceInfoOrBuilder.java b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ConfidentialSpaceInfoOrBuilder.java similarity index 51% rename from owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ConfidentialSpaceInfoOrBuilder.java rename to java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ConfidentialSpaceInfoOrBuilder.java index 25058b5aa621..530a98d822d6 100644 --- a/owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ConfidentialSpaceInfoOrBuilder.java +++ b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ConfidentialSpaceInfoOrBuilder.java @@ -1,57 +1,92 @@ +/* + * Copyright 2023 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/confidentialcomputing/v1/service.proto package com.google.cloud.confidentialcomputing.v1; -public interface ConfidentialSpaceInfoOrBuilder extends +public interface ConfidentialSpaceInfoOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. A list of signed entities containing container image signatures
    * that can be used for server-side signature verification.
    * 
* - * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List - getSignedEntitiesList(); + java.util.List getSignedEntitiesList(); /** + * + * *
    * Optional. A list of signed entities containing container image signatures
    * that can be used for server-side signature verification.
    * 
* - * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.confidentialcomputing.v1.SignedEntity getSignedEntities(int index); /** + * + * *
    * Optional. A list of signed entities containing container image signatures
    * that can be used for server-side signature verification.
    * 
* - * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getSignedEntitiesCount(); /** + * + * *
    * Optional. A list of signed entities containing container image signatures
    * that can be used for server-side signature verification.
    * 
* - * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List + java.util.List getSignedEntitiesOrBuilderList(); /** + * + * *
    * Optional. A list of signed entities containing container image signatures
    * that can be used for server-side signature verification.
    * 
* - * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.confidentialcomputing.v1.SignedEntityOrBuilder getSignedEntitiesOrBuilder( int index); diff --git a/owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ContainerImageSignature.java b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ContainerImageSignature.java similarity index 67% rename from owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ContainerImageSignature.java rename to java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ContainerImageSignature.java index 1719ebf25a81..895407a40595 100644 --- a/owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ContainerImageSignature.java +++ b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ContainerImageSignature.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 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/confidentialcomputing/v1/service.proto package com.google.cloud.confidentialcomputing.v1; /** + * + * *
  * ContainerImageSignature holds necessary metadata to verify a container image
  * signature.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.confidentialcomputing.v1.ContainerImageSignature}
  */
-public final class ContainerImageSignature extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ContainerImageSignature extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.confidentialcomputing.v1.ContainerImageSignature)
     ContainerImageSignatureOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ContainerImageSignature.newBuilder() to construct.
   private ContainerImageSignature(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ContainerImageSignature() {
     payload_ = com.google.protobuf.ByteString.EMPTY;
     signature_ = com.google.protobuf.ByteString.EMPTY;
@@ -29,27 +47,30 @@ private ContainerImageSignature() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ContainerImageSignature();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_ContainerImageSignature_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.confidentialcomputing.v1.ServiceProto
+        .internal_static_google_cloud_confidentialcomputing_v1_ContainerImageSignature_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_ContainerImageSignature_fieldAccessorTable
+    return com.google.cloud.confidentialcomputing.v1.ServiceProto
+        .internal_static_google_cloud_confidentialcomputing_v1_ContainerImageSignature_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.confidentialcomputing.v1.ContainerImageSignature.class, com.google.cloud.confidentialcomputing.v1.ContainerImageSignature.Builder.class);
+            com.google.cloud.confidentialcomputing.v1.ContainerImageSignature.class,
+            com.google.cloud.confidentialcomputing.v1.ContainerImageSignature.Builder.class);
   }
 
   public static final int PAYLOAD_FIELD_NUMBER = 1;
   private com.google.protobuf.ByteString payload_ = com.google.protobuf.ByteString.EMPTY;
   /**
+   *
+   *
    * 
    * Required. The binary signature payload following the SimpleSigning format
    * https://github.com/sigstore/cosign/blob/main/specs/SIGNATURE_SPEC.md#simple-signing.
@@ -57,6 +78,7 @@ protected java.lang.Object newInstance(
    * 
* * bytes payload = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The payload. */ @java.lang.Override @@ -67,6 +89,8 @@ public com.google.protobuf.ByteString getPayload() { public static final int SIGNATURE_FIELD_NUMBER = 2; private com.google.protobuf.ByteString signature_ = com.google.protobuf.ByteString.EMPTY; /** + * + * *
    * Required. A signature over the payload.
    * The container image digest is incorporated into the signature as follows:
@@ -78,6 +102,7 @@ public com.google.protobuf.ByteString getPayload() {
    * 
* * bytes signature = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The signature. */ @java.lang.Override @@ -88,11 +113,14 @@ public com.google.protobuf.ByteString getSignature() { public static final int PUBLIC_KEY_FIELD_NUMBER = 3; private com.google.protobuf.ByteString publicKey_ = com.google.protobuf.ByteString.EMPTY; /** + * + * *
    * Required. An associated public key used to verify the signature.
    * 
* * bytes public_key = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The publicKey. */ @java.lang.Override @@ -103,30 +131,46 @@ public com.google.protobuf.ByteString getPublicKey() { public static final int SIG_ALG_FIELD_NUMBER = 4; private int sigAlg_ = 0; /** + * + * *
    * Required. The algorithm used to produce the container image signature.
    * 
* - * .google.cloud.confidentialcomputing.v1.SigningAlgorithm sig_alg = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.confidentialcomputing.v1.SigningAlgorithm sig_alg = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for sigAlg. */ - @java.lang.Override public int getSigAlgValue() { + @java.lang.Override + public int getSigAlgValue() { return sigAlg_; } /** + * + * *
    * Required. The algorithm used to produce the container image signature.
    * 
* - * .google.cloud.confidentialcomputing.v1.SigningAlgorithm sig_alg = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.confidentialcomputing.v1.SigningAlgorithm sig_alg = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The sigAlg. */ - @java.lang.Override public com.google.cloud.confidentialcomputing.v1.SigningAlgorithm getSigAlg() { - com.google.cloud.confidentialcomputing.v1.SigningAlgorithm result = com.google.cloud.confidentialcomputing.v1.SigningAlgorithm.forNumber(sigAlg_); - return result == null ? com.google.cloud.confidentialcomputing.v1.SigningAlgorithm.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.SigningAlgorithm getSigAlg() { + com.google.cloud.confidentialcomputing.v1.SigningAlgorithm result = + com.google.cloud.confidentialcomputing.v1.SigningAlgorithm.forNumber(sigAlg_); + return result == null + ? com.google.cloud.confidentialcomputing.v1.SigningAlgorithm.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -138,8 +182,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 (!payload_.isEmpty()) { output.writeBytes(1, payload_); } @@ -149,7 +192,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!publicKey_.isEmpty()) { output.writeBytes(3, publicKey_); } - if (sigAlg_ != com.google.cloud.confidentialcomputing.v1.SigningAlgorithm.SIGNING_ALGORITHM_UNSPECIFIED.getNumber()) { + if (sigAlg_ + != com.google.cloud.confidentialcomputing.v1.SigningAlgorithm.SIGNING_ALGORITHM_UNSPECIFIED + .getNumber()) { output.writeEnum(4, sigAlg_); } getUnknownFields().writeTo(output); @@ -162,20 +207,18 @@ public int getSerializedSize() { size = 0; if (!payload_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, payload_); + size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, payload_); } if (!signature_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, signature_); + size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, signature_); } if (!publicKey_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, publicKey_); + size += com.google.protobuf.CodedOutputStream.computeBytesSize(3, publicKey_); } - if (sigAlg_ != com.google.cloud.confidentialcomputing.v1.SigningAlgorithm.SIGNING_ALGORITHM_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, sigAlg_); + if (sigAlg_ + != com.google.cloud.confidentialcomputing.v1.SigningAlgorithm.SIGNING_ALGORITHM_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, sigAlg_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -185,19 +228,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.confidentialcomputing.v1.ContainerImageSignature)) { return super.equals(obj); } - com.google.cloud.confidentialcomputing.v1.ContainerImageSignature other = (com.google.cloud.confidentialcomputing.v1.ContainerImageSignature) obj; + com.google.cloud.confidentialcomputing.v1.ContainerImageSignature other = + (com.google.cloud.confidentialcomputing.v1.ContainerImageSignature) obj; - if (!getPayload() - .equals(other.getPayload())) return false; - if (!getSignature() - .equals(other.getSignature())) return false; - if (!getPublicKey() - .equals(other.getPublicKey())) return false; + if (!getPayload().equals(other.getPayload())) return false; + if (!getSignature().equals(other.getSignature())) return false; + if (!getPublicKey().equals(other.getPublicKey())) return false; if (sigAlg_ != other.sigAlg_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -224,98 +265,105 @@ public int hashCode() { } public static com.google.cloud.confidentialcomputing.v1.ContainerImageSignature 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.confidentialcomputing.v1.ContainerImageSignature 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.confidentialcomputing.v1.ContainerImageSignature parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.confidentialcomputing.v1.ContainerImageSignature 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.confidentialcomputing.v1.ContainerImageSignature parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.confidentialcomputing.v1.ContainerImageSignature parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.confidentialcomputing.v1.ContainerImageSignature 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.confidentialcomputing.v1.ContainerImageSignature parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.confidentialcomputing.v1.ContainerImageSignature parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.confidentialcomputing.v1.ContainerImageSignature 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.confidentialcomputing.v1.ContainerImageSignature parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.confidentialcomputing.v1.ContainerImageSignature + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.confidentialcomputing.v1.ContainerImageSignature 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.confidentialcomputing.v1.ContainerImageSignature + 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.confidentialcomputing.v1.ContainerImageSignature 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.confidentialcomputing.v1.ContainerImageSignature 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.confidentialcomputing.v1.ContainerImageSignature prototype) { + + public static Builder newBuilder( + com.google.cloud.confidentialcomputing.v1.ContainerImageSignature 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; } /** + * + * *
    * ContainerImageSignature holds necessary metadata to verify a container image
    * signature.
@@ -323,33 +371,33 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.confidentialcomputing.v1.ContainerImageSignature}
    */
-  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.confidentialcomputing.v1.ContainerImageSignature)
       com.google.cloud.confidentialcomputing.v1.ContainerImageSignatureOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_ContainerImageSignature_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.confidentialcomputing.v1.ServiceProto
+          .internal_static_google_cloud_confidentialcomputing_v1_ContainerImageSignature_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_ContainerImageSignature_fieldAccessorTable
+      return com.google.cloud.confidentialcomputing.v1.ServiceProto
+          .internal_static_google_cloud_confidentialcomputing_v1_ContainerImageSignature_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.confidentialcomputing.v1.ContainerImageSignature.class, com.google.cloud.confidentialcomputing.v1.ContainerImageSignature.Builder.class);
+              com.google.cloud.confidentialcomputing.v1.ContainerImageSignature.class,
+              com.google.cloud.confidentialcomputing.v1.ContainerImageSignature.Builder.class);
     }
 
-    // Construct using com.google.cloud.confidentialcomputing.v1.ContainerImageSignature.newBuilder()
-    private Builder() {
-
-    }
+    // Construct using
+    // com.google.cloud.confidentialcomputing.v1.ContainerImageSignature.newBuilder()
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -362,13 +410,14 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_ContainerImageSignature_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.confidentialcomputing.v1.ServiceProto
+          .internal_static_google_cloud_confidentialcomputing_v1_ContainerImageSignature_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.confidentialcomputing.v1.ContainerImageSignature getDefaultInstanceForType() {
+    public com.google.cloud.confidentialcomputing.v1.ContainerImageSignature
+        getDefaultInstanceForType() {
       return com.google.cloud.confidentialcomputing.v1.ContainerImageSignature.getDefaultInstance();
     }
 
@@ -383,13 +432,17 @@ public com.google.cloud.confidentialcomputing.v1.ContainerImageSignature build()
 
     @java.lang.Override
     public com.google.cloud.confidentialcomputing.v1.ContainerImageSignature buildPartial() {
-      com.google.cloud.confidentialcomputing.v1.ContainerImageSignature result = new com.google.cloud.confidentialcomputing.v1.ContainerImageSignature(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.confidentialcomputing.v1.ContainerImageSignature result =
+          new com.google.cloud.confidentialcomputing.v1.ContainerImageSignature(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(com.google.cloud.confidentialcomputing.v1.ContainerImageSignature result) {
+    private void buildPartial0(
+        com.google.cloud.confidentialcomputing.v1.ContainerImageSignature result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.payload_ = payload_;
@@ -409,46 +462,50 @@ private void buildPartial0(com.google.cloud.confidentialcomputing.v1.ContainerIm
     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.confidentialcomputing.v1.ContainerImageSignature) {
-        return mergeFrom((com.google.cloud.confidentialcomputing.v1.ContainerImageSignature)other);
+        return mergeFrom((com.google.cloud.confidentialcomputing.v1.ContainerImageSignature) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.confidentialcomputing.v1.ContainerImageSignature other) {
-      if (other == com.google.cloud.confidentialcomputing.v1.ContainerImageSignature.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.confidentialcomputing.v1.ContainerImageSignature other) {
+      if (other
+          == com.google.cloud.confidentialcomputing.v1.ContainerImageSignature.getDefaultInstance())
+        return this;
       if (other.getPayload() != com.google.protobuf.ByteString.EMPTY) {
         setPayload(other.getPayload());
       }
@@ -487,32 +544,37 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              payload_ = input.readBytes();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              signature_ = input.readBytes();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              publicKey_ = input.readBytes();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            case 32: {
-              sigAlg_ = input.readEnum();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 32
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                payload_ = input.readBytes();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                signature_ = input.readBytes();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                publicKey_ = input.readBytes();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            case 32:
+              {
+                sigAlg_ = input.readEnum();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 32
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -522,10 +584,13 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private com.google.protobuf.ByteString payload_ = com.google.protobuf.ByteString.EMPTY;
     /**
+     *
+     *
      * 
      * Required. The binary signature payload following the SimpleSigning format
      * https://github.com/sigstore/cosign/blob/main/specs/SIGNATURE_SPEC.md#simple-signing.
@@ -533,6 +598,7 @@ public Builder mergeFrom(
      * 
* * bytes payload = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The payload. */ @java.lang.Override @@ -540,6 +606,8 @@ public com.google.protobuf.ByteString getPayload() { return payload_; } /** + * + * *
      * Required. The binary signature payload following the SimpleSigning format
      * https://github.com/sigstore/cosign/blob/main/specs/SIGNATURE_SPEC.md#simple-signing.
@@ -547,17 +615,22 @@ public com.google.protobuf.ByteString getPayload() {
      * 
* * bytes payload = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The payload to set. * @return This builder for chaining. */ public Builder setPayload(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + if (value == null) { + throw new NullPointerException(); + } payload_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The binary signature payload following the SimpleSigning format
      * https://github.com/sigstore/cosign/blob/main/specs/SIGNATURE_SPEC.md#simple-signing.
@@ -565,6 +638,7 @@ public Builder setPayload(com.google.protobuf.ByteString value) {
      * 
* * bytes payload = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearPayload() { @@ -576,6 +650,8 @@ public Builder clearPayload() { private com.google.protobuf.ByteString signature_ = com.google.protobuf.ByteString.EMPTY; /** + * + * *
      * Required. A signature over the payload.
      * The container image digest is incorporated into the signature as follows:
@@ -587,6 +663,7 @@ public Builder clearPayload() {
      * 
* * bytes signature = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The signature. */ @java.lang.Override @@ -594,6 +671,8 @@ public com.google.protobuf.ByteString getSignature() { return signature_; } /** + * + * *
      * Required. A signature over the payload.
      * The container image digest is incorporated into the signature as follows:
@@ -605,17 +684,22 @@ public com.google.protobuf.ByteString getSignature() {
      * 
* * bytes signature = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The signature to set. * @return This builder for chaining. */ public Builder setSignature(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + if (value == null) { + throw new NullPointerException(); + } signature_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Required. A signature over the payload.
      * The container image digest is incorporated into the signature as follows:
@@ -627,6 +711,7 @@ public Builder setSignature(com.google.protobuf.ByteString value) {
      * 
* * bytes signature = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearSignature() { @@ -638,11 +723,14 @@ public Builder clearSignature() { private com.google.protobuf.ByteString publicKey_ = com.google.protobuf.ByteString.EMPTY; /** + * + * *
      * Required. An associated public key used to verify the signature.
      * 
* * bytes public_key = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The publicKey. */ @java.lang.Override @@ -650,27 +738,35 @@ public com.google.protobuf.ByteString getPublicKey() { return publicKey_; } /** + * + * *
      * Required. An associated public key used to verify the signature.
      * 
* * bytes public_key = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The publicKey to set. * @return This builder for chaining. */ public Builder setPublicKey(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + if (value == null) { + throw new NullPointerException(); + } publicKey_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Required. An associated public key used to verify the signature.
      * 
* * bytes public_key = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearPublicKey() { @@ -682,22 +778,33 @@ public Builder clearPublicKey() { private int sigAlg_ = 0; /** + * + * *
      * Required. The algorithm used to produce the container image signature.
      * 
* - * .google.cloud.confidentialcomputing.v1.SigningAlgorithm sig_alg = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.confidentialcomputing.v1.SigningAlgorithm sig_alg = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for sigAlg. */ - @java.lang.Override public int getSigAlgValue() { + @java.lang.Override + public int getSigAlgValue() { return sigAlg_; } /** + * + * *
      * Required. The algorithm used to produce the container image signature.
      * 
* - * .google.cloud.confidentialcomputing.v1.SigningAlgorithm sig_alg = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.confidentialcomputing.v1.SigningAlgorithm sig_alg = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The enum numeric value on the wire for sigAlg to set. * @return This builder for chaining. */ @@ -708,24 +815,37 @@ public Builder setSigAlgValue(int value) { return this; } /** + * + * *
      * Required. The algorithm used to produce the container image signature.
      * 
* - * .google.cloud.confidentialcomputing.v1.SigningAlgorithm sig_alg = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.confidentialcomputing.v1.SigningAlgorithm sig_alg = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The sigAlg. */ @java.lang.Override public com.google.cloud.confidentialcomputing.v1.SigningAlgorithm getSigAlg() { - com.google.cloud.confidentialcomputing.v1.SigningAlgorithm result = com.google.cloud.confidentialcomputing.v1.SigningAlgorithm.forNumber(sigAlg_); - return result == null ? com.google.cloud.confidentialcomputing.v1.SigningAlgorithm.UNRECOGNIZED : result; + com.google.cloud.confidentialcomputing.v1.SigningAlgorithm result = + com.google.cloud.confidentialcomputing.v1.SigningAlgorithm.forNumber(sigAlg_); + return result == null + ? com.google.cloud.confidentialcomputing.v1.SigningAlgorithm.UNRECOGNIZED + : result; } /** + * + * *
      * Required. The algorithm used to produce the container image signature.
      * 
* - * .google.cloud.confidentialcomputing.v1.SigningAlgorithm sig_alg = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.confidentialcomputing.v1.SigningAlgorithm sig_alg = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The sigAlg to set. * @return This builder for chaining. */ @@ -739,11 +859,16 @@ public Builder setSigAlg(com.google.cloud.confidentialcomputing.v1.SigningAlgori return this; } /** + * + * *
      * Required. The algorithm used to produce the container image signature.
      * 
* - * .google.cloud.confidentialcomputing.v1.SigningAlgorithm sig_alg = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.confidentialcomputing.v1.SigningAlgorithm sig_alg = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return This builder for chaining. */ public Builder clearSigAlg() { @@ -752,9 +877,9 @@ public Builder clearSigAlg() { 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); } @@ -764,41 +889,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.confidentialcomputing.v1.ContainerImageSignature) } // @@protoc_insertion_point(class_scope:google.cloud.confidentialcomputing.v1.ContainerImageSignature) - private static final com.google.cloud.confidentialcomputing.v1.ContainerImageSignature DEFAULT_INSTANCE; + private static final com.google.cloud.confidentialcomputing.v1.ContainerImageSignature + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.confidentialcomputing.v1.ContainerImageSignature(); } - public static com.google.cloud.confidentialcomputing.v1.ContainerImageSignature getDefaultInstance() { + public static com.google.cloud.confidentialcomputing.v1.ContainerImageSignature + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ContainerImageSignature parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ContainerImageSignature parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -810,9 +937,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.confidentialcomputing.v1.ContainerImageSignature getDefaultInstanceForType() { + public com.google.cloud.confidentialcomputing.v1.ContainerImageSignature + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ContainerImageSignatureOrBuilder.java b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ContainerImageSignatureOrBuilder.java similarity index 66% rename from owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ContainerImageSignatureOrBuilder.java rename to java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ContainerImageSignatureOrBuilder.java index 446b6cb88e7e..689105cddaf6 100644 --- a/owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ContainerImageSignatureOrBuilder.java +++ b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ContainerImageSignatureOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 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/confidentialcomputing/v1/service.proto package com.google.cloud.confidentialcomputing.v1; -public interface ContainerImageSignatureOrBuilder extends +public interface ContainerImageSignatureOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.confidentialcomputing.v1.ContainerImageSignature) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The binary signature payload following the SimpleSigning format
    * https://github.com/sigstore/cosign/blob/main/specs/SIGNATURE_SPEC.md#simple-signing.
@@ -15,11 +33,14 @@ public interface ContainerImageSignatureOrBuilder extends
    * 
* * bytes payload = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The payload. */ com.google.protobuf.ByteString getPayload(); /** + * + * *
    * Required. A signature over the payload.
    * The container image digest is incorporated into the signature as follows:
@@ -31,35 +52,49 @@ public interface ContainerImageSignatureOrBuilder extends
    * 
* * bytes signature = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The signature. */ com.google.protobuf.ByteString getSignature(); /** + * + * *
    * Required. An associated public key used to verify the signature.
    * 
* * bytes public_key = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The publicKey. */ com.google.protobuf.ByteString getPublicKey(); /** + * + * *
    * Required. The algorithm used to produce the container image signature.
    * 
* - * .google.cloud.confidentialcomputing.v1.SigningAlgorithm sig_alg = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.confidentialcomputing.v1.SigningAlgorithm sig_alg = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for sigAlg. */ int getSigAlgValue(); /** + * + * *
    * Required. The algorithm used to produce the container image signature.
    * 
* - * .google.cloud.confidentialcomputing.v1.SigningAlgorithm sig_alg = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.confidentialcomputing.v1.SigningAlgorithm sig_alg = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The sigAlg. */ com.google.cloud.confidentialcomputing.v1.SigningAlgorithm getSigAlg(); diff --git a/owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/CreateChallengeRequest.java b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/CreateChallengeRequest.java similarity index 61% rename from owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/CreateChallengeRequest.java rename to java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/CreateChallengeRequest.java index e3ae9a5f6bac..108428e7754b 100644 --- a/owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/CreateChallengeRequest.java +++ b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/CreateChallengeRequest.java @@ -1,58 +1,83 @@ +/* + * Copyright 2023 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/confidentialcomputing/v1/service.proto package com.google.cloud.confidentialcomputing.v1; /** + * + * *
  * Message for creating a Challenge
  * 
* * Protobuf type {@code google.cloud.confidentialcomputing.v1.CreateChallengeRequest} */ -public final class CreateChallengeRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateChallengeRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.confidentialcomputing.v1.CreateChallengeRequest) CreateChallengeRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateChallengeRequest.newBuilder() to construct. private CreateChallengeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateChallengeRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateChallengeRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_CreateChallengeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_CreateChallengeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_CreateChallengeRequest_fieldAccessorTable + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_CreateChallengeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest.class, com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest.Builder.class); + com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest.class, + com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The resource name of the location where the Challenge will be
    * used, in the format `projects/*/locations/*`.
    * 
* - * 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 @@ -61,30 +86,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 location where the Challenge will be
    * used, in the format `projects/*/locations/*`.
    * 
* - * 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 { @@ -95,12 +122,17 @@ public java.lang.String getParent() { public static final int CHALLENGE_FIELD_NUMBER = 2; private com.google.cloud.confidentialcomputing.v1.Challenge challenge_; /** + * + * *
    * Required. The Challenge to be created. Currently this field can be empty as
    * all the Challenge fields are set by the server.
    * 
* - * .google.cloud.confidentialcomputing.v1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.confidentialcomputing.v1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the challenge field is set. */ @java.lang.Override @@ -108,32 +140,46 @@ public boolean hasChallenge() { return challenge_ != null; } /** + * + * *
    * Required. The Challenge to be created. Currently this field can be empty as
    * all the Challenge fields are set by the server.
    * 
* - * .google.cloud.confidentialcomputing.v1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.confidentialcomputing.v1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The challenge. */ @java.lang.Override public com.google.cloud.confidentialcomputing.v1.Challenge getChallenge() { - return challenge_ == null ? com.google.cloud.confidentialcomputing.v1.Challenge.getDefaultInstance() : challenge_; + return challenge_ == null + ? com.google.cloud.confidentialcomputing.v1.Challenge.getDefaultInstance() + : challenge_; } /** + * + * *
    * Required. The Challenge to be created. Currently this field can be empty as
    * all the Challenge fields are set by the server.
    * 
* - * .google.cloud.confidentialcomputing.v1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.confidentialcomputing.v1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.confidentialcomputing.v1.ChallengeOrBuilder getChallengeOrBuilder() { - return challenge_ == null ? com.google.cloud.confidentialcomputing.v1.Challenge.getDefaultInstance() : challenge_; + return challenge_ == null + ? com.google.cloud.confidentialcomputing.v1.Challenge.getDefaultInstance() + : challenge_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -145,8 +191,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_); } @@ -166,8 +211,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (challenge_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getChallenge()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getChallenge()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -177,19 +221,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.confidentialcomputing.v1.CreateChallengeRequest)) { return super.equals(obj); } - com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest other = (com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest) obj; + com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest other = + (com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasChallenge() != other.hasChallenge()) return false; if (hasChallenge()) { - if (!getChallenge() - .equals(other.getChallenge())) return false; + if (!getChallenge().equals(other.getChallenge())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -214,131 +257,136 @@ public int hashCode() { } public static com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest 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.confidentialcomputing.v1.CreateChallengeRequest 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.confidentialcomputing.v1.CreateChallengeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest 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.confidentialcomputing.v1.CreateChallengeRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest 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.confidentialcomputing.v1.CreateChallengeRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest 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.confidentialcomputing.v1.CreateChallengeRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest 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.confidentialcomputing.v1.CreateChallengeRequest 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.confidentialcomputing.v1.CreateChallengeRequest 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.confidentialcomputing.v1.CreateChallengeRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest 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; } /** + * + * *
    * Message for creating a Challenge
    * 
* * Protobuf type {@code google.cloud.confidentialcomputing.v1.CreateChallengeRequest} */ - 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.confidentialcomputing.v1.CreateChallengeRequest) com.google.cloud.confidentialcomputing.v1.CreateChallengeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_CreateChallengeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_CreateChallengeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_CreateChallengeRequest_fieldAccessorTable + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_CreateChallengeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest.class, com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest.Builder.class); + com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest.class, + com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest.Builder.class); } // Construct using com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -353,13 +401,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_CreateChallengeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_CreateChallengeRequest_descriptor; } @java.lang.Override - public com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest getDefaultInstanceForType() { + public com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest + getDefaultInstanceForType() { return com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest.getDefaultInstance(); } @@ -374,21 +423,23 @@ public com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest build() @java.lang.Override public com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest buildPartial() { - com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest result = new com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest result = + new com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest result) { + private void buildPartial0( + com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.challenge_ = challengeBuilder_ == null - ? challenge_ - : challengeBuilder_.build(); + result.challenge_ = challengeBuilder_ == null ? challenge_ : challengeBuilder_.build(); } } @@ -396,46 +447,50 @@ private void buildPartial0(com.google.cloud.confidentialcomputing.v1.CreateChall 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.confidentialcomputing.v1.CreateChallengeRequest) { - return mergeFrom((com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest)other); + return mergeFrom((com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest other) { - if (other == com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest other) { + if (other + == com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -470,24 +525,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getChallengeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getChallengeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -497,23 +553,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The resource name of the location where the Challenge will be
      * used, in the format `projects/*/locations/*`.
      * 
* - * 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; @@ -522,21 +583,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource name of the location where the Challenge will be
      * used, in the format `projects/*/locations/*`.
      * 
* - * 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 { @@ -544,30 +608,41 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource name of the location where the Challenge will be
      * used, in the format `projects/*/locations/*`.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The resource name of the location where the Challenge will be
      * used, in the format `projects/*/locations/*`.
      * 
* - * 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() { @@ -577,18 +652,24 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The resource name of the location where the Challenge will be
      * used, in the format `projects/*/locations/*`.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -598,42 +679,61 @@ public Builder setParentBytes( private com.google.cloud.confidentialcomputing.v1.Challenge challenge_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.confidentialcomputing.v1.Challenge, com.google.cloud.confidentialcomputing.v1.Challenge.Builder, com.google.cloud.confidentialcomputing.v1.ChallengeOrBuilder> challengeBuilder_; + com.google.cloud.confidentialcomputing.v1.Challenge, + com.google.cloud.confidentialcomputing.v1.Challenge.Builder, + com.google.cloud.confidentialcomputing.v1.ChallengeOrBuilder> + challengeBuilder_; /** + * + * *
      * Required. The Challenge to be created. Currently this field can be empty as
      * all the Challenge fields are set by the server.
      * 
* - * .google.cloud.confidentialcomputing.v1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.confidentialcomputing.v1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the challenge field is set. */ public boolean hasChallenge() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. The Challenge to be created. Currently this field can be empty as
      * all the Challenge fields are set by the server.
      * 
* - * .google.cloud.confidentialcomputing.v1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.confidentialcomputing.v1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The challenge. */ public com.google.cloud.confidentialcomputing.v1.Challenge getChallenge() { if (challengeBuilder_ == null) { - return challenge_ == null ? com.google.cloud.confidentialcomputing.v1.Challenge.getDefaultInstance() : challenge_; + return challenge_ == null + ? com.google.cloud.confidentialcomputing.v1.Challenge.getDefaultInstance() + : challenge_; } else { return challengeBuilder_.getMessage(); } } /** + * + * *
      * Required. The Challenge to be created. Currently this field can be empty as
      * all the Challenge fields are set by the server.
      * 
* - * .google.cloud.confidentialcomputing.v1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.confidentialcomputing.v1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setChallenge(com.google.cloud.confidentialcomputing.v1.Challenge value) { if (challengeBuilder_ == null) { @@ -649,12 +749,16 @@ public Builder setChallenge(com.google.cloud.confidentialcomputing.v1.Challenge return this; } /** + * + * *
      * Required. The Challenge to be created. Currently this field can be empty as
      * all the Challenge fields are set by the server.
      * 
* - * .google.cloud.confidentialcomputing.v1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.confidentialcomputing.v1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setChallenge( com.google.cloud.confidentialcomputing.v1.Challenge.Builder builderForValue) { @@ -668,18 +772,23 @@ public Builder setChallenge( return this; } /** + * + * *
      * Required. The Challenge to be created. Currently this field can be empty as
      * all the Challenge fields are set by the server.
      * 
* - * .google.cloud.confidentialcomputing.v1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.confidentialcomputing.v1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeChallenge(com.google.cloud.confidentialcomputing.v1.Challenge value) { if (challengeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - challenge_ != null && - challenge_ != com.google.cloud.confidentialcomputing.v1.Challenge.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && challenge_ != null + && challenge_ + != com.google.cloud.confidentialcomputing.v1.Challenge.getDefaultInstance()) { getChallengeBuilder().mergeFrom(value); } else { challenge_ = value; @@ -692,12 +801,16 @@ public Builder mergeChallenge(com.google.cloud.confidentialcomputing.v1.Challeng return this; } /** + * + * *
      * Required. The Challenge to be created. Currently this field can be empty as
      * all the Challenge fields are set by the server.
      * 
* - * .google.cloud.confidentialcomputing.v1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.confidentialcomputing.v1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearChallenge() { bitField0_ = (bitField0_ & ~0x00000002); @@ -710,12 +823,16 @@ public Builder clearChallenge() { return this; } /** + * + * *
      * Required. The Challenge to be created. Currently this field can be empty as
      * all the Challenge fields are set by the server.
      * 
* - * .google.cloud.confidentialcomputing.v1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.confidentialcomputing.v1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.confidentialcomputing.v1.Challenge.Builder getChallengeBuilder() { bitField0_ |= 0x00000002; @@ -723,45 +840,57 @@ public com.google.cloud.confidentialcomputing.v1.Challenge.Builder getChallengeB return getChallengeFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The Challenge to be created. Currently this field can be empty as
      * all the Challenge fields are set by the server.
      * 
* - * .google.cloud.confidentialcomputing.v1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.confidentialcomputing.v1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.confidentialcomputing.v1.ChallengeOrBuilder getChallengeOrBuilder() { if (challengeBuilder_ != null) { return challengeBuilder_.getMessageOrBuilder(); } else { - return challenge_ == null ? - com.google.cloud.confidentialcomputing.v1.Challenge.getDefaultInstance() : challenge_; + return challenge_ == null + ? com.google.cloud.confidentialcomputing.v1.Challenge.getDefaultInstance() + : challenge_; } } /** + * + * *
      * Required. The Challenge to be created. Currently this field can be empty as
      * all the Challenge fields are set by the server.
      * 
* - * .google.cloud.confidentialcomputing.v1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.confidentialcomputing.v1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.confidentialcomputing.v1.Challenge, com.google.cloud.confidentialcomputing.v1.Challenge.Builder, com.google.cloud.confidentialcomputing.v1.ChallengeOrBuilder> + com.google.cloud.confidentialcomputing.v1.Challenge, + com.google.cloud.confidentialcomputing.v1.Challenge.Builder, + com.google.cloud.confidentialcomputing.v1.ChallengeOrBuilder> getChallengeFieldBuilder() { if (challengeBuilder_ == null) { - challengeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.confidentialcomputing.v1.Challenge, com.google.cloud.confidentialcomputing.v1.Challenge.Builder, com.google.cloud.confidentialcomputing.v1.ChallengeOrBuilder>( - getChallenge(), - getParentForChildren(), - isClean()); + challengeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.confidentialcomputing.v1.Challenge, + com.google.cloud.confidentialcomputing.v1.Challenge.Builder, + com.google.cloud.confidentialcomputing.v1.ChallengeOrBuilder>( + getChallenge(), getParentForChildren(), isClean()); challenge_ = null; } return challengeBuilder_; } + @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,41 +900,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.confidentialcomputing.v1.CreateChallengeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.confidentialcomputing.v1.CreateChallengeRequest) - private static final com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest DEFAULT_INSTANCE; + private static final com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest(); } - public static com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest getDefaultInstance() { + public static com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateChallengeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateChallengeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -817,9 +948,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest getDefaultInstanceForType() { + public com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/CreateChallengeRequestOrBuilder.java b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/CreateChallengeRequestOrBuilder.java similarity index 51% rename from owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/CreateChallengeRequestOrBuilder.java rename to java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/CreateChallengeRequestOrBuilder.java index c8d6ec0c7a00..9714c3b90e8f 100644 --- a/owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/CreateChallengeRequestOrBuilder.java +++ b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/CreateChallengeRequestOrBuilder.java @@ -1,61 +1,100 @@ +/* + * Copyright 2023 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/confidentialcomputing/v1/service.proto package com.google.cloud.confidentialcomputing.v1; -public interface CreateChallengeRequestOrBuilder extends +public interface CreateChallengeRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.confidentialcomputing.v1.CreateChallengeRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource name of the location where the Challenge will be
    * used, in the format `projects/*/locations/*`.
    * 
* - * 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 location where the Challenge will be
    * used, in the format `projects/*/locations/*`.
    * 
* - * 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 Challenge to be created. Currently this field can be empty as
    * all the Challenge fields are set by the server.
    * 
* - * .google.cloud.confidentialcomputing.v1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.confidentialcomputing.v1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the challenge field is set. */ boolean hasChallenge(); /** + * + * *
    * Required. The Challenge to be created. Currently this field can be empty as
    * all the Challenge fields are set by the server.
    * 
* - * .google.cloud.confidentialcomputing.v1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.confidentialcomputing.v1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The challenge. */ com.google.cloud.confidentialcomputing.v1.Challenge getChallenge(); /** + * + * *
    * Required. The Challenge to be created. Currently this field can be empty as
    * all the Challenge fields are set by the server.
    * 
* - * .google.cloud.confidentialcomputing.v1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.confidentialcomputing.v1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.confidentialcomputing.v1.ChallengeOrBuilder getChallengeOrBuilder(); } diff --git a/owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/GcpCredentials.java b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/GcpCredentials.java similarity index 68% rename from owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/GcpCredentials.java rename to java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/GcpCredentials.java index 0b1e81a2014f..f5d144eb9f15 100644 --- a/owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/GcpCredentials.java +++ b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/GcpCredentials.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 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/confidentialcomputing/v1/service.proto package com.google.cloud.confidentialcomputing.v1; /** + * + * *
  * Credentials issued by GCP which are linked to the platform attestation. These
  * will be verified server-side as part of attestaion verification.
@@ -11,73 +28,83 @@
  *
  * Protobuf type {@code google.cloud.confidentialcomputing.v1.GcpCredentials}
  */
-public final class GcpCredentials extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class GcpCredentials extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.confidentialcomputing.v1.GcpCredentials)
     GcpCredentialsOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use GcpCredentials.newBuilder() to construct.
   private GcpCredentials(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private GcpCredentials() {
-    serviceAccountIdTokens_ =
-        com.google.protobuf.LazyStringArrayList.emptyList();
+    serviceAccountIdTokens_ = com.google.protobuf.LazyStringArrayList.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new GcpCredentials();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_GcpCredentials_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.confidentialcomputing.v1.ServiceProto
+        .internal_static_google_cloud_confidentialcomputing_v1_GcpCredentials_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_GcpCredentials_fieldAccessorTable
+    return com.google.cloud.confidentialcomputing.v1.ServiceProto
+        .internal_static_google_cloud_confidentialcomputing_v1_GcpCredentials_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.confidentialcomputing.v1.GcpCredentials.class, com.google.cloud.confidentialcomputing.v1.GcpCredentials.Builder.class);
+            com.google.cloud.confidentialcomputing.v1.GcpCredentials.class,
+            com.google.cloud.confidentialcomputing.v1.GcpCredentials.Builder.class);
   }
 
   public static final int SERVICE_ACCOUNT_ID_TOKENS_FIELD_NUMBER = 2;
+
   @SuppressWarnings("serial")
   private com.google.protobuf.LazyStringArrayList serviceAccountIdTokens_ =
       com.google.protobuf.LazyStringArrayList.emptyList();
   /**
+   *
+   *
    * 
    * Same as id_tokens, but as a string.
    * 
* * repeated string service_account_id_tokens = 2; + * * @return A list containing the serviceAccountIdTokens. */ - public com.google.protobuf.ProtocolStringList - getServiceAccountIdTokensList() { + public com.google.protobuf.ProtocolStringList getServiceAccountIdTokensList() { return serviceAccountIdTokens_; } /** + * + * *
    * Same as id_tokens, but as a string.
    * 
* * repeated string service_account_id_tokens = 2; + * * @return The count of serviceAccountIdTokens. */ public int getServiceAccountIdTokensCount() { return serviceAccountIdTokens_.size(); } /** + * + * *
    * Same as id_tokens, but as a string.
    * 
* * repeated string service_account_id_tokens = 2; + * * @param index The index of the element to return. * @return The serviceAccountIdTokens at the given index. */ @@ -85,20 +112,23 @@ public java.lang.String getServiceAccountIdTokens(int index) { return serviceAccountIdTokens_.get(index); } /** + * + * *
    * Same as id_tokens, but as a string.
    * 
* * repeated string service_account_id_tokens = 2; + * * @param index The index of the value to return. * @return The bytes of the serviceAccountIdTokens at the given index. */ - public com.google.protobuf.ByteString - getServiceAccountIdTokensBytes(int index) { + public com.google.protobuf.ByteString getServiceAccountIdTokensBytes(int index) { return serviceAccountIdTokens_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -110,10 +140,10 @@ 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 < serviceAccountIdTokens_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, serviceAccountIdTokens_.getRaw(i)); + com.google.protobuf.GeneratedMessageV3.writeString( + output, 2, serviceAccountIdTokens_.getRaw(i)); } getUnknownFields().writeTo(output); } @@ -140,15 +170,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.confidentialcomputing.v1.GcpCredentials)) { return super.equals(obj); } - com.google.cloud.confidentialcomputing.v1.GcpCredentials other = (com.google.cloud.confidentialcomputing.v1.GcpCredentials) obj; + com.google.cloud.confidentialcomputing.v1.GcpCredentials other = + (com.google.cloud.confidentialcomputing.v1.GcpCredentials) obj; - if (!getServiceAccountIdTokensList() - .equals(other.getServiceAccountIdTokensList())) return false; + if (!getServiceAccountIdTokensList().equals(other.getServiceAccountIdTokensList())) + return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -170,98 +201,104 @@ public int hashCode() { } public static com.google.cloud.confidentialcomputing.v1.GcpCredentials 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.confidentialcomputing.v1.GcpCredentials 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.confidentialcomputing.v1.GcpCredentials parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.confidentialcomputing.v1.GcpCredentials 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.confidentialcomputing.v1.GcpCredentials parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.confidentialcomputing.v1.GcpCredentials 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.confidentialcomputing.v1.GcpCredentials parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.confidentialcomputing.v1.GcpCredentials parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.confidentialcomputing.v1.GcpCredentials 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.confidentialcomputing.v1.GcpCredentials parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.confidentialcomputing.v1.GcpCredentials parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.confidentialcomputing.v1.GcpCredentials 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.confidentialcomputing.v1.GcpCredentials 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.confidentialcomputing.v1.GcpCredentials 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.confidentialcomputing.v1.GcpCredentials prototype) { + + public static Builder newBuilder( + com.google.cloud.confidentialcomputing.v1.GcpCredentials 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; } /** + * + * *
    * Credentials issued by GCP which are linked to the platform attestation. These
    * will be verified server-side as part of attestaion verification.
@@ -269,46 +306,44 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.confidentialcomputing.v1.GcpCredentials}
    */
-  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.confidentialcomputing.v1.GcpCredentials)
       com.google.cloud.confidentialcomputing.v1.GcpCredentialsOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_GcpCredentials_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.confidentialcomputing.v1.ServiceProto
+          .internal_static_google_cloud_confidentialcomputing_v1_GcpCredentials_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_GcpCredentials_fieldAccessorTable
+      return com.google.cloud.confidentialcomputing.v1.ServiceProto
+          .internal_static_google_cloud_confidentialcomputing_v1_GcpCredentials_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.confidentialcomputing.v1.GcpCredentials.class, com.google.cloud.confidentialcomputing.v1.GcpCredentials.Builder.class);
+              com.google.cloud.confidentialcomputing.v1.GcpCredentials.class,
+              com.google.cloud.confidentialcomputing.v1.GcpCredentials.Builder.class);
     }
 
     // Construct using com.google.cloud.confidentialcomputing.v1.GcpCredentials.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
       bitField0_ = 0;
-      serviceAccountIdTokens_ =
-          com.google.protobuf.LazyStringArrayList.emptyList();
+      serviceAccountIdTokens_ = com.google.protobuf.LazyStringArrayList.emptyList();
       return this;
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_GcpCredentials_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.confidentialcomputing.v1.ServiceProto
+          .internal_static_google_cloud_confidentialcomputing_v1_GcpCredentials_descriptor;
     }
 
     @java.lang.Override
@@ -327,8 +362,11 @@ public com.google.cloud.confidentialcomputing.v1.GcpCredentials build() {
 
     @java.lang.Override
     public com.google.cloud.confidentialcomputing.v1.GcpCredentials buildPartial() {
-      com.google.cloud.confidentialcomputing.v1.GcpCredentials result = new com.google.cloud.confidentialcomputing.v1.GcpCredentials(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.confidentialcomputing.v1.GcpCredentials result =
+          new com.google.cloud.confidentialcomputing.v1.GcpCredentials(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -345,38 +383,39 @@ private void buildPartial0(com.google.cloud.confidentialcomputing.v1.GcpCredenti
     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.confidentialcomputing.v1.GcpCredentials) {
-        return mergeFrom((com.google.cloud.confidentialcomputing.v1.GcpCredentials)other);
+        return mergeFrom((com.google.cloud.confidentialcomputing.v1.GcpCredentials) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -384,7 +423,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.confidentialcomputing.v1.GcpCredentials other) {
-      if (other == com.google.cloud.confidentialcomputing.v1.GcpCredentials.getDefaultInstance()) return this;
+      if (other == com.google.cloud.confidentialcomputing.v1.GcpCredentials.getDefaultInstance())
+        return this;
       if (!other.serviceAccountIdTokens_.isEmpty()) {
         if (serviceAccountIdTokens_.isEmpty()) {
           serviceAccountIdTokens_ = other.serviceAccountIdTokens_;
@@ -421,18 +461,20 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 18: {
-              java.lang.String s = input.readStringRequireUtf8();
-              ensureServiceAccountIdTokensIsMutable();
-              serviceAccountIdTokens_.add(s);
-              break;
-            } // case 18
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 18:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureServiceAccountIdTokensIsMutable();
+                serviceAccountIdTokens_.add(s);
+                break;
+              } // case 18
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -442,46 +484,57 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private com.google.protobuf.LazyStringArrayList serviceAccountIdTokens_ =
         com.google.protobuf.LazyStringArrayList.emptyList();
+
     private void ensureServiceAccountIdTokensIsMutable() {
       if (!serviceAccountIdTokens_.isModifiable()) {
-        serviceAccountIdTokens_ = new com.google.protobuf.LazyStringArrayList(serviceAccountIdTokens_);
+        serviceAccountIdTokens_ =
+            new com.google.protobuf.LazyStringArrayList(serviceAccountIdTokens_);
       }
       bitField0_ |= 0x00000001;
     }
     /**
+     *
+     *
      * 
      * Same as id_tokens, but as a string.
      * 
* * repeated string service_account_id_tokens = 2; + * * @return A list containing the serviceAccountIdTokens. */ - public com.google.protobuf.ProtocolStringList - getServiceAccountIdTokensList() { + public com.google.protobuf.ProtocolStringList getServiceAccountIdTokensList() { serviceAccountIdTokens_.makeImmutable(); return serviceAccountIdTokens_; } /** + * + * *
      * Same as id_tokens, but as a string.
      * 
* * repeated string service_account_id_tokens = 2; + * * @return The count of serviceAccountIdTokens. */ public int getServiceAccountIdTokensCount() { return serviceAccountIdTokens_.size(); } /** + * + * *
      * Same as id_tokens, but as a string.
      * 
* * repeated string service_account_id_tokens = 2; + * * @param index The index of the element to return. * @return The serviceAccountIdTokens at the given index. */ @@ -489,31 +542,37 @@ public java.lang.String getServiceAccountIdTokens(int index) { return serviceAccountIdTokens_.get(index); } /** + * + * *
      * Same as id_tokens, but as a string.
      * 
* * repeated string service_account_id_tokens = 2; + * * @param index The index of the value to return. * @return The bytes of the serviceAccountIdTokens at the given index. */ - public com.google.protobuf.ByteString - getServiceAccountIdTokensBytes(int index) { + public com.google.protobuf.ByteString getServiceAccountIdTokensBytes(int index) { return serviceAccountIdTokens_.getByteString(index); } /** + * + * *
      * Same as id_tokens, but as a string.
      * 
* * repeated string service_account_id_tokens = 2; + * * @param index The index to set the value at. * @param value The serviceAccountIdTokens to set. * @return This builder for chaining. */ - public Builder setServiceAccountIdTokens( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setServiceAccountIdTokens(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureServiceAccountIdTokensIsMutable(); serviceAccountIdTokens_.set(index, value); bitField0_ |= 0x00000001; @@ -521,17 +580,21 @@ public Builder setServiceAccountIdTokens( return this; } /** + * + * *
      * Same as id_tokens, but as a string.
      * 
* * repeated string service_account_id_tokens = 2; + * * @param value The serviceAccountIdTokens to add. * @return This builder for chaining. */ - public Builder addServiceAccountIdTokens( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addServiceAccountIdTokens(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureServiceAccountIdTokensIsMutable(); serviceAccountIdTokens_.add(value); bitField0_ |= 0x00000001; @@ -539,50 +602,58 @@ public Builder addServiceAccountIdTokens( return this; } /** + * + * *
      * Same as id_tokens, but as a string.
      * 
* * repeated string service_account_id_tokens = 2; + * * @param values The serviceAccountIdTokens to add. * @return This builder for chaining. */ - public Builder addAllServiceAccountIdTokens( - java.lang.Iterable values) { + public Builder addAllServiceAccountIdTokens(java.lang.Iterable values) { ensureServiceAccountIdTokensIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, serviceAccountIdTokens_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, serviceAccountIdTokens_); bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Same as id_tokens, but as a string.
      * 
* * repeated string service_account_id_tokens = 2; + * * @return This builder for chaining. */ public Builder clearServiceAccountIdTokens() { - serviceAccountIdTokens_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001);; + serviceAccountIdTokens_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; onChanged(); return this; } /** + * + * *
      * Same as id_tokens, but as a string.
      * 
* * repeated string service_account_id_tokens = 2; + * * @param value The bytes of the serviceAccountIdTokens to add. * @return This builder for chaining. */ - public Builder addServiceAccountIdTokensBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addServiceAccountIdTokensBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureServiceAccountIdTokensIsMutable(); serviceAccountIdTokens_.add(value); @@ -590,9 +661,9 @@ public Builder addServiceAccountIdTokensBytes( 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); } @@ -602,12 +673,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.confidentialcomputing.v1.GcpCredentials) } // @@protoc_insertion_point(class_scope:google.cloud.confidentialcomputing.v1.GcpCredentials) private static final com.google.cloud.confidentialcomputing.v1.GcpCredentials DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.confidentialcomputing.v1.GcpCredentials(); } @@ -616,27 +687,27 @@ public static com.google.cloud.confidentialcomputing.v1.GcpCredentials getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GcpCredentials parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcpCredentials parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -651,6 +722,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.confidentialcomputing.v1.GcpCredentials getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/GcpCredentialsOrBuilder.java b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/GcpCredentialsOrBuilder.java similarity index 61% rename from owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/GcpCredentialsOrBuilder.java rename to java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/GcpCredentialsOrBuilder.java index 74dcd53252cb..89e4eb46c253 100644 --- a/owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/GcpCredentialsOrBuilder.java +++ b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/GcpCredentialsOrBuilder.java @@ -1,50 +1,76 @@ +/* + * Copyright 2023 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/confidentialcomputing/v1/service.proto package com.google.cloud.confidentialcomputing.v1; -public interface GcpCredentialsOrBuilder extends +public interface GcpCredentialsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.confidentialcomputing.v1.GcpCredentials) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Same as id_tokens, but as a string.
    * 
* * repeated string service_account_id_tokens = 2; + * * @return A list containing the serviceAccountIdTokens. */ - java.util.List - getServiceAccountIdTokensList(); + java.util.List getServiceAccountIdTokensList(); /** + * + * *
    * Same as id_tokens, but as a string.
    * 
* * repeated string service_account_id_tokens = 2; + * * @return The count of serviceAccountIdTokens. */ int getServiceAccountIdTokensCount(); /** + * + * *
    * Same as id_tokens, but as a string.
    * 
* * repeated string service_account_id_tokens = 2; + * * @param index The index of the element to return. * @return The serviceAccountIdTokens at the given index. */ java.lang.String getServiceAccountIdTokens(int index); /** + * + * *
    * Same as id_tokens, but as a string.
    * 
* * repeated string service_account_id_tokens = 2; + * * @param index The index of the value to return. * @return The bytes of the serviceAccountIdTokens at the given index. */ - com.google.protobuf.ByteString - getServiceAccountIdTokensBytes(int index); + com.google.protobuf.ByteString getServiceAccountIdTokensBytes(int index); } diff --git a/owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/LocationName.java b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/LocationName.java similarity index 100% rename from owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/LocationName.java rename to java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/LocationName.java diff --git a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ServiceProto.java b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ServiceProto.java new file mode 100644 index 000000000000..a10b34e6680b --- /dev/null +++ b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ServiceProto.java @@ -0,0 +1,300 @@ +/* + * Copyright 2023 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/confidentialcomputing/v1/service.proto + +package com.google.cloud.confidentialcomputing.v1; + +public final class ServiceProto { + private ServiceProto() {} + + 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_confidentialcomputing_v1_Challenge_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_confidentialcomputing_v1_Challenge_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_confidentialcomputing_v1_CreateChallengeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_confidentialcomputing_v1_CreateChallengeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_confidentialcomputing_v1_VerifyAttestationRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_confidentialcomputing_v1_VerifyAttestationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_confidentialcomputing_v1_VerifyAttestationResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_confidentialcomputing_v1_VerifyAttestationResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_confidentialcomputing_v1_GcpCredentials_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_confidentialcomputing_v1_GcpCredentials_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_confidentialcomputing_v1_TokenOptions_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_confidentialcomputing_v1_TokenOptions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_Quote_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_Quote_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_Quote_PcrValuesEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_Quote_PcrValuesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_confidentialcomputing_v1_ConfidentialSpaceInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_confidentialcomputing_v1_ConfidentialSpaceInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_confidentialcomputing_v1_SignedEntity_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_confidentialcomputing_v1_SignedEntity_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_confidentialcomputing_v1_ContainerImageSignature_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_confidentialcomputing_v1_ContainerImageSignature_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n3google/cloud/confidentialcomputing/v1/" + + "service.proto\022%google.cloud.confidential" + + "computing.v1\032\034google/api/annotations.pro" + + "to\032\027google/api/client.proto\032\037google/api/" + + "field_behavior.proto\032\031google/api/resourc" + + "e.proto\032\037google/protobuf/timestamp.proto" + + "\"\252\002\n\tChallenge\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\0225\n\013cr" + + "eate_time\030\002 \001(\0132\032.google.protobuf.Timest" + + "ampB\004\342A\001\003\0225\n\013expire_time\030\003 \001(\0132\032.google." + + "protobuf.TimestampB\004\342A\001\003\022\022\n\004used\030\004 \001(\010B\004" + + "\342A\001\003\022\027\n\ttpm_nonce\030\006 \001(\tB\004\342A\001\003:n\352Ak\n.conf" + + "identialcomputing.googleapis.com/Challen" + + "ge\0229projects/{project}/locations/{locati" + + "on}/challenges/{uuid}\"\237\001\n\026CreateChalleng" + + "eRequest\022:\n\006parent\030\001 \001(\tB*\342A\001\002\372A#\n!locat" + + "ions.googleapis.com/Location\022I\n\tchalleng" + + "e\030\002 \001(\01320.google.cloud.confidentialcompu" + + "ting.v1.ChallengeB\004\342A\001\002\"\311\003\n\030VerifyAttest" + + "ationRequest\022J\n\tchallenge\030\001 \001(\tB7\342A\001\002\372A0" + + "\n.confidentialcomputing.googleapis.com/C" + + "hallenge\022T\n\017gcp_credentials\030\002 \001(\01325.goog" + + "le.cloud.confidentialcomputing.v1.GcpCre" + + "dentialsB\004\342A\001\001\022T\n\017tpm_attestation\030\003 \001(\0132" + + "5.google.cloud.confidentialcomputing.v1." + + "TpmAttestationB\004\342A\001\002\022c\n\027confidential_spa" + + "ce_info\030\004 \001(\0132<.google.cloud.confidentia" + + "lcomputing.v1.ConfidentialSpaceInfoB\004\342A\001" + + "\001\022P\n\rtoken_options\030\005 \001(\01323.google.cloud." + + "confidentialcomputing.v1.TokenOptionsB\004\342" + + "A\001\001\"<\n\031VerifyAttestationResponse\022\037\n\021oidc" + + "_claims_token\030\002 \001(\tB\004\342A\001\003\"3\n\016GcpCredenti" + + "als\022!\n\031service_account_id_tokens\030\002 \003(\t\";" + + "\n\014TokenOptions\022\026\n\010audience\030\001 \001(\tB\004\342A\001\001\022\023" + + "\n\005nonce\030\002 \003(\tB\004\342A\001\001\"\217\003\n\016TpmAttestation\022K" + + "\n\006quotes\030\001 \003(\0132;.google.cloud.confidenti" + + "alcomputing.v1.TpmAttestation.Quote\022\025\n\rt" + + "cg_event_log\030\002 \001(\014\022\033\n\023canonical_event_lo" + + "g\030\003 \001(\014\022\017\n\007ak_cert\030\004 \001(\014\022\022\n\ncert_chain\030\005" + + " \003(\014\032\326\001\n\005Quote\022\021\n\thash_algo\030\001 \001(\005\022^\n\npcr" + + "_values\030\002 \003(\0132J.google.cloud.confidentia" + + "lcomputing.v1.TpmAttestation.Quote.PcrVa" + + "luesEntry\022\021\n\traw_quote\030\003 \001(\014\022\025\n\rraw_sign" + + "ature\030\004 \001(\014\0320\n\016PcrValuesEntry\022\013\n\003key\030\001 \001" + + "(\005\022\r\n\005value\030\002 \001(\014:\0028\001\"k\n\025ConfidentialSpa" + + "ceInfo\022R\n\017signed_entities\030\001 \003(\01323.google" + + ".cloud.confidentialcomputing.v1.SignedEn" + + "tityB\004\342A\001\001\"x\n\014SignedEntity\022h\n\032container_" + + "image_signatures\030\001 \003(\0132>.google.cloud.co" + + "nfidentialcomputing.v1.ContainerImageSig" + + "natureB\004\342A\001\001\"\263\001\n\027ContainerImageSignature" + + "\022\025\n\007payload\030\001 \001(\014B\004\342A\001\002\022\027\n\tsignature\030\002 \001" + + "(\014B\004\342A\001\002\022\030\n\npublic_key\030\003 \001(\014B\004\342A\001\002\022N\n\007si" + + "g_alg\030\004 \001(\01627.google.cloud.confidentialc" + + "omputing.v1.SigningAlgorithmB\004\342A\001\002*\177\n\020Si" + + "gningAlgorithm\022!\n\035SIGNING_ALGORITHM_UNSP" + + "ECIFIED\020\000\022\025\n\021RSASSA_PSS_SHA256\020\001\022\032\n\026RSAS" + + "SA_PKCS1V15_SHA256\020\002\022\025\n\021ECDSA_P256_SHA25" + + "6\020\0032\267\004\n\025ConfidentialComputing\022\330\001\n\017Create" + + "Challenge\022=.google.cloud.confidentialcom" + + "puting.v1.CreateChallengeRequest\0320.googl" + + "e.cloud.confidentialcomputing.v1.Challen" + + "ge\"T\332A\020parent,challenge\202\323\344\223\002;\"./v1/{pare" + + "nt=projects/*/locations/*}/challenges:\tc" + + "hallenge\022\350\001\n\021VerifyAttestation\022?.google." + + "cloud.confidentialcomputing.v1.VerifyAtt" + + "estationRequest\032@.google.cloud.confident" + + "ialcomputing.v1.VerifyAttestationRespons" + + "e\"P\202\323\344\223\002J\"E/v1/{challenge=projects/*/loc" + + "ations/*/challenges/*}:verifyAttestation" + + ":\001*\032X\312A$confidentialcomputing.googleapis" + + ".com\322A.https://www.googleapis.com/auth/c" + + "loud-platformB\227\002\n)com.google.cloud.confi" + + "dentialcomputing.v1B\014ServiceProtoP\001Z_clo" + + "ud.google.com/go/confidentialcomputing/a" + + "piv1/confidentialcomputingpb;confidentia" + + "lcomputingpb\252\002%Google.Cloud.Confidential" + + "Computing.V1\312\002%Google\\Cloud\\Confidential" + + "Computing\\V1\352\002(Google::Cloud::Confidenti" + + "alComputing::V1b\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.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_confidentialcomputing_v1_Challenge_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_confidentialcomputing_v1_Challenge_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_confidentialcomputing_v1_Challenge_descriptor, + new java.lang.String[] { + "Name", "CreateTime", "ExpireTime", "Used", "TpmNonce", + }); + internal_static_google_cloud_confidentialcomputing_v1_CreateChallengeRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_confidentialcomputing_v1_CreateChallengeRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_confidentialcomputing_v1_CreateChallengeRequest_descriptor, + new java.lang.String[] { + "Parent", "Challenge", + }); + internal_static_google_cloud_confidentialcomputing_v1_VerifyAttestationRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_confidentialcomputing_v1_VerifyAttestationRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_confidentialcomputing_v1_VerifyAttestationRequest_descriptor, + new java.lang.String[] { + "Challenge", + "GcpCredentials", + "TpmAttestation", + "ConfidentialSpaceInfo", + "TokenOptions", + }); + internal_static_google_cloud_confidentialcomputing_v1_VerifyAttestationResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_confidentialcomputing_v1_VerifyAttestationResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_confidentialcomputing_v1_VerifyAttestationResponse_descriptor, + new java.lang.String[] { + "OidcClaimsToken", + }); + internal_static_google_cloud_confidentialcomputing_v1_GcpCredentials_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_confidentialcomputing_v1_GcpCredentials_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_confidentialcomputing_v1_GcpCredentials_descriptor, + new java.lang.String[] { + "ServiceAccountIdTokens", + }); + internal_static_google_cloud_confidentialcomputing_v1_TokenOptions_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_confidentialcomputing_v1_TokenOptions_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_confidentialcomputing_v1_TokenOptions_descriptor, + new java.lang.String[] { + "Audience", "Nonce", + }); + internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_descriptor, + new java.lang.String[] { + "Quotes", "TcgEventLog", "CanonicalEventLog", "AkCert", "CertChain", + }); + internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_Quote_descriptor = + internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_Quote_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_Quote_descriptor, + new java.lang.String[] { + "HashAlgo", "PcrValues", "RawQuote", "RawSignature", + }); + internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_Quote_PcrValuesEntry_descriptor = + internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_Quote_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_Quote_PcrValuesEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_Quote_PcrValuesEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_confidentialcomputing_v1_ConfidentialSpaceInfo_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_confidentialcomputing_v1_ConfidentialSpaceInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_confidentialcomputing_v1_ConfidentialSpaceInfo_descriptor, + new java.lang.String[] { + "SignedEntities", + }); + internal_static_google_cloud_confidentialcomputing_v1_SignedEntity_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_confidentialcomputing_v1_SignedEntity_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_confidentialcomputing_v1_SignedEntity_descriptor, + new java.lang.String[] { + "ContainerImageSignatures", + }); + internal_static_google_cloud_confidentialcomputing_v1_ContainerImageSignature_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_confidentialcomputing_v1_ContainerImageSignature_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_confidentialcomputing_v1_ContainerImageSignature_descriptor, + new java.lang.String[] { + "Payload", "Signature", "PublicKey", "SigAlg", + }); + 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.resource); + 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.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/SignedEntity.java b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/SignedEntity.java similarity index 60% rename from owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/SignedEntity.java rename to java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/SignedEntity.java index c3d0689d3abd..1bfe013ab8ac 100644 --- a/owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/SignedEntity.java +++ b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/SignedEntity.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 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/confidentialcomputing/v1/service.proto package com.google.cloud.confidentialcomputing.v1; /** + * + * *
  * SignedEntity represents an OCI image object containing everything necessary
  * to verify container image signatures.
@@ -11,106 +28,134 @@
  *
  * Protobuf type {@code google.cloud.confidentialcomputing.v1.SignedEntity}
  */
-public final class SignedEntity extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class SignedEntity extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.confidentialcomputing.v1.SignedEntity)
     SignedEntityOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use SignedEntity.newBuilder() to construct.
   private SignedEntity(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private SignedEntity() {
     containerImageSignatures_ = java.util.Collections.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new SignedEntity();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_SignedEntity_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.confidentialcomputing.v1.ServiceProto
+        .internal_static_google_cloud_confidentialcomputing_v1_SignedEntity_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_SignedEntity_fieldAccessorTable
+    return com.google.cloud.confidentialcomputing.v1.ServiceProto
+        .internal_static_google_cloud_confidentialcomputing_v1_SignedEntity_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.confidentialcomputing.v1.SignedEntity.class, com.google.cloud.confidentialcomputing.v1.SignedEntity.Builder.class);
+            com.google.cloud.confidentialcomputing.v1.SignedEntity.class,
+            com.google.cloud.confidentialcomputing.v1.SignedEntity.Builder.class);
   }
 
   public static final int CONTAINER_IMAGE_SIGNATURES_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
-  private java.util.List containerImageSignatures_;
+  private java.util.List
+      containerImageSignatures_;
   /**
+   *
+   *
    * 
    * Optional. A list of container image signatures attached to an OCI image
    * object.
    * 
* - * repeated .google.cloud.confidentialcomputing.v1.ContainerImageSignature container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.confidentialcomputing.v1.ContainerImageSignature container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.List getContainerImageSignaturesList() { + public java.util.List + getContainerImageSignaturesList() { return containerImageSignatures_; } /** + * + * *
    * Optional. A list of container image signatures attached to an OCI image
    * object.
    * 
* - * repeated .google.cloud.confidentialcomputing.v1.ContainerImageSignature container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.confidentialcomputing.v1.ContainerImageSignature container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.confidentialcomputing.v1.ContainerImageSignatureOrBuilder> getContainerImageSignaturesOrBuilderList() { return containerImageSignatures_; } /** + * + * *
    * Optional. A list of container image signatures attached to an OCI image
    * object.
    * 
* - * repeated .google.cloud.confidentialcomputing.v1.ContainerImageSignature container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.confidentialcomputing.v1.ContainerImageSignature container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public int getContainerImageSignaturesCount() { return containerImageSignatures_.size(); } /** + * + * *
    * Optional. A list of container image signatures attached to an OCI image
    * object.
    * 
* - * repeated .google.cloud.confidentialcomputing.v1.ContainerImageSignature container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.confidentialcomputing.v1.ContainerImageSignature container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.confidentialcomputing.v1.ContainerImageSignature getContainerImageSignatures(int index) { + public com.google.cloud.confidentialcomputing.v1.ContainerImageSignature + getContainerImageSignatures(int index) { return containerImageSignatures_.get(index); } /** + * + * *
    * Optional. A list of container image signatures attached to an OCI image
    * object.
    * 
* - * repeated .google.cloud.confidentialcomputing.v1.ContainerImageSignature container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.confidentialcomputing.v1.ContainerImageSignature container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.confidentialcomputing.v1.ContainerImageSignatureOrBuilder getContainerImageSignaturesOrBuilder( - int index) { + public com.google.cloud.confidentialcomputing.v1.ContainerImageSignatureOrBuilder + getContainerImageSignaturesOrBuilder(int index) { return containerImageSignatures_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -122,8 +167,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 < containerImageSignatures_.size(); i++) { output.writeMessage(1, containerImageSignatures_.get(i)); } @@ -137,8 +181,9 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < containerImageSignatures_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, containerImageSignatures_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, containerImageSignatures_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -148,15 +193,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.confidentialcomputing.v1.SignedEntity)) { return super.equals(obj); } - com.google.cloud.confidentialcomputing.v1.SignedEntity other = (com.google.cloud.confidentialcomputing.v1.SignedEntity) obj; + com.google.cloud.confidentialcomputing.v1.SignedEntity other = + (com.google.cloud.confidentialcomputing.v1.SignedEntity) obj; - if (!getContainerImageSignaturesList() - .equals(other.getContainerImageSignaturesList())) return false; + if (!getContainerImageSignaturesList().equals(other.getContainerImageSignaturesList())) + return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -178,98 +224,104 @@ public int hashCode() { } public static com.google.cloud.confidentialcomputing.v1.SignedEntity 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.confidentialcomputing.v1.SignedEntity 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.confidentialcomputing.v1.SignedEntity parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.confidentialcomputing.v1.SignedEntity 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.confidentialcomputing.v1.SignedEntity parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.confidentialcomputing.v1.SignedEntity 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.confidentialcomputing.v1.SignedEntity parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.confidentialcomputing.v1.SignedEntity parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.confidentialcomputing.v1.SignedEntity 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.confidentialcomputing.v1.SignedEntity parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.confidentialcomputing.v1.SignedEntity parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.confidentialcomputing.v1.SignedEntity 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.confidentialcomputing.v1.SignedEntity 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.confidentialcomputing.v1.SignedEntity 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.confidentialcomputing.v1.SignedEntity prototype) { + + public static Builder newBuilder( + com.google.cloud.confidentialcomputing.v1.SignedEntity 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; } /** + * + * *
    * SignedEntity represents an OCI image object containing everything necessary
    * to verify container image signatures.
@@ -277,33 +329,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.confidentialcomputing.v1.SignedEntity}
    */
-  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.confidentialcomputing.v1.SignedEntity)
       com.google.cloud.confidentialcomputing.v1.SignedEntityOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_SignedEntity_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.confidentialcomputing.v1.ServiceProto
+          .internal_static_google_cloud_confidentialcomputing_v1_SignedEntity_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_SignedEntity_fieldAccessorTable
+      return com.google.cloud.confidentialcomputing.v1.ServiceProto
+          .internal_static_google_cloud_confidentialcomputing_v1_SignedEntity_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.confidentialcomputing.v1.SignedEntity.class, com.google.cloud.confidentialcomputing.v1.SignedEntity.Builder.class);
+              com.google.cloud.confidentialcomputing.v1.SignedEntity.class,
+              com.google.cloud.confidentialcomputing.v1.SignedEntity.Builder.class);
     }
 
     // Construct using com.google.cloud.confidentialcomputing.v1.SignedEntity.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -319,9 +370,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_SignedEntity_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.confidentialcomputing.v1.ServiceProto
+          .internal_static_google_cloud_confidentialcomputing_v1_SignedEntity_descriptor;
     }
 
     @java.lang.Override
@@ -340,17 +391,22 @@ public com.google.cloud.confidentialcomputing.v1.SignedEntity build() {
 
     @java.lang.Override
     public com.google.cloud.confidentialcomputing.v1.SignedEntity buildPartial() {
-      com.google.cloud.confidentialcomputing.v1.SignedEntity result = new com.google.cloud.confidentialcomputing.v1.SignedEntity(this);
+      com.google.cloud.confidentialcomputing.v1.SignedEntity result =
+          new com.google.cloud.confidentialcomputing.v1.SignedEntity(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(com.google.cloud.confidentialcomputing.v1.SignedEntity result) {
+    private void buildPartialRepeatedFields(
+        com.google.cloud.confidentialcomputing.v1.SignedEntity result) {
       if (containerImageSignaturesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
-          containerImageSignatures_ = java.util.Collections.unmodifiableList(containerImageSignatures_);
+          containerImageSignatures_ =
+              java.util.Collections.unmodifiableList(containerImageSignatures_);
           bitField0_ = (bitField0_ & ~0x00000001);
         }
         result.containerImageSignatures_ = containerImageSignatures_;
@@ -367,38 +423,39 @@ private void buildPartial0(com.google.cloud.confidentialcomputing.v1.SignedEntit
     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.confidentialcomputing.v1.SignedEntity) {
-        return mergeFrom((com.google.cloud.confidentialcomputing.v1.SignedEntity)other);
+        return mergeFrom((com.google.cloud.confidentialcomputing.v1.SignedEntity) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -406,7 +463,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.confidentialcomputing.v1.SignedEntity other) {
-      if (other == com.google.cloud.confidentialcomputing.v1.SignedEntity.getDefaultInstance()) return this;
+      if (other == com.google.cloud.confidentialcomputing.v1.SignedEntity.getDefaultInstance())
+        return this;
       if (containerImageSignaturesBuilder_ == null) {
         if (!other.containerImageSignatures_.isEmpty()) {
           if (containerImageSignatures_.isEmpty()) {
@@ -425,9 +483,10 @@ public Builder mergeFrom(com.google.cloud.confidentialcomputing.v1.SignedEntity
             containerImageSignaturesBuilder_ = null;
             containerImageSignatures_ = other.containerImageSignatures_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            containerImageSignaturesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getContainerImageSignaturesFieldBuilder() : null;
+            containerImageSignaturesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getContainerImageSignaturesFieldBuilder()
+                    : null;
           } else {
             containerImageSignaturesBuilder_.addAllMessages(other.containerImageSignatures_);
           }
@@ -459,25 +518,27 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              com.google.cloud.confidentialcomputing.v1.ContainerImageSignature m =
-                  input.readMessage(
-                      com.google.cloud.confidentialcomputing.v1.ContainerImageSignature.parser(),
-                      extensionRegistry);
-              if (containerImageSignaturesBuilder_ == null) {
-                ensureContainerImageSignaturesIsMutable();
-                containerImageSignatures_.add(m);
-              } else {
-                containerImageSignaturesBuilder_.addMessage(m);
-              }
-              break;
-            } // case 10
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                com.google.cloud.confidentialcomputing.v1.ContainerImageSignature m =
+                    input.readMessage(
+                        com.google.cloud.confidentialcomputing.v1.ContainerImageSignature.parser(),
+                        extensionRegistry);
+                if (containerImageSignaturesBuilder_ == null) {
+                  ensureContainerImageSignaturesIsMutable();
+                  containerImageSignatures_.add(m);
+                } else {
+                  containerImageSignaturesBuilder_.addMessage(m);
+                }
+                break;
+              } // case 10
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -487,29 +548,42 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
-    private java.util.List containerImageSignatures_ =
-      java.util.Collections.emptyList();
+    private java.util.List
+        containerImageSignatures_ = java.util.Collections.emptyList();
+
     private void ensureContainerImageSignaturesIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        containerImageSignatures_ = new java.util.ArrayList(containerImageSignatures_);
+        containerImageSignatures_ =
+            new java.util.ArrayList<
+                com.google.cloud.confidentialcomputing.v1.ContainerImageSignature>(
+                containerImageSignatures_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.confidentialcomputing.v1.ContainerImageSignature, com.google.cloud.confidentialcomputing.v1.ContainerImageSignature.Builder, com.google.cloud.confidentialcomputing.v1.ContainerImageSignatureOrBuilder> containerImageSignaturesBuilder_;
+            com.google.cloud.confidentialcomputing.v1.ContainerImageSignature,
+            com.google.cloud.confidentialcomputing.v1.ContainerImageSignature.Builder,
+            com.google.cloud.confidentialcomputing.v1.ContainerImageSignatureOrBuilder>
+        containerImageSignaturesBuilder_;
 
     /**
+     *
+     *
      * 
      * Optional. A list of container image signatures attached to an OCI image
      * object.
      * 
* - * repeated .google.cloud.confidentialcomputing.v1.ContainerImageSignature container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.confidentialcomputing.v1.ContainerImageSignature container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List getContainerImageSignaturesList() { + public java.util.List + getContainerImageSignaturesList() { if (containerImageSignaturesBuilder_ == null) { return java.util.Collections.unmodifiableList(containerImageSignatures_); } else { @@ -517,12 +591,16 @@ public java.util.List * Optional. A list of container image signatures attached to an OCI image * object. *
* - * repeated .google.cloud.confidentialcomputing.v1.ContainerImageSignature container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.confidentialcomputing.v1.ContainerImageSignature container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public int getContainerImageSignaturesCount() { if (containerImageSignaturesBuilder_ == null) { @@ -532,14 +610,19 @@ public int getContainerImageSignaturesCount() { } } /** + * + * *
      * Optional. A list of container image signatures attached to an OCI image
      * object.
      * 
* - * repeated .google.cloud.confidentialcomputing.v1.ContainerImageSignature container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.confidentialcomputing.v1.ContainerImageSignature container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.confidentialcomputing.v1.ContainerImageSignature getContainerImageSignatures(int index) { + public com.google.cloud.confidentialcomputing.v1.ContainerImageSignature + getContainerImageSignatures(int index) { if (containerImageSignaturesBuilder_ == null) { return containerImageSignatures_.get(index); } else { @@ -547,12 +630,16 @@ public com.google.cloud.confidentialcomputing.v1.ContainerImageSignature getCont } } /** + * + * *
      * Optional. A list of container image signatures attached to an OCI image
      * object.
      * 
* - * repeated .google.cloud.confidentialcomputing.v1.ContainerImageSignature container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.confidentialcomputing.v1.ContainerImageSignature container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setContainerImageSignatures( int index, com.google.cloud.confidentialcomputing.v1.ContainerImageSignature value) { @@ -569,15 +656,20 @@ public Builder setContainerImageSignatures( return this; } /** + * + * *
      * Optional. A list of container image signatures attached to an OCI image
      * object.
      * 
* - * repeated .google.cloud.confidentialcomputing.v1.ContainerImageSignature container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.confidentialcomputing.v1.ContainerImageSignature container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setContainerImageSignatures( - int index, com.google.cloud.confidentialcomputing.v1.ContainerImageSignature.Builder builderForValue) { + int index, + com.google.cloud.confidentialcomputing.v1.ContainerImageSignature.Builder builderForValue) { if (containerImageSignaturesBuilder_ == null) { ensureContainerImageSignaturesIsMutable(); containerImageSignatures_.set(index, builderForValue.build()); @@ -588,14 +680,19 @@ public Builder setContainerImageSignatures( return this; } /** + * + * *
      * Optional. A list of container image signatures attached to an OCI image
      * object.
      * 
* - * repeated .google.cloud.confidentialcomputing.v1.ContainerImageSignature container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.confidentialcomputing.v1.ContainerImageSignature container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder addContainerImageSignatures(com.google.cloud.confidentialcomputing.v1.ContainerImageSignature value) { + public Builder addContainerImageSignatures( + com.google.cloud.confidentialcomputing.v1.ContainerImageSignature value) { if (containerImageSignaturesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -609,12 +706,16 @@ public Builder addContainerImageSignatures(com.google.cloud.confidentialcomputin return this; } /** + * + * *
      * Optional. A list of container image signatures attached to an OCI image
      * object.
      * 
* - * repeated .google.cloud.confidentialcomputing.v1.ContainerImageSignature container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.confidentialcomputing.v1.ContainerImageSignature container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addContainerImageSignatures( int index, com.google.cloud.confidentialcomputing.v1.ContainerImageSignature value) { @@ -631,12 +732,16 @@ public Builder addContainerImageSignatures( return this; } /** + * + * *
      * Optional. A list of container image signatures attached to an OCI image
      * object.
      * 
* - * repeated .google.cloud.confidentialcomputing.v1.ContainerImageSignature container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.confidentialcomputing.v1.ContainerImageSignature container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addContainerImageSignatures( com.google.cloud.confidentialcomputing.v1.ContainerImageSignature.Builder builderForValue) { @@ -650,15 +755,20 @@ public Builder addContainerImageSignatures( return this; } /** + * + * *
      * Optional. A list of container image signatures attached to an OCI image
      * object.
      * 
* - * repeated .google.cloud.confidentialcomputing.v1.ContainerImageSignature container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.confidentialcomputing.v1.ContainerImageSignature container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addContainerImageSignatures( - int index, com.google.cloud.confidentialcomputing.v1.ContainerImageSignature.Builder builderForValue) { + int index, + com.google.cloud.confidentialcomputing.v1.ContainerImageSignature.Builder builderForValue) { if (containerImageSignaturesBuilder_ == null) { ensureContainerImageSignaturesIsMutable(); containerImageSignatures_.add(index, builderForValue.build()); @@ -669,19 +779,24 @@ public Builder addContainerImageSignatures( return this; } /** + * + * *
      * Optional. A list of container image signatures attached to an OCI image
      * object.
      * 
* - * repeated .google.cloud.confidentialcomputing.v1.ContainerImageSignature container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.confidentialcomputing.v1.ContainerImageSignature container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAllContainerImageSignatures( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends com.google.cloud.confidentialcomputing.v1.ContainerImageSignature> + values) { if (containerImageSignaturesBuilder_ == null) { ensureContainerImageSignaturesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, containerImageSignatures_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, containerImageSignatures_); onChanged(); } else { containerImageSignaturesBuilder_.addAllMessages(values); @@ -689,12 +804,16 @@ public Builder addAllContainerImageSignatures( return this; } /** + * + * *
      * Optional. A list of container image signatures attached to an OCI image
      * object.
      * 
* - * repeated .google.cloud.confidentialcomputing.v1.ContainerImageSignature container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.confidentialcomputing.v1.ContainerImageSignature container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearContainerImageSignatures() { if (containerImageSignaturesBuilder_ == null) { @@ -707,12 +826,16 @@ public Builder clearContainerImageSignatures() { return this; } /** + * + * *
      * Optional. A list of container image signatures attached to an OCI image
      * object.
      * 
* - * repeated .google.cloud.confidentialcomputing.v1.ContainerImageSignature container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.confidentialcomputing.v1.ContainerImageSignature container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder removeContainerImageSignatures(int index) { if (containerImageSignaturesBuilder_ == null) { @@ -725,42 +848,56 @@ public Builder removeContainerImageSignatures(int index) { return this; } /** + * + * *
      * Optional. A list of container image signatures attached to an OCI image
      * object.
      * 
* - * repeated .google.cloud.confidentialcomputing.v1.ContainerImageSignature container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.confidentialcomputing.v1.ContainerImageSignature container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.confidentialcomputing.v1.ContainerImageSignature.Builder getContainerImageSignaturesBuilder( - int index) { + public com.google.cloud.confidentialcomputing.v1.ContainerImageSignature.Builder + getContainerImageSignaturesBuilder(int index) { return getContainerImageSignaturesFieldBuilder().getBuilder(index); } /** + * + * *
      * Optional. A list of container image signatures attached to an OCI image
      * object.
      * 
* - * repeated .google.cloud.confidentialcomputing.v1.ContainerImageSignature container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.confidentialcomputing.v1.ContainerImageSignature container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.confidentialcomputing.v1.ContainerImageSignatureOrBuilder getContainerImageSignaturesOrBuilder( - int index) { + public com.google.cloud.confidentialcomputing.v1.ContainerImageSignatureOrBuilder + getContainerImageSignaturesOrBuilder(int index) { if (containerImageSignaturesBuilder_ == null) { - return containerImageSignatures_.get(index); } else { + return containerImageSignatures_.get(index); + } else { return containerImageSignaturesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Optional. A list of container image signatures attached to an OCI image
      * object.
      * 
* - * repeated .google.cloud.confidentialcomputing.v1.ContainerImageSignature container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.confidentialcomputing.v1.ContainerImageSignature container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getContainerImageSignaturesOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.confidentialcomputing.v1.ContainerImageSignatureOrBuilder> + getContainerImageSignaturesOrBuilderList() { if (containerImageSignaturesBuilder_ != null) { return containerImageSignaturesBuilder_.getMessageOrBuilderList(); } else { @@ -768,48 +905,72 @@ public com.google.cloud.confidentialcomputing.v1.ContainerImageSignatureOrBuilde } } /** + * + * *
      * Optional. A list of container image signatures attached to an OCI image
      * object.
      * 
* - * repeated .google.cloud.confidentialcomputing.v1.ContainerImageSignature container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.confidentialcomputing.v1.ContainerImageSignature container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.confidentialcomputing.v1.ContainerImageSignature.Builder addContainerImageSignaturesBuilder() { - return getContainerImageSignaturesFieldBuilder().addBuilder( - com.google.cloud.confidentialcomputing.v1.ContainerImageSignature.getDefaultInstance()); + public com.google.cloud.confidentialcomputing.v1.ContainerImageSignature.Builder + addContainerImageSignaturesBuilder() { + return getContainerImageSignaturesFieldBuilder() + .addBuilder( + com.google.cloud.confidentialcomputing.v1.ContainerImageSignature + .getDefaultInstance()); } /** + * + * *
      * Optional. A list of container image signatures attached to an OCI image
      * object.
      * 
* - * repeated .google.cloud.confidentialcomputing.v1.ContainerImageSignature container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.confidentialcomputing.v1.ContainerImageSignature container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.confidentialcomputing.v1.ContainerImageSignature.Builder addContainerImageSignaturesBuilder( - int index) { - return getContainerImageSignaturesFieldBuilder().addBuilder( - index, com.google.cloud.confidentialcomputing.v1.ContainerImageSignature.getDefaultInstance()); + public com.google.cloud.confidentialcomputing.v1.ContainerImageSignature.Builder + addContainerImageSignaturesBuilder(int index) { + return getContainerImageSignaturesFieldBuilder() + .addBuilder( + index, + com.google.cloud.confidentialcomputing.v1.ContainerImageSignature + .getDefaultInstance()); } /** + * + * *
      * Optional. A list of container image signatures attached to an OCI image
      * object.
      * 
* - * repeated .google.cloud.confidentialcomputing.v1.ContainerImageSignature container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.confidentialcomputing.v1.ContainerImageSignature container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getContainerImageSignaturesBuilderList() { + public java.util.List + getContainerImageSignaturesBuilderList() { return getContainerImageSignaturesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.confidentialcomputing.v1.ContainerImageSignature, com.google.cloud.confidentialcomputing.v1.ContainerImageSignature.Builder, com.google.cloud.confidentialcomputing.v1.ContainerImageSignatureOrBuilder> + com.google.cloud.confidentialcomputing.v1.ContainerImageSignature, + com.google.cloud.confidentialcomputing.v1.ContainerImageSignature.Builder, + com.google.cloud.confidentialcomputing.v1.ContainerImageSignatureOrBuilder> getContainerImageSignaturesFieldBuilder() { if (containerImageSignaturesBuilder_ == null) { - containerImageSignaturesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.confidentialcomputing.v1.ContainerImageSignature, com.google.cloud.confidentialcomputing.v1.ContainerImageSignature.Builder, com.google.cloud.confidentialcomputing.v1.ContainerImageSignatureOrBuilder>( + containerImageSignaturesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.confidentialcomputing.v1.ContainerImageSignature, + com.google.cloud.confidentialcomputing.v1.ContainerImageSignature.Builder, + com.google.cloud.confidentialcomputing.v1.ContainerImageSignatureOrBuilder>( containerImageSignatures_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -818,9 +979,9 @@ public com.google.cloud.confidentialcomputing.v1.ContainerImageSignature.Builder } return containerImageSignaturesBuilder_; } + @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); } @@ -830,12 +991,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.confidentialcomputing.v1.SignedEntity) } // @@protoc_insertion_point(class_scope:google.cloud.confidentialcomputing.v1.SignedEntity) private static final com.google.cloud.confidentialcomputing.v1.SignedEntity DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.confidentialcomputing.v1.SignedEntity(); } @@ -844,27 +1005,27 @@ public static com.google.cloud.confidentialcomputing.v1.SignedEntity getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SignedEntity parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SignedEntity parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -879,6 +1040,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.confidentialcomputing.v1.SignedEntity getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/SignedEntityOrBuilder.java b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/SignedEntityOrBuilder.java new file mode 100644 index 000000000000..d7154d4903a2 --- /dev/null +++ b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/SignedEntityOrBuilder.java @@ -0,0 +1,96 @@ +/* + * Copyright 2023 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/confidentialcomputing/v1/service.proto + +package com.google.cloud.confidentialcomputing.v1; + +public interface SignedEntityOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.confidentialcomputing.v1.SignedEntity) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. A list of container image signatures attached to an OCI image
+   * object.
+   * 
+ * + * + * repeated .google.cloud.confidentialcomputing.v1.ContainerImageSignature container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getContainerImageSignaturesList(); + /** + * + * + *
+   * Optional. A list of container image signatures attached to an OCI image
+   * object.
+   * 
+ * + * + * repeated .google.cloud.confidentialcomputing.v1.ContainerImageSignature container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.confidentialcomputing.v1.ContainerImageSignature getContainerImageSignatures( + int index); + /** + * + * + *
+   * Optional. A list of container image signatures attached to an OCI image
+   * object.
+   * 
+ * + * + * repeated .google.cloud.confidentialcomputing.v1.ContainerImageSignature container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getContainerImageSignaturesCount(); + /** + * + * + *
+   * Optional. A list of container image signatures attached to an OCI image
+   * object.
+   * 
+ * + * + * repeated .google.cloud.confidentialcomputing.v1.ContainerImageSignature container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List< + ? extends com.google.cloud.confidentialcomputing.v1.ContainerImageSignatureOrBuilder> + getContainerImageSignaturesOrBuilderList(); + /** + * + * + *
+   * Optional. A list of container image signatures attached to an OCI image
+   * object.
+   * 
+ * + * + * repeated .google.cloud.confidentialcomputing.v1.ContainerImageSignature container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.confidentialcomputing.v1.ContainerImageSignatureOrBuilder + getContainerImageSignaturesOrBuilder(int index); +} diff --git a/owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/SigningAlgorithm.java b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/SigningAlgorithm.java similarity index 67% rename from owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/SigningAlgorithm.java rename to java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/SigningAlgorithm.java index aec73144a978..50b0dda68ca1 100644 --- a/owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/SigningAlgorithm.java +++ b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/SigningAlgorithm.java @@ -1,18 +1,36 @@ +/* + * Copyright 2023 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/confidentialcomputing/v1/service.proto package com.google.cloud.confidentialcomputing.v1; /** + * + * *
  * SigningAlgorithm enumerates all the supported signing algorithms.
  * 
* * Protobuf enum {@code google.cloud.confidentialcomputing.v1.SigningAlgorithm} */ -public enum SigningAlgorithm - implements com.google.protobuf.ProtocolMessageEnum { +public enum SigningAlgorithm implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
    * Unspecified signing algorithm.
    * 
@@ -21,6 +39,8 @@ public enum SigningAlgorithm */ SIGNING_ALGORITHM_UNSPECIFIED(0), /** + * + * *
    * RSASSA-PSS with a SHA256 digest.
    * 
@@ -29,6 +49,8 @@ public enum SigningAlgorithm */ RSASSA_PSS_SHA256(1), /** + * + * *
    * RSASSA-PKCS1 v1.5 with a SHA256 digest.
    * 
@@ -37,6 +59,8 @@ public enum SigningAlgorithm */ RSASSA_PKCS1V15_SHA256(2), /** + * + * *
    * ECDSA on the P-256 Curve with a SHA256 digest.
    * 
@@ -48,6 +72,8 @@ public enum SigningAlgorithm ; /** + * + * *
    * Unspecified signing algorithm.
    * 
@@ -56,6 +82,8 @@ public enum SigningAlgorithm */ public static final int SIGNING_ALGORITHM_UNSPECIFIED_VALUE = 0; /** + * + * *
    * RSASSA-PSS with a SHA256 digest.
    * 
@@ -64,6 +92,8 @@ public enum SigningAlgorithm */ public static final int RSASSA_PSS_SHA256_VALUE = 1; /** + * + * *
    * RSASSA-PKCS1 v1.5 with a SHA256 digest.
    * 
@@ -72,6 +102,8 @@ public enum SigningAlgorithm */ public static final int RSASSA_PKCS1V15_SHA256_VALUE = 2; /** + * + * *
    * ECDSA on the P-256 Curve with a SHA256 digest.
    * 
@@ -80,7 +112,6 @@ public enum SigningAlgorithm */ public static final int ECDSA_P256_SHA256_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -105,50 +136,53 @@ public static SigningAlgorithm valueOf(int value) { */ public static SigningAlgorithm forNumber(int value) { switch (value) { - case 0: return SIGNING_ALGORITHM_UNSPECIFIED; - case 1: return RSASSA_PSS_SHA256; - case 2: return RSASSA_PKCS1V15_SHA256; - case 3: return ECDSA_P256_SHA256; - default: return null; + case 0: + return SIGNING_ALGORITHM_UNSPECIFIED; + case 1: + return RSASSA_PSS_SHA256; + case 2: + return RSASSA_PKCS1V15_SHA256; + case 3: + return ECDSA_P256_SHA256; + 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< - SigningAlgorithm> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public SigningAlgorithm findValueByNumber(int number) { - return SigningAlgorithm.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 SigningAlgorithm findValueByNumber(int number) { + return SigningAlgorithm.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.confidentialcomputing.v1.ServiceProto.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto.getDescriptor() + .getEnumTypes() + .get(0); } private static final SigningAlgorithm[] VALUES = values(); - public static SigningAlgorithm valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static SigningAlgorithm 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; @@ -164,4 +198,3 @@ private SigningAlgorithm(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.confidentialcomputing.v1.SigningAlgorithm) } - diff --git a/owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/TokenOptions.java b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/TokenOptions.java similarity index 72% rename from owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/TokenOptions.java rename to java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/TokenOptions.java index ce09f816ad74..8899c5003b74 100644 --- a/owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/TokenOptions.java +++ b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/TokenOptions.java @@ -1,60 +1,82 @@ +/* + * Copyright 2023 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/confidentialcomputing/v1/service.proto package com.google.cloud.confidentialcomputing.v1; /** + * + * *
  * Options to modify claims in the token to generate custom-purpose tokens.
  * 
* * Protobuf type {@code google.cloud.confidentialcomputing.v1.TokenOptions} */ -public final class TokenOptions extends - com.google.protobuf.GeneratedMessageV3 implements +public final class TokenOptions extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.confidentialcomputing.v1.TokenOptions) TokenOptionsOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TokenOptions.newBuilder() to construct. private TokenOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private TokenOptions() { audience_ = ""; - nonce_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + nonce_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TokenOptions(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_TokenOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_TokenOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_TokenOptions_fieldAccessorTable + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_TokenOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.confidentialcomputing.v1.TokenOptions.class, com.google.cloud.confidentialcomputing.v1.TokenOptions.Builder.class); + com.google.cloud.confidentialcomputing.v1.TokenOptions.class, + com.google.cloud.confidentialcomputing.v1.TokenOptions.Builder.class); } public static final int AUDIENCE_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object audience_ = ""; /** + * + * *
    * Optional. Optional string to issue the token with a custom audience claim.
    * Required if one or more nonces are specified.
    * 
* * string audience = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The audience. */ @java.lang.Override @@ -63,30 +85,30 @@ public java.lang.String getAudience() { 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(); audience_ = s; return s; } } /** + * + * *
    * Optional. Optional string to issue the token with a custom audience claim.
    * Required if one or more nonces are specified.
    * 
* * string audience = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for audience. */ @java.lang.Override - public com.google.protobuf.ByteString - getAudienceBytes() { + public com.google.protobuf.ByteString getAudienceBytes() { java.lang.Object ref = audience_; 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); audience_ = b; return b; } else { @@ -95,10 +117,13 @@ public java.lang.String getAudience() { } public static final int NONCE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList nonce_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * Optional. Optional parameter to place one or more nonces in the eat_nonce
    * claim in the output token. The minimum size for JSON-encoded EATs is 10
@@ -106,13 +131,15 @@ public java.lang.String getAudience() {
    * 
* * repeated string nonce = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the nonce. */ - public com.google.protobuf.ProtocolStringList - getNonceList() { + public com.google.protobuf.ProtocolStringList getNonceList() { return nonce_; } /** + * + * *
    * Optional. Optional parameter to place one or more nonces in the eat_nonce
    * claim in the output token. The minimum size for JSON-encoded EATs is 10
@@ -120,12 +147,15 @@ public java.lang.String getAudience() {
    * 
* * repeated string nonce = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of nonce. */ public int getNonceCount() { return nonce_.size(); } /** + * + * *
    * Optional. Optional parameter to place one or more nonces in the eat_nonce
    * claim in the output token. The minimum size for JSON-encoded EATs is 10
@@ -133,6 +163,7 @@ public int getNonceCount() {
    * 
* * repeated string nonce = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The nonce at the given index. */ @@ -140,6 +171,8 @@ public java.lang.String getNonce(int index) { return nonce_.get(index); } /** + * + * *
    * Optional. Optional parameter to place one or more nonces in the eat_nonce
    * claim in the output token. The minimum size for JSON-encoded EATs is 10
@@ -147,15 +180,16 @@ public java.lang.String getNonce(int index) {
    * 
* * repeated string nonce = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the nonce at the given index. */ - public com.google.protobuf.ByteString - getNonceBytes(int index) { + public com.google.protobuf.ByteString getNonceBytes(int index) { return nonce_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -167,8 +201,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(audience_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, audience_); } @@ -203,17 +236,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.confidentialcomputing.v1.TokenOptions)) { return super.equals(obj); } - com.google.cloud.confidentialcomputing.v1.TokenOptions other = (com.google.cloud.confidentialcomputing.v1.TokenOptions) obj; + com.google.cloud.confidentialcomputing.v1.TokenOptions other = + (com.google.cloud.confidentialcomputing.v1.TokenOptions) obj; - if (!getAudience() - .equals(other.getAudience())) return false; - if (!getNonceList() - .equals(other.getNonceList())) return false; + if (!getAudience().equals(other.getAudience())) return false; + if (!getNonceList().equals(other.getNonceList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -237,145 +269,149 @@ public int hashCode() { } public static com.google.cloud.confidentialcomputing.v1.TokenOptions 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.confidentialcomputing.v1.TokenOptions 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.confidentialcomputing.v1.TokenOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.confidentialcomputing.v1.TokenOptions 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.confidentialcomputing.v1.TokenOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.confidentialcomputing.v1.TokenOptions 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.confidentialcomputing.v1.TokenOptions parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.confidentialcomputing.v1.TokenOptions parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.confidentialcomputing.v1.TokenOptions 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.confidentialcomputing.v1.TokenOptions parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.confidentialcomputing.v1.TokenOptions parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.confidentialcomputing.v1.TokenOptions 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.confidentialcomputing.v1.TokenOptions 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.confidentialcomputing.v1.TokenOptions 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.confidentialcomputing.v1.TokenOptions prototype) { + + public static Builder newBuilder( + com.google.cloud.confidentialcomputing.v1.TokenOptions 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; } /** + * + * *
    * Options to modify claims in the token to generate custom-purpose tokens.
    * 
* * Protobuf type {@code google.cloud.confidentialcomputing.v1.TokenOptions} */ - 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.confidentialcomputing.v1.TokenOptions) com.google.cloud.confidentialcomputing.v1.TokenOptionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_TokenOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_TokenOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_TokenOptions_fieldAccessorTable + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_TokenOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.confidentialcomputing.v1.TokenOptions.class, com.google.cloud.confidentialcomputing.v1.TokenOptions.Builder.class); + com.google.cloud.confidentialcomputing.v1.TokenOptions.class, + com.google.cloud.confidentialcomputing.v1.TokenOptions.Builder.class); } // Construct using com.google.cloud.confidentialcomputing.v1.TokenOptions.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; audience_ = ""; - nonce_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + nonce_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_TokenOptions_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_TokenOptions_descriptor; } @java.lang.Override @@ -394,8 +430,11 @@ public com.google.cloud.confidentialcomputing.v1.TokenOptions build() { @java.lang.Override public com.google.cloud.confidentialcomputing.v1.TokenOptions buildPartial() { - com.google.cloud.confidentialcomputing.v1.TokenOptions result = new com.google.cloud.confidentialcomputing.v1.TokenOptions(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.confidentialcomputing.v1.TokenOptions result = + new com.google.cloud.confidentialcomputing.v1.TokenOptions(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -415,38 +454,39 @@ private void buildPartial0(com.google.cloud.confidentialcomputing.v1.TokenOption 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.confidentialcomputing.v1.TokenOptions) { - return mergeFrom((com.google.cloud.confidentialcomputing.v1.TokenOptions)other); + return mergeFrom((com.google.cloud.confidentialcomputing.v1.TokenOptions) other); } else { super.mergeFrom(other); return this; @@ -454,7 +494,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.confidentialcomputing.v1.TokenOptions other) { - if (other == com.google.cloud.confidentialcomputing.v1.TokenOptions.getDefaultInstance()) return this; + if (other == com.google.cloud.confidentialcomputing.v1.TokenOptions.getDefaultInstance()) + return this; if (!other.getAudience().isEmpty()) { audience_ = other.audience_; bitField0_ |= 0x00000001; @@ -496,23 +537,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - audience_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - ensureNonceIsMutable(); - nonce_.add(s); - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + audience_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureNonceIsMutable(); + nonce_.add(s); + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -522,23 +566,26 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object audience_ = ""; /** + * + * *
      * Optional. Optional string to issue the token with a custom audience claim.
      * Required if one or more nonces are specified.
      * 
* * string audience = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The audience. */ public java.lang.String getAudience() { java.lang.Object ref = audience_; 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(); audience_ = s; return s; @@ -547,21 +594,22 @@ public java.lang.String getAudience() { } } /** + * + * *
      * Optional. Optional string to issue the token with a custom audience claim.
      * Required if one or more nonces are specified.
      * 
* * string audience = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for audience. */ - public com.google.protobuf.ByteString - getAudienceBytes() { + public com.google.protobuf.ByteString getAudienceBytes() { java.lang.Object ref = audience_; 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); audience_ = b; return b; } else { @@ -569,30 +617,37 @@ public java.lang.String getAudience() { } } /** + * + * *
      * Optional. Optional string to issue the token with a custom audience claim.
      * Required if one or more nonces are specified.
      * 
* * string audience = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The audience to set. * @return This builder for chaining. */ - public Builder setAudience( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setAudience(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } audience_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Optional. Optional string to issue the token with a custom audience claim.
      * Required if one or more nonces are specified.
      * 
* * string audience = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearAudience() { @@ -602,18 +657,22 @@ public Builder clearAudience() { return this; } /** + * + * *
      * Optional. Optional string to issue the token with a custom audience claim.
      * Required if one or more nonces are specified.
      * 
* * string audience = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for audience to set. * @return This builder for chaining. */ - public Builder setAudienceBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setAudienceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); audience_ = value; bitField0_ |= 0x00000001; @@ -623,6 +682,7 @@ public Builder setAudienceBytes( private com.google.protobuf.LazyStringArrayList nonce_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureNonceIsMutable() { if (!nonce_.isModifiable()) { nonce_ = new com.google.protobuf.LazyStringArrayList(nonce_); @@ -630,6 +690,8 @@ private void ensureNonceIsMutable() { bitField0_ |= 0x00000002; } /** + * + * *
      * Optional. Optional parameter to place one or more nonces in the eat_nonce
      * claim in the output token. The minimum size for JSON-encoded EATs is 10
@@ -637,14 +699,16 @@ private void ensureNonceIsMutable() {
      * 
* * repeated string nonce = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the nonce. */ - public com.google.protobuf.ProtocolStringList - getNonceList() { + public com.google.protobuf.ProtocolStringList getNonceList() { nonce_.makeImmutable(); return nonce_; } /** + * + * *
      * Optional. Optional parameter to place one or more nonces in the eat_nonce
      * claim in the output token. The minimum size for JSON-encoded EATs is 10
@@ -652,12 +716,15 @@ private void ensureNonceIsMutable() {
      * 
* * repeated string nonce = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of nonce. */ public int getNonceCount() { return nonce_.size(); } /** + * + * *
      * Optional. Optional parameter to place one or more nonces in the eat_nonce
      * claim in the output token. The minimum size for JSON-encoded EATs is 10
@@ -665,6 +732,7 @@ public int getNonceCount() {
      * 
* * repeated string nonce = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The nonce at the given index. */ @@ -672,6 +740,8 @@ public java.lang.String getNonce(int index) { return nonce_.get(index); } /** + * + * *
      * Optional. Optional parameter to place one or more nonces in the eat_nonce
      * claim in the output token. The minimum size for JSON-encoded EATs is 10
@@ -679,14 +749,16 @@ public java.lang.String getNonce(int index) {
      * 
* * repeated string nonce = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the nonce at the given index. */ - public com.google.protobuf.ByteString - getNonceBytes(int index) { + public com.google.protobuf.ByteString getNonceBytes(int index) { return nonce_.getByteString(index); } /** + * + * *
      * Optional. Optional parameter to place one or more nonces in the eat_nonce
      * claim in the output token. The minimum size for JSON-encoded EATs is 10
@@ -694,13 +766,15 @@ public java.lang.String getNonce(int index) {
      * 
* * repeated string nonce = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index to set the value at. * @param value The nonce to set. * @return This builder for chaining. */ - public Builder setNonce( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNonce(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureNonceIsMutable(); nonce_.set(index, value); bitField0_ |= 0x00000002; @@ -708,6 +782,8 @@ public Builder setNonce( return this; } /** + * + * *
      * Optional. Optional parameter to place one or more nonces in the eat_nonce
      * claim in the output token. The minimum size for JSON-encoded EATs is 10
@@ -715,12 +791,14 @@ public Builder setNonce(
      * 
* * repeated string nonce = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The nonce to add. * @return This builder for chaining. */ - public Builder addNonce( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addNonce(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureNonceIsMutable(); nonce_.add(value); bitField0_ |= 0x00000002; @@ -728,6 +806,8 @@ public Builder addNonce( return this; } /** + * + * *
      * Optional. Optional parameter to place one or more nonces in the eat_nonce
      * claim in the output token. The minimum size for JSON-encoded EATs is 10
@@ -735,19 +815,20 @@ public Builder addNonce(
      * 
* * repeated string nonce = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param values The nonce to add. * @return This builder for chaining. */ - public Builder addAllNonce( - java.lang.Iterable values) { + public Builder addAllNonce(java.lang.Iterable values) { ensureNonceIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, nonce_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, nonce_); bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. Optional parameter to place one or more nonces in the eat_nonce
      * claim in the output token. The minimum size for JSON-encoded EATs is 10
@@ -755,16 +836,19 @@ public Builder addAllNonce(
      * 
* * repeated string nonce = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearNonce() { - nonce_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002);; + nonce_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; onChanged(); return this; } /** + * + * *
      * Optional. Optional parameter to place one or more nonces in the eat_nonce
      * claim in the output token. The minimum size for JSON-encoded EATs is 10
@@ -772,12 +856,14 @@ public Builder clearNonce() {
      * 
* * repeated string nonce = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes of the nonce to add. * @return This builder for chaining. */ - public Builder addNonceBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addNonceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureNonceIsMutable(); nonce_.add(value); @@ -785,9 +871,9 @@ public Builder addNonceBytes( 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); } @@ -797,12 +883,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.confidentialcomputing.v1.TokenOptions) } // @@protoc_insertion_point(class_scope:google.cloud.confidentialcomputing.v1.TokenOptions) private static final com.google.cloud.confidentialcomputing.v1.TokenOptions DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.confidentialcomputing.v1.TokenOptions(); } @@ -811,27 +897,27 @@ public static com.google.cloud.confidentialcomputing.v1.TokenOptions getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TokenOptions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TokenOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -846,6 +932,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.confidentialcomputing.v1.TokenOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/TokenOptionsOrBuilder.java b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/TokenOptionsOrBuilder.java similarity index 74% rename from owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/TokenOptionsOrBuilder.java rename to java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/TokenOptionsOrBuilder.java index bc8e953a8c52..f20c180eb0de 100644 --- a/owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/TokenOptionsOrBuilder.java +++ b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/TokenOptionsOrBuilder.java @@ -1,35 +1,58 @@ +/* + * Copyright 2023 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/confidentialcomputing/v1/service.proto package com.google.cloud.confidentialcomputing.v1; -public interface TokenOptionsOrBuilder extends +public interface TokenOptionsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.confidentialcomputing.v1.TokenOptions) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. Optional string to issue the token with a custom audience claim.
    * Required if one or more nonces are specified.
    * 
* * string audience = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The audience. */ java.lang.String getAudience(); /** + * + * *
    * Optional. Optional string to issue the token with a custom audience claim.
    * Required if one or more nonces are specified.
    * 
* * string audience = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for audience. */ - com.google.protobuf.ByteString - getAudienceBytes(); + com.google.protobuf.ByteString getAudienceBytes(); /** + * + * *
    * Optional. Optional parameter to place one or more nonces in the eat_nonce
    * claim in the output token. The minimum size for JSON-encoded EATs is 10
@@ -37,11 +60,13 @@ public interface TokenOptionsOrBuilder extends
    * 
* * repeated string nonce = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the nonce. */ - java.util.List - getNonceList(); + java.util.List getNonceList(); /** + * + * *
    * Optional. Optional parameter to place one or more nonces in the eat_nonce
    * claim in the output token. The minimum size for JSON-encoded EATs is 10
@@ -49,10 +74,13 @@ public interface TokenOptionsOrBuilder extends
    * 
* * repeated string nonce = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of nonce. */ int getNonceCount(); /** + * + * *
    * Optional. Optional parameter to place one or more nonces in the eat_nonce
    * claim in the output token. The minimum size for JSON-encoded EATs is 10
@@ -60,11 +88,14 @@ public interface TokenOptionsOrBuilder extends
    * 
* * repeated string nonce = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The nonce at the given index. */ java.lang.String getNonce(int index); /** + * + * *
    * Optional. Optional parameter to place one or more nonces in the eat_nonce
    * claim in the output token. The minimum size for JSON-encoded EATs is 10
@@ -72,9 +103,9 @@ public interface TokenOptionsOrBuilder extends
    * 
* * repeated string nonce = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the nonce at the given index. */ - com.google.protobuf.ByteString - getNonceBytes(int index); + com.google.protobuf.ByteString getNonceBytes(int index); } diff --git a/owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/TpmAttestation.java b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/TpmAttestation.java similarity index 73% rename from owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/TpmAttestation.java rename to java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/TpmAttestation.java index 74cf31876774..f6fd6c2a7142 100644 --- a/owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/TpmAttestation.java +++ b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/TpmAttestation.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 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/confidentialcomputing/v1/service.proto package com.google.cloud.confidentialcomputing.v1; /** + * + * *
  * TPM2 data containing everything necessary to validate any platform state
  * measured into the TPM.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.confidentialcomputing.v1.TpmAttestation}
  */
-public final class TpmAttestation extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class TpmAttestation extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.confidentialcomputing.v1.TpmAttestation)
     TpmAttestationOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use TpmAttestation.newBuilder() to construct.
   private TpmAttestation(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private TpmAttestation() {
     quotes_ = java.util.Collections.emptyList();
     tcgEventLog_ = com.google.protobuf.ByteString.EMPTY;
@@ -30,39 +48,46 @@ private TpmAttestation() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new TpmAttestation();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.confidentialcomputing.v1.ServiceProto
+        .internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_fieldAccessorTable
+    return com.google.cloud.confidentialcomputing.v1.ServiceProto
+        .internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.confidentialcomputing.v1.TpmAttestation.class, com.google.cloud.confidentialcomputing.v1.TpmAttestation.Builder.class);
+            com.google.cloud.confidentialcomputing.v1.TpmAttestation.class,
+            com.google.cloud.confidentialcomputing.v1.TpmAttestation.Builder.class);
   }
 
-  public interface QuoteOrBuilder extends
+  public interface QuoteOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.cloud.confidentialcomputing.v1.TpmAttestation.Quote)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * The hash algorithm of the PCR bank being quoted, encoded as a TPM_ALG_ID
      * 
* * int32 hash_algo = 1; + * * @return The hashAlgo. */ int getHashAlgo(); /** + * + * *
      * Raw binary values of each PCRs being quoted.
      * 
@@ -71,30 +96,31 @@ public interface QuoteOrBuilder extends */ int getPcrValuesCount(); /** + * + * *
      * Raw binary values of each PCRs being quoted.
      * 
* * map<int32, bytes> pcr_values = 2; */ - boolean containsPcrValues( - int key); - /** - * Use {@link #getPcrValuesMap()} instead. - */ + boolean containsPcrValues(int key); + /** Use {@link #getPcrValuesMap()} instead. */ @java.lang.Deprecated - java.util.Map - getPcrValues(); + java.util.Map getPcrValues(); /** + * + * *
      * Raw binary values of each PCRs being quoted.
      * 
* * map<int32, bytes> pcr_values = 2; */ - java.util.Map - getPcrValuesMap(); + java.util.Map getPcrValuesMap(); /** + * + * *
      * Raw binary values of each PCRs being quoted.
      * 
@@ -102,41 +128,50 @@ boolean containsPcrValues( * map<int32, bytes> pcr_values = 2; */ /* nullable */ -com.google.protobuf.ByteString getPcrValuesOrDefault( + com.google.protobuf.ByteString getPcrValuesOrDefault( int key, /* nullable */ -com.google.protobuf.ByteString defaultValue); + com.google.protobuf.ByteString defaultValue); /** + * + * *
      * Raw binary values of each PCRs being quoted.
      * 
* * map<int32, bytes> pcr_values = 2; */ - com.google.protobuf.ByteString getPcrValuesOrThrow( - int key); + com.google.protobuf.ByteString getPcrValuesOrThrow(int key); /** + * + * *
      * TPM2 quote, encoded as a TPMS_ATTEST
      * 
* * bytes raw_quote = 3; + * * @return The rawQuote. */ com.google.protobuf.ByteString getRawQuote(); /** + * + * *
      * TPM2 signature, encoded as a TPMT_SIGNATURE
      * 
* * bytes raw_signature = 4; + * * @return The rawSignature. */ com.google.protobuf.ByteString getRawSignature(); } /** + * + * *
    * Information about Platform Control Registers (PCRs) including a signature
    * over their values, which can be used for remote validation.
@@ -144,15 +179,16 @@ com.google.protobuf.ByteString getPcrValuesOrThrow(
    *
    * Protobuf type {@code google.cloud.confidentialcomputing.v1.TpmAttestation.Quote}
    */
-  public static final class Quote extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class Quote extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.cloud.confidentialcomputing.v1.TpmAttestation.Quote)
       QuoteOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use Quote.newBuilder() to construct.
     private Quote(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
+
     private Quote() {
       rawQuote_ = com.google.protobuf.ByteString.EMPTY;
       rawSignature_ = com.google.protobuf.ByteString.EMPTY;
@@ -160,44 +196,47 @@ private Quote() {
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new Quote();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_Quote_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.confidentialcomputing.v1.ServiceProto
+          .internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_Quote_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 2:
           return internalGetPcrValues();
         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.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_Quote_fieldAccessorTable
+      return com.google.cloud.confidentialcomputing.v1.ServiceProto
+          .internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_Quote_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote.class, com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote.Builder.class);
+              com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote.class,
+              com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote.Builder.class);
     }
 
     public static final int HASH_ALGO_FIELD_NUMBER = 1;
     private int hashAlgo_ = 0;
     /**
+     *
+     *
      * 
      * The hash algorithm of the PCR bank being quoted, encoded as a TPM_ALG_ID
      * 
* * int32 hash_algo = 1; + * * @return The hashAlgo. */ @java.lang.Override @@ -206,32 +245,38 @@ public int getHashAlgo() { } public static final int PCR_VALUES_FIELD_NUMBER = 2; + private static final class PcrValuesDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, com.google.protobuf.ByteString> defaultEntry = + static final com.google.protobuf.MapEntry + defaultEntry = com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_Quote_PcrValuesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.INT32, - 0, - com.google.protobuf.WireFormat.FieldType.BYTES, - com.google.protobuf.ByteString.EMPTY); + .newDefaultInstance( + com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_Quote_PcrValuesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.INT32, + 0, + com.google.protobuf.WireFormat.FieldType.BYTES, + com.google.protobuf.ByteString.EMPTY); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.Integer, com.google.protobuf.ByteString> pcrValues_; private com.google.protobuf.MapField - internalGetPcrValues() { + pcrValues_; + + private com.google.protobuf.MapField + internalGetPcrValues() { if (pcrValues_ == null) { - return com.google.protobuf.MapField.emptyMapField( - PcrValuesDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(PcrValuesDefaultEntryHolder.defaultEntry); } return pcrValues_; } + public int getPcrValuesCount() { return internalGetPcrValues().getMap().size(); } /** + * + * *
      * Raw binary values of each PCRs being quoted.
      * 
@@ -239,20 +284,19 @@ public int getPcrValuesCount() { * map<int32, bytes> pcr_values = 2; */ @java.lang.Override - public boolean containsPcrValues( - int key) { + public boolean containsPcrValues(int key) { return internalGetPcrValues().getMap().containsKey(key); } - /** - * Use {@link #getPcrValuesMap()} instead. - */ + /** Use {@link #getPcrValuesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getPcrValues() { return getPcrValuesMap(); } /** + * + * *
      * Raw binary values of each PCRs being quoted.
      * 
@@ -264,6 +308,8 @@ public java.util.Map getPcrVa return internalGetPcrValues().getMap(); } /** + * + * *
      * Raw binary values of each PCRs being quoted.
      * 
@@ -271,17 +317,18 @@ public java.util.Map getPcrVa * map<int32, bytes> pcr_values = 2; */ @java.lang.Override - public /* nullable */ -com.google.protobuf.ByteString getPcrValuesOrDefault( + public /* nullable */ com.google.protobuf.ByteString getPcrValuesOrDefault( int key, /* nullable */ -com.google.protobuf.ByteString defaultValue) { + com.google.protobuf.ByteString defaultValue) { java.util.Map map = internalGetPcrValues().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Raw binary values of each PCRs being quoted.
      * 
@@ -289,8 +336,7 @@ com.google.protobuf.ByteString getPcrValuesOrDefault( * map<int32, bytes> pcr_values = 2; */ @java.lang.Override - public com.google.protobuf.ByteString getPcrValuesOrThrow( - int key) { + public com.google.protobuf.ByteString getPcrValuesOrThrow(int key) { java.util.Map map = internalGetPcrValues().getMap(); @@ -303,11 +349,14 @@ public com.google.protobuf.ByteString getPcrValuesOrThrow( public static final int RAW_QUOTE_FIELD_NUMBER = 3; private com.google.protobuf.ByteString rawQuote_ = com.google.protobuf.ByteString.EMPTY; /** + * + * *
      * TPM2 quote, encoded as a TPMS_ATTEST
      * 
* * bytes raw_quote = 3; + * * @return The rawQuote. */ @java.lang.Override @@ -318,11 +367,14 @@ public com.google.protobuf.ByteString getRawQuote() { public static final int RAW_SIGNATURE_FIELD_NUMBER = 4; private com.google.protobuf.ByteString rawSignature_ = com.google.protobuf.ByteString.EMPTY; /** + * + * *
      * TPM2 signature, encoded as a TPMT_SIGNATURE
      * 
* * bytes raw_signature = 4; + * * @return The rawSignature. */ @java.lang.Override @@ -331,6 +383,7 @@ public com.google.protobuf.ByteString getRawSignature() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -342,17 +395,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 (hashAlgo_ != 0) { output.writeInt32(1, hashAlgo_); } - com.google.protobuf.GeneratedMessageV3 - .serializeIntegerMapTo( - output, - internalGetPcrValues(), - PcrValuesDefaultEntryHolder.defaultEntry, - 2); + com.google.protobuf.GeneratedMessageV3.serializeIntegerMapTo( + output, internalGetPcrValues(), PcrValuesDefaultEntryHolder.defaultEntry, 2); if (!rawQuote_.isEmpty()) { output.writeBytes(3, rawQuote_); } @@ -369,26 +417,24 @@ public int getSerializedSize() { size = 0; if (hashAlgo_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, hashAlgo_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, hashAlgo_); } - for (java.util.Map.Entry entry - : internalGetPcrValues().getMap().entrySet()) { + for (java.util.Map.Entry entry : + internalGetPcrValues().getMap().entrySet()) { com.google.protobuf.MapEntry - pcrValues__ = PcrValuesDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, pcrValues__); + pcrValues__ = + PcrValuesDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, pcrValues__); } if (!rawQuote_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, rawQuote_); + size += com.google.protobuf.CodedOutputStream.computeBytesSize(3, rawQuote_); } if (!rawSignature_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, rawSignature_); + size += com.google.protobuf.CodedOutputStream.computeBytesSize(4, rawSignature_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -398,21 +444,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.confidentialcomputing.v1.TpmAttestation.Quote)) { return super.equals(obj); } - com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote other = (com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote) obj; + com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote other = + (com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote) obj; - if (getHashAlgo() - != other.getHashAlgo()) return false; - if (!internalGetPcrValues().equals( - other.internalGetPcrValues())) return false; - if (!getRawQuote() - .equals(other.getRawQuote())) return false; - if (!getRawSignature() - .equals(other.getRawSignature())) return false; + if (getHashAlgo() != other.getHashAlgo()) return false; + if (!internalGetPcrValues().equals(other.internalGetPcrValues())) return false; + if (!getRawQuote().equals(other.getRawQuote())) return false; + if (!getRawSignature().equals(other.getRawSignature())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -440,89 +483,94 @@ public int hashCode() { } public static com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote 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.confidentialcomputing.v1.TpmAttestation.Quote 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.confidentialcomputing.v1.TpmAttestation.Quote parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote 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.confidentialcomputing.v1.TpmAttestation.Quote parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote 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.confidentialcomputing.v1.TpmAttestation.Quote parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote 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.confidentialcomputing.v1.TpmAttestation.Quote parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote 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.confidentialcomputing.v1.TpmAttestation.Quote 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.confidentialcomputing.v1.TpmAttestation.Quote 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.confidentialcomputing.v1.TpmAttestation.Quote prototype) { + + public static Builder newBuilder( + com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote 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 @@ -532,6 +580,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Information about Platform Control Registers (PCRs) including a signature
      * over their values, which can be used for remote validation.
@@ -539,55 +589,53 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.confidentialcomputing.v1.TpmAttestation.Quote}
      */
-    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.confidentialcomputing.v1.TpmAttestation.Quote)
         com.google.cloud.confidentialcomputing.v1.TpmAttestation.QuoteOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.cloud.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_Quote_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.cloud.confidentialcomputing.v1.ServiceProto
+            .internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_Quote_descriptor;
       }
 
       @SuppressWarnings({"rawtypes"})
-      protected com.google.protobuf.MapField internalGetMapField(
-          int number) {
+      protected com.google.protobuf.MapField internalGetMapField(int number) {
         switch (number) {
           case 2:
             return internalGetPcrValues();
           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 2:
             return internalGetMutablePcrValues();
           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.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_Quote_fieldAccessorTable
+        return com.google.cloud.confidentialcomputing.v1.ServiceProto
+            .internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_Quote_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote.class, com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote.Builder.class);
+                com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote.class,
+                com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote.Builder.class);
       }
 
       // Construct using com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote.newBuilder()
-      private Builder() {
+      private Builder() {}
 
-      }
-
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
-
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -600,13 +648,14 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.cloud.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_Quote_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return com.google.cloud.confidentialcomputing.v1.ServiceProto
+            .internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_Quote_descriptor;
       }
 
       @java.lang.Override
-      public com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote getDefaultInstanceForType() {
+      public com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote
+          getDefaultInstanceForType() {
         return com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote.getDefaultInstance();
       }
 
@@ -621,13 +670,17 @@ public com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote build() {
 
       @java.lang.Override
       public com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote buildPartial() {
-        com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote result = new com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote(this);
-        if (bitField0_ != 0) { buildPartial0(result); }
+        com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote result =
+            new com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote(this);
+        if (bitField0_ != 0) {
+          buildPartial0(result);
+        }
         onBuilt();
         return result;
       }
 
-      private void buildPartial0(com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote result) {
+      private void buildPartial0(
+          com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote result) {
         int from_bitField0_ = bitField0_;
         if (((from_bitField0_ & 0x00000001) != 0)) {
           result.hashAlgo_ = hashAlgo_;
@@ -648,51 +701,56 @@ private void buildPartial0(com.google.cloud.confidentialcomputing.v1.TpmAttestat
       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.confidentialcomputing.v1.TpmAttestation.Quote) {
-          return mergeFrom((com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote)other);
+          return mergeFrom((com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote) other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote other) {
-        if (other == com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote.getDefaultInstance()) return this;
+      public Builder mergeFrom(
+          com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote other) {
+        if (other
+            == com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote.getDefaultInstance())
+          return this;
         if (other.getHashAlgo() != 0) {
           setHashAlgo(other.getHashAlgo());
         }
-        internalGetMutablePcrValues().mergeFrom(
-            other.internalGetPcrValues());
+        internalGetMutablePcrValues().mergeFrom(other.internalGetPcrValues());
         bitField0_ |= 0x00000002;
         if (other.getRawQuote() != com.google.protobuf.ByteString.EMPTY) {
           setRawQuote(other.getRawQuote());
@@ -726,36 +784,44 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 8: {
-                hashAlgo_ = input.readInt32();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 8
-              case 18: {
-                com.google.protobuf.MapEntry
-                pcrValues__ = input.readMessage(
-                    PcrValuesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-                internalGetMutablePcrValues().getMutableMap().put(
-                    pcrValues__.getKey(), pcrValues__.getValue());
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-              case 26: {
-                rawQuote_ = input.readBytes();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-              case 34: {
-                rawSignature_ = input.readBytes();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 34
-              default: {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+              case 8:
+                {
+                  hashAlgo_ = input.readInt32();
+                  bitField0_ |= 0x00000001;
+                  break;
+                } // case 8
+              case 18:
+                {
+                  com.google.protobuf.MapEntry
+                      pcrValues__ =
+                          input.readMessage(
+                              PcrValuesDefaultEntryHolder.defaultEntry.getParserForType(),
+                              extensionRegistry);
+                  internalGetMutablePcrValues()
+                      .getMutableMap()
+                      .put(pcrValues__.getKey(), pcrValues__.getValue());
+                  bitField0_ |= 0x00000002;
+                  break;
+                } // case 18
+              case 26:
+                {
+                  rawQuote_ = input.readBytes();
+                  bitField0_ |= 0x00000004;
+                  break;
+                } // case 26
+              case 34:
+                {
+                  rawSignature_ = input.readBytes();
+                  bitField0_ |= 0x00000008;
+                  break;
+                } // case 34
+              default:
+                {
+                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                    done = true; // was an endgroup tag
+                  }
+                  break;
+                } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -765,15 +831,19 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
+
       private int bitField0_;
 
-      private int hashAlgo_ ;
+      private int hashAlgo_;
       /**
+       *
+       *
        * 
        * The hash algorithm of the PCR bank being quoted, encoded as a TPM_ALG_ID
        * 
* * int32 hash_algo = 1; + * * @return The hashAlgo. */ @java.lang.Override @@ -781,11 +851,14 @@ public int getHashAlgo() { return hashAlgo_; } /** + * + * *
        * The hash algorithm of the PCR bank being quoted, encoded as a TPM_ALG_ID
        * 
* * int32 hash_algo = 1; + * * @param value The hashAlgo to set. * @return This builder for chaining. */ @@ -797,11 +870,14 @@ public Builder setHashAlgo(int value) { return this; } /** + * + * *
        * The hash algorithm of the PCR bank being quoted, encoded as a TPM_ALG_ID
        * 
* * int32 hash_algo = 1; + * * @return This builder for chaining. */ public Builder clearHashAlgo() { @@ -811,8 +887,9 @@ public Builder clearHashAlgo() { return this; } - private com.google.protobuf.MapField< - java.lang.Integer, com.google.protobuf.ByteString> pcrValues_; + private com.google.protobuf.MapField + pcrValues_; + private com.google.protobuf.MapField internalGetPcrValues() { if (pcrValues_ == null) { @@ -821,11 +898,12 @@ public Builder clearHashAlgo() { } return pcrValues_; } + private com.google.protobuf.MapField internalGetMutablePcrValues() { if (pcrValues_ == null) { - pcrValues_ = com.google.protobuf.MapField.newMapField( - PcrValuesDefaultEntryHolder.defaultEntry); + pcrValues_ = + com.google.protobuf.MapField.newMapField(PcrValuesDefaultEntryHolder.defaultEntry); } if (!pcrValues_.isMutable()) { pcrValues_ = pcrValues_.copy(); @@ -834,10 +912,13 @@ public Builder clearHashAlgo() { onChanged(); return pcrValues_; } + public int getPcrValuesCount() { return internalGetPcrValues().getMap().size(); } /** + * + * *
        * Raw binary values of each PCRs being quoted.
        * 
@@ -845,20 +926,19 @@ public int getPcrValuesCount() { * map<int32, bytes> pcr_values = 2; */ @java.lang.Override - public boolean containsPcrValues( - int key) { + public boolean containsPcrValues(int key) { return internalGetPcrValues().getMap().containsKey(key); } - /** - * Use {@link #getPcrValuesMap()} instead. - */ + /** Use {@link #getPcrValuesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getPcrValues() { return getPcrValuesMap(); } /** + * + * *
        * Raw binary values of each PCRs being quoted.
        * 
@@ -870,6 +950,8 @@ public java.util.Map getPcrVa return internalGetPcrValues().getMap(); } /** + * + * *
        * Raw binary values of each PCRs being quoted.
        * 
@@ -877,17 +959,18 @@ public java.util.Map getPcrVa * map<int32, bytes> pcr_values = 2; */ @java.lang.Override - public /* nullable */ -com.google.protobuf.ByteString getPcrValuesOrDefault( + public /* nullable */ com.google.protobuf.ByteString getPcrValuesOrDefault( int key, /* nullable */ -com.google.protobuf.ByteString defaultValue) { + com.google.protobuf.ByteString defaultValue) { java.util.Map map = internalGetPcrValues().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
        * Raw binary values of each PCRs being quoted.
        * 
@@ -895,8 +978,7 @@ com.google.protobuf.ByteString getPcrValuesOrDefault( * map<int32, bytes> pcr_values = 2; */ @java.lang.Override - public com.google.protobuf.ByteString getPcrValuesOrThrow( - int key) { + public com.google.protobuf.ByteString getPcrValuesOrThrow(int key) { java.util.Map map = internalGetPcrValues().getMap(); @@ -905,29 +987,27 @@ public com.google.protobuf.ByteString getPcrValuesOrThrow( } return map.get(key); } + public Builder clearPcrValues() { bitField0_ = (bitField0_ & ~0x00000002); - internalGetMutablePcrValues().getMutableMap() - .clear(); + internalGetMutablePcrValues().getMutableMap().clear(); return this; } /** + * + * *
        * Raw binary values of each PCRs being quoted.
        * 
* * map<int32, bytes> pcr_values = 2; */ - public Builder removePcrValues( - int key) { + public Builder removePcrValues(int key) { - internalGetMutablePcrValues().getMutableMap() - .remove(key); + internalGetMutablePcrValues().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutablePcrValues() { @@ -935,23 +1015,26 @@ public Builder removePcrValues( return internalGetMutablePcrValues().getMutableMap(); } /** + * + * *
        * Raw binary values of each PCRs being quoted.
        * 
* * map<int32, bytes> pcr_values = 2; */ - public Builder putPcrValues( - int key, - com.google.protobuf.ByteString value) { + public Builder putPcrValues(int key, com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException("map value"); } - internalGetMutablePcrValues().getMutableMap() - .put(key, value); + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutablePcrValues().getMutableMap().put(key, value); bitField0_ |= 0x00000002; return this; } /** + * + * *
        * Raw binary values of each PCRs being quoted.
        * 
@@ -960,19 +1043,21 @@ public Builder putPcrValues( */ public Builder putAllPcrValues( java.util.Map values) { - internalGetMutablePcrValues().getMutableMap() - .putAll(values); + internalGetMutablePcrValues().getMutableMap().putAll(values); bitField0_ |= 0x00000002; return this; } private com.google.protobuf.ByteString rawQuote_ = com.google.protobuf.ByteString.EMPTY; /** + * + * *
        * TPM2 quote, encoded as a TPMS_ATTEST
        * 
* * bytes raw_quote = 3; + * * @return The rawQuote. */ @java.lang.Override @@ -980,27 +1065,35 @@ public com.google.protobuf.ByteString getRawQuote() { return rawQuote_; } /** + * + * *
        * TPM2 quote, encoded as a TPMS_ATTEST
        * 
* * bytes raw_quote = 3; + * * @param value The rawQuote to set. * @return This builder for chaining. */ public Builder setRawQuote(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + if (value == null) { + throw new NullPointerException(); + } rawQuote_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
        * TPM2 quote, encoded as a TPMS_ATTEST
        * 
* * bytes raw_quote = 3; + * * @return This builder for chaining. */ public Builder clearRawQuote() { @@ -1012,11 +1105,14 @@ public Builder clearRawQuote() { private com.google.protobuf.ByteString rawSignature_ = com.google.protobuf.ByteString.EMPTY; /** + * + * *
        * TPM2 signature, encoded as a TPMT_SIGNATURE
        * 
* * bytes raw_signature = 4; + * * @return The rawSignature. */ @java.lang.Override @@ -1024,27 +1120,35 @@ public com.google.protobuf.ByteString getRawSignature() { return rawSignature_; } /** + * + * *
        * TPM2 signature, encoded as a TPMT_SIGNATURE
        * 
* * bytes raw_signature = 4; + * * @param value The rawSignature to set. * @return This builder for chaining. */ public Builder setRawSignature(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + if (value == null) { + throw new NullPointerException(); + } rawSignature_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
        * TPM2 signature, encoded as a TPMT_SIGNATURE
        * 
* * bytes raw_signature = 4; + * * @return This builder for chaining. */ public Builder clearRawSignature() { @@ -1053,6 +1157,7 @@ public Builder clearRawSignature() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1065,41 +1170,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.confidentialcomputing.v1.TpmAttestation.Quote) } // @@protoc_insertion_point(class_scope:google.cloud.confidentialcomputing.v1.TpmAttestation.Quote) - private static final com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote DEFAULT_INSTANCE; + private static final com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote(); } - public static com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote getDefaultInstance() { + public static com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Quote parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Quote parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1111,16 +1219,19 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote getDefaultInstanceForType() { + public com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int QUOTES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List quotes_; /** + * + * *
    * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
    * 
@@ -1128,10 +1239,13 @@ public com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote getDefault * repeated .google.cloud.confidentialcomputing.v1.TpmAttestation.Quote quotes = 1; */ @java.lang.Override - public java.util.List getQuotesList() { + public java.util.List + getQuotesList() { return quotes_; } /** + * + * *
    * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
    * 
@@ -1139,11 +1253,14 @@ public java.util.Listrepeated .google.cloud.confidentialcomputing.v1.TpmAttestation.Quote quotes = 1; */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.confidentialcomputing.v1.TpmAttestation.QuoteOrBuilder> getQuotesOrBuilderList() { return quotes_; } /** + * + * *
    * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
    * 
@@ -1155,6 +1272,8 @@ public int getQuotesCount() { return quotes_.size(); } /** + * + * *
    * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
    * 
@@ -1166,6 +1285,8 @@ public com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote getQuotes( return quotes_.get(index); } /** + * + * *
    * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
    * 
@@ -1181,6 +1302,8 @@ public com.google.cloud.confidentialcomputing.v1.TpmAttestation.QuoteOrBuilder g public static final int TCG_EVENT_LOG_FIELD_NUMBER = 2; private com.google.protobuf.ByteString tcgEventLog_ = com.google.protobuf.ByteString.EMPTY; /** + * + * *
    * The binary TCG Event Log containing events measured into the TPM by the
    * platform firmware and operating system. Formatted as described in the
@@ -1188,6 +1311,7 @@ public com.google.cloud.confidentialcomputing.v1.TpmAttestation.QuoteOrBuilder g
    * 
* * bytes tcg_event_log = 2; + * * @return The tcgEventLog. */ @java.lang.Override @@ -1198,6 +1322,8 @@ public com.google.protobuf.ByteString getTcgEventLog() { public static final int CANONICAL_EVENT_LOG_FIELD_NUMBER = 3; private com.google.protobuf.ByteString canonicalEventLog_ = com.google.protobuf.ByteString.EMPTY; /** + * + * *
    * An Event Log containing additional events measured into the TPM that are
    * not already present in the tcg_event_log. Formatted as described in the
@@ -1205,6 +1331,7 @@ public com.google.protobuf.ByteString getTcgEventLog() {
    * 
* * bytes canonical_event_log = 3; + * * @return The canonicalEventLog. */ @java.lang.Override @@ -1215,12 +1342,15 @@ public com.google.protobuf.ByteString getCanonicalEventLog() { public static final int AK_CERT_FIELD_NUMBER = 4; private com.google.protobuf.ByteString akCert_ = com.google.protobuf.ByteString.EMPTY; /** + * + * *
    * DER-encoded X.509 certificate of the Attestation Key (otherwise known as
    * an AK or a TPM restricted signing key) used to generate the quotes.
    * 
* * bytes ak_cert = 4; + * * @return The akCert. */ @java.lang.Override @@ -1229,41 +1359,50 @@ public com.google.protobuf.ByteString getAkCert() { } public static final int CERT_CHAIN_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private java.util.List certChain_; /** + * + * *
    * List of DER-encoded X.509 certificates which, together with the ak_cert,
    * chain back to a trusted Root Certificate.
    * 
* * repeated bytes cert_chain = 5; + * * @return A list containing the certChain. */ @java.lang.Override - public java.util.List - getCertChainList() { + public java.util.List getCertChainList() { return certChain_; } /** + * + * *
    * List of DER-encoded X.509 certificates which, together with the ak_cert,
    * chain back to a trusted Root Certificate.
    * 
* * repeated bytes cert_chain = 5; + * * @return The count of certChain. */ public int getCertChainCount() { return certChain_.size(); } /** + * + * *
    * List of DER-encoded X.509 certificates which, together with the ak_cert,
    * chain back to a trusted Root Certificate.
    * 
* * repeated bytes cert_chain = 5; + * * @param index The index of the element to return. * @return The certChain at the given index. */ @@ -1272,6 +1411,7 @@ public com.google.protobuf.ByteString getCertChain(int index) { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1283,8 +1423,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 < quotes_.size(); i++) { output.writeMessage(1, quotes_.get(i)); } @@ -1310,26 +1449,21 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < quotes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, quotes_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, quotes_.get(i)); } if (!tcgEventLog_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, tcgEventLog_); + size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, tcgEventLog_); } if (!canonicalEventLog_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, canonicalEventLog_); + size += com.google.protobuf.CodedOutputStream.computeBytesSize(3, canonicalEventLog_); } if (!akCert_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, akCert_); + size += com.google.protobuf.CodedOutputStream.computeBytesSize(4, akCert_); } { int dataSize = 0; for (int i = 0; i < certChain_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeBytesSizeNoTag(certChain_.get(i)); + dataSize += com.google.protobuf.CodedOutputStream.computeBytesSizeNoTag(certChain_.get(i)); } size += dataSize; size += 1 * getCertChainList().size(); @@ -1342,23 +1476,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.confidentialcomputing.v1.TpmAttestation)) { return super.equals(obj); } - com.google.cloud.confidentialcomputing.v1.TpmAttestation other = (com.google.cloud.confidentialcomputing.v1.TpmAttestation) obj; - - if (!getQuotesList() - .equals(other.getQuotesList())) return false; - if (!getTcgEventLog() - .equals(other.getTcgEventLog())) return false; - if (!getCanonicalEventLog() - .equals(other.getCanonicalEventLog())) return false; - if (!getAkCert() - .equals(other.getAkCert())) return false; - if (!getCertChainList() - .equals(other.getCertChainList())) return false; + com.google.cloud.confidentialcomputing.v1.TpmAttestation other = + (com.google.cloud.confidentialcomputing.v1.TpmAttestation) obj; + + if (!getQuotesList().equals(other.getQuotesList())) return false; + if (!getTcgEventLog().equals(other.getTcgEventLog())) return false; + if (!getCanonicalEventLog().equals(other.getCanonicalEventLog())) return false; + if (!getAkCert().equals(other.getAkCert())) return false; + if (!getCertChainList().equals(other.getCertChainList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1390,98 +1520,104 @@ public int hashCode() { } public static com.google.cloud.confidentialcomputing.v1.TpmAttestation 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.confidentialcomputing.v1.TpmAttestation 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.confidentialcomputing.v1.TpmAttestation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.confidentialcomputing.v1.TpmAttestation 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.confidentialcomputing.v1.TpmAttestation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.confidentialcomputing.v1.TpmAttestation 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.confidentialcomputing.v1.TpmAttestation parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.confidentialcomputing.v1.TpmAttestation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.confidentialcomputing.v1.TpmAttestation 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.confidentialcomputing.v1.TpmAttestation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.confidentialcomputing.v1.TpmAttestation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.confidentialcomputing.v1.TpmAttestation 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.confidentialcomputing.v1.TpmAttestation 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.confidentialcomputing.v1.TpmAttestation 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.confidentialcomputing.v1.TpmAttestation prototype) { + + public static Builder newBuilder( + com.google.cloud.confidentialcomputing.v1.TpmAttestation 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; } /** + * + * *
    * TPM2 data containing everything necessary to validate any platform state
    * measured into the TPM.
@@ -1489,33 +1625,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.confidentialcomputing.v1.TpmAttestation}
    */
-  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.confidentialcomputing.v1.TpmAttestation)
       com.google.cloud.confidentialcomputing.v1.TpmAttestationOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.confidentialcomputing.v1.ServiceProto
+          .internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_fieldAccessorTable
+      return com.google.cloud.confidentialcomputing.v1.ServiceProto
+          .internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.confidentialcomputing.v1.TpmAttestation.class, com.google.cloud.confidentialcomputing.v1.TpmAttestation.Builder.class);
+              com.google.cloud.confidentialcomputing.v1.TpmAttestation.class,
+              com.google.cloud.confidentialcomputing.v1.TpmAttestation.Builder.class);
     }
 
     // Construct using com.google.cloud.confidentialcomputing.v1.TpmAttestation.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1535,9 +1670,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.confidentialcomputing.v1.ServiceProto
+          .internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_descriptor;
     }
 
     @java.lang.Override
@@ -1556,14 +1691,18 @@ public com.google.cloud.confidentialcomputing.v1.TpmAttestation build() {
 
     @java.lang.Override
     public com.google.cloud.confidentialcomputing.v1.TpmAttestation buildPartial() {
-      com.google.cloud.confidentialcomputing.v1.TpmAttestation result = new com.google.cloud.confidentialcomputing.v1.TpmAttestation(this);
+      com.google.cloud.confidentialcomputing.v1.TpmAttestation result =
+          new com.google.cloud.confidentialcomputing.v1.TpmAttestation(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(com.google.cloud.confidentialcomputing.v1.TpmAttestation result) {
+    private void buildPartialRepeatedFields(
+        com.google.cloud.confidentialcomputing.v1.TpmAttestation result) {
       if (quotesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
           quotes_ = java.util.Collections.unmodifiableList(quotes_);
@@ -1597,38 +1736,39 @@ private void buildPartial0(com.google.cloud.confidentialcomputing.v1.TpmAttestat
     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.confidentialcomputing.v1.TpmAttestation) {
-        return mergeFrom((com.google.cloud.confidentialcomputing.v1.TpmAttestation)other);
+        return mergeFrom((com.google.cloud.confidentialcomputing.v1.TpmAttestation) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1636,7 +1776,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.confidentialcomputing.v1.TpmAttestation other) {
-      if (other == com.google.cloud.confidentialcomputing.v1.TpmAttestation.getDefaultInstance()) return this;
+      if (other == com.google.cloud.confidentialcomputing.v1.TpmAttestation.getDefaultInstance())
+        return this;
       if (quotesBuilder_ == null) {
         if (!other.quotes_.isEmpty()) {
           if (quotes_.isEmpty()) {
@@ -1655,9 +1796,10 @@ public Builder mergeFrom(com.google.cloud.confidentialcomputing.v1.TpmAttestatio
             quotesBuilder_ = null;
             quotes_ = other.quotes_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            quotesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getQuotesFieldBuilder() : null;
+            quotesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getQuotesFieldBuilder()
+                    : null;
           } else {
             quotesBuilder_.addAllMessages(other.quotes_);
           }
@@ -1708,46 +1850,52 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote m =
-                  input.readMessage(
-                      com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote.parser(),
-                      extensionRegistry);
-              if (quotesBuilder_ == null) {
-                ensureQuotesIsMutable();
-                quotes_.add(m);
-              } else {
-                quotesBuilder_.addMessage(m);
-              }
-              break;
-            } // case 10
-            case 18: {
-              tcgEventLog_ = input.readBytes();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              canonicalEventLog_ = input.readBytes();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            case 34: {
-              akCert_ = input.readBytes();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 34
-            case 42: {
-              com.google.protobuf.ByteString v = input.readBytes();
-              ensureCertChainIsMutable();
-              certChain_.add(v);
-              break;
-            } // case 42
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote m =
+                    input.readMessage(
+                        com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote.parser(),
+                        extensionRegistry);
+                if (quotesBuilder_ == null) {
+                  ensureQuotesIsMutable();
+                  quotes_.add(m);
+                } else {
+                  quotesBuilder_.addMessage(m);
+                }
+                break;
+              } // case 10
+            case 18:
+              {
+                tcgEventLog_ = input.readBytes();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                canonicalEventLog_ = input.readBytes();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            case 34:
+              {
+                akCert_ = input.readBytes();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 34
+            case 42:
+              {
+                com.google.protobuf.ByteString v = input.readBytes();
+                ensureCertChainIsMutable();
+                certChain_.add(v);
+                break;
+              } // case 42
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1757,28 +1905,38 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.util.List quotes_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureQuotesIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        quotes_ = new java.util.ArrayList(quotes_);
+        quotes_ =
+            new java.util.ArrayList(
+                quotes_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote, com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote.Builder, com.google.cloud.confidentialcomputing.v1.TpmAttestation.QuoteOrBuilder> quotesBuilder_;
+            com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote,
+            com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote.Builder,
+            com.google.cloud.confidentialcomputing.v1.TpmAttestation.QuoteOrBuilder>
+        quotesBuilder_;
 
     /**
+     *
+     *
      * 
      * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
      * 
* * repeated .google.cloud.confidentialcomputing.v1.TpmAttestation.Quote quotes = 1; */ - public java.util.List getQuotesList() { + public java.util.List + getQuotesList() { if (quotesBuilder_ == null) { return java.util.Collections.unmodifiableList(quotes_); } else { @@ -1786,6 +1944,8 @@ public java.util.List * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank. *
@@ -1800,6 +1960,8 @@ public int getQuotesCount() { } } /** + * + * *
      * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
      * 
@@ -1814,6 +1976,8 @@ public com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote getQuotes( } } /** + * + * *
      * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
      * 
@@ -1835,6 +1999,8 @@ public Builder setQuotes( return this; } /** + * + * *
      * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
      * 
@@ -1842,7 +2008,8 @@ public Builder setQuotes( * repeated .google.cloud.confidentialcomputing.v1.TpmAttestation.Quote quotes = 1; */ public Builder setQuotes( - int index, com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote.Builder builderForValue) { + int index, + com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote.Builder builderForValue) { if (quotesBuilder_ == null) { ensureQuotesIsMutable(); quotes_.set(index, builderForValue.build()); @@ -1853,6 +2020,8 @@ public Builder setQuotes( return this; } /** + * + * *
      * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
      * 
@@ -1873,6 +2042,8 @@ public Builder addQuotes(com.google.cloud.confidentialcomputing.v1.TpmAttestatio return this; } /** + * + * *
      * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
      * 
@@ -1894,6 +2065,8 @@ public Builder addQuotes( return this; } /** + * + * *
      * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
      * 
@@ -1912,6 +2085,8 @@ public Builder addQuotes( return this; } /** + * + * *
      * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
      * 
@@ -1919,7 +2094,8 @@ public Builder addQuotes( * repeated .google.cloud.confidentialcomputing.v1.TpmAttestation.Quote quotes = 1; */ public Builder addQuotes( - int index, com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote.Builder builderForValue) { + int index, + com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote.Builder builderForValue) { if (quotesBuilder_ == null) { ensureQuotesIsMutable(); quotes_.add(index, builderForValue.build()); @@ -1930,6 +2106,8 @@ public Builder addQuotes( return this; } /** + * + * *
      * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
      * 
@@ -1937,11 +2115,11 @@ public Builder addQuotes( * repeated .google.cloud.confidentialcomputing.v1.TpmAttestation.Quote quotes = 1; */ public Builder addAllQuotes( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (quotesBuilder_ == null) { ensureQuotesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, quotes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, quotes_); onChanged(); } else { quotesBuilder_.addAllMessages(values); @@ -1949,6 +2127,8 @@ public Builder addAllQuotes( return this; } /** + * + * *
      * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
      * 
@@ -1966,6 +2146,8 @@ public Builder clearQuotes() { return this; } /** + * + * *
      * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
      * 
@@ -1983,6 +2165,8 @@ public Builder removeQuotes(int index) { return this; } /** + * + * *
      * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
      * 
@@ -1994,28 +2178,34 @@ public com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote.Builder ge return getQuotesFieldBuilder().getBuilder(index); } /** + * + * *
      * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
      * 
* * repeated .google.cloud.confidentialcomputing.v1.TpmAttestation.Quote quotes = 1; */ - public com.google.cloud.confidentialcomputing.v1.TpmAttestation.QuoteOrBuilder getQuotesOrBuilder( - int index) { + public com.google.cloud.confidentialcomputing.v1.TpmAttestation.QuoteOrBuilder + getQuotesOrBuilder(int index) { if (quotesBuilder_ == null) { - return quotes_.get(index); } else { + return quotes_.get(index); + } else { return quotesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
      * 
* * repeated .google.cloud.confidentialcomputing.v1.TpmAttestation.Quote quotes = 1; */ - public java.util.List - getQuotesOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.confidentialcomputing.v1.TpmAttestation.QuoteOrBuilder> + getQuotesOrBuilderList() { if (quotesBuilder_ != null) { return quotesBuilder_.getMessageOrBuilderList(); } else { @@ -2023,17 +2213,23 @@ public com.google.cloud.confidentialcomputing.v1.TpmAttestation.QuoteOrBuilder g } } /** + * + * *
      * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
      * 
* * repeated .google.cloud.confidentialcomputing.v1.TpmAttestation.Quote quotes = 1; */ - public com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote.Builder addQuotesBuilder() { - return getQuotesFieldBuilder().addBuilder( - com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote.getDefaultInstance()); + public com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote.Builder + addQuotesBuilder() { + return getQuotesFieldBuilder() + .addBuilder( + com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote.getDefaultInstance()); } /** + * + * *
      * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
      * 
@@ -2042,30 +2238,37 @@ public com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote.Builder ad */ public com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote.Builder addQuotesBuilder( int index) { - return getQuotesFieldBuilder().addBuilder( - index, com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote.getDefaultInstance()); + return getQuotesFieldBuilder() + .addBuilder( + index, + com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote.getDefaultInstance()); } /** + * + * *
      * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
      * 
* * repeated .google.cloud.confidentialcomputing.v1.TpmAttestation.Quote quotes = 1; */ - public java.util.List - getQuotesBuilderList() { + public java.util.List + getQuotesBuilderList() { return getQuotesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote, com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote.Builder, com.google.cloud.confidentialcomputing.v1.TpmAttestation.QuoteOrBuilder> + com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote, + com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote.Builder, + com.google.cloud.confidentialcomputing.v1.TpmAttestation.QuoteOrBuilder> getQuotesFieldBuilder() { if (quotesBuilder_ == null) { - quotesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote, com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote.Builder, com.google.cloud.confidentialcomputing.v1.TpmAttestation.QuoteOrBuilder>( - quotes_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + quotesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote, + com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote.Builder, + com.google.cloud.confidentialcomputing.v1.TpmAttestation.QuoteOrBuilder>( + quotes_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); quotes_ = null; } return quotesBuilder_; @@ -2073,6 +2276,8 @@ public com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote.Builder ad private com.google.protobuf.ByteString tcgEventLog_ = com.google.protobuf.ByteString.EMPTY; /** + * + * *
      * The binary TCG Event Log containing events measured into the TPM by the
      * platform firmware and operating system. Formatted as described in the
@@ -2080,6 +2285,7 @@ public com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote.Builder ad
      * 
* * bytes tcg_event_log = 2; + * * @return The tcgEventLog. */ @java.lang.Override @@ -2087,6 +2293,8 @@ public com.google.protobuf.ByteString getTcgEventLog() { return tcgEventLog_; } /** + * + * *
      * The binary TCG Event Log containing events measured into the TPM by the
      * platform firmware and operating system. Formatted as described in the
@@ -2094,17 +2302,22 @@ public com.google.protobuf.ByteString getTcgEventLog() {
      * 
* * bytes tcg_event_log = 2; + * * @param value The tcgEventLog to set. * @return This builder for chaining. */ public Builder setTcgEventLog(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + if (value == null) { + throw new NullPointerException(); + } tcgEventLog_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The binary TCG Event Log containing events measured into the TPM by the
      * platform firmware and operating system. Formatted as described in the
@@ -2112,6 +2325,7 @@ public Builder setTcgEventLog(com.google.protobuf.ByteString value) {
      * 
* * bytes tcg_event_log = 2; + * * @return This builder for chaining. */ public Builder clearTcgEventLog() { @@ -2121,8 +2335,11 @@ public Builder clearTcgEventLog() { return this; } - private com.google.protobuf.ByteString canonicalEventLog_ = com.google.protobuf.ByteString.EMPTY; + private com.google.protobuf.ByteString canonicalEventLog_ = + com.google.protobuf.ByteString.EMPTY; /** + * + * *
      * An Event Log containing additional events measured into the TPM that are
      * not already present in the tcg_event_log. Formatted as described in the
@@ -2130,6 +2347,7 @@ public Builder clearTcgEventLog() {
      * 
* * bytes canonical_event_log = 3; + * * @return The canonicalEventLog. */ @java.lang.Override @@ -2137,6 +2355,8 @@ public com.google.protobuf.ByteString getCanonicalEventLog() { return canonicalEventLog_; } /** + * + * *
      * An Event Log containing additional events measured into the TPM that are
      * not already present in the tcg_event_log. Formatted as described in the
@@ -2144,17 +2364,22 @@ public com.google.protobuf.ByteString getCanonicalEventLog() {
      * 
* * bytes canonical_event_log = 3; + * * @param value The canonicalEventLog to set. * @return This builder for chaining. */ public Builder setCanonicalEventLog(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + if (value == null) { + throw new NullPointerException(); + } canonicalEventLog_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * An Event Log containing additional events measured into the TPM that are
      * not already present in the tcg_event_log. Formatted as described in the
@@ -2162,6 +2387,7 @@ public Builder setCanonicalEventLog(com.google.protobuf.ByteString value) {
      * 
* * bytes canonical_event_log = 3; + * * @return This builder for chaining. */ public Builder clearCanonicalEventLog() { @@ -2173,12 +2399,15 @@ public Builder clearCanonicalEventLog() { private com.google.protobuf.ByteString akCert_ = com.google.protobuf.ByteString.EMPTY; /** + * + * *
      * DER-encoded X.509 certificate of the Attestation Key (otherwise known as
      * an AK or a TPM restricted signing key) used to generate the quotes.
      * 
* * bytes ak_cert = 4; + * * @return The akCert. */ @java.lang.Override @@ -2186,29 +2415,37 @@ public com.google.protobuf.ByteString getAkCert() { return akCert_; } /** + * + * *
      * DER-encoded X.509 certificate of the Attestation Key (otherwise known as
      * an AK or a TPM restricted signing key) used to generate the quotes.
      * 
* * bytes ak_cert = 4; + * * @param value The akCert to set. * @return This builder for chaining. */ public Builder setAkCert(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + if (value == null) { + throw new NullPointerException(); + } akCert_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * DER-encoded X.509 certificate of the Attestation Key (otherwise known as
      * an AK or a TPM restricted signing key) used to generate the quotes.
      * 
* * bytes ak_cert = 4; + * * @return This builder for chaining. */ public Builder clearAkCert() { @@ -2218,7 +2455,9 @@ public Builder clearAkCert() { return this; } - private java.util.List certChain_ = java.util.Collections.emptyList(); + private java.util.List certChain_ = + java.util.Collections.emptyList(); + private void ensureCertChainIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { certChain_ = new java.util.ArrayList(certChain_); @@ -2226,38 +2465,47 @@ private void ensureCertChainIsMutable() { } } /** + * + * *
      * List of DER-encoded X.509 certificates which, together with the ak_cert,
      * chain back to a trusted Root Certificate.
      * 
* * repeated bytes cert_chain = 5; + * * @return A list containing the certChain. */ - public java.util.List - getCertChainList() { - return ((bitField0_ & 0x00000010) != 0) ? - java.util.Collections.unmodifiableList(certChain_) : certChain_; + public java.util.List getCertChainList() { + return ((bitField0_ & 0x00000010) != 0) + ? java.util.Collections.unmodifiableList(certChain_) + : certChain_; } /** + * + * *
      * List of DER-encoded X.509 certificates which, together with the ak_cert,
      * chain back to a trusted Root Certificate.
      * 
* * repeated bytes cert_chain = 5; + * * @return The count of certChain. */ public int getCertChainCount() { return certChain_.size(); } /** + * + * *
      * List of DER-encoded X.509 certificates which, together with the ak_cert,
      * chain back to a trusted Root Certificate.
      * 
* * repeated bytes cert_chain = 5; + * * @param index The index of the element to return. * @return The certChain at the given index. */ @@ -2265,66 +2513,80 @@ public com.google.protobuf.ByteString getCertChain(int index) { return certChain_.get(index); } /** + * + * *
      * List of DER-encoded X.509 certificates which, together with the ak_cert,
      * chain back to a trusted Root Certificate.
      * 
* * repeated bytes cert_chain = 5; + * * @param index The index to set the value at. * @param value The certChain to set. * @return This builder for chaining. */ - public Builder setCertChain( - int index, com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setCertChain(int index, com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } ensureCertChainIsMutable(); certChain_.set(index, value); onChanged(); return this; } /** + * + * *
      * List of DER-encoded X.509 certificates which, together with the ak_cert,
      * chain back to a trusted Root Certificate.
      * 
* * repeated bytes cert_chain = 5; + * * @param value The certChain to add. * @return This builder for chaining. */ public Builder addCertChain(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + if (value == null) { + throw new NullPointerException(); + } ensureCertChainIsMutable(); certChain_.add(value); onChanged(); return this; } /** + * + * *
      * List of DER-encoded X.509 certificates which, together with the ak_cert,
      * chain back to a trusted Root Certificate.
      * 
* * repeated bytes cert_chain = 5; + * * @param values The certChain to add. * @return This builder for chaining. */ public Builder addAllCertChain( java.lang.Iterable values) { ensureCertChainIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, certChain_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, certChain_); onChanged(); return this; } /** + * + * *
      * List of DER-encoded X.509 certificates which, together with the ak_cert,
      * chain back to a trusted Root Certificate.
      * 
* * repeated bytes cert_chain = 5; + * * @return This builder for chaining. */ public Builder clearCertChain() { @@ -2333,9 +2595,9 @@ public Builder clearCertChain() { 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); } @@ -2345,12 +2607,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.confidentialcomputing.v1.TpmAttestation) } // @@protoc_insertion_point(class_scope:google.cloud.confidentialcomputing.v1.TpmAttestation) private static final com.google.cloud.confidentialcomputing.v1.TpmAttestation DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.confidentialcomputing.v1.TpmAttestation(); } @@ -2359,27 +2621,27 @@ public static com.google.cloud.confidentialcomputing.v1.TpmAttestation getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TpmAttestation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TpmAttestation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2394,6 +2656,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.confidentialcomputing.v1.TpmAttestation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/TpmAttestationOrBuilder.java b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/TpmAttestationOrBuilder.java similarity index 81% rename from owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/TpmAttestationOrBuilder.java rename to java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/TpmAttestationOrBuilder.java index 30fe3178f0b7..4662a6310813 100644 --- a/owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/TpmAttestationOrBuilder.java +++ b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/TpmAttestationOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2023 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/confidentialcomputing/v1/service.proto package com.google.cloud.confidentialcomputing.v1; -public interface TpmAttestationOrBuilder extends +public interface TpmAttestationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.confidentialcomputing.v1.TpmAttestation) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
    * 
* * repeated .google.cloud.confidentialcomputing.v1.TpmAttestation.Quote quotes = 1; */ - java.util.List - getQuotesList(); + java.util.List getQuotesList(); /** + * + * *
    * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
    * 
@@ -25,6 +44,8 @@ public interface TpmAttestationOrBuilder extends */ com.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote getQuotes(int index); /** + * + * *
    * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
    * 
@@ -33,15 +54,19 @@ public interface TpmAttestationOrBuilder extends */ int getQuotesCount(); /** + * + * *
    * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
    * 
* * repeated .google.cloud.confidentialcomputing.v1.TpmAttestation.Quote quotes = 1; */ - java.util.List + java.util.List getQuotesOrBuilderList(); /** + * + * *
    * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
    * 
@@ -52,6 +77,8 @@ com.google.cloud.confidentialcomputing.v1.TpmAttestation.QuoteOrBuilder getQuote int index); /** + * + * *
    * The binary TCG Event Log containing events measured into the TPM by the
    * platform firmware and operating system. Formatted as described in the
@@ -59,11 +86,14 @@ com.google.cloud.confidentialcomputing.v1.TpmAttestation.QuoteOrBuilder getQuote
    * 
* * bytes tcg_event_log = 2; + * * @return The tcgEventLog. */ com.google.protobuf.ByteString getTcgEventLog(); /** + * + * *
    * An Event Log containing additional events measured into the TPM that are
    * not already present in the tcg_event_log. Formatted as described in the
@@ -71,48 +101,61 @@ com.google.cloud.confidentialcomputing.v1.TpmAttestation.QuoteOrBuilder getQuote
    * 
* * bytes canonical_event_log = 3; + * * @return The canonicalEventLog. */ com.google.protobuf.ByteString getCanonicalEventLog(); /** + * + * *
    * DER-encoded X.509 certificate of the Attestation Key (otherwise known as
    * an AK or a TPM restricted signing key) used to generate the quotes.
    * 
* * bytes ak_cert = 4; + * * @return The akCert. */ com.google.protobuf.ByteString getAkCert(); /** + * + * *
    * List of DER-encoded X.509 certificates which, together with the ak_cert,
    * chain back to a trusted Root Certificate.
    * 
* * repeated bytes cert_chain = 5; + * * @return A list containing the certChain. */ java.util.List getCertChainList(); /** + * + * *
    * List of DER-encoded X.509 certificates which, together with the ak_cert,
    * chain back to a trusted Root Certificate.
    * 
* * repeated bytes cert_chain = 5; + * * @return The count of certChain. */ int getCertChainCount(); /** + * + * *
    * List of DER-encoded X.509 certificates which, together with the ak_cert,
    * chain back to a trusted Root Certificate.
    * 
* * repeated bytes cert_chain = 5; + * * @param index The index of the element to return. * @return The certChain at the given index. */ diff --git a/owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyAttestationRequest.java b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyAttestationRequest.java similarity index 58% rename from owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyAttestationRequest.java rename to java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyAttestationRequest.java index ae984170a5ac..30b30360b48c 100644 --- a/owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyAttestationRequest.java +++ b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyAttestationRequest.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 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/confidentialcomputing/v1/service.proto package com.google.cloud.confidentialcomputing.v1; /** + * + * *
  * A request for an OIDC token, providing all the necessary information needed
  * for this service to verify the plaform state of the requestor.
@@ -11,50 +28,58 @@
  *
  * Protobuf type {@code google.cloud.confidentialcomputing.v1.VerifyAttestationRequest}
  */
-public final class VerifyAttestationRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class VerifyAttestationRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.confidentialcomputing.v1.VerifyAttestationRequest)
     VerifyAttestationRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use VerifyAttestationRequest.newBuilder() to construct.
   private VerifyAttestationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private VerifyAttestationRequest() {
     challenge_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new VerifyAttestationRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_VerifyAttestationRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.confidentialcomputing.v1.ServiceProto
+        .internal_static_google_cloud_confidentialcomputing_v1_VerifyAttestationRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_VerifyAttestationRequest_fieldAccessorTable
+    return com.google.cloud.confidentialcomputing.v1.ServiceProto
+        .internal_static_google_cloud_confidentialcomputing_v1_VerifyAttestationRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest.class, com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest.Builder.class);
+            com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest.class,
+            com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest.Builder.class);
   }
 
   public static final int CHALLENGE_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object challenge_ = "";
   /**
+   *
+   *
    * 
    * Required. The name of the Challenge whose nonce was used to generate the
    * attestation, in the format `projects/*/locations/*/challenges/*`. The
    * provided Challenge will be consumed, and cannot be used again.
    * 
* - * string challenge = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string challenge = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The challenge. */ @java.lang.Override @@ -63,31 +88,33 @@ public java.lang.String getChallenge() { 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(); challenge_ = s; return s; } } /** + * + * *
    * Required. The name of the Challenge whose nonce was used to generate the
    * attestation, in the format `projects/*/locations/*/challenges/*`. The
    * provided Challenge will be consumed, and cannot be used again.
    * 
* - * string challenge = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string challenge = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for challenge. */ @java.lang.Override - public com.google.protobuf.ByteString - getChallengeBytes() { + public com.google.protobuf.ByteString getChallengeBytes() { java.lang.Object ref = challenge_; 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); challenge_ = b; return b; } else { @@ -98,12 +125,17 @@ public java.lang.String getChallenge() { public static final int GCP_CREDENTIALS_FIELD_NUMBER = 2; private com.google.cloud.confidentialcomputing.v1.GcpCredentials gcpCredentials_; /** + * + * *
    * Optional. Credentials used to populate the "emails" claim in the
    * claims_token.
    * 
* - * .google.cloud.confidentialcomputing.v1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.confidentialcomputing.v1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the gcpCredentials field is set. */ @java.lang.Override @@ -111,40 +143,59 @@ public boolean hasGcpCredentials() { return gcpCredentials_ != null; } /** + * + * *
    * Optional. Credentials used to populate the "emails" claim in the
    * claims_token.
    * 
* - * .google.cloud.confidentialcomputing.v1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.confidentialcomputing.v1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The gcpCredentials. */ @java.lang.Override public com.google.cloud.confidentialcomputing.v1.GcpCredentials getGcpCredentials() { - return gcpCredentials_ == null ? com.google.cloud.confidentialcomputing.v1.GcpCredentials.getDefaultInstance() : gcpCredentials_; + return gcpCredentials_ == null + ? com.google.cloud.confidentialcomputing.v1.GcpCredentials.getDefaultInstance() + : gcpCredentials_; } /** + * + * *
    * Optional. Credentials used to populate the "emails" claim in the
    * claims_token.
    * 
* - * .google.cloud.confidentialcomputing.v1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.confidentialcomputing.v1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.confidentialcomputing.v1.GcpCredentialsOrBuilder getGcpCredentialsOrBuilder() { - return gcpCredentials_ == null ? com.google.cloud.confidentialcomputing.v1.GcpCredentials.getDefaultInstance() : gcpCredentials_; + public com.google.cloud.confidentialcomputing.v1.GcpCredentialsOrBuilder + getGcpCredentialsOrBuilder() { + return gcpCredentials_ == null + ? com.google.cloud.confidentialcomputing.v1.GcpCredentials.getDefaultInstance() + : gcpCredentials_; } public static final int TPM_ATTESTATION_FIELD_NUMBER = 3; private com.google.cloud.confidentialcomputing.v1.TpmAttestation tpmAttestation_; /** + * + * *
    * Required. The TPM-specific data provided by the attesting platform, used to
    * populate any of the claims regarding platform state.
    * 
* - * .google.cloud.confidentialcomputing.v1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.confidentialcomputing.v1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the tpmAttestation field is set. */ @java.lang.Override @@ -152,39 +203,58 @@ public boolean hasTpmAttestation() { return tpmAttestation_ != null; } /** + * + * *
    * Required. The TPM-specific data provided by the attesting platform, used to
    * populate any of the claims regarding platform state.
    * 
* - * .google.cloud.confidentialcomputing.v1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.confidentialcomputing.v1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The tpmAttestation. */ @java.lang.Override public com.google.cloud.confidentialcomputing.v1.TpmAttestation getTpmAttestation() { - return tpmAttestation_ == null ? com.google.cloud.confidentialcomputing.v1.TpmAttestation.getDefaultInstance() : tpmAttestation_; + return tpmAttestation_ == null + ? com.google.cloud.confidentialcomputing.v1.TpmAttestation.getDefaultInstance() + : tpmAttestation_; } /** + * + * *
    * Required. The TPM-specific data provided by the attesting platform, used to
    * populate any of the claims regarding platform state.
    * 
* - * .google.cloud.confidentialcomputing.v1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.confidentialcomputing.v1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.confidentialcomputing.v1.TpmAttestationOrBuilder getTpmAttestationOrBuilder() { - return tpmAttestation_ == null ? com.google.cloud.confidentialcomputing.v1.TpmAttestation.getDefaultInstance() : tpmAttestation_; + public com.google.cloud.confidentialcomputing.v1.TpmAttestationOrBuilder + getTpmAttestationOrBuilder() { + return tpmAttestation_ == null + ? com.google.cloud.confidentialcomputing.v1.TpmAttestation.getDefaultInstance() + : tpmAttestation_; } public static final int CONFIDENTIAL_SPACE_INFO_FIELD_NUMBER = 4; private com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo confidentialSpaceInfo_; /** + * + * *
    * Optional. Optional information related to the Confidential Space TEE.
    * 
* - * .google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo confidential_space_info = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo confidential_space_info = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the confidentialSpaceInfo field is set. */ @java.lang.Override @@ -192,38 +262,58 @@ public boolean hasConfidentialSpaceInfo() { return confidentialSpaceInfo_ != null; } /** + * + * *
    * Optional. Optional information related to the Confidential Space TEE.
    * 
* - * .google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo confidential_space_info = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo confidential_space_info = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The confidentialSpaceInfo. */ @java.lang.Override - public com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo getConfidentialSpaceInfo() { - return confidentialSpaceInfo_ == null ? com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo.getDefaultInstance() : confidentialSpaceInfo_; + public com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo + getConfidentialSpaceInfo() { + return confidentialSpaceInfo_ == null + ? com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo.getDefaultInstance() + : confidentialSpaceInfo_; } /** + * + * *
    * Optional. Optional information related to the Confidential Space TEE.
    * 
* - * .google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo confidential_space_info = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo confidential_space_info = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfoOrBuilder getConfidentialSpaceInfoOrBuilder() { - return confidentialSpaceInfo_ == null ? com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo.getDefaultInstance() : confidentialSpaceInfo_; + public com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfoOrBuilder + getConfidentialSpaceInfoOrBuilder() { + return confidentialSpaceInfo_ == null + ? com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo.getDefaultInstance() + : confidentialSpaceInfo_; } public static final int TOKEN_OPTIONS_FIELD_NUMBER = 5; private com.google.cloud.confidentialcomputing.v1.TokenOptions tokenOptions_; /** + * + * *
    * Optional. A collection of optional, workload-specified claims that modify
    * the token output.
    * 
* - * .google.cloud.confidentialcomputing.v1.TokenOptions token_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.confidentialcomputing.v1.TokenOptions token_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the tokenOptions field is set. */ @java.lang.Override @@ -231,32 +321,47 @@ public boolean hasTokenOptions() { return tokenOptions_ != null; } /** + * + * *
    * Optional. A collection of optional, workload-specified claims that modify
    * the token output.
    * 
* - * .google.cloud.confidentialcomputing.v1.TokenOptions token_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.confidentialcomputing.v1.TokenOptions token_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The tokenOptions. */ @java.lang.Override public com.google.cloud.confidentialcomputing.v1.TokenOptions getTokenOptions() { - return tokenOptions_ == null ? com.google.cloud.confidentialcomputing.v1.TokenOptions.getDefaultInstance() : tokenOptions_; + return tokenOptions_ == null + ? com.google.cloud.confidentialcomputing.v1.TokenOptions.getDefaultInstance() + : tokenOptions_; } /** + * + * *
    * Optional. A collection of optional, workload-specified claims that modify
    * the token output.
    * 
* - * .google.cloud.confidentialcomputing.v1.TokenOptions token_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.confidentialcomputing.v1.TokenOptions token_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.confidentialcomputing.v1.TokenOptionsOrBuilder getTokenOptionsOrBuilder() { - return tokenOptions_ == null ? com.google.cloud.confidentialcomputing.v1.TokenOptions.getDefaultInstance() : tokenOptions_; + public com.google.cloud.confidentialcomputing.v1.TokenOptionsOrBuilder + getTokenOptionsOrBuilder() { + return tokenOptions_ == null + ? com.google.cloud.confidentialcomputing.v1.TokenOptions.getDefaultInstance() + : tokenOptions_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -268,8 +373,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(challenge_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, challenge_); } @@ -298,20 +402,17 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, challenge_); } if (gcpCredentials_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getGcpCredentials()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getGcpCredentials()); } if (tpmAttestation_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getTpmAttestation()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getTpmAttestation()); } if (confidentialSpaceInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getConfidentialSpaceInfo()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(4, getConfidentialSpaceInfo()); } if (tokenOptions_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getTokenOptions()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getTokenOptions()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -321,34 +422,30 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest)) { return super.equals(obj); } - com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest other = (com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest) obj; + com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest other = + (com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest) obj; - if (!getChallenge() - .equals(other.getChallenge())) return false; + if (!getChallenge().equals(other.getChallenge())) return false; if (hasGcpCredentials() != other.hasGcpCredentials()) return false; if (hasGcpCredentials()) { - if (!getGcpCredentials() - .equals(other.getGcpCredentials())) return false; + if (!getGcpCredentials().equals(other.getGcpCredentials())) return false; } if (hasTpmAttestation() != other.hasTpmAttestation()) return false; if (hasTpmAttestation()) { - if (!getTpmAttestation() - .equals(other.getTpmAttestation())) return false; + if (!getTpmAttestation().equals(other.getTpmAttestation())) return false; } if (hasConfidentialSpaceInfo() != other.hasConfidentialSpaceInfo()) return false; if (hasConfidentialSpaceInfo()) { - if (!getConfidentialSpaceInfo() - .equals(other.getConfidentialSpaceInfo())) return false; + if (!getConfidentialSpaceInfo().equals(other.getConfidentialSpaceInfo())) return false; } if (hasTokenOptions() != other.hasTokenOptions()) return false; if (hasTokenOptions()) { - if (!getTokenOptions() - .equals(other.getTokenOptions())) return false; + if (!getTokenOptions().equals(other.getTokenOptions())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -385,98 +482,105 @@ public int hashCode() { } public static com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest 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.confidentialcomputing.v1.VerifyAttestationRequest 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.confidentialcomputing.v1.VerifyAttestationRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest 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.confidentialcomputing.v1.VerifyAttestationRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest 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.confidentialcomputing.v1.VerifyAttestationRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest 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.confidentialcomputing.v1.VerifyAttestationRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest 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.confidentialcomputing.v1.VerifyAttestationRequest + 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.confidentialcomputing.v1.VerifyAttestationRequest 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.confidentialcomputing.v1.VerifyAttestationRequest 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.confidentialcomputing.v1.VerifyAttestationRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest 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 request for an OIDC token, providing all the necessary information needed
    * for this service to verify the plaform state of the requestor.
@@ -484,33 +588,33 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.confidentialcomputing.v1.VerifyAttestationRequest}
    */
-  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.confidentialcomputing.v1.VerifyAttestationRequest)
       com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_VerifyAttestationRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.confidentialcomputing.v1.ServiceProto
+          .internal_static_google_cloud_confidentialcomputing_v1_VerifyAttestationRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_VerifyAttestationRequest_fieldAccessorTable
+      return com.google.cloud.confidentialcomputing.v1.ServiceProto
+          .internal_static_google_cloud_confidentialcomputing_v1_VerifyAttestationRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest.class, com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest.Builder.class);
+              com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest.class,
+              com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest.Builder.class);
     }
 
-    // Construct using com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest.newBuilder()
-    private Builder() {
+    // Construct using
+    // com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest.newBuilder()
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -540,14 +644,16 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_VerifyAttestationRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.confidentialcomputing.v1.ServiceProto
+          .internal_static_google_cloud_confidentialcomputing_v1_VerifyAttestationRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest getDefaultInstanceForType() {
-      return com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest.getDefaultInstance();
+    public com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest
+        getDefaultInstanceForType() {
+      return com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest
+          .getDefaultInstance();
     }
 
     @java.lang.Override
@@ -561,36 +667,38 @@ public com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest build(
 
     @java.lang.Override
     public com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest buildPartial() {
-      com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest result = new com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest result =
+          new com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest result) {
+    private void buildPartial0(
+        com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.challenge_ = challenge_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.gcpCredentials_ = gcpCredentialsBuilder_ == null
-            ? gcpCredentials_
-            : gcpCredentialsBuilder_.build();
+        result.gcpCredentials_ =
+            gcpCredentialsBuilder_ == null ? gcpCredentials_ : gcpCredentialsBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.tpmAttestation_ = tpmAttestationBuilder_ == null
-            ? tpmAttestation_
-            : tpmAttestationBuilder_.build();
+        result.tpmAttestation_ =
+            tpmAttestationBuilder_ == null ? tpmAttestation_ : tpmAttestationBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
-        result.confidentialSpaceInfo_ = confidentialSpaceInfoBuilder_ == null
-            ? confidentialSpaceInfo_
-            : confidentialSpaceInfoBuilder_.build();
+        result.confidentialSpaceInfo_ =
+            confidentialSpaceInfoBuilder_ == null
+                ? confidentialSpaceInfo_
+                : confidentialSpaceInfoBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000010) != 0)) {
-        result.tokenOptions_ = tokenOptionsBuilder_ == null
-            ? tokenOptions_
-            : tokenOptionsBuilder_.build();
+        result.tokenOptions_ =
+            tokenOptionsBuilder_ == null ? tokenOptions_ : tokenOptionsBuilder_.build();
       }
     }
 
@@ -598,46 +706,51 @@ private void buildPartial0(com.google.cloud.confidentialcomputing.v1.VerifyAttes
     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.confidentialcomputing.v1.VerifyAttestationRequest) {
-        return mergeFrom((com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest)other);
+        return mergeFrom(
+            (com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest other) {
-      if (other == com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest other) {
+      if (other
+          == com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest
+              .getDefaultInstance()) return this;
       if (!other.getChallenge().isEmpty()) {
         challenge_ = other.challenge_;
         bitField0_ |= 0x00000001;
@@ -681,45 +794,44 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              challenge_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              input.readMessage(
-                  getGcpCredentialsFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              input.readMessage(
-                  getTpmAttestationFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            case 34: {
-              input.readMessage(
-                  getConfidentialSpaceInfoFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 34
-            case 42: {
-              input.readMessage(
-                  getTokenOptionsFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 42
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                challenge_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                input.readMessage(getGcpCredentialsFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                input.readMessage(getTpmAttestationFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            case 34:
+              {
+                input.readMessage(
+                    getConfidentialSpaceInfoFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 34
+            case 42:
+              {
+                input.readMessage(getTokenOptionsFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 42
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -729,24 +841,29 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object challenge_ = "";
     /**
+     *
+     *
      * 
      * Required. The name of the Challenge whose nonce was used to generate the
      * attestation, in the format `projects/*/locations/*/challenges/*`. The
      * provided Challenge will be consumed, and cannot be used again.
      * 
* - * string challenge = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string challenge = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The challenge. */ public java.lang.String getChallenge() { java.lang.Object ref = challenge_; 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(); challenge_ = s; return s; @@ -755,22 +872,25 @@ public java.lang.String getChallenge() { } } /** + * + * *
      * Required. The name of the Challenge whose nonce was used to generate the
      * attestation, in the format `projects/*/locations/*/challenges/*`. The
      * provided Challenge will be consumed, and cannot be used again.
      * 
* - * string challenge = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string challenge = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for challenge. */ - public com.google.protobuf.ByteString - getChallengeBytes() { + public com.google.protobuf.ByteString getChallengeBytes() { java.lang.Object ref = challenge_; 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); challenge_ = b; return b; } else { @@ -778,32 +898,43 @@ public java.lang.String getChallenge() { } } /** + * + * *
      * Required. The name of the Challenge whose nonce was used to generate the
      * attestation, in the format `projects/*/locations/*/challenges/*`. The
      * provided Challenge will be consumed, and cannot be used again.
      * 
* - * string challenge = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string challenge = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The challenge to set. * @return This builder for chaining. */ - public Builder setChallenge( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setChallenge(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } challenge_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the Challenge whose nonce was used to generate the
      * attestation, in the format `projects/*/locations/*/challenges/*`. The
      * provided Challenge will be consumed, and cannot be used again.
      * 
* - * string challenge = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string challenge = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearChallenge() { @@ -813,19 +944,25 @@ public Builder clearChallenge() { return this; } /** + * + * *
      * Required. The name of the Challenge whose nonce was used to generate the
      * attestation, in the format `projects/*/locations/*/challenges/*`. The
      * provided Challenge will be consumed, and cannot be used again.
      * 
* - * string challenge = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string challenge = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for challenge to set. * @return This builder for chaining. */ - public Builder setChallengeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setChallengeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); challenge_ = value; bitField0_ |= 0x00000001; @@ -835,44 +972,64 @@ public Builder setChallengeBytes( private com.google.cloud.confidentialcomputing.v1.GcpCredentials gcpCredentials_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.confidentialcomputing.v1.GcpCredentials, com.google.cloud.confidentialcomputing.v1.GcpCredentials.Builder, com.google.cloud.confidentialcomputing.v1.GcpCredentialsOrBuilder> gcpCredentialsBuilder_; + com.google.cloud.confidentialcomputing.v1.GcpCredentials, + com.google.cloud.confidentialcomputing.v1.GcpCredentials.Builder, + com.google.cloud.confidentialcomputing.v1.GcpCredentialsOrBuilder> + gcpCredentialsBuilder_; /** + * + * *
      * Optional. Credentials used to populate the "emails" claim in the
      * claims_token.
      * 
* - * .google.cloud.confidentialcomputing.v1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.confidentialcomputing.v1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the gcpCredentials field is set. */ public boolean hasGcpCredentials() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Optional. Credentials used to populate the "emails" claim in the
      * claims_token.
      * 
* - * .google.cloud.confidentialcomputing.v1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.confidentialcomputing.v1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The gcpCredentials. */ public com.google.cloud.confidentialcomputing.v1.GcpCredentials getGcpCredentials() { if (gcpCredentialsBuilder_ == null) { - return gcpCredentials_ == null ? com.google.cloud.confidentialcomputing.v1.GcpCredentials.getDefaultInstance() : gcpCredentials_; + return gcpCredentials_ == null + ? com.google.cloud.confidentialcomputing.v1.GcpCredentials.getDefaultInstance() + : gcpCredentials_; } else { return gcpCredentialsBuilder_.getMessage(); } } /** + * + * *
      * Optional. Credentials used to populate the "emails" claim in the
      * claims_token.
      * 
* - * .google.cloud.confidentialcomputing.v1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.confidentialcomputing.v1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setGcpCredentials(com.google.cloud.confidentialcomputing.v1.GcpCredentials value) { + public Builder setGcpCredentials( + com.google.cloud.confidentialcomputing.v1.GcpCredentials value) { if (gcpCredentialsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -886,12 +1043,16 @@ public Builder setGcpCredentials(com.google.cloud.confidentialcomputing.v1.GcpCr return this; } /** + * + * *
      * Optional. Credentials used to populate the "emails" claim in the
      * claims_token.
      * 
* - * .google.cloud.confidentialcomputing.v1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.confidentialcomputing.v1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setGcpCredentials( com.google.cloud.confidentialcomputing.v1.GcpCredentials.Builder builderForValue) { @@ -905,18 +1066,24 @@ public Builder setGcpCredentials( return this; } /** + * + * *
      * Optional. Credentials used to populate the "emails" claim in the
      * claims_token.
      * 
* - * .google.cloud.confidentialcomputing.v1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.confidentialcomputing.v1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeGcpCredentials(com.google.cloud.confidentialcomputing.v1.GcpCredentials value) { + public Builder mergeGcpCredentials( + com.google.cloud.confidentialcomputing.v1.GcpCredentials value) { if (gcpCredentialsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - gcpCredentials_ != null && - gcpCredentials_ != com.google.cloud.confidentialcomputing.v1.GcpCredentials.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && gcpCredentials_ != null + && gcpCredentials_ + != com.google.cloud.confidentialcomputing.v1.GcpCredentials.getDefaultInstance()) { getGcpCredentialsBuilder().mergeFrom(value); } else { gcpCredentials_ = value; @@ -929,12 +1096,16 @@ public Builder mergeGcpCredentials(com.google.cloud.confidentialcomputing.v1.Gcp return this; } /** + * + * *
      * Optional. Credentials used to populate the "emails" claim in the
      * claims_token.
      * 
* - * .google.cloud.confidentialcomputing.v1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.confidentialcomputing.v1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearGcpCredentials() { bitField0_ = (bitField0_ & ~0x00000002); @@ -947,51 +1118,69 @@ public Builder clearGcpCredentials() { return this; } /** + * + * *
      * Optional. Credentials used to populate the "emails" claim in the
      * claims_token.
      * 
* - * .google.cloud.confidentialcomputing.v1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.confidentialcomputing.v1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.confidentialcomputing.v1.GcpCredentials.Builder getGcpCredentialsBuilder() { + public com.google.cloud.confidentialcomputing.v1.GcpCredentials.Builder + getGcpCredentialsBuilder() { bitField0_ |= 0x00000002; onChanged(); return getGcpCredentialsFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Credentials used to populate the "emails" claim in the
      * claims_token.
      * 
* - * .google.cloud.confidentialcomputing.v1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.confidentialcomputing.v1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.confidentialcomputing.v1.GcpCredentialsOrBuilder getGcpCredentialsOrBuilder() { + public com.google.cloud.confidentialcomputing.v1.GcpCredentialsOrBuilder + getGcpCredentialsOrBuilder() { if (gcpCredentialsBuilder_ != null) { return gcpCredentialsBuilder_.getMessageOrBuilder(); } else { - return gcpCredentials_ == null ? - com.google.cloud.confidentialcomputing.v1.GcpCredentials.getDefaultInstance() : gcpCredentials_; + return gcpCredentials_ == null + ? com.google.cloud.confidentialcomputing.v1.GcpCredentials.getDefaultInstance() + : gcpCredentials_; } } /** + * + * *
      * Optional. Credentials used to populate the "emails" claim in the
      * claims_token.
      * 
* - * .google.cloud.confidentialcomputing.v1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.confidentialcomputing.v1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.confidentialcomputing.v1.GcpCredentials, com.google.cloud.confidentialcomputing.v1.GcpCredentials.Builder, com.google.cloud.confidentialcomputing.v1.GcpCredentialsOrBuilder> + com.google.cloud.confidentialcomputing.v1.GcpCredentials, + com.google.cloud.confidentialcomputing.v1.GcpCredentials.Builder, + com.google.cloud.confidentialcomputing.v1.GcpCredentialsOrBuilder> getGcpCredentialsFieldBuilder() { if (gcpCredentialsBuilder_ == null) { - gcpCredentialsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.confidentialcomputing.v1.GcpCredentials, com.google.cloud.confidentialcomputing.v1.GcpCredentials.Builder, com.google.cloud.confidentialcomputing.v1.GcpCredentialsOrBuilder>( - getGcpCredentials(), - getParentForChildren(), - isClean()); + gcpCredentialsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.confidentialcomputing.v1.GcpCredentials, + com.google.cloud.confidentialcomputing.v1.GcpCredentials.Builder, + com.google.cloud.confidentialcomputing.v1.GcpCredentialsOrBuilder>( + getGcpCredentials(), getParentForChildren(), isClean()); gcpCredentials_ = null; } return gcpCredentialsBuilder_; @@ -999,44 +1188,64 @@ public com.google.cloud.confidentialcomputing.v1.GcpCredentialsOrBuilder getGcpC private com.google.cloud.confidentialcomputing.v1.TpmAttestation tpmAttestation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.confidentialcomputing.v1.TpmAttestation, com.google.cloud.confidentialcomputing.v1.TpmAttestation.Builder, com.google.cloud.confidentialcomputing.v1.TpmAttestationOrBuilder> tpmAttestationBuilder_; + com.google.cloud.confidentialcomputing.v1.TpmAttestation, + com.google.cloud.confidentialcomputing.v1.TpmAttestation.Builder, + com.google.cloud.confidentialcomputing.v1.TpmAttestationOrBuilder> + tpmAttestationBuilder_; /** + * + * *
      * Required. The TPM-specific data provided by the attesting platform, used to
      * populate any of the claims regarding platform state.
      * 
* - * .google.cloud.confidentialcomputing.v1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.confidentialcomputing.v1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the tpmAttestation field is set. */ public boolean hasTpmAttestation() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Required. The TPM-specific data provided by the attesting platform, used to
      * populate any of the claims regarding platform state.
      * 
* - * .google.cloud.confidentialcomputing.v1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.confidentialcomputing.v1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The tpmAttestation. */ public com.google.cloud.confidentialcomputing.v1.TpmAttestation getTpmAttestation() { if (tpmAttestationBuilder_ == null) { - return tpmAttestation_ == null ? com.google.cloud.confidentialcomputing.v1.TpmAttestation.getDefaultInstance() : tpmAttestation_; + return tpmAttestation_ == null + ? com.google.cloud.confidentialcomputing.v1.TpmAttestation.getDefaultInstance() + : tpmAttestation_; } else { return tpmAttestationBuilder_.getMessage(); } } /** + * + * *
      * Required. The TPM-specific data provided by the attesting platform, used to
      * populate any of the claims regarding platform state.
      * 
* - * .google.cloud.confidentialcomputing.v1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.confidentialcomputing.v1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setTpmAttestation(com.google.cloud.confidentialcomputing.v1.TpmAttestation value) { + public Builder setTpmAttestation( + com.google.cloud.confidentialcomputing.v1.TpmAttestation value) { if (tpmAttestationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1050,12 +1259,16 @@ public Builder setTpmAttestation(com.google.cloud.confidentialcomputing.v1.TpmAt return this; } /** + * + * *
      * Required. The TPM-specific data provided by the attesting platform, used to
      * populate any of the claims regarding platform state.
      * 
* - * .google.cloud.confidentialcomputing.v1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.confidentialcomputing.v1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setTpmAttestation( com.google.cloud.confidentialcomputing.v1.TpmAttestation.Builder builderForValue) { @@ -1069,18 +1282,24 @@ public Builder setTpmAttestation( return this; } /** + * + * *
      * Required. The TPM-specific data provided by the attesting platform, used to
      * populate any of the claims regarding platform state.
      * 
* - * .google.cloud.confidentialcomputing.v1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.confidentialcomputing.v1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder mergeTpmAttestation(com.google.cloud.confidentialcomputing.v1.TpmAttestation value) { + public Builder mergeTpmAttestation( + com.google.cloud.confidentialcomputing.v1.TpmAttestation value) { if (tpmAttestationBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - tpmAttestation_ != null && - tpmAttestation_ != com.google.cloud.confidentialcomputing.v1.TpmAttestation.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && tpmAttestation_ != null + && tpmAttestation_ + != com.google.cloud.confidentialcomputing.v1.TpmAttestation.getDefaultInstance()) { getTpmAttestationBuilder().mergeFrom(value); } else { tpmAttestation_ = value; @@ -1093,12 +1312,16 @@ public Builder mergeTpmAttestation(com.google.cloud.confidentialcomputing.v1.Tpm return this; } /** + * + * *
      * Required. The TPM-specific data provided by the attesting platform, used to
      * populate any of the claims regarding platform state.
      * 
* - * .google.cloud.confidentialcomputing.v1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.confidentialcomputing.v1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearTpmAttestation() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1111,51 +1334,69 @@ public Builder clearTpmAttestation() { return this; } /** + * + * *
      * Required. The TPM-specific data provided by the attesting platform, used to
      * populate any of the claims regarding platform state.
      * 
* - * .google.cloud.confidentialcomputing.v1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.confidentialcomputing.v1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.confidentialcomputing.v1.TpmAttestation.Builder getTpmAttestationBuilder() { + public com.google.cloud.confidentialcomputing.v1.TpmAttestation.Builder + getTpmAttestationBuilder() { bitField0_ |= 0x00000004; onChanged(); return getTpmAttestationFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The TPM-specific data provided by the attesting platform, used to
      * populate any of the claims regarding platform state.
      * 
* - * .google.cloud.confidentialcomputing.v1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.confidentialcomputing.v1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.confidentialcomputing.v1.TpmAttestationOrBuilder getTpmAttestationOrBuilder() { + public com.google.cloud.confidentialcomputing.v1.TpmAttestationOrBuilder + getTpmAttestationOrBuilder() { if (tpmAttestationBuilder_ != null) { return tpmAttestationBuilder_.getMessageOrBuilder(); } else { - return tpmAttestation_ == null ? - com.google.cloud.confidentialcomputing.v1.TpmAttestation.getDefaultInstance() : tpmAttestation_; + return tpmAttestation_ == null + ? com.google.cloud.confidentialcomputing.v1.TpmAttestation.getDefaultInstance() + : tpmAttestation_; } } /** + * + * *
      * Required. The TPM-specific data provided by the attesting platform, used to
      * populate any of the claims regarding platform state.
      * 
* - * .google.cloud.confidentialcomputing.v1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.confidentialcomputing.v1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.confidentialcomputing.v1.TpmAttestation, com.google.cloud.confidentialcomputing.v1.TpmAttestation.Builder, com.google.cloud.confidentialcomputing.v1.TpmAttestationOrBuilder> + com.google.cloud.confidentialcomputing.v1.TpmAttestation, + com.google.cloud.confidentialcomputing.v1.TpmAttestation.Builder, + com.google.cloud.confidentialcomputing.v1.TpmAttestationOrBuilder> getTpmAttestationFieldBuilder() { if (tpmAttestationBuilder_ == null) { - tpmAttestationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.confidentialcomputing.v1.TpmAttestation, com.google.cloud.confidentialcomputing.v1.TpmAttestation.Builder, com.google.cloud.confidentialcomputing.v1.TpmAttestationOrBuilder>( - getTpmAttestation(), - getParentForChildren(), - isClean()); + tpmAttestationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.confidentialcomputing.v1.TpmAttestation, + com.google.cloud.confidentialcomputing.v1.TpmAttestation.Builder, + com.google.cloud.confidentialcomputing.v1.TpmAttestationOrBuilder>( + getTpmAttestation(), getParentForChildren(), isClean()); tpmAttestation_ = null; } return tpmAttestationBuilder_; @@ -1163,41 +1404,62 @@ public com.google.cloud.confidentialcomputing.v1.TpmAttestationOrBuilder getTpmA private com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo confidentialSpaceInfo_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo, com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo.Builder, com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfoOrBuilder> confidentialSpaceInfoBuilder_; + com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo, + com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo.Builder, + com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfoOrBuilder> + confidentialSpaceInfoBuilder_; /** + * + * *
      * Optional. Optional information related to the Confidential Space TEE.
      * 
* - * .google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo confidential_space_info = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo confidential_space_info = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the confidentialSpaceInfo field is set. */ public boolean hasConfidentialSpaceInfo() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
      * Optional. Optional information related to the Confidential Space TEE.
      * 
* - * .google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo confidential_space_info = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo confidential_space_info = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The confidentialSpaceInfo. */ - public com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo getConfidentialSpaceInfo() { + public com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo + getConfidentialSpaceInfo() { if (confidentialSpaceInfoBuilder_ == null) { - return confidentialSpaceInfo_ == null ? com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo.getDefaultInstance() : confidentialSpaceInfo_; + return confidentialSpaceInfo_ == null + ? com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo.getDefaultInstance() + : confidentialSpaceInfo_; } else { return confidentialSpaceInfoBuilder_.getMessage(); } } /** + * + * *
      * Optional. Optional information related to the Confidential Space TEE.
      * 
* - * .google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo confidential_space_info = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo confidential_space_info = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setConfidentialSpaceInfo(com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo value) { + public Builder setConfidentialSpaceInfo( + com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo value) { if (confidentialSpaceInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1211,11 +1473,15 @@ public Builder setConfidentialSpaceInfo(com.google.cloud.confidentialcomputing.v return this; } /** + * + * *
      * Optional. Optional information related to the Confidential Space TEE.
      * 
* - * .google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo confidential_space_info = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo confidential_space_info = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setConfidentialSpaceInfo( com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo.Builder builderForValue) { @@ -1229,17 +1495,24 @@ public Builder setConfidentialSpaceInfo( return this; } /** + * + * *
      * Optional. Optional information related to the Confidential Space TEE.
      * 
* - * .google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo confidential_space_info = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo confidential_space_info = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeConfidentialSpaceInfo(com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo value) { + public Builder mergeConfidentialSpaceInfo( + com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo value) { if (confidentialSpaceInfoBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - confidentialSpaceInfo_ != null && - confidentialSpaceInfo_ != com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) + && confidentialSpaceInfo_ != null + && confidentialSpaceInfo_ + != com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo + .getDefaultInstance()) { getConfidentialSpaceInfoBuilder().mergeFrom(value); } else { confidentialSpaceInfo_ = value; @@ -1252,11 +1525,15 @@ public Builder mergeConfidentialSpaceInfo(com.google.cloud.confidentialcomputing return this; } /** + * + * *
      * Optional. Optional information related to the Confidential Space TEE.
      * 
* - * .google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo confidential_space_info = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo confidential_space_info = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearConfidentialSpaceInfo() { bitField0_ = (bitField0_ & ~0x00000008); @@ -1269,48 +1546,66 @@ public Builder clearConfidentialSpaceInfo() { return this; } /** + * + * *
      * Optional. Optional information related to the Confidential Space TEE.
      * 
* - * .google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo confidential_space_info = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo confidential_space_info = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo.Builder getConfidentialSpaceInfoBuilder() { + public com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo.Builder + getConfidentialSpaceInfoBuilder() { bitField0_ |= 0x00000008; onChanged(); return getConfidentialSpaceInfoFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Optional information related to the Confidential Space TEE.
      * 
* - * .google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo confidential_space_info = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo confidential_space_info = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfoOrBuilder getConfidentialSpaceInfoOrBuilder() { + public com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfoOrBuilder + getConfidentialSpaceInfoOrBuilder() { if (confidentialSpaceInfoBuilder_ != null) { return confidentialSpaceInfoBuilder_.getMessageOrBuilder(); } else { - return confidentialSpaceInfo_ == null ? - com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo.getDefaultInstance() : confidentialSpaceInfo_; + return confidentialSpaceInfo_ == null + ? com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo.getDefaultInstance() + : confidentialSpaceInfo_; } } /** + * + * *
      * Optional. Optional information related to the Confidential Space TEE.
      * 
* - * .google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo confidential_space_info = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo confidential_space_info = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo, com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo.Builder, com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfoOrBuilder> + com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo, + com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo.Builder, + com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfoOrBuilder> getConfidentialSpaceInfoFieldBuilder() { if (confidentialSpaceInfoBuilder_ == null) { - confidentialSpaceInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo, com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo.Builder, com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfoOrBuilder>( - getConfidentialSpaceInfo(), - getParentForChildren(), - isClean()); + confidentialSpaceInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo, + com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo.Builder, + com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfoOrBuilder>( + getConfidentialSpaceInfo(), getParentForChildren(), isClean()); confidentialSpaceInfo_ = null; } return confidentialSpaceInfoBuilder_; @@ -1318,42 +1613,61 @@ public com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfoOrBuilder private com.google.cloud.confidentialcomputing.v1.TokenOptions tokenOptions_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.confidentialcomputing.v1.TokenOptions, com.google.cloud.confidentialcomputing.v1.TokenOptions.Builder, com.google.cloud.confidentialcomputing.v1.TokenOptionsOrBuilder> tokenOptionsBuilder_; + com.google.cloud.confidentialcomputing.v1.TokenOptions, + com.google.cloud.confidentialcomputing.v1.TokenOptions.Builder, + com.google.cloud.confidentialcomputing.v1.TokenOptionsOrBuilder> + tokenOptionsBuilder_; /** + * + * *
      * Optional. A collection of optional, workload-specified claims that modify
      * the token output.
      * 
* - * .google.cloud.confidentialcomputing.v1.TokenOptions token_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.confidentialcomputing.v1.TokenOptions token_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the tokenOptions field is set. */ public boolean hasTokenOptions() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * *
      * Optional. A collection of optional, workload-specified claims that modify
      * the token output.
      * 
* - * .google.cloud.confidentialcomputing.v1.TokenOptions token_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.confidentialcomputing.v1.TokenOptions token_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The tokenOptions. */ public com.google.cloud.confidentialcomputing.v1.TokenOptions getTokenOptions() { if (tokenOptionsBuilder_ == null) { - return tokenOptions_ == null ? com.google.cloud.confidentialcomputing.v1.TokenOptions.getDefaultInstance() : tokenOptions_; + return tokenOptions_ == null + ? com.google.cloud.confidentialcomputing.v1.TokenOptions.getDefaultInstance() + : tokenOptions_; } else { return tokenOptionsBuilder_.getMessage(); } } /** + * + * *
      * Optional. A collection of optional, workload-specified claims that modify
      * the token output.
      * 
* - * .google.cloud.confidentialcomputing.v1.TokenOptions token_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.confidentialcomputing.v1.TokenOptions token_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setTokenOptions(com.google.cloud.confidentialcomputing.v1.TokenOptions value) { if (tokenOptionsBuilder_ == null) { @@ -1369,12 +1683,16 @@ public Builder setTokenOptions(com.google.cloud.confidentialcomputing.v1.TokenOp return this; } /** + * + * *
      * Optional. A collection of optional, workload-specified claims that modify
      * the token output.
      * 
* - * .google.cloud.confidentialcomputing.v1.TokenOptions token_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.confidentialcomputing.v1.TokenOptions token_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setTokenOptions( com.google.cloud.confidentialcomputing.v1.TokenOptions.Builder builderForValue) { @@ -1388,18 +1706,23 @@ public Builder setTokenOptions( return this; } /** + * + * *
      * Optional. A collection of optional, workload-specified claims that modify
      * the token output.
      * 
* - * .google.cloud.confidentialcomputing.v1.TokenOptions token_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.confidentialcomputing.v1.TokenOptions token_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeTokenOptions(com.google.cloud.confidentialcomputing.v1.TokenOptions value) { if (tokenOptionsBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) && - tokenOptions_ != null && - tokenOptions_ != com.google.cloud.confidentialcomputing.v1.TokenOptions.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) + && tokenOptions_ != null + && tokenOptions_ + != com.google.cloud.confidentialcomputing.v1.TokenOptions.getDefaultInstance()) { getTokenOptionsBuilder().mergeFrom(value); } else { tokenOptions_ = value; @@ -1412,12 +1735,16 @@ public Builder mergeTokenOptions(com.google.cloud.confidentialcomputing.v1.Token return this; } /** + * + * *
      * Optional. A collection of optional, workload-specified claims that modify
      * the token output.
      * 
* - * .google.cloud.confidentialcomputing.v1.TokenOptions token_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.confidentialcomputing.v1.TokenOptions token_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearTokenOptions() { bitField0_ = (bitField0_ & ~0x00000010); @@ -1430,12 +1757,16 @@ public Builder clearTokenOptions() { return this; } /** + * + * *
      * Optional. A collection of optional, workload-specified claims that modify
      * the token output.
      * 
* - * .google.cloud.confidentialcomputing.v1.TokenOptions token_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.confidentialcomputing.v1.TokenOptions token_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.confidentialcomputing.v1.TokenOptions.Builder getTokenOptionsBuilder() { bitField0_ |= 0x00000010; @@ -1443,45 +1774,58 @@ public com.google.cloud.confidentialcomputing.v1.TokenOptions.Builder getTokenOp return getTokenOptionsFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. A collection of optional, workload-specified claims that modify
      * the token output.
      * 
* - * .google.cloud.confidentialcomputing.v1.TokenOptions token_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.confidentialcomputing.v1.TokenOptions token_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.confidentialcomputing.v1.TokenOptionsOrBuilder getTokenOptionsOrBuilder() { + public com.google.cloud.confidentialcomputing.v1.TokenOptionsOrBuilder + getTokenOptionsOrBuilder() { if (tokenOptionsBuilder_ != null) { return tokenOptionsBuilder_.getMessageOrBuilder(); } else { - return tokenOptions_ == null ? - com.google.cloud.confidentialcomputing.v1.TokenOptions.getDefaultInstance() : tokenOptions_; + return tokenOptions_ == null + ? com.google.cloud.confidentialcomputing.v1.TokenOptions.getDefaultInstance() + : tokenOptions_; } } /** + * + * *
      * Optional. A collection of optional, workload-specified claims that modify
      * the token output.
      * 
* - * .google.cloud.confidentialcomputing.v1.TokenOptions token_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.confidentialcomputing.v1.TokenOptions token_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.confidentialcomputing.v1.TokenOptions, com.google.cloud.confidentialcomputing.v1.TokenOptions.Builder, com.google.cloud.confidentialcomputing.v1.TokenOptionsOrBuilder> + com.google.cloud.confidentialcomputing.v1.TokenOptions, + com.google.cloud.confidentialcomputing.v1.TokenOptions.Builder, + com.google.cloud.confidentialcomputing.v1.TokenOptionsOrBuilder> getTokenOptionsFieldBuilder() { if (tokenOptionsBuilder_ == null) { - tokenOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.confidentialcomputing.v1.TokenOptions, com.google.cloud.confidentialcomputing.v1.TokenOptions.Builder, com.google.cloud.confidentialcomputing.v1.TokenOptionsOrBuilder>( - getTokenOptions(), - getParentForChildren(), - isClean()); + tokenOptionsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.confidentialcomputing.v1.TokenOptions, + com.google.cloud.confidentialcomputing.v1.TokenOptions.Builder, + com.google.cloud.confidentialcomputing.v1.TokenOptionsOrBuilder>( + getTokenOptions(), getParentForChildren(), isClean()); tokenOptions_ = null; } return tokenOptionsBuilder_; } + @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); } @@ -1491,41 +1835,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.confidentialcomputing.v1.VerifyAttestationRequest) } // @@protoc_insertion_point(class_scope:google.cloud.confidentialcomputing.v1.VerifyAttestationRequest) - private static final com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest DEFAULT_INSTANCE; + private static final com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest(); } - public static com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest getDefaultInstance() { + public static com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VerifyAttestationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VerifyAttestationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1537,9 +1883,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest getDefaultInstanceForType() { + public com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyAttestationRequestOrBuilder.java b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyAttestationRequestOrBuilder.java similarity index 56% rename from owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyAttestationRequestOrBuilder.java rename to java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyAttestationRequestOrBuilder.java index 436c6aa74161..d82b4e9fbe35 100644 --- a/owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyAttestationRequestOrBuilder.java +++ b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyAttestationRequestOrBuilder.java @@ -1,150 +1,232 @@ +/* + * Copyright 2023 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/confidentialcomputing/v1/service.proto package com.google.cloud.confidentialcomputing.v1; -public interface VerifyAttestationRequestOrBuilder extends +public interface VerifyAttestationRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.confidentialcomputing.v1.VerifyAttestationRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The name of the Challenge whose nonce was used to generate the
    * attestation, in the format `projects/*/locations/*/challenges/*`. The
    * provided Challenge will be consumed, and cannot be used again.
    * 
* - * string challenge = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string challenge = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The challenge. */ java.lang.String getChallenge(); /** + * + * *
    * Required. The name of the Challenge whose nonce was used to generate the
    * attestation, in the format `projects/*/locations/*/challenges/*`. The
    * provided Challenge will be consumed, and cannot be used again.
    * 
* - * string challenge = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string challenge = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for challenge. */ - com.google.protobuf.ByteString - getChallengeBytes(); + com.google.protobuf.ByteString getChallengeBytes(); /** + * + * *
    * Optional. Credentials used to populate the "emails" claim in the
    * claims_token.
    * 
* - * .google.cloud.confidentialcomputing.v1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.confidentialcomputing.v1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the gcpCredentials field is set. */ boolean hasGcpCredentials(); /** + * + * *
    * Optional. Credentials used to populate the "emails" claim in the
    * claims_token.
    * 
* - * .google.cloud.confidentialcomputing.v1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.confidentialcomputing.v1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The gcpCredentials. */ com.google.cloud.confidentialcomputing.v1.GcpCredentials getGcpCredentials(); /** + * + * *
    * Optional. Credentials used to populate the "emails" claim in the
    * claims_token.
    * 
* - * .google.cloud.confidentialcomputing.v1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.confidentialcomputing.v1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.confidentialcomputing.v1.GcpCredentialsOrBuilder getGcpCredentialsOrBuilder(); /** + * + * *
    * Required. The TPM-specific data provided by the attesting platform, used to
    * populate any of the claims regarding platform state.
    * 
* - * .google.cloud.confidentialcomputing.v1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.confidentialcomputing.v1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the tpmAttestation field is set. */ boolean hasTpmAttestation(); /** + * + * *
    * Required. The TPM-specific data provided by the attesting platform, used to
    * populate any of the claims regarding platform state.
    * 
* - * .google.cloud.confidentialcomputing.v1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.confidentialcomputing.v1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The tpmAttestation. */ com.google.cloud.confidentialcomputing.v1.TpmAttestation getTpmAttestation(); /** + * + * *
    * Required. The TPM-specific data provided by the attesting platform, used to
    * populate any of the claims regarding platform state.
    * 
* - * .google.cloud.confidentialcomputing.v1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.confidentialcomputing.v1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.confidentialcomputing.v1.TpmAttestationOrBuilder getTpmAttestationOrBuilder(); /** + * + * *
    * Optional. Optional information related to the Confidential Space TEE.
    * 
* - * .google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo confidential_space_info = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo confidential_space_info = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the confidentialSpaceInfo field is set. */ boolean hasConfidentialSpaceInfo(); /** + * + * *
    * Optional. Optional information related to the Confidential Space TEE.
    * 
* - * .google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo confidential_space_info = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo confidential_space_info = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The confidentialSpaceInfo. */ com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo getConfidentialSpaceInfo(); /** + * + * *
    * Optional. Optional information related to the Confidential Space TEE.
    * 
* - * .google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo confidential_space_info = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo confidential_space_info = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfoOrBuilder getConfidentialSpaceInfoOrBuilder(); + com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfoOrBuilder + getConfidentialSpaceInfoOrBuilder(); /** + * + * *
    * Optional. A collection of optional, workload-specified claims that modify
    * the token output.
    * 
* - * .google.cloud.confidentialcomputing.v1.TokenOptions token_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.confidentialcomputing.v1.TokenOptions token_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the tokenOptions field is set. */ boolean hasTokenOptions(); /** + * + * *
    * Optional. A collection of optional, workload-specified claims that modify
    * the token output.
    * 
* - * .google.cloud.confidentialcomputing.v1.TokenOptions token_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.confidentialcomputing.v1.TokenOptions token_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The tokenOptions. */ com.google.cloud.confidentialcomputing.v1.TokenOptions getTokenOptions(); /** + * + * *
    * Optional. A collection of optional, workload-specified claims that modify
    * the token output.
    * 
* - * .google.cloud.confidentialcomputing.v1.TokenOptions token_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.confidentialcomputing.v1.TokenOptions token_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.confidentialcomputing.v1.TokenOptionsOrBuilder getTokenOptionsOrBuilder(); } diff --git a/owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyAttestationResponse.java b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyAttestationResponse.java similarity index 63% rename from owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyAttestationResponse.java rename to java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyAttestationResponse.java index 5c625c9e66c8..d7df508bd5b8 100644 --- a/owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyAttestationResponse.java +++ b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyAttestationResponse.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 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/confidentialcomputing/v1/service.proto package com.google.cloud.confidentialcomputing.v1; /** + * + * *
  * A response once an attestation has been successfully verified, containing a
  * signed OIDC token.
@@ -11,48 +28,54 @@
  *
  * Protobuf type {@code google.cloud.confidentialcomputing.v1.VerifyAttestationResponse}
  */
-public final class VerifyAttestationResponse extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class VerifyAttestationResponse extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.confidentialcomputing.v1.VerifyAttestationResponse)
     VerifyAttestationResponseOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use VerifyAttestationResponse.newBuilder() to construct.
   private VerifyAttestationResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private VerifyAttestationResponse() {
     oidcClaimsToken_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new VerifyAttestationResponse();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_VerifyAttestationResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.confidentialcomputing.v1.ServiceProto
+        .internal_static_google_cloud_confidentialcomputing_v1_VerifyAttestationResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_VerifyAttestationResponse_fieldAccessorTable
+    return com.google.cloud.confidentialcomputing.v1.ServiceProto
+        .internal_static_google_cloud_confidentialcomputing_v1_VerifyAttestationResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse.class, com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse.Builder.class);
+            com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse.class,
+            com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse.Builder.class);
   }
 
   public static final int OIDC_CLAIMS_TOKEN_FIELD_NUMBER = 2;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object oidcClaimsToken_ = "";
   /**
+   *
+   *
    * 
    * Output only. Same as claims_token, but as a string.
    * 
* * string oidc_claims_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The oidcClaimsToken. */ @java.lang.Override @@ -61,29 +84,29 @@ public java.lang.String getOidcClaimsToken() { 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(); oidcClaimsToken_ = s; return s; } } /** + * + * *
    * Output only. Same as claims_token, but as a string.
    * 
* * string oidc_claims_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for oidcClaimsToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getOidcClaimsTokenBytes() { + public com.google.protobuf.ByteString getOidcClaimsTokenBytes() { java.lang.Object ref = oidcClaimsToken_; 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); oidcClaimsToken_ = b; return b; } else { @@ -92,6 +115,7 @@ public java.lang.String getOidcClaimsToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -103,8 +127,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(oidcClaimsToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, oidcClaimsToken_); } @@ -128,15 +151,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.confidentialcomputing.v1.VerifyAttestationResponse)) { return super.equals(obj); } - com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse other = (com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse) obj; + com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse other = + (com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse) obj; - if (!getOidcClaimsToken() - .equals(other.getOidcClaimsToken())) return false; + if (!getOidcClaimsToken().equals(other.getOidcClaimsToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -156,98 +179,105 @@ public int hashCode() { } public static com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse 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.confidentialcomputing.v1.VerifyAttestationResponse 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.confidentialcomputing.v1.VerifyAttestationResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse 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.confidentialcomputing.v1.VerifyAttestationResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse 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.confidentialcomputing.v1.VerifyAttestationResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse 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.confidentialcomputing.v1.VerifyAttestationResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse 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.confidentialcomputing.v1.VerifyAttestationResponse + 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.confidentialcomputing.v1.VerifyAttestationResponse 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.confidentialcomputing.v1.VerifyAttestationResponse 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.confidentialcomputing.v1.VerifyAttestationResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse 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 response once an attestation has been successfully verified, containing a
    * signed OIDC token.
@@ -255,33 +285,33 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.confidentialcomputing.v1.VerifyAttestationResponse}
    */
-  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.confidentialcomputing.v1.VerifyAttestationResponse)
       com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_VerifyAttestationResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.confidentialcomputing.v1.ServiceProto
+          .internal_static_google_cloud_confidentialcomputing_v1_VerifyAttestationResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_VerifyAttestationResponse_fieldAccessorTable
+      return com.google.cloud.confidentialcomputing.v1.ServiceProto
+          .internal_static_google_cloud_confidentialcomputing_v1_VerifyAttestationResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse.class, com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse.Builder.class);
+              com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse.class,
+              com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse.Builder.class);
     }
 
-    // Construct using com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse.newBuilder()
-    private Builder() {
-
-    }
+    // Construct using
+    // com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse.newBuilder()
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -291,14 +321,16 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.confidentialcomputing.v1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1_VerifyAttestationResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.confidentialcomputing.v1.ServiceProto
+          .internal_static_google_cloud_confidentialcomputing_v1_VerifyAttestationResponse_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse getDefaultInstanceForType() {
-      return com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse.getDefaultInstance();
+    public com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse
+        getDefaultInstanceForType() {
+      return com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse
+          .getDefaultInstance();
     }
 
     @java.lang.Override
@@ -312,13 +344,17 @@ public com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse build
 
     @java.lang.Override
     public com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse buildPartial() {
-      com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse result = new com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse result =
+          new com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse result) {
+    private void buildPartial0(
+        com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.oidcClaimsToken_ = oidcClaimsToken_;
@@ -329,46 +365,51 @@ private void buildPartial0(com.google.cloud.confidentialcomputing.v1.VerifyAttes
     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.confidentialcomputing.v1.VerifyAttestationResponse) {
-        return mergeFrom((com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse)other);
+        return mergeFrom(
+            (com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse other) {
-      if (other == com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse other) {
+      if (other
+          == com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse
+              .getDefaultInstance()) return this;
       if (!other.getOidcClaimsToken().isEmpty()) {
         oidcClaimsToken_ = other.oidcClaimsToken_;
         bitField0_ |= 0x00000001;
@@ -400,17 +441,19 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 18: {
-              oidcClaimsToken_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 18
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 18:
+              {
+                oidcClaimsToken_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 18
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -420,22 +463,25 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object oidcClaimsToken_ = "";
     /**
+     *
+     *
      * 
      * Output only. Same as claims_token, but as a string.
      * 
* * string oidc_claims_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The oidcClaimsToken. */ public java.lang.String getOidcClaimsToken() { java.lang.Object ref = oidcClaimsToken_; 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(); oidcClaimsToken_ = s; return s; @@ -444,20 +490,21 @@ public java.lang.String getOidcClaimsToken() { } } /** + * + * *
      * Output only. Same as claims_token, but as a string.
      * 
* * string oidc_claims_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for oidcClaimsToken. */ - public com.google.protobuf.ByteString - getOidcClaimsTokenBytes() { + public com.google.protobuf.ByteString getOidcClaimsTokenBytes() { java.lang.Object ref = oidcClaimsToken_; 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); oidcClaimsToken_ = b; return b; } else { @@ -465,28 +512,35 @@ public java.lang.String getOidcClaimsToken() { } } /** + * + * *
      * Output only. Same as claims_token, but as a string.
      * 
* * string oidc_claims_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The oidcClaimsToken to set. * @return This builder for chaining. */ - public Builder setOidcClaimsToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setOidcClaimsToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } oidcClaimsToken_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Output only. Same as claims_token, but as a string.
      * 
* * string oidc_claims_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearOidcClaimsToken() { @@ -496,26 +550,30 @@ public Builder clearOidcClaimsToken() { return this; } /** + * + * *
      * Output only. Same as claims_token, but as a string.
      * 
* * string oidc_claims_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for oidcClaimsToken to set. * @return This builder for chaining. */ - public Builder setOidcClaimsTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setOidcClaimsTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); oidcClaimsToken_ = value; bitField0_ |= 0x00000001; 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); } @@ -525,41 +583,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.confidentialcomputing.v1.VerifyAttestationResponse) } // @@protoc_insertion_point(class_scope:google.cloud.confidentialcomputing.v1.VerifyAttestationResponse) - private static final com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse DEFAULT_INSTANCE; + private static final com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse(); } - public static com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse getDefaultInstance() { + public static com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VerifyAttestationResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VerifyAttestationResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -571,9 +631,8 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse getDefaultInstanceForType() { + public com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyAttestationResponseOrBuilder.java b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyAttestationResponseOrBuilder.java similarity index 52% rename from owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyAttestationResponseOrBuilder.java rename to java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyAttestationResponseOrBuilder.java index c59993b21b85..53829d7a6733 100644 --- a/owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyAttestationResponseOrBuilder.java +++ b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyAttestationResponseOrBuilder.java @@ -1,29 +1,50 @@ +/* + * Copyright 2023 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/confidentialcomputing/v1/service.proto package com.google.cloud.confidentialcomputing.v1; -public interface VerifyAttestationResponseOrBuilder extends +public interface VerifyAttestationResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.confidentialcomputing.v1.VerifyAttestationResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. Same as claims_token, but as a string.
    * 
* * string oidc_claims_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The oidcClaimsToken. */ java.lang.String getOidcClaimsToken(); /** + * + * *
    * Output only. Same as claims_token, but as a string.
    * 
* * string oidc_claims_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for oidcClaimsToken. */ - com.google.protobuf.ByteString - getOidcClaimsTokenBytes(); + com.google.protobuf.ByteString getOidcClaimsTokenBytes(); } diff --git a/owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/proto/google/cloud/confidentialcomputing/v1/service.proto b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/proto/google/cloud/confidentialcomputing/v1/service.proto similarity index 100% rename from owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/proto/google/cloud/confidentialcomputing/v1/service.proto rename to java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/proto/google/cloud/confidentialcomputing/v1/service.proto diff --git a/owl-bot-staging/java-confidentialcomputing/v1alpha1/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/Challenge.java b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/Challenge.java similarity index 68% rename from owl-bot-staging/java-confidentialcomputing/v1alpha1/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/Challenge.java rename to java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/Challenge.java index 0bb84e7e12d0..ad7fcc512c01 100644 --- a/owl-bot-staging/java-confidentialcomputing/v1alpha1/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/Challenge.java +++ b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/Challenge.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 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/confidentialcomputing/v1alpha1/service.proto package com.google.cloud.confidentialcomputing.v1alpha1; /** + * + * *
  * A Challenge from the server used to guarantee freshness of attestations
  * 
* * Protobuf type {@code google.cloud.confidentialcomputing.v1alpha1.Challenge} */ -public final class Challenge extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Challenge extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.confidentialcomputing.v1alpha1.Challenge) ChallengeOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Challenge.newBuilder() to construct. private Challenge(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Challenge() { name_ = ""; nonce_ = com.google.protobuf.ByteString.EMPTY; @@ -26,34 +44,39 @@ private Challenge() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Challenge(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1alpha1_Challenge_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1alpha1_Challenge_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1alpha1_Challenge_fieldAccessorTable + return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1alpha1_Challenge_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.confidentialcomputing.v1alpha1.Challenge.class, com.google.cloud.confidentialcomputing.v1alpha1.Challenge.Builder.class); + com.google.cloud.confidentialcomputing.v1alpha1.Challenge.class, + com.google.cloud.confidentialcomputing.v1alpha1.Challenge.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Output only. The resource name for this Challenge in the format
    * `projects/*/locations/*/challenges/*`
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -62,30 +85,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 for this Challenge in the format
    * `projects/*/locations/*/challenges/*`
    * 
* * 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 { @@ -96,11 +119,15 @@ public java.lang.String getName() { public static final int CREATE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. The time at which this Challenge was created
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -108,11 +135,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. The time at which this Challenge was created
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -120,11 +151,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. The time at which this Challenge was created
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -134,12 +168,16 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int EXPIRE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp expireTime_; /** + * + * *
    * Output only. The time at which this Challenge will no longer be usable. It
    * is also the expiration time for any tokens generated from this Challenge.
    * 
* - * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the expireTime field is set. */ @java.lang.Override @@ -147,12 +185,16 @@ public boolean hasExpireTime() { return expireTime_ != null; } /** + * + * *
    * Output only. The time at which this Challenge will no longer be usable. It
    * is also the expiration time for any tokens generated from this Challenge.
    * 
* - * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The expireTime. */ @java.lang.Override @@ -160,12 +202,15 @@ public com.google.protobuf.Timestamp getExpireTime() { return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } /** + * + * *
    * Output only. The time at which this Challenge will no longer be usable. It
    * is also the expiration time for any tokens generated from this Challenge.
    * 
* - * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { @@ -175,11 +220,14 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { public static final int USED_FIELD_NUMBER = 4; private boolean used_ = false; /** + * + * *
    * Output only. Indicates if this challenge has been used to generate a token.
    * 
* * bool used = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The used. */ @java.lang.Override @@ -190,12 +238,15 @@ public boolean getUsed() { public static final int NONCE_FIELD_NUMBER = 5; private com.google.protobuf.ByteString nonce_ = com.google.protobuf.ByteString.EMPTY; /** + * + * *
    * Output only. Random data which should be used when calling TPM2_Quote.
    * --
    * 
* * bytes nonce = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The nonce. */ @java.lang.Override @@ -204,6 +255,7 @@ public com.google.protobuf.ByteString getNonce() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -215,8 +267,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_); } @@ -245,20 +296,16 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); } if (expireTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getExpireTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getExpireTime()); } if (used_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, used_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, used_); } if (!nonce_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(5, nonce_); + size += com.google.protobuf.CodedOutputStream.computeBytesSize(5, nonce_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -268,29 +315,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.cloud.confidentialcomputing.v1alpha1.Challenge)) { return super.equals(obj); } - com.google.cloud.confidentialcomputing.v1alpha1.Challenge other = (com.google.cloud.confidentialcomputing.v1alpha1.Challenge) obj; + com.google.cloud.confidentialcomputing.v1alpha1.Challenge other = + (com.google.cloud.confidentialcomputing.v1alpha1.Challenge) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasExpireTime() != other.hasExpireTime()) return false; if (hasExpireTime()) { - if (!getExpireTime() - .equals(other.getExpireTime())) return false; + if (!getExpireTime().equals(other.getExpireTime())) return false; } - if (getUsed() - != other.getUsed()) return false; - if (!getNonce() - .equals(other.getNonce())) return false; + if (getUsed() != other.getUsed()) return false; + if (!getNonce().equals(other.getNonce())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -313,8 +356,7 @@ public int hashCode() { hash = (53 * hash) + getExpireTime().hashCode(); } hash = (37 * hash) + USED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getUsed()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUsed()); hash = (37 * hash) + NONCE_FIELD_NUMBER; hash = (53 * hash) + getNonce().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -323,131 +365,136 @@ public int hashCode() { } public static com.google.cloud.confidentialcomputing.v1alpha1.Challenge 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.confidentialcomputing.v1alpha1.Challenge 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.confidentialcomputing.v1alpha1.Challenge parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.confidentialcomputing.v1alpha1.Challenge 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.confidentialcomputing.v1alpha1.Challenge parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.confidentialcomputing.v1alpha1.Challenge 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.confidentialcomputing.v1alpha1.Challenge parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.confidentialcomputing.v1alpha1.Challenge parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.confidentialcomputing.v1alpha1.Challenge 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.confidentialcomputing.v1alpha1.Challenge parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.confidentialcomputing.v1alpha1.Challenge parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.confidentialcomputing.v1alpha1.Challenge 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.confidentialcomputing.v1alpha1.Challenge 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.confidentialcomputing.v1alpha1.Challenge 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.confidentialcomputing.v1alpha1.Challenge prototype) { + + public static Builder newBuilder( + com.google.cloud.confidentialcomputing.v1alpha1.Challenge 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 Challenge from the server used to guarantee freshness of attestations
    * 
* * Protobuf type {@code google.cloud.confidentialcomputing.v1alpha1.Challenge} */ - 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.confidentialcomputing.v1alpha1.Challenge) com.google.cloud.confidentialcomputing.v1alpha1.ChallengeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1alpha1_Challenge_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1alpha1_Challenge_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1alpha1_Challenge_fieldAccessorTable + return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1alpha1_Challenge_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.confidentialcomputing.v1alpha1.Challenge.class, com.google.cloud.confidentialcomputing.v1alpha1.Challenge.Builder.class); + com.google.cloud.confidentialcomputing.v1alpha1.Challenge.class, + com.google.cloud.confidentialcomputing.v1alpha1.Challenge.Builder.class); } // Construct using com.google.cloud.confidentialcomputing.v1alpha1.Challenge.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -469,9 +516,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1alpha1_Challenge_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1alpha1_Challenge_descriptor; } @java.lang.Override @@ -490,8 +537,11 @@ public com.google.cloud.confidentialcomputing.v1alpha1.Challenge build() { @java.lang.Override public com.google.cloud.confidentialcomputing.v1alpha1.Challenge buildPartial() { - com.google.cloud.confidentialcomputing.v1alpha1.Challenge result = new com.google.cloud.confidentialcomputing.v1alpha1.Challenge(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.confidentialcomputing.v1alpha1.Challenge result = + new com.google.cloud.confidentialcomputing.v1alpha1.Challenge(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -502,14 +552,10 @@ private void buildPartial0(com.google.cloud.confidentialcomputing.v1alpha1.Chall result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.createTime_ = createTimeBuilder_ == null - ? createTime_ - : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { - result.expireTime_ = expireTimeBuilder_ == null - ? expireTime_ - : expireTimeBuilder_.build(); + result.expireTime_ = expireTimeBuilder_ == null ? expireTime_ : expireTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.used_ = used_; @@ -523,38 +569,39 @@ private void buildPartial0(com.google.cloud.confidentialcomputing.v1alpha1.Chall 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.confidentialcomputing.v1alpha1.Challenge) { - return mergeFrom((com.google.cloud.confidentialcomputing.v1alpha1.Challenge)other); + return mergeFrom((com.google.cloud.confidentialcomputing.v1alpha1.Challenge) other); } else { super.mergeFrom(other); return this; @@ -562,7 +609,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.confidentialcomputing.v1alpha1.Challenge other) { - if (other == com.google.cloud.confidentialcomputing.v1alpha1.Challenge.getDefaultInstance()) return this; + if (other == com.google.cloud.confidentialcomputing.v1alpha1.Challenge.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -606,41 +654,43 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getCreateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getExpireTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: { - used_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 42: { - nonce_ = input.readBytes(); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getExpireTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + used_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: + { + nonce_ = input.readBytes(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -650,23 +700,26 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Output only. The resource name for this Challenge in the format
      * `projects/*/locations/*/challenges/*`
      * 
* * 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; @@ -675,21 +728,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name for this Challenge in the format
      * `projects/*/locations/*/challenges/*`
      * 
* * 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 { @@ -697,30 +751,37 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name for this Challenge in the format
      * `projects/*/locations/*/challenges/*`
      * 
* * 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(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Output only. The resource name for this Challenge in the format
      * `projects/*/locations/*/challenges/*`
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -730,18 +791,22 @@ public Builder clearName() { return this; } /** + * + * *
      * Output only. The resource name for this Challenge in the format
      * `projects/*/locations/*/challenges/*`
      * 
* * 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(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -751,39 +816,58 @@ public Builder setNameBytes( private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * Output only. The time at which this Challenge was created
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Output only. The time at which this Challenge was created
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The time at which this Challenge was created
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -799,14 +883,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time at which this Challenge was created
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -817,17 +904,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. The time at which this Challenge was created
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -840,11 +931,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time at which this Challenge was created
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000002); @@ -857,11 +952,15 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. The time at which this Challenge was created
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000002; @@ -869,36 +968,48 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time at which this Challenge was created
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. The time at which this Challenge was created
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.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> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -906,42 +1017,61 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp expireTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> expireTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + expireTimeBuilder_; /** + * + * *
      * Output only. The time at which this Challenge will no longer be usable. It
      * is also the expiration time for any tokens generated from this Challenge.
      * 
* - * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the expireTime field is set. */ public boolean hasExpireTime() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Output only. The time at which this Challenge will no longer be usable. It
      * is also the expiration time for any tokens generated from this Challenge.
      * 
* - * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The expireTime. */ public com.google.protobuf.Timestamp getExpireTime() { if (expireTimeBuilder_ == null) { - return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; + return expireTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : expireTime_; } else { return expireTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The time at which this Challenge will no longer be usable. It
      * is also the expiration time for any tokens generated from this Challenge.
      * 
* - * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setExpireTime(com.google.protobuf.Timestamp value) { if (expireTimeBuilder_ == null) { @@ -957,15 +1087,18 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time at which this Challenge will no longer be usable. It
      * is also the expiration time for any tokens generated from this Challenge.
      * 
* - * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setExpireTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (expireTimeBuilder_ == null) { expireTime_ = builderForValue.build(); } else { @@ -976,18 +1109,22 @@ public Builder setExpireTime( return this; } /** + * + * *
      * Output only. The time at which this Challenge will no longer be usable. It
      * is also the expiration time for any tokens generated from this Challenge.
      * 
* - * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { if (expireTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - expireTime_ != null && - expireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && expireTime_ != null + && expireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getExpireTimeBuilder().mergeFrom(value); } else { expireTime_ = value; @@ -1000,12 +1137,16 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time at which this Challenge will no longer be usable. It
      * is also the expiration time for any tokens generated from this Challenge.
      * 
* - * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearExpireTime() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1018,12 +1159,16 @@ public Builder clearExpireTime() { return this; } /** + * + * *
      * Output only. The time at which this Challenge will no longer be usable. It
      * is also the expiration time for any tokens generated from this Challenge.
      * 
* - * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { bitField0_ |= 0x00000004; @@ -1031,50 +1176,65 @@ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { return getExpireTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time at which this Challenge will no longer be usable. It
      * is also the expiration time for any tokens generated from this Challenge.
      * 
* - * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { if (expireTimeBuilder_ != null) { return expireTimeBuilder_.getMessageOrBuilder(); } else { - return expireTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; + return expireTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : expireTime_; } } /** + * + * *
      * Output only. The time at which this Challenge will no longer be usable. It
      * is also the expiration time for any tokens generated from this Challenge.
      * 
* - * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 3 [(.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> getExpireTimeFieldBuilder() { if (expireTimeBuilder_ == null) { - expireTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getExpireTime(), - getParentForChildren(), - isClean()); + expireTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getExpireTime(), getParentForChildren(), isClean()); expireTime_ = null; } return expireTimeBuilder_; } - private boolean used_ ; + private boolean used_; /** + * + * *
      * Output only. Indicates if this challenge has been used to generate a token.
      * 
* * bool used = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The used. */ @java.lang.Override @@ -1082,11 +1242,14 @@ public boolean getUsed() { return used_; } /** + * + * *
      * Output only. Indicates if this challenge has been used to generate a token.
      * 
* * bool used = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The used to set. * @return This builder for chaining. */ @@ -1098,11 +1261,14 @@ public Builder setUsed(boolean value) { return this; } /** + * + * *
      * Output only. Indicates if this challenge has been used to generate a token.
      * 
* * bool used = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearUsed() { @@ -1114,12 +1280,15 @@ public Builder clearUsed() { private com.google.protobuf.ByteString nonce_ = com.google.protobuf.ByteString.EMPTY; /** + * + * *
      * Output only. Random data which should be used when calling TPM2_Quote.
      * --
      * 
* * bytes nonce = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The nonce. */ @java.lang.Override @@ -1127,29 +1296,37 @@ public com.google.protobuf.ByteString getNonce() { return nonce_; } /** + * + * *
      * Output only. Random data which should be used when calling TPM2_Quote.
      * --
      * 
* * bytes nonce = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The nonce to set. * @return This builder for chaining. */ public Builder setNonce(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + if (value == null) { + throw new NullPointerException(); + } nonce_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * Output only. Random data which should be used when calling TPM2_Quote.
      * --
      * 
* * bytes nonce = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearNonce() { @@ -1158,9 +1335,9 @@ public Builder clearNonce() { 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); } @@ -1170,12 +1347,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.confidentialcomputing.v1alpha1.Challenge) } // @@protoc_insertion_point(class_scope:google.cloud.confidentialcomputing.v1alpha1.Challenge) private static final com.google.cloud.confidentialcomputing.v1alpha1.Challenge DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.confidentialcomputing.v1alpha1.Challenge(); } @@ -1184,27 +1361,27 @@ public static com.google.cloud.confidentialcomputing.v1alpha1.Challenge getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Challenge parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Challenge parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1219,6 +1396,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.confidentialcomputing.v1alpha1.Challenge getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-confidentialcomputing/v1alpha1/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/ChallengeName.java b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/ChallengeName.java similarity index 100% rename from owl-bot-staging/java-confidentialcomputing/v1alpha1/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/ChallengeName.java rename to java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/ChallengeName.java diff --git a/owl-bot-staging/java-confidentialcomputing/v1alpha1/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/ChallengeOrBuilder.java b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/ChallengeOrBuilder.java similarity index 73% rename from owl-bot-staging/java-confidentialcomputing/v1alpha1/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/ChallengeOrBuilder.java rename to java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/ChallengeOrBuilder.java index f9d10e70e958..5654121fddc9 100644 --- a/owl-bot-staging/java-confidentialcomputing/v1alpha1/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/ChallengeOrBuilder.java +++ b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/ChallengeOrBuilder.java @@ -1,108 +1,157 @@ +/* + * Copyright 2023 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/confidentialcomputing/v1alpha1/service.proto package com.google.cloud.confidentialcomputing.v1alpha1; -public interface ChallengeOrBuilder extends +public interface ChallengeOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.confidentialcomputing.v1alpha1.Challenge) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The resource name for this Challenge in the format
    * `projects/*/locations/*/challenges/*`
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. The resource name for this Challenge in the format
    * `projects/*/locations/*/challenges/*`
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Output only. The time at which this Challenge was created
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. The time at which this Challenge was created
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. The time at which this Challenge was created
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. The time at which this Challenge will no longer be usable. It
    * is also the expiration time for any tokens generated from this Challenge.
    * 
* - * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the expireTime field is set. */ boolean hasExpireTime(); /** + * + * *
    * Output only. The time at which this Challenge will no longer be usable. It
    * is also the expiration time for any tokens generated from this Challenge.
    * 
* - * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The expireTime. */ com.google.protobuf.Timestamp getExpireTime(); /** + * + * *
    * Output only. The time at which this Challenge will no longer be usable. It
    * is also the expiration time for any tokens generated from this Challenge.
    * 
* - * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder(); /** + * + * *
    * Output only. Indicates if this challenge has been used to generate a token.
    * 
* * bool used = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The used. */ boolean getUsed(); /** + * + * *
    * Output only. Random data which should be used when calling TPM2_Quote.
    * --
    * 
* * bytes nonce = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The nonce. */ com.google.protobuf.ByteString getNonce(); diff --git a/owl-bot-staging/java-confidentialcomputing/v1alpha1/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/CreateChallengeRequest.java b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/CreateChallengeRequest.java similarity index 59% rename from owl-bot-staging/java-confidentialcomputing/v1alpha1/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/CreateChallengeRequest.java rename to java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/CreateChallengeRequest.java index 7cca2ae5aee4..1a6feaa5215b 100644 --- a/owl-bot-staging/java-confidentialcomputing/v1alpha1/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/CreateChallengeRequest.java +++ b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/CreateChallengeRequest.java @@ -1,58 +1,83 @@ +/* + * Copyright 2023 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/confidentialcomputing/v1alpha1/service.proto package com.google.cloud.confidentialcomputing.v1alpha1; /** + * + * *
  * Message for creating a Challenge
  * 
* * Protobuf type {@code google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest} */ -public final class CreateChallengeRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateChallengeRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest) CreateChallengeRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateChallengeRequest.newBuilder() to construct. private CreateChallengeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateChallengeRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateChallengeRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1alpha1_CreateChallengeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1alpha1_CreateChallengeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1alpha1_CreateChallengeRequest_fieldAccessorTable + return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1alpha1_CreateChallengeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest.class, com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest.Builder.class); + com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest.class, + com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The resource name of the location where the Challenge will be
    * used, in the format `projects/*/locations/*`.
    * 
* - * 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 @@ -61,30 +86,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 location where the Challenge will be
    * used, in the format `projects/*/locations/*`.
    * 
* - * 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 { @@ -95,12 +122,17 @@ public java.lang.String getParent() { public static final int CHALLENGE_FIELD_NUMBER = 2; private com.google.cloud.confidentialcomputing.v1alpha1.Challenge challenge_; /** + * + * *
    * Required. The Challenge to be created. Currently this field can be empty as
    * all the Challenge fields are set by the server.
    * 
* - * .google.cloud.confidentialcomputing.v1alpha1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.confidentialcomputing.v1alpha1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the challenge field is set. */ @java.lang.Override @@ -108,32 +140,47 @@ public boolean hasChallenge() { return challenge_ != null; } /** + * + * *
    * Required. The Challenge to be created. Currently this field can be empty as
    * all the Challenge fields are set by the server.
    * 
* - * .google.cloud.confidentialcomputing.v1alpha1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.confidentialcomputing.v1alpha1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The challenge. */ @java.lang.Override public com.google.cloud.confidentialcomputing.v1alpha1.Challenge getChallenge() { - return challenge_ == null ? com.google.cloud.confidentialcomputing.v1alpha1.Challenge.getDefaultInstance() : challenge_; + return challenge_ == null + ? com.google.cloud.confidentialcomputing.v1alpha1.Challenge.getDefaultInstance() + : challenge_; } /** + * + * *
    * Required. The Challenge to be created. Currently this field can be empty as
    * all the Challenge fields are set by the server.
    * 
* - * .google.cloud.confidentialcomputing.v1alpha1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.confidentialcomputing.v1alpha1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.confidentialcomputing.v1alpha1.ChallengeOrBuilder getChallengeOrBuilder() { - return challenge_ == null ? com.google.cloud.confidentialcomputing.v1alpha1.Challenge.getDefaultInstance() : challenge_; + public com.google.cloud.confidentialcomputing.v1alpha1.ChallengeOrBuilder + getChallengeOrBuilder() { + return challenge_ == null + ? com.google.cloud.confidentialcomputing.v1alpha1.Challenge.getDefaultInstance() + : challenge_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -145,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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -166,8 +212,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (challenge_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getChallenge()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getChallenge()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -177,19 +222,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.confidentialcomputing.v1alpha1.CreateChallengeRequest)) { return super.equals(obj); } - com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest other = (com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest) obj; + com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest other = + (com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasChallenge() != other.hasChallenge()) return false; if (hasChallenge()) { - if (!getChallenge() - .equals(other.getChallenge())) return false; + if (!getChallenge().equals(other.getChallenge())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -214,131 +258,138 @@ public int hashCode() { } public static com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest 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.confidentialcomputing.v1alpha1.CreateChallengeRequest 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.confidentialcomputing.v1alpha1.CreateChallengeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest 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.confidentialcomputing.v1alpha1.CreateChallengeRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest 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.confidentialcomputing.v1alpha1.CreateChallengeRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest 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.confidentialcomputing.v1alpha1.CreateChallengeRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest 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.confidentialcomputing.v1alpha1.CreateChallengeRequest + 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.confidentialcomputing.v1alpha1.CreateChallengeRequest 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.confidentialcomputing.v1alpha1.CreateChallengeRequest 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.confidentialcomputing.v1alpha1.CreateChallengeRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest 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; } /** + * + * *
    * Message for creating a Challenge
    * 
* * Protobuf type {@code google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest} */ - 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.confidentialcomputing.v1alpha1.CreateChallengeRequest) com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1alpha1_CreateChallengeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1alpha1_CreateChallengeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1alpha1_CreateChallengeRequest_fieldAccessorTable + return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1alpha1_CreateChallengeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest.class, com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest.Builder.class); + com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest.class, + com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest.Builder.class); } - // Construct using com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -353,19 +404,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1alpha1_CreateChallengeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1alpha1_CreateChallengeRequest_descriptor; } @java.lang.Override - public com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest getDefaultInstanceForType() { - return com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest.getDefaultInstance(); + public com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest + getDefaultInstanceForType() { + return com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest build() { - com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest result = buildPartial(); + com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -374,21 +428,23 @@ public com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest bu @java.lang.Override public com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest buildPartial() { - com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest result = new com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest result = + new com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest result) { + private void buildPartial0( + com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.challenge_ = challengeBuilder_ == null - ? challenge_ - : challengeBuilder_.build(); + result.challenge_ = challengeBuilder_ == null ? challenge_ : challengeBuilder_.build(); } } @@ -396,46 +452,51 @@ private void buildPartial0(com.google.cloud.confidentialcomputing.v1alpha1.Creat 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.confidentialcomputing.v1alpha1.CreateChallengeRequest) { - return mergeFrom((com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest)other); + return mergeFrom( + (com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest other) { - if (other == com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest other) { + if (other + == com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest + .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -470,24 +531,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getChallengeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getChallengeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -497,23 +559,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The resource name of the location where the Challenge will be
      * used, in the format `projects/*/locations/*`.
      * 
* - * 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; @@ -522,21 +589,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource name of the location where the Challenge will be
      * used, in the format `projects/*/locations/*`.
      * 
* - * 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 { @@ -544,30 +614,41 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource name of the location where the Challenge will be
      * used, in the format `projects/*/locations/*`.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The resource name of the location where the Challenge will be
      * used, in the format `projects/*/locations/*`.
      * 
* - * 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() { @@ -577,18 +658,24 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The resource name of the location where the Challenge will be
      * used, in the format `projects/*/locations/*`.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -598,42 +685,61 @@ public Builder setParentBytes( private com.google.cloud.confidentialcomputing.v1alpha1.Challenge challenge_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.confidentialcomputing.v1alpha1.Challenge, com.google.cloud.confidentialcomputing.v1alpha1.Challenge.Builder, com.google.cloud.confidentialcomputing.v1alpha1.ChallengeOrBuilder> challengeBuilder_; + com.google.cloud.confidentialcomputing.v1alpha1.Challenge, + com.google.cloud.confidentialcomputing.v1alpha1.Challenge.Builder, + com.google.cloud.confidentialcomputing.v1alpha1.ChallengeOrBuilder> + challengeBuilder_; /** + * + * *
      * Required. The Challenge to be created. Currently this field can be empty as
      * all the Challenge fields are set by the server.
      * 
* - * .google.cloud.confidentialcomputing.v1alpha1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.confidentialcomputing.v1alpha1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the challenge field is set. */ public boolean hasChallenge() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. The Challenge to be created. Currently this field can be empty as
      * all the Challenge fields are set by the server.
      * 
* - * .google.cloud.confidentialcomputing.v1alpha1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.confidentialcomputing.v1alpha1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The challenge. */ public com.google.cloud.confidentialcomputing.v1alpha1.Challenge getChallenge() { if (challengeBuilder_ == null) { - return challenge_ == null ? com.google.cloud.confidentialcomputing.v1alpha1.Challenge.getDefaultInstance() : challenge_; + return challenge_ == null + ? com.google.cloud.confidentialcomputing.v1alpha1.Challenge.getDefaultInstance() + : challenge_; } else { return challengeBuilder_.getMessage(); } } /** + * + * *
      * Required. The Challenge to be created. Currently this field can be empty as
      * all the Challenge fields are set by the server.
      * 
* - * .google.cloud.confidentialcomputing.v1alpha1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.confidentialcomputing.v1alpha1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setChallenge(com.google.cloud.confidentialcomputing.v1alpha1.Challenge value) { if (challengeBuilder_ == null) { @@ -649,12 +755,16 @@ public Builder setChallenge(com.google.cloud.confidentialcomputing.v1alpha1.Chal return this; } /** + * + * *
      * Required. The Challenge to be created. Currently this field can be empty as
      * all the Challenge fields are set by the server.
      * 
* - * .google.cloud.confidentialcomputing.v1alpha1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.confidentialcomputing.v1alpha1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setChallenge( com.google.cloud.confidentialcomputing.v1alpha1.Challenge.Builder builderForValue) { @@ -668,18 +778,23 @@ public Builder setChallenge( return this; } /** + * + * *
      * Required. The Challenge to be created. Currently this field can be empty as
      * all the Challenge fields are set by the server.
      * 
* - * .google.cloud.confidentialcomputing.v1alpha1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.confidentialcomputing.v1alpha1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeChallenge(com.google.cloud.confidentialcomputing.v1alpha1.Challenge value) { if (challengeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - challenge_ != null && - challenge_ != com.google.cloud.confidentialcomputing.v1alpha1.Challenge.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && challenge_ != null + && challenge_ + != com.google.cloud.confidentialcomputing.v1alpha1.Challenge.getDefaultInstance()) { getChallengeBuilder().mergeFrom(value); } else { challenge_ = value; @@ -692,12 +807,16 @@ public Builder mergeChallenge(com.google.cloud.confidentialcomputing.v1alpha1.Ch return this; } /** + * + * *
      * Required. The Challenge to be created. Currently this field can be empty as
      * all the Challenge fields are set by the server.
      * 
* - * .google.cloud.confidentialcomputing.v1alpha1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.confidentialcomputing.v1alpha1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearChallenge() { bitField0_ = (bitField0_ & ~0x00000002); @@ -710,12 +829,16 @@ public Builder clearChallenge() { return this; } /** + * + * *
      * Required. The Challenge to be created. Currently this field can be empty as
      * all the Challenge fields are set by the server.
      * 
* - * .google.cloud.confidentialcomputing.v1alpha1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.confidentialcomputing.v1alpha1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.confidentialcomputing.v1alpha1.Challenge.Builder getChallengeBuilder() { bitField0_ |= 0x00000002; @@ -723,45 +846,58 @@ public com.google.cloud.confidentialcomputing.v1alpha1.Challenge.Builder getChal return getChallengeFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The Challenge to be created. Currently this field can be empty as
      * all the Challenge fields are set by the server.
      * 
* - * .google.cloud.confidentialcomputing.v1alpha1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.confidentialcomputing.v1alpha1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.confidentialcomputing.v1alpha1.ChallengeOrBuilder getChallengeOrBuilder() { + public com.google.cloud.confidentialcomputing.v1alpha1.ChallengeOrBuilder + getChallengeOrBuilder() { if (challengeBuilder_ != null) { return challengeBuilder_.getMessageOrBuilder(); } else { - return challenge_ == null ? - com.google.cloud.confidentialcomputing.v1alpha1.Challenge.getDefaultInstance() : challenge_; + return challenge_ == null + ? com.google.cloud.confidentialcomputing.v1alpha1.Challenge.getDefaultInstance() + : challenge_; } } /** + * + * *
      * Required. The Challenge to be created. Currently this field can be empty as
      * all the Challenge fields are set by the server.
      * 
* - * .google.cloud.confidentialcomputing.v1alpha1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.confidentialcomputing.v1alpha1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.confidentialcomputing.v1alpha1.Challenge, com.google.cloud.confidentialcomputing.v1alpha1.Challenge.Builder, com.google.cloud.confidentialcomputing.v1alpha1.ChallengeOrBuilder> + com.google.cloud.confidentialcomputing.v1alpha1.Challenge, + com.google.cloud.confidentialcomputing.v1alpha1.Challenge.Builder, + com.google.cloud.confidentialcomputing.v1alpha1.ChallengeOrBuilder> getChallengeFieldBuilder() { if (challengeBuilder_ == null) { - challengeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.confidentialcomputing.v1alpha1.Challenge, com.google.cloud.confidentialcomputing.v1alpha1.Challenge.Builder, com.google.cloud.confidentialcomputing.v1alpha1.ChallengeOrBuilder>( - getChallenge(), - getParentForChildren(), - isClean()); + challengeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.confidentialcomputing.v1alpha1.Challenge, + com.google.cloud.confidentialcomputing.v1alpha1.Challenge.Builder, + com.google.cloud.confidentialcomputing.v1alpha1.ChallengeOrBuilder>( + getChallenge(), getParentForChildren(), isClean()); challenge_ = null; } return challengeBuilder_; } + @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,41 +907,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest) - private static final com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest DEFAULT_INSTANCE; + private static final com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest(); } - public static com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest getDefaultInstance() { + public static com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateChallengeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateChallengeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -817,9 +955,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest getDefaultInstanceForType() { + public com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-confidentialcomputing/v1alpha1/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/CreateChallengeRequestOrBuilder.java b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/CreateChallengeRequestOrBuilder.java similarity index 52% rename from owl-bot-staging/java-confidentialcomputing/v1alpha1/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/CreateChallengeRequestOrBuilder.java rename to java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/CreateChallengeRequestOrBuilder.java index bb1432c948a3..2a935675332d 100644 --- a/owl-bot-staging/java-confidentialcomputing/v1alpha1/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/CreateChallengeRequestOrBuilder.java +++ b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/CreateChallengeRequestOrBuilder.java @@ -1,61 +1,100 @@ +/* + * Copyright 2023 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/confidentialcomputing/v1alpha1/service.proto package com.google.cloud.confidentialcomputing.v1alpha1; -public interface CreateChallengeRequestOrBuilder extends +public interface CreateChallengeRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource name of the location where the Challenge will be
    * used, in the format `projects/*/locations/*`.
    * 
* - * 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 location where the Challenge will be
    * used, in the format `projects/*/locations/*`.
    * 
* - * 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 Challenge to be created. Currently this field can be empty as
    * all the Challenge fields are set by the server.
    * 
* - * .google.cloud.confidentialcomputing.v1alpha1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.confidentialcomputing.v1alpha1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the challenge field is set. */ boolean hasChallenge(); /** + * + * *
    * Required. The Challenge to be created. Currently this field can be empty as
    * all the Challenge fields are set by the server.
    * 
* - * .google.cloud.confidentialcomputing.v1alpha1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.confidentialcomputing.v1alpha1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The challenge. */ com.google.cloud.confidentialcomputing.v1alpha1.Challenge getChallenge(); /** + * + * *
    * Required. The Challenge to be created. Currently this field can be empty as
    * all the Challenge fields are set by the server.
    * 
* - * .google.cloud.confidentialcomputing.v1alpha1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.confidentialcomputing.v1alpha1.Challenge challenge = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.confidentialcomputing.v1alpha1.ChallengeOrBuilder getChallengeOrBuilder(); } diff --git a/owl-bot-staging/java-confidentialcomputing/v1alpha1/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/GcpCredentials.java b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/GcpCredentials.java similarity index 70% rename from owl-bot-staging/java-confidentialcomputing/v1alpha1/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/GcpCredentials.java rename to java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/GcpCredentials.java index 6e2ef8b3f743..b1c5e8386949 100644 --- a/owl-bot-staging/java-confidentialcomputing/v1alpha1/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/GcpCredentials.java +++ b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/GcpCredentials.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 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/confidentialcomputing/v1alpha1/service.proto package com.google.cloud.confidentialcomputing.v1alpha1; /** + * + * *
  * Credentials issued by GCP which are linked to the platform attestation. These
  * will be verified server-side as part of attestaion verification.
@@ -11,43 +28,48 @@
  *
  * Protobuf type {@code google.cloud.confidentialcomputing.v1alpha1.GcpCredentials}
  */
-public final class GcpCredentials extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class GcpCredentials extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.confidentialcomputing.v1alpha1.GcpCredentials)
     GcpCredentialsOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use GcpCredentials.newBuilder() to construct.
   private GcpCredentials(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private GcpCredentials() {
     idTokens_ = java.util.Collections.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new GcpCredentials();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1alpha1_GcpCredentials_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto
+        .internal_static_google_cloud_confidentialcomputing_v1alpha1_GcpCredentials_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1alpha1_GcpCredentials_fieldAccessorTable
+    return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto
+        .internal_static_google_cloud_confidentialcomputing_v1alpha1_GcpCredentials_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials.class, com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials.Builder.class);
+            com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials.class,
+            com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials.Builder.class);
   }
 
   public static final int ID_TOKENS_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private java.util.List idTokens_;
   /**
+   *
+   *
    * 
    * A list of service account OpenID Connect ID tokens identifying which
    * service account identities should be included in the claims_token. These
@@ -58,14 +80,16 @@ protected java.lang.Object newInstance(
    * 
* * repeated bytes id_tokens = 1; + * * @return A list containing the idTokens. */ @java.lang.Override - public java.util.List - getIdTokensList() { + public java.util.List getIdTokensList() { return idTokens_; } /** + * + * *
    * A list of service account OpenID Connect ID tokens identifying which
    * service account identities should be included in the claims_token. These
@@ -76,12 +100,15 @@ protected java.lang.Object newInstance(
    * 
* * repeated bytes id_tokens = 1; + * * @return The count of idTokens. */ public int getIdTokensCount() { return idTokens_.size(); } /** + * + * *
    * A list of service account OpenID Connect ID tokens identifying which
    * service account identities should be included in the claims_token. These
@@ -92,6 +119,7 @@ public int getIdTokensCount() {
    * 
* * repeated bytes id_tokens = 1; + * * @param index The index of the element to return. * @return The idTokens at the given index. */ @@ -100,6 +128,7 @@ public com.google.protobuf.ByteString getIdTokens(int index) { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -111,8 +140,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 < idTokens_.size(); i++) { output.writeBytes(1, idTokens_.get(i)); } @@ -128,8 +156,7 @@ public int getSerializedSize() { { int dataSize = 0; for (int i = 0; i < idTokens_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeBytesSizeNoTag(idTokens_.get(i)); + dataSize += com.google.protobuf.CodedOutputStream.computeBytesSizeNoTag(idTokens_.get(i)); } size += dataSize; size += 1 * getIdTokensList().size(); @@ -142,15 +169,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.confidentialcomputing.v1alpha1.GcpCredentials)) { return super.equals(obj); } - com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials other = (com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials) obj; + com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials other = + (com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials) obj; - if (!getIdTokensList() - .equals(other.getIdTokensList())) return false; + if (!getIdTokensList().equals(other.getIdTokensList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -172,98 +199,104 @@ public int hashCode() { } public static com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials 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.confidentialcomputing.v1alpha1.GcpCredentials 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.confidentialcomputing.v1alpha1.GcpCredentials parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials 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.confidentialcomputing.v1alpha1.GcpCredentials parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials 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.confidentialcomputing.v1alpha1.GcpCredentials parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials 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.confidentialcomputing.v1alpha1.GcpCredentials parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials 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.confidentialcomputing.v1alpha1.GcpCredentials 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.confidentialcomputing.v1alpha1.GcpCredentials 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.confidentialcomputing.v1alpha1.GcpCredentials prototype) { + + public static Builder newBuilder( + com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials 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; } /** + * + * *
    * Credentials issued by GCP which are linked to the platform attestation. These
    * will be verified server-side as part of attestaion verification.
@@ -271,33 +304,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.confidentialcomputing.v1alpha1.GcpCredentials}
    */
-  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.confidentialcomputing.v1alpha1.GcpCredentials)
       com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentialsOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1alpha1_GcpCredentials_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto
+          .internal_static_google_cloud_confidentialcomputing_v1alpha1_GcpCredentials_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1alpha1_GcpCredentials_fieldAccessorTable
+      return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto
+          .internal_static_google_cloud_confidentialcomputing_v1alpha1_GcpCredentials_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials.class, com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials.Builder.class);
+              com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials.class,
+              com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials.Builder.class);
     }
 
     // Construct using com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -307,13 +339,14 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1alpha1_GcpCredentials_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto
+          .internal_static_google_cloud_confidentialcomputing_v1alpha1_GcpCredentials_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials getDefaultInstanceForType() {
+    public com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials
+        getDefaultInstanceForType() {
       return com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials.getDefaultInstance();
     }
 
@@ -328,14 +361,18 @@ public com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials build() {
 
     @java.lang.Override
     public com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials buildPartial() {
-      com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials result = new com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials(this);
+      com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials result =
+          new com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials result) {
+    private void buildPartialRepeatedFields(
+        com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials result) {
       if (((bitField0_ & 0x00000001) != 0)) {
         idTokens_ = java.util.Collections.unmodifiableList(idTokens_);
         bitField0_ = (bitField0_ & ~0x00000001);
@@ -343,7 +380,8 @@ private void buildPartialRepeatedFields(com.google.cloud.confidentialcomputing.v
       result.idTokens_ = idTokens_;
     }
 
-    private void buildPartial0(com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials result) {
+    private void buildPartial0(
+        com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials result) {
       int from_bitField0_ = bitField0_;
     }
 
@@ -351,38 +389,39 @@ private void buildPartial0(com.google.cloud.confidentialcomputing.v1alpha1.GcpCr
     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.confidentialcomputing.v1alpha1.GcpCredentials) {
-        return mergeFrom((com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials)other);
+        return mergeFrom((com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -390,7 +429,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials other) {
-      if (other == com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials.getDefaultInstance()) return this;
+      if (other
+          == com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials.getDefaultInstance())
+        return this;
       if (!other.idTokens_.isEmpty()) {
         if (idTokens_.isEmpty()) {
           idTokens_ = other.idTokens_;
@@ -427,18 +468,20 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              com.google.protobuf.ByteString v = input.readBytes();
-              ensureIdTokensIsMutable();
-              idTokens_.add(v);
-              break;
-            } // case 10
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                com.google.protobuf.ByteString v = input.readBytes();
+                ensureIdTokensIsMutable();
+                idTokens_.add(v);
+                break;
+              } // case 10
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -448,9 +491,12 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
-    private java.util.List idTokens_ = java.util.Collections.emptyList();
+    private java.util.List idTokens_ =
+        java.util.Collections.emptyList();
+
     private void ensureIdTokensIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         idTokens_ = new java.util.ArrayList(idTokens_);
@@ -458,6 +504,8 @@ private void ensureIdTokensIsMutable() {
       }
     }
     /**
+     *
+     *
      * 
      * A list of service account OpenID Connect ID tokens identifying which
      * service account identities should be included in the claims_token. These
@@ -468,14 +516,17 @@ private void ensureIdTokensIsMutable() {
      * 
* * repeated bytes id_tokens = 1; + * * @return A list containing the idTokens. */ - public java.util.List - getIdTokensList() { - return ((bitField0_ & 0x00000001) != 0) ? - java.util.Collections.unmodifiableList(idTokens_) : idTokens_; + public java.util.List getIdTokensList() { + return ((bitField0_ & 0x00000001) != 0) + ? java.util.Collections.unmodifiableList(idTokens_) + : idTokens_; } /** + * + * *
      * A list of service account OpenID Connect ID tokens identifying which
      * service account identities should be included in the claims_token. These
@@ -486,12 +537,15 @@ private void ensureIdTokensIsMutable() {
      * 
* * repeated bytes id_tokens = 1; + * * @return The count of idTokens. */ public int getIdTokensCount() { return idTokens_.size(); } /** + * + * *
      * A list of service account OpenID Connect ID tokens identifying which
      * service account identities should be included in the claims_token. These
@@ -502,6 +556,7 @@ public int getIdTokensCount() {
      * 
* * repeated bytes id_tokens = 1; + * * @param index The index of the element to return. * @return The idTokens at the given index. */ @@ -509,6 +564,8 @@ public com.google.protobuf.ByteString getIdTokens(int index) { return idTokens_.get(index); } /** + * + * *
      * A list of service account OpenID Connect ID tokens identifying which
      * service account identities should be included in the claims_token. These
@@ -519,19 +576,23 @@ public com.google.protobuf.ByteString getIdTokens(int index) {
      * 
* * repeated bytes id_tokens = 1; + * * @param index The index to set the value at. * @param value The idTokens to set. * @return This builder for chaining. */ - public Builder setIdTokens( - int index, com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setIdTokens(int index, com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } ensureIdTokensIsMutable(); idTokens_.set(index, value); onChanged(); return this; } /** + * + * *
      * A list of service account OpenID Connect ID tokens identifying which
      * service account identities should be included in the claims_token. These
@@ -542,17 +603,22 @@ public Builder setIdTokens(
      * 
* * repeated bytes id_tokens = 1; + * * @param value The idTokens to add. * @return This builder for chaining. */ public Builder addIdTokens(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + if (value == null) { + throw new NullPointerException(); + } ensureIdTokensIsMutable(); idTokens_.add(value); onChanged(); return this; } /** + * + * *
      * A list of service account OpenID Connect ID tokens identifying which
      * service account identities should be included in the claims_token. These
@@ -563,18 +629,20 @@ public Builder addIdTokens(com.google.protobuf.ByteString value) {
      * 
* * repeated bytes id_tokens = 1; + * * @param values The idTokens to add. * @return This builder for chaining. */ public Builder addAllIdTokens( java.lang.Iterable values) { ensureIdTokensIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, idTokens_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, idTokens_); onChanged(); return this; } /** + * + * *
      * A list of service account OpenID Connect ID tokens identifying which
      * service account identities should be included in the claims_token. These
@@ -585,6 +653,7 @@ public Builder addAllIdTokens(
      * 
* * repeated bytes id_tokens = 1; + * * @return This builder for chaining. */ public Builder clearIdTokens() { @@ -593,9 +662,9 @@ public Builder clearIdTokens() { 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); } @@ -605,41 +674,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.confidentialcomputing.v1alpha1.GcpCredentials) } // @@protoc_insertion_point(class_scope:google.cloud.confidentialcomputing.v1alpha1.GcpCredentials) - private static final com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials DEFAULT_INSTANCE; + private static final com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials(); } - public static com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials getDefaultInstance() { + public static com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GcpCredentials parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcpCredentials parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -651,9 +722,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials getDefaultInstanceForType() { + public com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-confidentialcomputing/v1alpha1/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/GcpCredentialsOrBuilder.java b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/GcpCredentialsOrBuilder.java similarity index 74% rename from owl-bot-staging/java-confidentialcomputing/v1alpha1/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/GcpCredentialsOrBuilder.java rename to java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/GcpCredentialsOrBuilder.java index 9c9371dfbc17..8971a2ede837 100644 --- a/owl-bot-staging/java-confidentialcomputing/v1alpha1/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/GcpCredentialsOrBuilder.java +++ b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/GcpCredentialsOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 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/confidentialcomputing/v1alpha1/service.proto package com.google.cloud.confidentialcomputing.v1alpha1; -public interface GcpCredentialsOrBuilder extends +public interface GcpCredentialsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.confidentialcomputing.v1alpha1.GcpCredentials) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * A list of service account OpenID Connect ID tokens identifying which
    * service account identities should be included in the claims_token. These
@@ -18,10 +36,13 @@ public interface GcpCredentialsOrBuilder extends
    * 
* * repeated bytes id_tokens = 1; + * * @return A list containing the idTokens. */ java.util.List getIdTokensList(); /** + * + * *
    * A list of service account OpenID Connect ID tokens identifying which
    * service account identities should be included in the claims_token. These
@@ -32,10 +53,13 @@ public interface GcpCredentialsOrBuilder extends
    * 
* * repeated bytes id_tokens = 1; + * * @return The count of idTokens. */ int getIdTokensCount(); /** + * + * *
    * A list of service account OpenID Connect ID tokens identifying which
    * service account identities should be included in the claims_token. These
@@ -46,6 +70,7 @@ public interface GcpCredentialsOrBuilder extends
    * 
* * repeated bytes id_tokens = 1; + * * @param index The index of the element to return. * @return The idTokens at the given index. */ diff --git a/owl-bot-staging/java-confidentialcomputing/v1alpha1/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/LocationName.java b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/LocationName.java similarity index 100% rename from owl-bot-staging/java-confidentialcomputing/v1alpha1/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/LocationName.java rename to java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/LocationName.java diff --git a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/ServiceProto.java b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/ServiceProto.java new file mode 100644 index 000000000000..1af53280b9e9 --- /dev/null +++ b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/ServiceProto.java @@ -0,0 +1,230 @@ +/* + * Copyright 2023 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/confidentialcomputing/v1alpha1/service.proto + +package com.google.cloud.confidentialcomputing.v1alpha1; + +public final class ServiceProto { + private ServiceProto() {} + + 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_confidentialcomputing_v1alpha1_Challenge_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_confidentialcomputing_v1alpha1_Challenge_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_confidentialcomputing_v1alpha1_CreateChallengeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_confidentialcomputing_v1alpha1_CreateChallengeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_confidentialcomputing_v1alpha1_VerifyAttestationRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_confidentialcomputing_v1alpha1_VerifyAttestationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_confidentialcomputing_v1alpha1_VerifyAttestationResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_confidentialcomputing_v1alpha1_VerifyAttestationResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_confidentialcomputing_v1alpha1_GcpCredentials_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_confidentialcomputing_v1alpha1_GcpCredentials_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_Quote_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_Quote_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_Quote_PcrValuesEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_Quote_PcrValuesEntry_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n9google/cloud/confidentialcomputing/v1a" + + "lpha1/service.proto\022+google.cloud.confid" + + "entialcomputing.v1alpha1\032\034google/api/ann" + + "otations.proto\032\027google/api/client.proto\032" + + "\037google/api/field_behavior.proto\032\031google" + + "/api/resource.proto\032\037google/protobuf/tim" + + "estamp.proto\"\246\002\n\tChallenge\022\022\n\004name\030\001 \001(\t" + + "B\004\342A\001\003\0225\n\013create_time\030\002 \001(\0132\032.google.pro" + + "tobuf.TimestampB\004\342A\001\003\0225\n\013expire_time\030\003 \001" + + "(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022\022\n\004" + + "used\030\004 \001(\010B\004\342A\001\003\022\023\n\005nonce\030\005 \001(\014B\004\342A\001\003:n\352" + + "Ak\n.confidentialcomputing.googleapis.com" + + "/Challenge\0229projects/{project}/locations" + + "/{location}/challenges/{uuid}\"\245\001\n\026Create" + + "ChallengeRequest\022:\n\006parent\030\001 \001(\tB*\342A\001\002\372A" + + "#\n!locations.googleapis.com/Location\022O\n\t" + + "challenge\030\002 \001(\01326.google.cloud.confident" + + "ialcomputing.v1alpha1.ChallengeB\004\342A\001\002\"\236\002" + + "\n\030VerifyAttestationRequest\022J\n\tchallenge\030" + + "\001 \001(\tB7\342A\001\002\372A0\n.confidentialcomputing.go" + + "ogleapis.com/Challenge\022Z\n\017gcp_credential" + + "s\030\002 \001(\0132;.google.cloud.confidentialcompu" + + "ting.v1alpha1.GcpCredentialsB\004\342A\001\001\022Z\n\017tp" + + "m_attestation\030\003 \001(\0132;.google.cloud.confi" + + "dentialcomputing.v1alpha1.TpmAttestation" + + "B\004\342A\001\002\"7\n\031VerifyAttestationResponse\022\032\n\014c" + + "laims_token\030\001 \001(\014B\004\342A\001\003\"#\n\016GcpCredential" + + "s\022\021\n\tid_tokens\030\001 \003(\014\"\233\003\n\016TpmAttestation\022" + + "Q\n\006quotes\030\001 \003(\0132A.google.cloud.confident" + + "ialcomputing.v1alpha1.TpmAttestation.Quo" + + "te\022\025\n\rtcg_event_log\030\002 \001(\014\022\033\n\023canonical_e" + + "vent_log\030\003 \001(\014\022\017\n\007ak_cert\030\004 \001(\014\022\022\n\ncert_" + + "chain\030\005 \003(\014\032\334\001\n\005Quote\022\021\n\thash_algo\030\001 \001(\005" + + "\022d\n\npcr_values\030\002 \003(\0132P.google.cloud.conf" + + "identialcomputing.v1alpha1.TpmAttestatio" + + "n.Quote.PcrValuesEntry\022\021\n\traw_quote\030\003 \001(" + + "\014\022\025\n\rraw_signature\030\004 \001(\014\0320\n\016PcrValuesEnt" + + "ry\022\013\n\003key\030\001 \001(\005\022\r\n\005value\030\002 \001(\014:\0028\0012\333\004\n\025C" + + "onfidentialComputing\022\352\001\n\017CreateChallenge" + + "\022C.google.cloud.confidentialcomputing.v1" + + "alpha1.CreateChallengeRequest\0326.google.c" + + "loud.confidentialcomputing.v1alpha1.Chal" + + "lenge\"Z\332A\020parent,challenge\202\323\344\223\002A\"4/v1alp" + + "ha1/{parent=projects/*/locations/*}/chal" + + "lenges:\tchallenge\022\372\001\n\021VerifyAttestation\022" + + "E.google.cloud.confidentialcomputing.v1a" + + "lpha1.VerifyAttestationRequest\032F.google." + + "cloud.confidentialcomputing.v1alpha1.Ver" + + "ifyAttestationResponse\"V\202\323\344\223\002P\"K/v1alpha" + + "1/{challenge=projects/*/locations/*/chal" + + "lenges/*}:verifyAttestation:\001*\032X\312A$confi" + + "dentialcomputing.googleapis.com\322A.https:" + + "//www.googleapis.com/auth/cloud-platform" + + "B\265\002\n/com.google.cloud.confidentialcomput" + + "ing.v1alpha1B\014ServiceProtoP\001Zecloud.goog" + + "le.com/go/confidentialcomputing/apiv1alp" + + "ha1/confidentialcomputingpb;confidential" + + "computingpb\252\002+Google.Cloud.ConfidentialC" + + "omputing.V1Alpha1\312\002+Google\\Cloud\\Confide" + + "ntialComputing\\V1alpha1\352\002.Google::Cloud:" + + ":ConfidentialComputing::V1alpha1b\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.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_confidentialcomputing_v1alpha1_Challenge_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_confidentialcomputing_v1alpha1_Challenge_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_confidentialcomputing_v1alpha1_Challenge_descriptor, + new java.lang.String[] { + "Name", "CreateTime", "ExpireTime", "Used", "Nonce", + }); + internal_static_google_cloud_confidentialcomputing_v1alpha1_CreateChallengeRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_confidentialcomputing_v1alpha1_CreateChallengeRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_confidentialcomputing_v1alpha1_CreateChallengeRequest_descriptor, + new java.lang.String[] { + "Parent", "Challenge", + }); + internal_static_google_cloud_confidentialcomputing_v1alpha1_VerifyAttestationRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_confidentialcomputing_v1alpha1_VerifyAttestationRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_confidentialcomputing_v1alpha1_VerifyAttestationRequest_descriptor, + new java.lang.String[] { + "Challenge", "GcpCredentials", "TpmAttestation", + }); + internal_static_google_cloud_confidentialcomputing_v1alpha1_VerifyAttestationResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_confidentialcomputing_v1alpha1_VerifyAttestationResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_confidentialcomputing_v1alpha1_VerifyAttestationResponse_descriptor, + new java.lang.String[] { + "ClaimsToken", + }); + internal_static_google_cloud_confidentialcomputing_v1alpha1_GcpCredentials_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_confidentialcomputing_v1alpha1_GcpCredentials_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_confidentialcomputing_v1alpha1_GcpCredentials_descriptor, + new java.lang.String[] { + "IdTokens", + }); + internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_descriptor, + new java.lang.String[] { + "Quotes", "TcgEventLog", "CanonicalEventLog", "AkCert", "CertChain", + }); + internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_Quote_descriptor = + internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_Quote_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_Quote_descriptor, + new java.lang.String[] { + "HashAlgo", "PcrValues", "RawQuote", "RawSignature", + }); + internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_Quote_PcrValuesEntry_descriptor = + internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_Quote_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_Quote_PcrValuesEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_Quote_PcrValuesEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + 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.resource); + 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.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-confidentialcomputing/v1alpha1/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/TpmAttestation.java b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/TpmAttestation.java similarity index 70% rename from owl-bot-staging/java-confidentialcomputing/v1alpha1/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/TpmAttestation.java rename to java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/TpmAttestation.java index 28678a3a56f4..04b8fa08beee 100644 --- a/owl-bot-staging/java-confidentialcomputing/v1alpha1/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/TpmAttestation.java +++ b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/TpmAttestation.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 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/confidentialcomputing/v1alpha1/service.proto package com.google.cloud.confidentialcomputing.v1alpha1; /** + * + * *
  * TPM2 data containing everything necessary to validate any platform state
  * measured into the TPM.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.confidentialcomputing.v1alpha1.TpmAttestation}
  */
-public final class TpmAttestation extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class TpmAttestation extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.confidentialcomputing.v1alpha1.TpmAttestation)
     TpmAttestationOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use TpmAttestation.newBuilder() to construct.
   private TpmAttestation(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private TpmAttestation() {
     quotes_ = java.util.Collections.emptyList();
     tcgEventLog_ = com.google.protobuf.ByteString.EMPTY;
@@ -30,39 +48,46 @@ private TpmAttestation() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new TpmAttestation();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto
+        .internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_fieldAccessorTable
+    return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto
+        .internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.class, com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Builder.class);
+            com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.class,
+            com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Builder.class);
   }
 
-  public interface QuoteOrBuilder extends
+  public interface QuoteOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * The hash algorithm of the PCR bank being quoted, encoded as a TPM_ALG_ID
      * 
* * int32 hash_algo = 1; + * * @return The hashAlgo. */ int getHashAlgo(); /** + * + * *
      * Raw binary values of each PCRs being quoted.
      * 
@@ -71,30 +96,31 @@ public interface QuoteOrBuilder extends */ int getPcrValuesCount(); /** + * + * *
      * Raw binary values of each PCRs being quoted.
      * 
* * map<int32, bytes> pcr_values = 2; */ - boolean containsPcrValues( - int key); - /** - * Use {@link #getPcrValuesMap()} instead. - */ + boolean containsPcrValues(int key); + /** Use {@link #getPcrValuesMap()} instead. */ @java.lang.Deprecated - java.util.Map - getPcrValues(); + java.util.Map getPcrValues(); /** + * + * *
      * Raw binary values of each PCRs being quoted.
      * 
* * map<int32, bytes> pcr_values = 2; */ - java.util.Map - getPcrValuesMap(); + java.util.Map getPcrValuesMap(); /** + * + * *
      * Raw binary values of each PCRs being quoted.
      * 
@@ -102,41 +128,50 @@ boolean containsPcrValues( * map<int32, bytes> pcr_values = 2; */ /* nullable */ -com.google.protobuf.ByteString getPcrValuesOrDefault( + com.google.protobuf.ByteString getPcrValuesOrDefault( int key, /* nullable */ -com.google.protobuf.ByteString defaultValue); + com.google.protobuf.ByteString defaultValue); /** + * + * *
      * Raw binary values of each PCRs being quoted.
      * 
* * map<int32, bytes> pcr_values = 2; */ - com.google.protobuf.ByteString getPcrValuesOrThrow( - int key); + com.google.protobuf.ByteString getPcrValuesOrThrow(int key); /** + * + * *
      * TPM2 quote, encoded as a TPMS_ATTEST
      * 
* * bytes raw_quote = 3; + * * @return The rawQuote. */ com.google.protobuf.ByteString getRawQuote(); /** + * + * *
      * TPM2 signature, encoded as a TPMT_SIGNATURE
      * 
* * bytes raw_signature = 4; + * * @return The rawSignature. */ com.google.protobuf.ByteString getRawSignature(); } /** + * + * *
    * Information about Platform Control Registers (PCRs) including a signature
    * over their values, which can be used for remote validation.
@@ -144,15 +179,16 @@ com.google.protobuf.ByteString getPcrValuesOrThrow(
    *
    * Protobuf type {@code google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote}
    */
-  public static final class Quote extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class Quote extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote)
       QuoteOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use Quote.newBuilder() to construct.
     private Quote(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
+
     private Quote() {
       rawQuote_ = com.google.protobuf.ByteString.EMPTY;
       rawSignature_ = com.google.protobuf.ByteString.EMPTY;
@@ -160,44 +196,47 @@ private Quote() {
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new Quote();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_Quote_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto
+          .internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_Quote_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 2:
           return internalGetPcrValues();
         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.confidentialcomputing.v1alpha1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_Quote_fieldAccessorTable
+      return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto
+          .internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_Quote_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote.class, com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote.Builder.class);
+              com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote.class,
+              com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote.Builder.class);
     }
 
     public static final int HASH_ALGO_FIELD_NUMBER = 1;
     private int hashAlgo_ = 0;
     /**
+     *
+     *
      * 
      * The hash algorithm of the PCR bank being quoted, encoded as a TPM_ALG_ID
      * 
* * int32 hash_algo = 1; + * * @return The hashAlgo. */ @java.lang.Override @@ -206,32 +245,38 @@ public int getHashAlgo() { } public static final int PCR_VALUES_FIELD_NUMBER = 2; + private static final class PcrValuesDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, com.google.protobuf.ByteString> defaultEntry = + static final com.google.protobuf.MapEntry + defaultEntry = com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_Quote_PcrValuesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.INT32, - 0, - com.google.protobuf.WireFormat.FieldType.BYTES, - com.google.protobuf.ByteString.EMPTY); + .newDefaultInstance( + com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_Quote_PcrValuesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.INT32, + 0, + com.google.protobuf.WireFormat.FieldType.BYTES, + com.google.protobuf.ByteString.EMPTY); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.Integer, com.google.protobuf.ByteString> pcrValues_; private com.google.protobuf.MapField - internalGetPcrValues() { + pcrValues_; + + private com.google.protobuf.MapField + internalGetPcrValues() { if (pcrValues_ == null) { - return com.google.protobuf.MapField.emptyMapField( - PcrValuesDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(PcrValuesDefaultEntryHolder.defaultEntry); } return pcrValues_; } + public int getPcrValuesCount() { return internalGetPcrValues().getMap().size(); } /** + * + * *
      * Raw binary values of each PCRs being quoted.
      * 
@@ -239,20 +284,19 @@ public int getPcrValuesCount() { * map<int32, bytes> pcr_values = 2; */ @java.lang.Override - public boolean containsPcrValues( - int key) { + public boolean containsPcrValues(int key) { return internalGetPcrValues().getMap().containsKey(key); } - /** - * Use {@link #getPcrValuesMap()} instead. - */ + /** Use {@link #getPcrValuesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getPcrValues() { return getPcrValuesMap(); } /** + * + * *
      * Raw binary values of each PCRs being quoted.
      * 
@@ -264,6 +308,8 @@ public java.util.Map getPcrVa return internalGetPcrValues().getMap(); } /** + * + * *
      * Raw binary values of each PCRs being quoted.
      * 
@@ -271,17 +317,18 @@ public java.util.Map getPcrVa * map<int32, bytes> pcr_values = 2; */ @java.lang.Override - public /* nullable */ -com.google.protobuf.ByteString getPcrValuesOrDefault( + public /* nullable */ com.google.protobuf.ByteString getPcrValuesOrDefault( int key, /* nullable */ -com.google.protobuf.ByteString defaultValue) { + com.google.protobuf.ByteString defaultValue) { java.util.Map map = internalGetPcrValues().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Raw binary values of each PCRs being quoted.
      * 
@@ -289,8 +336,7 @@ com.google.protobuf.ByteString getPcrValuesOrDefault( * map<int32, bytes> pcr_values = 2; */ @java.lang.Override - public com.google.protobuf.ByteString getPcrValuesOrThrow( - int key) { + public com.google.protobuf.ByteString getPcrValuesOrThrow(int key) { java.util.Map map = internalGetPcrValues().getMap(); @@ -303,11 +349,14 @@ public com.google.protobuf.ByteString getPcrValuesOrThrow( public static final int RAW_QUOTE_FIELD_NUMBER = 3; private com.google.protobuf.ByteString rawQuote_ = com.google.protobuf.ByteString.EMPTY; /** + * + * *
      * TPM2 quote, encoded as a TPMS_ATTEST
      * 
* * bytes raw_quote = 3; + * * @return The rawQuote. */ @java.lang.Override @@ -318,11 +367,14 @@ public com.google.protobuf.ByteString getRawQuote() { public static final int RAW_SIGNATURE_FIELD_NUMBER = 4; private com.google.protobuf.ByteString rawSignature_ = com.google.protobuf.ByteString.EMPTY; /** + * + * *
      * TPM2 signature, encoded as a TPMT_SIGNATURE
      * 
* * bytes raw_signature = 4; + * * @return The rawSignature. */ @java.lang.Override @@ -331,6 +383,7 @@ public com.google.protobuf.ByteString getRawSignature() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -342,17 +395,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 (hashAlgo_ != 0) { output.writeInt32(1, hashAlgo_); } - com.google.protobuf.GeneratedMessageV3 - .serializeIntegerMapTo( - output, - internalGetPcrValues(), - PcrValuesDefaultEntryHolder.defaultEntry, - 2); + com.google.protobuf.GeneratedMessageV3.serializeIntegerMapTo( + output, internalGetPcrValues(), PcrValuesDefaultEntryHolder.defaultEntry, 2); if (!rawQuote_.isEmpty()) { output.writeBytes(3, rawQuote_); } @@ -369,26 +417,24 @@ public int getSerializedSize() { size = 0; if (hashAlgo_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, hashAlgo_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, hashAlgo_); } - for (java.util.Map.Entry entry - : internalGetPcrValues().getMap().entrySet()) { + for (java.util.Map.Entry entry : + internalGetPcrValues().getMap().entrySet()) { com.google.protobuf.MapEntry - pcrValues__ = PcrValuesDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, pcrValues__); + pcrValues__ = + PcrValuesDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, pcrValues__); } if (!rawQuote_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, rawQuote_); + size += com.google.protobuf.CodedOutputStream.computeBytesSize(3, rawQuote_); } if (!rawSignature_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, rawSignature_); + size += com.google.protobuf.CodedOutputStream.computeBytesSize(4, rawSignature_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -398,21 +444,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.confidentialcomputing.v1alpha1.TpmAttestation.Quote)) { return super.equals(obj); } - com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote other = (com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote) obj; + com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote other = + (com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote) obj; - if (getHashAlgo() - != other.getHashAlgo()) return false; - if (!internalGetPcrValues().equals( - other.internalGetPcrValues())) return false; - if (!getRawQuote() - .equals(other.getRawQuote())) return false; - if (!getRawSignature() - .equals(other.getRawSignature())) return false; + if (getHashAlgo() != other.getHashAlgo()) return false; + if (!internalGetPcrValues().equals(other.internalGetPcrValues())) return false; + if (!getRawQuote().equals(other.getRawQuote())) return false; + if (!getRawSignature().equals(other.getRawSignature())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -440,89 +483,95 @@ public int hashCode() { } public static com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote 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.confidentialcomputing.v1alpha1.TpmAttestation.Quote 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.confidentialcomputing.v1alpha1.TpmAttestation.Quote parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote 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.confidentialcomputing.v1alpha1.TpmAttestation.Quote parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote 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.confidentialcomputing.v1alpha1.TpmAttestation.Quote parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote 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.confidentialcomputing.v1alpha1.TpmAttestation.Quote parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote 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.confidentialcomputing.v1alpha1.TpmAttestation.Quote + 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.confidentialcomputing.v1alpha1.TpmAttestation.Quote 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.confidentialcomputing.v1alpha1.TpmAttestation.Quote 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.confidentialcomputing.v1alpha1.TpmAttestation.Quote prototype) { + + public static Builder newBuilder( + com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote 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 @@ -532,6 +581,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Information about Platform Control Registers (PCRs) including a signature
      * over their values, which can be used for remote validation.
@@ -539,55 +590,54 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote}
      */
-    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.confidentialcomputing.v1alpha1.TpmAttestation.Quote)
         com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.QuoteOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_Quote_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto
+            .internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_Quote_descriptor;
       }
 
       @SuppressWarnings({"rawtypes"})
-      protected com.google.protobuf.MapField internalGetMapField(
-          int number) {
+      protected com.google.protobuf.MapField internalGetMapField(int number) {
         switch (number) {
           case 2:
             return internalGetPcrValues();
           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 2:
             return internalGetMutablePcrValues();
           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.confidentialcomputing.v1alpha1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_Quote_fieldAccessorTable
+        return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto
+            .internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_Quote_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote.class, com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote.Builder.class);
+                com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote.class,
+                com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote.Builder.class);
       }
 
-      // Construct using com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote.newBuilder()
-      private Builder() {
+      // Construct using
+      // com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote.newBuilder()
+      private Builder() {}
 
-      }
-
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
-
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -600,19 +650,22 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_Quote_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto
+            .internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_Quote_descriptor;
       }
 
       @java.lang.Override
-      public com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote getDefaultInstanceForType() {
-        return com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote.getDefaultInstance();
+      public com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote
+          getDefaultInstanceForType() {
+        return com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote
+            .getDefaultInstance();
       }
 
       @java.lang.Override
       public com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote build() {
-        com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote result = buildPartial();
+        com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote result =
+            buildPartial();
         if (!result.isInitialized()) {
           throw newUninitializedMessageException(result);
         }
@@ -621,13 +674,17 @@ public com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote buil
 
       @java.lang.Override
       public com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote buildPartial() {
-        com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote result = new com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote(this);
-        if (bitField0_ != 0) { buildPartial0(result); }
+        com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote result =
+            new com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote(this);
+        if (bitField0_ != 0) {
+          buildPartial0(result);
+        }
         onBuilt();
         return result;
       }
 
-      private void buildPartial0(com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote result) {
+      private void buildPartial0(
+          com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote result) {
         int from_bitField0_ = bitField0_;
         if (((from_bitField0_ & 0x00000001) != 0)) {
           result.hashAlgo_ = hashAlgo_;
@@ -648,51 +705,57 @@ private void buildPartial0(com.google.cloud.confidentialcomputing.v1alpha1.TpmAt
       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.confidentialcomputing.v1alpha1.TpmAttestation.Quote) {
-          return mergeFrom((com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote)other);
+          return mergeFrom(
+              (com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote) other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote other) {
-        if (other == com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote.getDefaultInstance()) return this;
+      public Builder mergeFrom(
+          com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote other) {
+        if (other
+            == com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote
+                .getDefaultInstance()) return this;
         if (other.getHashAlgo() != 0) {
           setHashAlgo(other.getHashAlgo());
         }
-        internalGetMutablePcrValues().mergeFrom(
-            other.internalGetPcrValues());
+        internalGetMutablePcrValues().mergeFrom(other.internalGetPcrValues());
         bitField0_ |= 0x00000002;
         if (other.getRawQuote() != com.google.protobuf.ByteString.EMPTY) {
           setRawQuote(other.getRawQuote());
@@ -726,36 +789,44 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 8: {
-                hashAlgo_ = input.readInt32();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 8
-              case 18: {
-                com.google.protobuf.MapEntry
-                pcrValues__ = input.readMessage(
-                    PcrValuesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-                internalGetMutablePcrValues().getMutableMap().put(
-                    pcrValues__.getKey(), pcrValues__.getValue());
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-              case 26: {
-                rawQuote_ = input.readBytes();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-              case 34: {
-                rawSignature_ = input.readBytes();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 34
-              default: {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+              case 8:
+                {
+                  hashAlgo_ = input.readInt32();
+                  bitField0_ |= 0x00000001;
+                  break;
+                } // case 8
+              case 18:
+                {
+                  com.google.protobuf.MapEntry
+                      pcrValues__ =
+                          input.readMessage(
+                              PcrValuesDefaultEntryHolder.defaultEntry.getParserForType(),
+                              extensionRegistry);
+                  internalGetMutablePcrValues()
+                      .getMutableMap()
+                      .put(pcrValues__.getKey(), pcrValues__.getValue());
+                  bitField0_ |= 0x00000002;
+                  break;
+                } // case 18
+              case 26:
+                {
+                  rawQuote_ = input.readBytes();
+                  bitField0_ |= 0x00000004;
+                  break;
+                } // case 26
+              case 34:
+                {
+                  rawSignature_ = input.readBytes();
+                  bitField0_ |= 0x00000008;
+                  break;
+                } // case 34
+              default:
+                {
+                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                    done = true; // was an endgroup tag
+                  }
+                  break;
+                } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -765,15 +836,19 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
+
       private int bitField0_;
 
-      private int hashAlgo_ ;
+      private int hashAlgo_;
       /**
+       *
+       *
        * 
        * The hash algorithm of the PCR bank being quoted, encoded as a TPM_ALG_ID
        * 
* * int32 hash_algo = 1; + * * @return The hashAlgo. */ @java.lang.Override @@ -781,11 +856,14 @@ public int getHashAlgo() { return hashAlgo_; } /** + * + * *
        * The hash algorithm of the PCR bank being quoted, encoded as a TPM_ALG_ID
        * 
* * int32 hash_algo = 1; + * * @param value The hashAlgo to set. * @return This builder for chaining. */ @@ -797,11 +875,14 @@ public Builder setHashAlgo(int value) { return this; } /** + * + * *
        * The hash algorithm of the PCR bank being quoted, encoded as a TPM_ALG_ID
        * 
* * int32 hash_algo = 1; + * * @return This builder for chaining. */ public Builder clearHashAlgo() { @@ -811,8 +892,9 @@ public Builder clearHashAlgo() { return this; } - private com.google.protobuf.MapField< - java.lang.Integer, com.google.protobuf.ByteString> pcrValues_; + private com.google.protobuf.MapField + pcrValues_; + private com.google.protobuf.MapField internalGetPcrValues() { if (pcrValues_ == null) { @@ -821,11 +903,12 @@ public Builder clearHashAlgo() { } return pcrValues_; } + private com.google.protobuf.MapField internalGetMutablePcrValues() { if (pcrValues_ == null) { - pcrValues_ = com.google.protobuf.MapField.newMapField( - PcrValuesDefaultEntryHolder.defaultEntry); + pcrValues_ = + com.google.protobuf.MapField.newMapField(PcrValuesDefaultEntryHolder.defaultEntry); } if (!pcrValues_.isMutable()) { pcrValues_ = pcrValues_.copy(); @@ -834,10 +917,13 @@ public Builder clearHashAlgo() { onChanged(); return pcrValues_; } + public int getPcrValuesCount() { return internalGetPcrValues().getMap().size(); } /** + * + * *
        * Raw binary values of each PCRs being quoted.
        * 
@@ -845,20 +931,19 @@ public int getPcrValuesCount() { * map<int32, bytes> pcr_values = 2; */ @java.lang.Override - public boolean containsPcrValues( - int key) { + public boolean containsPcrValues(int key) { return internalGetPcrValues().getMap().containsKey(key); } - /** - * Use {@link #getPcrValuesMap()} instead. - */ + /** Use {@link #getPcrValuesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getPcrValues() { return getPcrValuesMap(); } /** + * + * *
        * Raw binary values of each PCRs being quoted.
        * 
@@ -870,6 +955,8 @@ public java.util.Map getPcrVa return internalGetPcrValues().getMap(); } /** + * + * *
        * Raw binary values of each PCRs being quoted.
        * 
@@ -877,17 +964,18 @@ public java.util.Map getPcrVa * map<int32, bytes> pcr_values = 2; */ @java.lang.Override - public /* nullable */ -com.google.protobuf.ByteString getPcrValuesOrDefault( + public /* nullable */ com.google.protobuf.ByteString getPcrValuesOrDefault( int key, /* nullable */ -com.google.protobuf.ByteString defaultValue) { + com.google.protobuf.ByteString defaultValue) { java.util.Map map = internalGetPcrValues().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
        * Raw binary values of each PCRs being quoted.
        * 
@@ -895,8 +983,7 @@ com.google.protobuf.ByteString getPcrValuesOrDefault( * map<int32, bytes> pcr_values = 2; */ @java.lang.Override - public com.google.protobuf.ByteString getPcrValuesOrThrow( - int key) { + public com.google.protobuf.ByteString getPcrValuesOrThrow(int key) { java.util.Map map = internalGetPcrValues().getMap(); @@ -905,29 +992,27 @@ public com.google.protobuf.ByteString getPcrValuesOrThrow( } return map.get(key); } + public Builder clearPcrValues() { bitField0_ = (bitField0_ & ~0x00000002); - internalGetMutablePcrValues().getMutableMap() - .clear(); + internalGetMutablePcrValues().getMutableMap().clear(); return this; } /** + * + * *
        * Raw binary values of each PCRs being quoted.
        * 
* * map<int32, bytes> pcr_values = 2; */ - public Builder removePcrValues( - int key) { + public Builder removePcrValues(int key) { - internalGetMutablePcrValues().getMutableMap() - .remove(key); + internalGetMutablePcrValues().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutablePcrValues() { @@ -935,23 +1020,26 @@ public Builder removePcrValues( return internalGetMutablePcrValues().getMutableMap(); } /** + * + * *
        * Raw binary values of each PCRs being quoted.
        * 
* * map<int32, bytes> pcr_values = 2; */ - public Builder putPcrValues( - int key, - com.google.protobuf.ByteString value) { + public Builder putPcrValues(int key, com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException("map value"); } - internalGetMutablePcrValues().getMutableMap() - .put(key, value); + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutablePcrValues().getMutableMap().put(key, value); bitField0_ |= 0x00000002; return this; } /** + * + * *
        * Raw binary values of each PCRs being quoted.
        * 
@@ -960,19 +1048,21 @@ public Builder putPcrValues( */ public Builder putAllPcrValues( java.util.Map values) { - internalGetMutablePcrValues().getMutableMap() - .putAll(values); + internalGetMutablePcrValues().getMutableMap().putAll(values); bitField0_ |= 0x00000002; return this; } private com.google.protobuf.ByteString rawQuote_ = com.google.protobuf.ByteString.EMPTY; /** + * + * *
        * TPM2 quote, encoded as a TPMS_ATTEST
        * 
* * bytes raw_quote = 3; + * * @return The rawQuote. */ @java.lang.Override @@ -980,27 +1070,35 @@ public com.google.protobuf.ByteString getRawQuote() { return rawQuote_; } /** + * + * *
        * TPM2 quote, encoded as a TPMS_ATTEST
        * 
* * bytes raw_quote = 3; + * * @param value The rawQuote to set. * @return This builder for chaining. */ public Builder setRawQuote(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + if (value == null) { + throw new NullPointerException(); + } rawQuote_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
        * TPM2 quote, encoded as a TPMS_ATTEST
        * 
* * bytes raw_quote = 3; + * * @return This builder for chaining. */ public Builder clearRawQuote() { @@ -1012,11 +1110,14 @@ public Builder clearRawQuote() { private com.google.protobuf.ByteString rawSignature_ = com.google.protobuf.ByteString.EMPTY; /** + * + * *
        * TPM2 signature, encoded as a TPMT_SIGNATURE
        * 
* * bytes raw_signature = 4; + * * @return The rawSignature. */ @java.lang.Override @@ -1024,27 +1125,35 @@ public com.google.protobuf.ByteString getRawSignature() { return rawSignature_; } /** + * + * *
        * TPM2 signature, encoded as a TPMT_SIGNATURE
        * 
* * bytes raw_signature = 4; + * * @param value The rawSignature to set. * @return This builder for chaining. */ public Builder setRawSignature(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + if (value == null) { + throw new NullPointerException(); + } rawSignature_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
        * TPM2 signature, encoded as a TPMT_SIGNATURE
        * 
* * bytes raw_signature = 4; + * * @return This builder for chaining. */ public Builder clearRawSignature() { @@ -1053,6 +1162,7 @@ public Builder clearRawSignature() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1065,41 +1175,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote) } // @@protoc_insertion_point(class_scope:google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote) - private static final com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote DEFAULT_INSTANCE; + private static final com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote(); } - public static com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote getDefaultInstance() { + public static com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Quote parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Quote parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1111,76 +1224,97 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote getDefaultInstanceForType() { + public com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int QUOTES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") - private java.util.List quotes_; + private java.util.List + quotes_; /** + * + * *
    * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
    * 
* - * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; + * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; + * */ @java.lang.Override - public java.util.List getQuotesList() { + public java.util.List + getQuotesList() { return quotes_; } /** + * + * *
    * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
    * 
* - * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; + * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.QuoteOrBuilder> getQuotesOrBuilderList() { return quotes_; } /** + * + * *
    * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
    * 
* - * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; + * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; + * */ @java.lang.Override public int getQuotesCount() { return quotes_.size(); } /** + * + * *
    * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
    * 
* - * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; + * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; + * */ @java.lang.Override public com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote getQuotes(int index) { return quotes_.get(index); } /** + * + * *
    * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
    * 
* - * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; + * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; + * */ @java.lang.Override - public com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.QuoteOrBuilder getQuotesOrBuilder( - int index) { + public com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.QuoteOrBuilder + getQuotesOrBuilder(int index) { return quotes_.get(index); } public static final int TCG_EVENT_LOG_FIELD_NUMBER = 2; private com.google.protobuf.ByteString tcgEventLog_ = com.google.protobuf.ByteString.EMPTY; /** + * + * *
    * The binary TCG Event Log containing events measured into the TPM by the
    * platform firmware and operating system. Formatted as described in the
@@ -1188,6 +1322,7 @@ public com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.QuoteOrBui
    * 
* * bytes tcg_event_log = 2; + * * @return The tcgEventLog. */ @java.lang.Override @@ -1198,6 +1333,8 @@ public com.google.protobuf.ByteString getTcgEventLog() { public static final int CANONICAL_EVENT_LOG_FIELD_NUMBER = 3; private com.google.protobuf.ByteString canonicalEventLog_ = com.google.protobuf.ByteString.EMPTY; /** + * + * *
    * An Event Log containing additional events measured into the TPM that are
    * not already present in the tcg_event_log. Formatted as described in the
@@ -1205,6 +1342,7 @@ public com.google.protobuf.ByteString getTcgEventLog() {
    * 
* * bytes canonical_event_log = 3; + * * @return The canonicalEventLog. */ @java.lang.Override @@ -1215,12 +1353,15 @@ public com.google.protobuf.ByteString getCanonicalEventLog() { public static final int AK_CERT_FIELD_NUMBER = 4; private com.google.protobuf.ByteString akCert_ = com.google.protobuf.ByteString.EMPTY; /** + * + * *
    * DER-encoded X.509 certificate of the Attestation Key (otherwise known as
    * an AK or a TPM restricted signing key) used to generate the quotes.
    * 
* * bytes ak_cert = 4; + * * @return The akCert. */ @java.lang.Override @@ -1229,41 +1370,50 @@ public com.google.protobuf.ByteString getAkCert() { } public static final int CERT_CHAIN_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private java.util.List certChain_; /** + * + * *
    * List of DER-encoded X.509 certificates which, together with the ak_cert,
    * chain back to a trusted Root Certificate.
    * 
* * repeated bytes cert_chain = 5; + * * @return A list containing the certChain. */ @java.lang.Override - public java.util.List - getCertChainList() { + public java.util.List getCertChainList() { return certChain_; } /** + * + * *
    * List of DER-encoded X.509 certificates which, together with the ak_cert,
    * chain back to a trusted Root Certificate.
    * 
* * repeated bytes cert_chain = 5; + * * @return The count of certChain. */ public int getCertChainCount() { return certChain_.size(); } /** + * + * *
    * List of DER-encoded X.509 certificates which, together with the ak_cert,
    * chain back to a trusted Root Certificate.
    * 
* * repeated bytes cert_chain = 5; + * * @param index The index of the element to return. * @return The certChain at the given index. */ @@ -1272,6 +1422,7 @@ public com.google.protobuf.ByteString getCertChain(int index) { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1283,8 +1434,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 < quotes_.size(); i++) { output.writeMessage(1, quotes_.get(i)); } @@ -1310,26 +1460,21 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < quotes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, quotes_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, quotes_.get(i)); } if (!tcgEventLog_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, tcgEventLog_); + size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, tcgEventLog_); } if (!canonicalEventLog_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, canonicalEventLog_); + size += com.google.protobuf.CodedOutputStream.computeBytesSize(3, canonicalEventLog_); } if (!akCert_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, akCert_); + size += com.google.protobuf.CodedOutputStream.computeBytesSize(4, akCert_); } { int dataSize = 0; for (int i = 0; i < certChain_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeBytesSizeNoTag(certChain_.get(i)); + dataSize += com.google.protobuf.CodedOutputStream.computeBytesSizeNoTag(certChain_.get(i)); } size += dataSize; size += 1 * getCertChainList().size(); @@ -1342,23 +1487,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.confidentialcomputing.v1alpha1.TpmAttestation)) { return super.equals(obj); } - com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation other = (com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation) obj; - - if (!getQuotesList() - .equals(other.getQuotesList())) return false; - if (!getTcgEventLog() - .equals(other.getTcgEventLog())) return false; - if (!getCanonicalEventLog() - .equals(other.getCanonicalEventLog())) return false; - if (!getAkCert() - .equals(other.getAkCert())) return false; - if (!getCertChainList() - .equals(other.getCertChainList())) return false; + com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation other = + (com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation) obj; + + if (!getQuotesList().equals(other.getQuotesList())) return false; + if (!getTcgEventLog().equals(other.getTcgEventLog())) return false; + if (!getCanonicalEventLog().equals(other.getCanonicalEventLog())) return false; + if (!getAkCert().equals(other.getAkCert())) return false; + if (!getCertChainList().equals(other.getCertChainList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1390,98 +1531,104 @@ public int hashCode() { } public static com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation 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.confidentialcomputing.v1alpha1.TpmAttestation 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.confidentialcomputing.v1alpha1.TpmAttestation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation 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.confidentialcomputing.v1alpha1.TpmAttestation parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation 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.confidentialcomputing.v1alpha1.TpmAttestation parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation 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.confidentialcomputing.v1alpha1.TpmAttestation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation 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.confidentialcomputing.v1alpha1.TpmAttestation 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.confidentialcomputing.v1alpha1.TpmAttestation 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.confidentialcomputing.v1alpha1.TpmAttestation prototype) { + + public static Builder newBuilder( + com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation 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; } /** + * + * *
    * TPM2 data containing everything necessary to validate any platform state
    * measured into the TPM.
@@ -1489,33 +1636,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.confidentialcomputing.v1alpha1.TpmAttestation}
    */
-  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.confidentialcomputing.v1alpha1.TpmAttestation)
       com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestationOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto
+          .internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_fieldAccessorTable
+      return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto
+          .internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.class, com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Builder.class);
+              com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.class,
+              com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Builder.class);
     }
 
     // Construct using com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1535,13 +1681,14 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto
+          .internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation getDefaultInstanceForType() {
+    public com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation
+        getDefaultInstanceForType() {
       return com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.getDefaultInstance();
     }
 
@@ -1556,14 +1703,18 @@ public com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation build() {
 
     @java.lang.Override
     public com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation buildPartial() {
-      com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation result = new com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation(this);
+      com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation result =
+          new com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation result) {
+    private void buildPartialRepeatedFields(
+        com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation result) {
       if (quotesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
           quotes_ = java.util.Collections.unmodifiableList(quotes_);
@@ -1580,7 +1731,8 @@ private void buildPartialRepeatedFields(com.google.cloud.confidentialcomputing.v
       result.certChain_ = certChain_;
     }
 
-    private void buildPartial0(com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation result) {
+    private void buildPartial0(
+        com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000002) != 0)) {
         result.tcgEventLog_ = tcgEventLog_;
@@ -1597,38 +1749,39 @@ private void buildPartial0(com.google.cloud.confidentialcomputing.v1alpha1.TpmAt
     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.confidentialcomputing.v1alpha1.TpmAttestation) {
-        return mergeFrom((com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation)other);
+        return mergeFrom((com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1636,7 +1789,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation other) {
-      if (other == com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.getDefaultInstance()) return this;
+      if (other
+          == com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.getDefaultInstance())
+        return this;
       if (quotesBuilder_ == null) {
         if (!other.quotes_.isEmpty()) {
           if (quotes_.isEmpty()) {
@@ -1655,9 +1810,10 @@ public Builder mergeFrom(com.google.cloud.confidentialcomputing.v1alpha1.TpmAtte
             quotesBuilder_ = null;
             quotes_ = other.quotes_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            quotesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getQuotesFieldBuilder() : null;
+            quotesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getQuotesFieldBuilder()
+                    : null;
           } else {
             quotesBuilder_.addAllMessages(other.quotes_);
           }
@@ -1708,46 +1864,53 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote m =
-                  input.readMessage(
-                      com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote.parser(),
-                      extensionRegistry);
-              if (quotesBuilder_ == null) {
-                ensureQuotesIsMutable();
-                quotes_.add(m);
-              } else {
-                quotesBuilder_.addMessage(m);
-              }
-              break;
-            } // case 10
-            case 18: {
-              tcgEventLog_ = input.readBytes();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              canonicalEventLog_ = input.readBytes();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            case 34: {
-              akCert_ = input.readBytes();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 34
-            case 42: {
-              com.google.protobuf.ByteString v = input.readBytes();
-              ensureCertChainIsMutable();
-              certChain_.add(v);
-              break;
-            } // case 42
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote m =
+                    input.readMessage(
+                        com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote
+                            .parser(),
+                        extensionRegistry);
+                if (quotesBuilder_ == null) {
+                  ensureQuotesIsMutable();
+                  quotes_.add(m);
+                } else {
+                  quotesBuilder_.addMessage(m);
+                }
+                break;
+              } // case 10
+            case 18:
+              {
+                tcgEventLog_ = input.readBytes();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                canonicalEventLog_ = input.readBytes();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            case 34:
+              {
+                akCert_ = input.readBytes();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 34
+            case 42:
+              {
+                com.google.protobuf.ByteString v = input.readBytes();
+                ensureCertChainIsMutable();
+                certChain_.add(v);
+                break;
+              } // case 42
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1757,28 +1920,39 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
-    private java.util.List quotes_ =
-      java.util.Collections.emptyList();
+    private java.util.List
+        quotes_ = java.util.Collections.emptyList();
+
     private void ensureQuotesIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        quotes_ = new java.util.ArrayList(quotes_);
+        quotes_ =
+            new java.util.ArrayList<
+                com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote>(quotes_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote, com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote.Builder, com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.QuoteOrBuilder> quotesBuilder_;
+            com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote,
+            com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote.Builder,
+            com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.QuoteOrBuilder>
+        quotesBuilder_;
 
     /**
+     *
+     *
      * 
      * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
      * 
* - * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; + * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; + * */ - public java.util.List getQuotesList() { + public java.util.List + getQuotesList() { if (quotesBuilder_ == null) { return java.util.Collections.unmodifiableList(quotes_); } else { @@ -1786,11 +1960,14 @@ public java.util.List * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank. *
* - * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; + * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; + * */ public int getQuotesCount() { if (quotesBuilder_ == null) { @@ -1800,13 +1977,17 @@ public int getQuotesCount() { } } /** + * + * *
      * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
      * 
* - * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; + * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; + * */ - public com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote getQuotes(int index) { + public com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote getQuotes( + int index) { if (quotesBuilder_ == null) { return quotes_.get(index); } else { @@ -1814,11 +1995,14 @@ public com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote getQ } } /** + * + * *
      * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
      * 
* - * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; + * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; + * */ public Builder setQuotes( int index, com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote value) { @@ -1835,14 +2019,19 @@ public Builder setQuotes( return this; } /** + * + * *
      * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
      * 
* - * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; + * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; + * */ public Builder setQuotes( - int index, com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote.Builder builderForValue) { + int index, + com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote.Builder + builderForValue) { if (quotesBuilder_ == null) { ensureQuotesIsMutable(); quotes_.set(index, builderForValue.build()); @@ -1853,13 +2042,17 @@ public Builder setQuotes( return this; } /** + * + * *
      * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
      * 
* - * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; + * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; + * */ - public Builder addQuotes(com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote value) { + public Builder addQuotes( + com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote value) { if (quotesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1873,11 +2066,14 @@ public Builder addQuotes(com.google.cloud.confidentialcomputing.v1alpha1.TpmAtte return this; } /** + * + * *
      * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
      * 
* - * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; + * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; + * */ public Builder addQuotes( int index, com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote value) { @@ -1894,14 +2090,18 @@ public Builder addQuotes( return this; } /** + * + * *
      * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
      * 
* - * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; + * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; + * */ public Builder addQuotes( - com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote.Builder builderForValue) { + com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote.Builder + builderForValue) { if (quotesBuilder_ == null) { ensureQuotesIsMutable(); quotes_.add(builderForValue.build()); @@ -1912,14 +2112,19 @@ public Builder addQuotes( return this; } /** + * + * *
      * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
      * 
* - * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; + * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; + * */ public Builder addQuotes( - int index, com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote.Builder builderForValue) { + int index, + com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote.Builder + builderForValue) { if (quotesBuilder_ == null) { ensureQuotesIsMutable(); quotes_.add(index, builderForValue.build()); @@ -1930,18 +2135,22 @@ public Builder addQuotes( return this; } /** + * + * *
      * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
      * 
* - * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; + * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; + * */ public Builder addAllQuotes( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote> + values) { if (quotesBuilder_ == null) { ensureQuotesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, quotes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, quotes_); onChanged(); } else { quotesBuilder_.addAllMessages(values); @@ -1949,11 +2158,14 @@ public Builder addAllQuotes( return this; } /** + * + * *
      * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
      * 
* - * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; + * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; + * */ public Builder clearQuotes() { if (quotesBuilder_ == null) { @@ -1966,11 +2178,14 @@ public Builder clearQuotes() { return this; } /** + * + * *
      * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
      * 
* - * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; + * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; + * */ public Builder removeQuotes(int index) { if (quotesBuilder_ == null) { @@ -1983,39 +2198,50 @@ public Builder removeQuotes(int index) { return this; } /** + * + * *
      * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
      * 
* - * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; + * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; + * */ - public com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote.Builder getQuotesBuilder( - int index) { + public com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote.Builder + getQuotesBuilder(int index) { return getQuotesFieldBuilder().getBuilder(index); } /** + * + * *
      * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
      * 
* - * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; + * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; + * */ - public com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.QuoteOrBuilder getQuotesOrBuilder( - int index) { + public com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.QuoteOrBuilder + getQuotesOrBuilder(int index) { if (quotesBuilder_ == null) { - return quotes_.get(index); } else { + return quotes_.get(index); + } else { return quotesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
      * 
* - * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; + * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; + * */ - public java.util.List - getQuotesOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.QuoteOrBuilder> + getQuotesOrBuilderList() { if (quotesBuilder_ != null) { return quotesBuilder_.getMessageOrBuilderList(); } else { @@ -2023,49 +2249,68 @@ public com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.QuoteOrBui } } /** + * + * *
      * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
      * 
* - * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; + * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; + * */ - public com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote.Builder addQuotesBuilder() { - return getQuotesFieldBuilder().addBuilder( - com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote.getDefaultInstance()); + public com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote.Builder + addQuotesBuilder() { + return getQuotesFieldBuilder() + .addBuilder( + com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote + .getDefaultInstance()); } /** + * + * *
      * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
      * 
* - * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; + * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; + * */ - public com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote.Builder addQuotesBuilder( - int index) { - return getQuotesFieldBuilder().addBuilder( - index, com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote.getDefaultInstance()); + public com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote.Builder + addQuotesBuilder(int index) { + return getQuotesFieldBuilder() + .addBuilder( + index, + com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote + .getDefaultInstance()); } /** + * + * *
      * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
      * 
* - * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; + * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; + * */ - public java.util.List - getQuotesBuilderList() { + public java.util.List< + com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote.Builder> + getQuotesBuilderList() { return getQuotesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote, com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote.Builder, com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.QuoteOrBuilder> + com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote, + com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote.Builder, + com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.QuoteOrBuilder> getQuotesFieldBuilder() { if (quotesBuilder_ == null) { - quotesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote, com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote.Builder, com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.QuoteOrBuilder>( - quotes_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + quotesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote, + com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote.Builder, + com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.QuoteOrBuilder>( + quotes_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); quotes_ = null; } return quotesBuilder_; @@ -2073,6 +2318,8 @@ public com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote.Buil private com.google.protobuf.ByteString tcgEventLog_ = com.google.protobuf.ByteString.EMPTY; /** + * + * *
      * The binary TCG Event Log containing events measured into the TPM by the
      * platform firmware and operating system. Formatted as described in the
@@ -2080,6 +2327,7 @@ public com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote.Buil
      * 
* * bytes tcg_event_log = 2; + * * @return The tcgEventLog. */ @java.lang.Override @@ -2087,6 +2335,8 @@ public com.google.protobuf.ByteString getTcgEventLog() { return tcgEventLog_; } /** + * + * *
      * The binary TCG Event Log containing events measured into the TPM by the
      * platform firmware and operating system. Formatted as described in the
@@ -2094,17 +2344,22 @@ public com.google.protobuf.ByteString getTcgEventLog() {
      * 
* * bytes tcg_event_log = 2; + * * @param value The tcgEventLog to set. * @return This builder for chaining. */ public Builder setTcgEventLog(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + if (value == null) { + throw new NullPointerException(); + } tcgEventLog_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The binary TCG Event Log containing events measured into the TPM by the
      * platform firmware and operating system. Formatted as described in the
@@ -2112,6 +2367,7 @@ public Builder setTcgEventLog(com.google.protobuf.ByteString value) {
      * 
* * bytes tcg_event_log = 2; + * * @return This builder for chaining. */ public Builder clearTcgEventLog() { @@ -2121,8 +2377,11 @@ public Builder clearTcgEventLog() { return this; } - private com.google.protobuf.ByteString canonicalEventLog_ = com.google.protobuf.ByteString.EMPTY; + private com.google.protobuf.ByteString canonicalEventLog_ = + com.google.protobuf.ByteString.EMPTY; /** + * + * *
      * An Event Log containing additional events measured into the TPM that are
      * not already present in the tcg_event_log. Formatted as described in the
@@ -2130,6 +2389,7 @@ public Builder clearTcgEventLog() {
      * 
* * bytes canonical_event_log = 3; + * * @return The canonicalEventLog. */ @java.lang.Override @@ -2137,6 +2397,8 @@ public com.google.protobuf.ByteString getCanonicalEventLog() { return canonicalEventLog_; } /** + * + * *
      * An Event Log containing additional events measured into the TPM that are
      * not already present in the tcg_event_log. Formatted as described in the
@@ -2144,17 +2406,22 @@ public com.google.protobuf.ByteString getCanonicalEventLog() {
      * 
* * bytes canonical_event_log = 3; + * * @param value The canonicalEventLog to set. * @return This builder for chaining. */ public Builder setCanonicalEventLog(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + if (value == null) { + throw new NullPointerException(); + } canonicalEventLog_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * An Event Log containing additional events measured into the TPM that are
      * not already present in the tcg_event_log. Formatted as described in the
@@ -2162,6 +2429,7 @@ public Builder setCanonicalEventLog(com.google.protobuf.ByteString value) {
      * 
* * bytes canonical_event_log = 3; + * * @return This builder for chaining. */ public Builder clearCanonicalEventLog() { @@ -2173,12 +2441,15 @@ public Builder clearCanonicalEventLog() { private com.google.protobuf.ByteString akCert_ = com.google.protobuf.ByteString.EMPTY; /** + * + * *
      * DER-encoded X.509 certificate of the Attestation Key (otherwise known as
      * an AK or a TPM restricted signing key) used to generate the quotes.
      * 
* * bytes ak_cert = 4; + * * @return The akCert. */ @java.lang.Override @@ -2186,29 +2457,37 @@ public com.google.protobuf.ByteString getAkCert() { return akCert_; } /** + * + * *
      * DER-encoded X.509 certificate of the Attestation Key (otherwise known as
      * an AK or a TPM restricted signing key) used to generate the quotes.
      * 
* * bytes ak_cert = 4; + * * @param value The akCert to set. * @return This builder for chaining. */ public Builder setAkCert(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + if (value == null) { + throw new NullPointerException(); + } akCert_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * DER-encoded X.509 certificate of the Attestation Key (otherwise known as
      * an AK or a TPM restricted signing key) used to generate the quotes.
      * 
* * bytes ak_cert = 4; + * * @return This builder for chaining. */ public Builder clearAkCert() { @@ -2218,7 +2497,9 @@ public Builder clearAkCert() { return this; } - private java.util.List certChain_ = java.util.Collections.emptyList(); + private java.util.List certChain_ = + java.util.Collections.emptyList(); + private void ensureCertChainIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { certChain_ = new java.util.ArrayList(certChain_); @@ -2226,38 +2507,47 @@ private void ensureCertChainIsMutable() { } } /** + * + * *
      * List of DER-encoded X.509 certificates which, together with the ak_cert,
      * chain back to a trusted Root Certificate.
      * 
* * repeated bytes cert_chain = 5; + * * @return A list containing the certChain. */ - public java.util.List - getCertChainList() { - return ((bitField0_ & 0x00000010) != 0) ? - java.util.Collections.unmodifiableList(certChain_) : certChain_; + public java.util.List getCertChainList() { + return ((bitField0_ & 0x00000010) != 0) + ? java.util.Collections.unmodifiableList(certChain_) + : certChain_; } /** + * + * *
      * List of DER-encoded X.509 certificates which, together with the ak_cert,
      * chain back to a trusted Root Certificate.
      * 
* * repeated bytes cert_chain = 5; + * * @return The count of certChain. */ public int getCertChainCount() { return certChain_.size(); } /** + * + * *
      * List of DER-encoded X.509 certificates which, together with the ak_cert,
      * chain back to a trusted Root Certificate.
      * 
* * repeated bytes cert_chain = 5; + * * @param index The index of the element to return. * @return The certChain at the given index. */ @@ -2265,66 +2555,80 @@ public com.google.protobuf.ByteString getCertChain(int index) { return certChain_.get(index); } /** + * + * *
      * List of DER-encoded X.509 certificates which, together with the ak_cert,
      * chain back to a trusted Root Certificate.
      * 
* * repeated bytes cert_chain = 5; + * * @param index The index to set the value at. * @param value The certChain to set. * @return This builder for chaining. */ - public Builder setCertChain( - int index, com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setCertChain(int index, com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } ensureCertChainIsMutable(); certChain_.set(index, value); onChanged(); return this; } /** + * + * *
      * List of DER-encoded X.509 certificates which, together with the ak_cert,
      * chain back to a trusted Root Certificate.
      * 
* * repeated bytes cert_chain = 5; + * * @param value The certChain to add. * @return This builder for chaining. */ public Builder addCertChain(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + if (value == null) { + throw new NullPointerException(); + } ensureCertChainIsMutable(); certChain_.add(value); onChanged(); return this; } /** + * + * *
      * List of DER-encoded X.509 certificates which, together with the ak_cert,
      * chain back to a trusted Root Certificate.
      * 
* * repeated bytes cert_chain = 5; + * * @param values The certChain to add. * @return This builder for chaining. */ public Builder addAllCertChain( java.lang.Iterable values) { ensureCertChainIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, certChain_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, certChain_); onChanged(); return this; } /** + * + * *
      * List of DER-encoded X.509 certificates which, together with the ak_cert,
      * chain back to a trusted Root Certificate.
      * 
* * repeated bytes cert_chain = 5; + * * @return This builder for chaining. */ public Builder clearCertChain() { @@ -2333,9 +2637,9 @@ public Builder clearCertChain() { 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); } @@ -2345,41 +2649,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.confidentialcomputing.v1alpha1.TpmAttestation) } // @@protoc_insertion_point(class_scope:google.cloud.confidentialcomputing.v1alpha1.TpmAttestation) - private static final com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation DEFAULT_INSTANCE; + private static final com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation(); } - public static com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation getDefaultInstance() { + public static com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TpmAttestation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TpmAttestation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2391,9 +2697,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation getDefaultInstanceForType() { + public com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-confidentialcomputing/v1alpha1/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/TpmAttestationOrBuilder.java b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/TpmAttestationOrBuilder.java similarity index 75% rename from owl-bot-staging/java-confidentialcomputing/v1alpha1/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/TpmAttestationOrBuilder.java rename to java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/TpmAttestationOrBuilder.java index 01ffa7d36b30..75bec7d32baa 100644 --- a/owl-bot-staging/java-confidentialcomputing/v1alpha1/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/TpmAttestationOrBuilder.java +++ b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/TpmAttestationOrBuilder.java @@ -1,57 +1,91 @@ +/* + * Copyright 2023 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/confidentialcomputing/v1alpha1/service.proto package com.google.cloud.confidentialcomputing.v1alpha1; -public interface TpmAttestationOrBuilder extends +public interface TpmAttestationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.confidentialcomputing.v1alpha1.TpmAttestation) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
    * 
* - * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; + * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; + * */ - java.util.List + java.util.List getQuotesList(); /** + * + * *
    * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
    * 
* - * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; + * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; + * */ com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote getQuotes(int index); /** + * + * *
    * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
    * 
* - * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; + * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; + * */ int getQuotesCount(); /** + * + * *
    * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
    * 
* - * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; + * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; + * */ - java.util.List + java.util.List< + ? extends com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.QuoteOrBuilder> getQuotesOrBuilderList(); /** + * + * *
    * TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.
    * 
* - * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; + * repeated .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Quote quotes = 1; + * */ com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.QuoteOrBuilder getQuotesOrBuilder( int index); /** + * + * *
    * The binary TCG Event Log containing events measured into the TPM by the
    * platform firmware and operating system. Formatted as described in the
@@ -59,11 +93,14 @@ com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.QuoteOrBuilder ge
    * 
* * bytes tcg_event_log = 2; + * * @return The tcgEventLog. */ com.google.protobuf.ByteString getTcgEventLog(); /** + * + * *
    * An Event Log containing additional events measured into the TPM that are
    * not already present in the tcg_event_log. Formatted as described in the
@@ -71,48 +108,61 @@ com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.QuoteOrBuilder ge
    * 
* * bytes canonical_event_log = 3; + * * @return The canonicalEventLog. */ com.google.protobuf.ByteString getCanonicalEventLog(); /** + * + * *
    * DER-encoded X.509 certificate of the Attestation Key (otherwise known as
    * an AK or a TPM restricted signing key) used to generate the quotes.
    * 
* * bytes ak_cert = 4; + * * @return The akCert. */ com.google.protobuf.ByteString getAkCert(); /** + * + * *
    * List of DER-encoded X.509 certificates which, together with the ak_cert,
    * chain back to a trusted Root Certificate.
    * 
* * repeated bytes cert_chain = 5; + * * @return A list containing the certChain. */ java.util.List getCertChainList(); /** + * + * *
    * List of DER-encoded X.509 certificates which, together with the ak_cert,
    * chain back to a trusted Root Certificate.
    * 
* * repeated bytes cert_chain = 5; + * * @return The count of certChain. */ int getCertChainCount(); /** + * + * *
    * List of DER-encoded X.509 certificates which, together with the ak_cert,
    * chain back to a trusted Root Certificate.
    * 
* * repeated bytes cert_chain = 5; + * * @param index The index of the element to return. * @return The certChain at the given index. */ diff --git a/owl-bot-staging/java-confidentialcomputing/v1alpha1/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/VerifyAttestationRequest.java b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/VerifyAttestationRequest.java similarity index 58% rename from owl-bot-staging/java-confidentialcomputing/v1alpha1/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/VerifyAttestationRequest.java rename to java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/VerifyAttestationRequest.java index c29a04c0a0bb..3594098ba3d4 100644 --- a/owl-bot-staging/java-confidentialcomputing/v1alpha1/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/VerifyAttestationRequest.java +++ b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/VerifyAttestationRequest.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 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/confidentialcomputing/v1alpha1/service.proto package com.google.cloud.confidentialcomputing.v1alpha1; /** + * + * *
  * A request for an OIDC token, providing all the necessary information needed
  * for this service to verify the plaform state of the requestor.
@@ -11,50 +28,58 @@
  *
  * Protobuf type {@code google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest}
  */
-public final class VerifyAttestationRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class VerifyAttestationRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest)
     VerifyAttestationRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use VerifyAttestationRequest.newBuilder() to construct.
   private VerifyAttestationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private VerifyAttestationRequest() {
     challenge_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new VerifyAttestationRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1alpha1_VerifyAttestationRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto
+        .internal_static_google_cloud_confidentialcomputing_v1alpha1_VerifyAttestationRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1alpha1_VerifyAttestationRequest_fieldAccessorTable
+    return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto
+        .internal_static_google_cloud_confidentialcomputing_v1alpha1_VerifyAttestationRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest.class, com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest.Builder.class);
+            com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest.class,
+            com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest.Builder.class);
   }
 
   public static final int CHALLENGE_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object challenge_ = "";
   /**
+   *
+   *
    * 
    * Required. The name of the Challenge whose nonce was used to generate the
    * attestation, in the format `projects/*/locations/*/challenges/*`. The
    * provided Challenge will be consumed, and cannot be used again.
    * 
* - * string challenge = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string challenge = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The challenge. */ @java.lang.Override @@ -63,31 +88,33 @@ public java.lang.String getChallenge() { 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(); challenge_ = s; return s; } } /** + * + * *
    * Required. The name of the Challenge whose nonce was used to generate the
    * attestation, in the format `projects/*/locations/*/challenges/*`. The
    * provided Challenge will be consumed, and cannot be used again.
    * 
* - * string challenge = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string challenge = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for challenge. */ @java.lang.Override - public com.google.protobuf.ByteString - getChallengeBytes() { + public com.google.protobuf.ByteString getChallengeBytes() { java.lang.Object ref = challenge_; 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); challenge_ = b; return b; } else { @@ -98,12 +125,17 @@ public java.lang.String getChallenge() { public static final int GCP_CREDENTIALS_FIELD_NUMBER = 2; private com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials gcpCredentials_; /** + * + * *
    * Optional. Credentials used to populate the "emails" claim in the
    * claims_token.
    * 
* - * .google.cloud.confidentialcomputing.v1alpha1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.confidentialcomputing.v1alpha1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the gcpCredentials field is set. */ @java.lang.Override @@ -111,40 +143,59 @@ public boolean hasGcpCredentials() { return gcpCredentials_ != null; } /** + * + * *
    * Optional. Credentials used to populate the "emails" claim in the
    * claims_token.
    * 
* - * .google.cloud.confidentialcomputing.v1alpha1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.confidentialcomputing.v1alpha1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The gcpCredentials. */ @java.lang.Override public com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials getGcpCredentials() { - return gcpCredentials_ == null ? com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials.getDefaultInstance() : gcpCredentials_; + return gcpCredentials_ == null + ? com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials.getDefaultInstance() + : gcpCredentials_; } /** + * + * *
    * Optional. Credentials used to populate the "emails" claim in the
    * claims_token.
    * 
* - * .google.cloud.confidentialcomputing.v1alpha1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.confidentialcomputing.v1alpha1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentialsOrBuilder getGcpCredentialsOrBuilder() { - return gcpCredentials_ == null ? com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials.getDefaultInstance() : gcpCredentials_; + public com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentialsOrBuilder + getGcpCredentialsOrBuilder() { + return gcpCredentials_ == null + ? com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials.getDefaultInstance() + : gcpCredentials_; } public static final int TPM_ATTESTATION_FIELD_NUMBER = 3; private com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation tpmAttestation_; /** + * + * *
    * Required. The TPM-specific data provided by the attesting platform, used to
    * populate any of the claims regarding platform state.
    * 
* - * .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the tpmAttestation field is set. */ @java.lang.Override @@ -152,32 +203,47 @@ public boolean hasTpmAttestation() { return tpmAttestation_ != null; } /** + * + * *
    * Required. The TPM-specific data provided by the attesting platform, used to
    * populate any of the claims regarding platform state.
    * 
* - * .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The tpmAttestation. */ @java.lang.Override public com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation getTpmAttestation() { - return tpmAttestation_ == null ? com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.getDefaultInstance() : tpmAttestation_; + return tpmAttestation_ == null + ? com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.getDefaultInstance() + : tpmAttestation_; } /** + * + * *
    * Required. The TPM-specific data provided by the attesting platform, used to
    * populate any of the claims regarding platform state.
    * 
* - * .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestationOrBuilder getTpmAttestationOrBuilder() { - return tpmAttestation_ == null ? com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.getDefaultInstance() : tpmAttestation_; + public com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestationOrBuilder + getTpmAttestationOrBuilder() { + return tpmAttestation_ == null + ? com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.getDefaultInstance() + : tpmAttestation_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -189,8 +255,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(challenge_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, challenge_); } @@ -213,12 +278,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, challenge_); } if (gcpCredentials_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getGcpCredentials()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getGcpCredentials()); } if (tpmAttestation_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getTpmAttestation()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getTpmAttestation()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -228,24 +291,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.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest)) { + if (!(obj + instanceof com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest)) { return super.equals(obj); } - com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest other = (com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest) obj; + com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest other = + (com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest) obj; - if (!getChallenge() - .equals(other.getChallenge())) return false; + if (!getChallenge().equals(other.getChallenge())) return false; if (hasGcpCredentials() != other.hasGcpCredentials()) return false; if (hasGcpCredentials()) { - if (!getGcpCredentials() - .equals(other.getGcpCredentials())) return false; + if (!getGcpCredentials().equals(other.getGcpCredentials())) return false; } if (hasTpmAttestation() != other.hasTpmAttestation()) return false; if (hasTpmAttestation()) { - if (!getTpmAttestation() - .equals(other.getTpmAttestation())) return false; + if (!getTpmAttestation().equals(other.getTpmAttestation())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -274,98 +336,105 @@ public int hashCode() { } public static com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest 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.confidentialcomputing.v1alpha1.VerifyAttestationRequest 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.confidentialcomputing.v1alpha1.VerifyAttestationRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest 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.confidentialcomputing.v1alpha1.VerifyAttestationRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest 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.confidentialcomputing.v1alpha1.VerifyAttestationRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest 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.confidentialcomputing.v1alpha1.VerifyAttestationRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest 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.confidentialcomputing.v1alpha1.VerifyAttestationRequest + 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.confidentialcomputing.v1alpha1.VerifyAttestationRequest 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.confidentialcomputing.v1alpha1.VerifyAttestationRequest 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.confidentialcomputing.v1alpha1.VerifyAttestationRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest 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 request for an OIDC token, providing all the necessary information needed
    * for this service to verify the plaform state of the requestor.
@@ -373,33 +442,34 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest}
    */
-  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.confidentialcomputing.v1alpha1.VerifyAttestationRequest)
       com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1alpha1_VerifyAttestationRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto
+          .internal_static_google_cloud_confidentialcomputing_v1alpha1_VerifyAttestationRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1alpha1_VerifyAttestationRequest_fieldAccessorTable
+      return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto
+          .internal_static_google_cloud_confidentialcomputing_v1alpha1_VerifyAttestationRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest.class, com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest.Builder.class);
+              com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest.class,
+              com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest.Builder
+                  .class);
     }
 
-    // Construct using com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest.newBuilder()
-    private Builder() {
+    // Construct using
+    // com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest.newBuilder()
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -419,19 +489,22 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1alpha1_VerifyAttestationRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto
+          .internal_static_google_cloud_confidentialcomputing_v1alpha1_VerifyAttestationRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest getDefaultInstanceForType() {
-      return com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest.getDefaultInstance();
+    public com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest
+        getDefaultInstanceForType() {
+      return com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest
+          .getDefaultInstance();
     }
 
     @java.lang.Override
     public com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest build() {
-      com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest result = buildPartial();
+      com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest result =
+          buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
@@ -440,26 +513,28 @@ public com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest
 
     @java.lang.Override
     public com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest buildPartial() {
-      com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest result = new com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest result =
+          new com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest result) {
+    private void buildPartial0(
+        com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.challenge_ = challenge_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.gcpCredentials_ = gcpCredentialsBuilder_ == null
-            ? gcpCredentials_
-            : gcpCredentialsBuilder_.build();
+        result.gcpCredentials_ =
+            gcpCredentialsBuilder_ == null ? gcpCredentials_ : gcpCredentialsBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.tpmAttestation_ = tpmAttestationBuilder_ == null
-            ? tpmAttestation_
-            : tpmAttestationBuilder_.build();
+        result.tpmAttestation_ =
+            tpmAttestationBuilder_ == null ? tpmAttestation_ : tpmAttestationBuilder_.build();
       }
     }
 
@@ -467,46 +542,52 @@ private void buildPartial0(com.google.cloud.confidentialcomputing.v1alpha1.Verif
     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.confidentialcomputing.v1alpha1.VerifyAttestationRequest) {
-        return mergeFrom((com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest)other);
+      if (other
+          instanceof com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest) {
+        return mergeFrom(
+            (com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest other) {
-      if (other == com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest other) {
+      if (other
+          == com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest
+              .getDefaultInstance()) return this;
       if (!other.getChallenge().isEmpty()) {
         challenge_ = other.challenge_;
         bitField0_ |= 0x00000001;
@@ -544,31 +625,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              challenge_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              input.readMessage(
-                  getGcpCredentialsFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              input.readMessage(
-                  getTpmAttestationFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                challenge_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                input.readMessage(getGcpCredentialsFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                input.readMessage(getTpmAttestationFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -578,24 +659,29 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object challenge_ = "";
     /**
+     *
+     *
      * 
      * Required. The name of the Challenge whose nonce was used to generate the
      * attestation, in the format `projects/*/locations/*/challenges/*`. The
      * provided Challenge will be consumed, and cannot be used again.
      * 
* - * string challenge = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string challenge = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The challenge. */ public java.lang.String getChallenge() { java.lang.Object ref = challenge_; 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(); challenge_ = s; return s; @@ -604,22 +690,25 @@ public java.lang.String getChallenge() { } } /** + * + * *
      * Required. The name of the Challenge whose nonce was used to generate the
      * attestation, in the format `projects/*/locations/*/challenges/*`. The
      * provided Challenge will be consumed, and cannot be used again.
      * 
* - * string challenge = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string challenge = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for challenge. */ - public com.google.protobuf.ByteString - getChallengeBytes() { + public com.google.protobuf.ByteString getChallengeBytes() { java.lang.Object ref = challenge_; 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); challenge_ = b; return b; } else { @@ -627,32 +716,43 @@ public java.lang.String getChallenge() { } } /** + * + * *
      * Required. The name of the Challenge whose nonce was used to generate the
      * attestation, in the format `projects/*/locations/*/challenges/*`. The
      * provided Challenge will be consumed, and cannot be used again.
      * 
* - * string challenge = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string challenge = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The challenge to set. * @return This builder for chaining. */ - public Builder setChallenge( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setChallenge(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } challenge_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the Challenge whose nonce was used to generate the
      * attestation, in the format `projects/*/locations/*/challenges/*`. The
      * provided Challenge will be consumed, and cannot be used again.
      * 
* - * string challenge = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string challenge = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearChallenge() { @@ -662,19 +762,25 @@ public Builder clearChallenge() { return this; } /** + * + * *
      * Required. The name of the Challenge whose nonce was used to generate the
      * attestation, in the format `projects/*/locations/*/challenges/*`. The
      * provided Challenge will be consumed, and cannot be used again.
      * 
* - * string challenge = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string challenge = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for challenge to set. * @return This builder for chaining. */ - public Builder setChallengeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setChallengeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); challenge_ = value; bitField0_ |= 0x00000001; @@ -684,44 +790,64 @@ public Builder setChallengeBytes( private com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials gcpCredentials_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials, com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials.Builder, com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentialsOrBuilder> gcpCredentialsBuilder_; + com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials, + com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials.Builder, + com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentialsOrBuilder> + gcpCredentialsBuilder_; /** + * + * *
      * Optional. Credentials used to populate the "emails" claim in the
      * claims_token.
      * 
* - * .google.cloud.confidentialcomputing.v1alpha1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.confidentialcomputing.v1alpha1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the gcpCredentials field is set. */ public boolean hasGcpCredentials() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Optional. Credentials used to populate the "emails" claim in the
      * claims_token.
      * 
* - * .google.cloud.confidentialcomputing.v1alpha1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.confidentialcomputing.v1alpha1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The gcpCredentials. */ public com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials getGcpCredentials() { if (gcpCredentialsBuilder_ == null) { - return gcpCredentials_ == null ? com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials.getDefaultInstance() : gcpCredentials_; + return gcpCredentials_ == null + ? com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials.getDefaultInstance() + : gcpCredentials_; } else { return gcpCredentialsBuilder_.getMessage(); } } /** + * + * *
      * Optional. Credentials used to populate the "emails" claim in the
      * claims_token.
      * 
* - * .google.cloud.confidentialcomputing.v1alpha1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.confidentialcomputing.v1alpha1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setGcpCredentials(com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials value) { + public Builder setGcpCredentials( + com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials value) { if (gcpCredentialsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -735,12 +861,16 @@ public Builder setGcpCredentials(com.google.cloud.confidentialcomputing.v1alpha1 return this; } /** + * + * *
      * Optional. Credentials used to populate the "emails" claim in the
      * claims_token.
      * 
* - * .google.cloud.confidentialcomputing.v1alpha1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.confidentialcomputing.v1alpha1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setGcpCredentials( com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials.Builder builderForValue) { @@ -754,18 +884,25 @@ public Builder setGcpCredentials( return this; } /** + * + * *
      * Optional. Credentials used to populate the "emails" claim in the
      * claims_token.
      * 
* - * .google.cloud.confidentialcomputing.v1alpha1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.confidentialcomputing.v1alpha1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeGcpCredentials(com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials value) { + public Builder mergeGcpCredentials( + com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials value) { if (gcpCredentialsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - gcpCredentials_ != null && - gcpCredentials_ != com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && gcpCredentials_ != null + && gcpCredentials_ + != com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials + .getDefaultInstance()) { getGcpCredentialsBuilder().mergeFrom(value); } else { gcpCredentials_ = value; @@ -778,12 +915,16 @@ public Builder mergeGcpCredentials(com.google.cloud.confidentialcomputing.v1alph return this; } /** + * + * *
      * Optional. Credentials used to populate the "emails" claim in the
      * claims_token.
      * 
* - * .google.cloud.confidentialcomputing.v1alpha1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.confidentialcomputing.v1alpha1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearGcpCredentials() { bitField0_ = (bitField0_ & ~0x00000002); @@ -796,51 +937,69 @@ public Builder clearGcpCredentials() { return this; } /** + * + * *
      * Optional. Credentials used to populate the "emails" claim in the
      * claims_token.
      * 
* - * .google.cloud.confidentialcomputing.v1alpha1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.confidentialcomputing.v1alpha1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials.Builder getGcpCredentialsBuilder() { + public com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials.Builder + getGcpCredentialsBuilder() { bitField0_ |= 0x00000002; onChanged(); return getGcpCredentialsFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Credentials used to populate the "emails" claim in the
      * claims_token.
      * 
* - * .google.cloud.confidentialcomputing.v1alpha1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.confidentialcomputing.v1alpha1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentialsOrBuilder getGcpCredentialsOrBuilder() { + public com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentialsOrBuilder + getGcpCredentialsOrBuilder() { if (gcpCredentialsBuilder_ != null) { return gcpCredentialsBuilder_.getMessageOrBuilder(); } else { - return gcpCredentials_ == null ? - com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials.getDefaultInstance() : gcpCredentials_; + return gcpCredentials_ == null + ? com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials.getDefaultInstance() + : gcpCredentials_; } } /** + * + * *
      * Optional. Credentials used to populate the "emails" claim in the
      * claims_token.
      * 
* - * .google.cloud.confidentialcomputing.v1alpha1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.confidentialcomputing.v1alpha1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials, com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials.Builder, com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentialsOrBuilder> + com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials, + com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials.Builder, + com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentialsOrBuilder> getGcpCredentialsFieldBuilder() { if (gcpCredentialsBuilder_ == null) { - gcpCredentialsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials, com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials.Builder, com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentialsOrBuilder>( - getGcpCredentials(), - getParentForChildren(), - isClean()); + gcpCredentialsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials, + com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials.Builder, + com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentialsOrBuilder>( + getGcpCredentials(), getParentForChildren(), isClean()); gcpCredentials_ = null; } return gcpCredentialsBuilder_; @@ -848,44 +1007,64 @@ public com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentialsOrBuilder g private com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation tpmAttestation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation, com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Builder, com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestationOrBuilder> tpmAttestationBuilder_; + com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation, + com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Builder, + com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestationOrBuilder> + tpmAttestationBuilder_; /** + * + * *
      * Required. The TPM-specific data provided by the attesting platform, used to
      * populate any of the claims regarding platform state.
      * 
* - * .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the tpmAttestation field is set. */ public boolean hasTpmAttestation() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Required. The TPM-specific data provided by the attesting platform, used to
      * populate any of the claims regarding platform state.
      * 
* - * .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The tpmAttestation. */ public com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation getTpmAttestation() { if (tpmAttestationBuilder_ == null) { - return tpmAttestation_ == null ? com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.getDefaultInstance() : tpmAttestation_; + return tpmAttestation_ == null + ? com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.getDefaultInstance() + : tpmAttestation_; } else { return tpmAttestationBuilder_.getMessage(); } } /** + * + * *
      * Required. The TPM-specific data provided by the attesting platform, used to
      * populate any of the claims regarding platform state.
      * 
* - * .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setTpmAttestation(com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation value) { + public Builder setTpmAttestation( + com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation value) { if (tpmAttestationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -899,12 +1078,16 @@ public Builder setTpmAttestation(com.google.cloud.confidentialcomputing.v1alpha1 return this; } /** + * + * *
      * Required. The TPM-specific data provided by the attesting platform, used to
      * populate any of the claims regarding platform state.
      * 
* - * .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setTpmAttestation( com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Builder builderForValue) { @@ -918,18 +1101,25 @@ public Builder setTpmAttestation( return this; } /** + * + * *
      * Required. The TPM-specific data provided by the attesting platform, used to
      * populate any of the claims regarding platform state.
      * 
* - * .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder mergeTpmAttestation(com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation value) { + public Builder mergeTpmAttestation( + com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation value) { if (tpmAttestationBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - tpmAttestation_ != null && - tpmAttestation_ != com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && tpmAttestation_ != null + && tpmAttestation_ + != com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation + .getDefaultInstance()) { getTpmAttestationBuilder().mergeFrom(value); } else { tpmAttestation_ = value; @@ -942,12 +1132,16 @@ public Builder mergeTpmAttestation(com.google.cloud.confidentialcomputing.v1alph return this; } /** + * + * *
      * Required. The TPM-specific data provided by the attesting platform, used to
      * populate any of the claims regarding platform state.
      * 
* - * .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearTpmAttestation() { bitField0_ = (bitField0_ & ~0x00000004); @@ -960,58 +1154,76 @@ public Builder clearTpmAttestation() { return this; } /** + * + * *
      * Required. The TPM-specific data provided by the attesting platform, used to
      * populate any of the claims regarding platform state.
      * 
* - * .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Builder getTpmAttestationBuilder() { + public com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Builder + getTpmAttestationBuilder() { bitField0_ |= 0x00000004; onChanged(); return getTpmAttestationFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The TPM-specific data provided by the attesting platform, used to
      * populate any of the claims regarding platform state.
      * 
* - * .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestationOrBuilder getTpmAttestationOrBuilder() { + public com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestationOrBuilder + getTpmAttestationOrBuilder() { if (tpmAttestationBuilder_ != null) { return tpmAttestationBuilder_.getMessageOrBuilder(); } else { - return tpmAttestation_ == null ? - com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.getDefaultInstance() : tpmAttestation_; + return tpmAttestation_ == null + ? com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.getDefaultInstance() + : tpmAttestation_; } } /** + * + * *
      * Required. The TPM-specific data provided by the attesting platform, used to
      * populate any of the claims regarding platform state.
      * 
* - * .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation, com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Builder, com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestationOrBuilder> + com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation, + com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Builder, + com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestationOrBuilder> getTpmAttestationFieldBuilder() { if (tpmAttestationBuilder_ == null) { - tpmAttestationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation, com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Builder, com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestationOrBuilder>( - getTpmAttestation(), - getParentForChildren(), - isClean()); + tpmAttestationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation, + com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.Builder, + com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestationOrBuilder>( + getTpmAttestation(), getParentForChildren(), isClean()); tpmAttestation_ = null; } return tpmAttestationBuilder_; } + @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); } @@ -1021,41 +1233,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest) } // @@protoc_insertion_point(class_scope:google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest) - private static final com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest DEFAULT_INSTANCE; + private static final com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest(); + DEFAULT_INSTANCE = + new com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest(); } - public static com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest getDefaultInstance() { + public static com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VerifyAttestationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VerifyAttestationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1067,9 +1282,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest getDefaultInstanceForType() { + public com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-confidentialcomputing/v1alpha1/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/VerifyAttestationRequestOrBuilder.java b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/VerifyAttestationRequestOrBuilder.java similarity index 54% rename from owl-bot-staging/java-confidentialcomputing/v1alpha1/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/VerifyAttestationRequestOrBuilder.java rename to java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/VerifyAttestationRequestOrBuilder.java index c2488450decd..1b5a7fd634b4 100644 --- a/owl-bot-staging/java-confidentialcomputing/v1alpha1/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/VerifyAttestationRequestOrBuilder.java +++ b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/VerifyAttestationRequestOrBuilder.java @@ -1,93 +1,148 @@ +/* + * Copyright 2023 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/confidentialcomputing/v1alpha1/service.proto package com.google.cloud.confidentialcomputing.v1alpha1; -public interface VerifyAttestationRequestOrBuilder extends +public interface VerifyAttestationRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The name of the Challenge whose nonce was used to generate the
    * attestation, in the format `projects/*/locations/*/challenges/*`. The
    * provided Challenge will be consumed, and cannot be used again.
    * 
* - * string challenge = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string challenge = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The challenge. */ java.lang.String getChallenge(); /** + * + * *
    * Required. The name of the Challenge whose nonce was used to generate the
    * attestation, in the format `projects/*/locations/*/challenges/*`. The
    * provided Challenge will be consumed, and cannot be used again.
    * 
* - * string challenge = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string challenge = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for challenge. */ - com.google.protobuf.ByteString - getChallengeBytes(); + com.google.protobuf.ByteString getChallengeBytes(); /** + * + * *
    * Optional. Credentials used to populate the "emails" claim in the
    * claims_token.
    * 
* - * .google.cloud.confidentialcomputing.v1alpha1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.confidentialcomputing.v1alpha1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the gcpCredentials field is set. */ boolean hasGcpCredentials(); /** + * + * *
    * Optional. Credentials used to populate the "emails" claim in the
    * claims_token.
    * 
* - * .google.cloud.confidentialcomputing.v1alpha1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.confidentialcomputing.v1alpha1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The gcpCredentials. */ com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials getGcpCredentials(); /** + * + * *
    * Optional. Credentials used to populate the "emails" claim in the
    * claims_token.
    * 
* - * .google.cloud.confidentialcomputing.v1alpha1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.confidentialcomputing.v1alpha1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentialsOrBuilder getGcpCredentialsOrBuilder(); + com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentialsOrBuilder + getGcpCredentialsOrBuilder(); /** + * + * *
    * Required. The TPM-specific data provided by the attesting platform, used to
    * populate any of the claims regarding platform state.
    * 
* - * .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the tpmAttestation field is set. */ boolean hasTpmAttestation(); /** + * + * *
    * Required. The TPM-specific data provided by the attesting platform, used to
    * populate any of the claims regarding platform state.
    * 
* - * .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The tpmAttestation. */ com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation getTpmAttestation(); /** + * + * *
    * Required. The TPM-specific data provided by the attesting platform, used to
    * populate any of the claims regarding platform state.
    * 
* - * .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.confidentialcomputing.v1alpha1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestationOrBuilder getTpmAttestationOrBuilder(); + com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestationOrBuilder + getTpmAttestationOrBuilder(); } diff --git a/owl-bot-staging/java-confidentialcomputing/v1alpha1/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/VerifyAttestationResponse.java b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/VerifyAttestationResponse.java similarity index 60% rename from owl-bot-staging/java-confidentialcomputing/v1alpha1/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/VerifyAttestationResponse.java rename to java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/VerifyAttestationResponse.java index dc6b4a948887..c9d2a619b919 100644 --- a/owl-bot-staging/java-confidentialcomputing/v1alpha1/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/VerifyAttestationResponse.java +++ b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/VerifyAttestationResponse.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 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/confidentialcomputing/v1alpha1/service.proto package com.google.cloud.confidentialcomputing.v1alpha1; /** + * + * *
  * A response once an attestation has been successfully verified, containing a
  * signed OIDC token.
@@ -11,42 +28,47 @@
  *
  * Protobuf type {@code google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse}
  */
-public final class VerifyAttestationResponse extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class VerifyAttestationResponse extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse)
     VerifyAttestationResponseOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use VerifyAttestationResponse.newBuilder() to construct.
   private VerifyAttestationResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private VerifyAttestationResponse() {
     claimsToken_ = com.google.protobuf.ByteString.EMPTY;
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new VerifyAttestationResponse();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1alpha1_VerifyAttestationResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto
+        .internal_static_google_cloud_confidentialcomputing_v1alpha1_VerifyAttestationResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1alpha1_VerifyAttestationResponse_fieldAccessorTable
+    return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto
+        .internal_static_google_cloud_confidentialcomputing_v1alpha1_VerifyAttestationResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse.class, com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse.Builder.class);
+            com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse.class,
+            com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse.Builder
+                .class);
   }
 
   public static final int CLAIMS_TOKEN_FIELD_NUMBER = 1;
   private com.google.protobuf.ByteString claimsToken_ = com.google.protobuf.ByteString.EMPTY;
   /**
+   *
+   *
    * 
    * Output only. The OIDC token issued by this service. It contains specific
    * platform claims based on the contents of the provided attestation.
@@ -54,6 +76,7 @@ protected java.lang.Object newInstance(
    * 
* * bytes claims_token = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The claimsToken. */ @java.lang.Override @@ -62,6 +85,7 @@ public com.google.protobuf.ByteString getClaimsToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -73,8 +97,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 (!claimsToken_.isEmpty()) { output.writeBytes(1, claimsToken_); } @@ -88,8 +111,7 @@ public int getSerializedSize() { size = 0; if (!claimsToken_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, claimsToken_); + size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, claimsToken_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -99,15 +121,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.confidentialcomputing.v1alpha1.VerifyAttestationResponse)) { + if (!(obj + instanceof com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse)) { return super.equals(obj); } - com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse other = (com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse) obj; + com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse other = + (com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse) obj; - if (!getClaimsToken() - .equals(other.getClaimsToken())) return false; + if (!getClaimsToken().equals(other.getClaimsToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -127,98 +150,105 @@ public int hashCode() { } public static com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse 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.confidentialcomputing.v1alpha1.VerifyAttestationResponse 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.confidentialcomputing.v1alpha1.VerifyAttestationResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse 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.confidentialcomputing.v1alpha1.VerifyAttestationResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse 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.confidentialcomputing.v1alpha1.VerifyAttestationResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse 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.confidentialcomputing.v1alpha1.VerifyAttestationResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse 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.confidentialcomputing.v1alpha1.VerifyAttestationResponse + 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.confidentialcomputing.v1alpha1.VerifyAttestationResponse 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.confidentialcomputing.v1alpha1.VerifyAttestationResponse 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.confidentialcomputing.v1alpha1.VerifyAttestationResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse 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 response once an attestation has been successfully verified, containing a
    * signed OIDC token.
@@ -226,33 +256,34 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse}
    */
-  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.confidentialcomputing.v1alpha1.VerifyAttestationResponse)
       com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1alpha1_VerifyAttestationResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto
+          .internal_static_google_cloud_confidentialcomputing_v1alpha1_VerifyAttestationResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1alpha1_VerifyAttestationResponse_fieldAccessorTable
+      return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto
+          .internal_static_google_cloud_confidentialcomputing_v1alpha1_VerifyAttestationResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse.class, com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse.Builder.class);
+              com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse.class,
+              com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse.Builder
+                  .class);
     }
 
-    // Construct using com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse.newBuilder()
-    private Builder() {
+    // Construct using
+    // com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse.newBuilder()
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -262,19 +293,22 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto.internal_static_google_cloud_confidentialcomputing_v1alpha1_VerifyAttestationResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto
+          .internal_static_google_cloud_confidentialcomputing_v1alpha1_VerifyAttestationResponse_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse getDefaultInstanceForType() {
-      return com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse.getDefaultInstance();
+    public com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse
+        getDefaultInstanceForType() {
+      return com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse
+          .getDefaultInstance();
     }
 
     @java.lang.Override
     public com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse build() {
-      com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse result = buildPartial();
+      com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse result =
+          buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
@@ -282,14 +316,19 @@ public com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse
     }
 
     @java.lang.Override
-    public com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse buildPartial() {
-      com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse result = new com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+    public com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse
+        buildPartial() {
+      com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse result =
+          new com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse result) {
+    private void buildPartial0(
+        com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.claimsToken_ = claimsToken_;
@@ -300,46 +339,52 @@ private void buildPartial0(com.google.cloud.confidentialcomputing.v1alpha1.Verif
     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.confidentialcomputing.v1alpha1.VerifyAttestationResponse) {
-        return mergeFrom((com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse)other);
+      if (other
+          instanceof com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse) {
+        return mergeFrom(
+            (com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse other) {
-      if (other == com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse other) {
+      if (other
+          == com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse
+              .getDefaultInstance()) return this;
       if (other.getClaimsToken() != com.google.protobuf.ByteString.EMPTY) {
         setClaimsToken(other.getClaimsToken());
       }
@@ -369,17 +414,19 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              claimsToken_ = input.readBytes();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                claimsToken_ = input.readBytes();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -389,10 +436,13 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private com.google.protobuf.ByteString claimsToken_ = com.google.protobuf.ByteString.EMPTY;
     /**
+     *
+     *
      * 
      * Output only. The OIDC token issued by this service. It contains specific
      * platform claims based on the contents of the provided attestation.
@@ -400,6 +450,7 @@ public Builder mergeFrom(
      * 
* * bytes claims_token = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The claimsToken. */ @java.lang.Override @@ -407,6 +458,8 @@ public com.google.protobuf.ByteString getClaimsToken() { return claimsToken_; } /** + * + * *
      * Output only. The OIDC token issued by this service. It contains specific
      * platform claims based on the contents of the provided attestation.
@@ -414,17 +467,22 @@ public com.google.protobuf.ByteString getClaimsToken() {
      * 
* * bytes claims_token = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The claimsToken to set. * @return This builder for chaining. */ public Builder setClaimsToken(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + if (value == null) { + throw new NullPointerException(); + } claimsToken_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Output only. The OIDC token issued by this service. It contains specific
      * platform claims based on the contents of the provided attestation.
@@ -432,6 +490,7 @@ public Builder setClaimsToken(com.google.protobuf.ByteString value) {
      * 
* * bytes claims_token = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearClaimsToken() { @@ -440,9 +499,9 @@ public Builder clearClaimsToken() { 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); } @@ -452,41 +511,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse) } // @@protoc_insertion_point(class_scope:google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse) - private static final com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse DEFAULT_INSTANCE; + private static final com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse(); + DEFAULT_INSTANCE = + new com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse(); } - public static com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse getDefaultInstance() { + public static com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VerifyAttestationResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VerifyAttestationResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -498,9 +560,8 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse getDefaultInstanceForType() { + public com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-confidentialcomputing/v1alpha1/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/VerifyAttestationResponseOrBuilder.java b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/VerifyAttestationResponseOrBuilder.java similarity index 51% rename from owl-bot-staging/java-confidentialcomputing/v1alpha1/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/VerifyAttestationResponseOrBuilder.java rename to java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/VerifyAttestationResponseOrBuilder.java index d303ead63f8c..e00546ed9786 100644 --- a/owl-bot-staging/java-confidentialcomputing/v1alpha1/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/VerifyAttestationResponseOrBuilder.java +++ b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/VerifyAttestationResponseOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 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/confidentialcomputing/v1alpha1/service.proto package com.google.cloud.confidentialcomputing.v1alpha1; -public interface VerifyAttestationResponseOrBuilder extends +public interface VerifyAttestationResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The OIDC token issued by this service. It contains specific
    * platform claims based on the contents of the provided attestation.
@@ -15,6 +33,7 @@ public interface VerifyAttestationResponseOrBuilder extends
    * 
* * bytes claims_token = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The claimsToken. */ com.google.protobuf.ByteString getClaimsToken(); diff --git a/owl-bot-staging/java-confidentialcomputing/v1alpha1/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/proto/google/cloud/confidentialcomputing/v1alpha1/service.proto b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/proto/google/cloud/confidentialcomputing/v1alpha1/service.proto similarity index 100% rename from owl-bot-staging/java-confidentialcomputing/v1alpha1/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/proto/google/cloud/confidentialcomputing/v1alpha1/service.proto rename to java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/proto/google/cloud/confidentialcomputing/v1alpha1/service.proto diff --git a/owl-bot-staging/java-confidentialcomputing/v1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/create/SyncCreateSetCredentialsProvider.java b/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/java-confidentialcomputing/v1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/create/SyncCreateSetCredentialsProvider.java rename to java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/java-confidentialcomputing/v1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/create/SyncCreateSetCredentialsProvider1.java b/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from owl-bot-staging/java-confidentialcomputing/v1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/create/SyncCreateSetCredentialsProvider1.java rename to java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/create/SyncCreateSetCredentialsProvider1.java diff --git a/owl-bot-staging/java-confidentialcomputing/v1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/create/SyncCreateSetEndpoint.java b/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/java-confidentialcomputing/v1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/create/SyncCreateSetEndpoint.java rename to java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/java-confidentialcomputing/v1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/createchallenge/AsyncCreateChallenge.java b/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/createchallenge/AsyncCreateChallenge.java similarity index 100% rename from owl-bot-staging/java-confidentialcomputing/v1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/createchallenge/AsyncCreateChallenge.java rename to java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/createchallenge/AsyncCreateChallenge.java diff --git a/owl-bot-staging/java-confidentialcomputing/v1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/createchallenge/SyncCreateChallenge.java b/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/createchallenge/SyncCreateChallenge.java similarity index 100% rename from owl-bot-staging/java-confidentialcomputing/v1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/createchallenge/SyncCreateChallenge.java rename to java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/createchallenge/SyncCreateChallenge.java diff --git a/owl-bot-staging/java-confidentialcomputing/v1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/createchallenge/SyncCreateChallengeLocationnameChallenge.java b/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/createchallenge/SyncCreateChallengeLocationnameChallenge.java similarity index 100% rename from owl-bot-staging/java-confidentialcomputing/v1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/createchallenge/SyncCreateChallengeLocationnameChallenge.java rename to java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/createchallenge/SyncCreateChallengeLocationnameChallenge.java diff --git a/owl-bot-staging/java-confidentialcomputing/v1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/createchallenge/SyncCreateChallengeStringChallenge.java b/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/createchallenge/SyncCreateChallengeStringChallenge.java similarity index 100% rename from owl-bot-staging/java-confidentialcomputing/v1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/createchallenge/SyncCreateChallengeStringChallenge.java rename to java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/createchallenge/SyncCreateChallengeStringChallenge.java diff --git a/owl-bot-staging/java-confidentialcomputing/v1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/getlocation/AsyncGetLocation.java b/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/getlocation/AsyncGetLocation.java similarity index 100% rename from owl-bot-staging/java-confidentialcomputing/v1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/getlocation/AsyncGetLocation.java rename to java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/getlocation/AsyncGetLocation.java diff --git a/owl-bot-staging/java-confidentialcomputing/v1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/getlocation/SyncGetLocation.java b/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/getlocation/SyncGetLocation.java similarity index 100% rename from owl-bot-staging/java-confidentialcomputing/v1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/getlocation/SyncGetLocation.java rename to java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/getlocation/SyncGetLocation.java diff --git a/owl-bot-staging/java-confidentialcomputing/v1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/listlocations/AsyncListLocations.java b/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/listlocations/AsyncListLocations.java similarity index 100% rename from owl-bot-staging/java-confidentialcomputing/v1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/listlocations/AsyncListLocations.java rename to java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/listlocations/AsyncListLocations.java diff --git a/owl-bot-staging/java-confidentialcomputing/v1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/listlocations/AsyncListLocationsPaged.java b/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/listlocations/AsyncListLocationsPaged.java similarity index 100% rename from owl-bot-staging/java-confidentialcomputing/v1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/listlocations/AsyncListLocationsPaged.java rename to java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/listlocations/AsyncListLocationsPaged.java diff --git a/owl-bot-staging/java-confidentialcomputing/v1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/listlocations/SyncListLocations.java b/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/listlocations/SyncListLocations.java similarity index 100% rename from owl-bot-staging/java-confidentialcomputing/v1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/listlocations/SyncListLocations.java rename to java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/listlocations/SyncListLocations.java diff --git a/owl-bot-staging/java-confidentialcomputing/v1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/verifyattestation/AsyncVerifyAttestation.java b/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/verifyattestation/AsyncVerifyAttestation.java similarity index 100% rename from owl-bot-staging/java-confidentialcomputing/v1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/verifyattestation/AsyncVerifyAttestation.java rename to java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/verifyattestation/AsyncVerifyAttestation.java diff --git a/owl-bot-staging/java-confidentialcomputing/v1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/verifyattestation/SyncVerifyAttestation.java b/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/verifyattestation/SyncVerifyAttestation.java similarity index 100% rename from owl-bot-staging/java-confidentialcomputing/v1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/verifyattestation/SyncVerifyAttestation.java rename to java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/verifyattestation/SyncVerifyAttestation.java diff --git a/owl-bot-staging/java-confidentialcomputing/v1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputingsettings/createchallenge/SyncCreateChallenge.java b/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputingsettings/createchallenge/SyncCreateChallenge.java similarity index 100% rename from owl-bot-staging/java-confidentialcomputing/v1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputingsettings/createchallenge/SyncCreateChallenge.java rename to java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputingsettings/createchallenge/SyncCreateChallenge.java diff --git a/owl-bot-staging/java-confidentialcomputing/v1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/stub/confidentialcomputingstubsettings/createchallenge/SyncCreateChallenge.java b/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/stub/confidentialcomputingstubsettings/createchallenge/SyncCreateChallenge.java similarity index 100% rename from owl-bot-staging/java-confidentialcomputing/v1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/stub/confidentialcomputingstubsettings/createchallenge/SyncCreateChallenge.java rename to java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/stub/confidentialcomputingstubsettings/createchallenge/SyncCreateChallenge.java diff --git a/owl-bot-staging/java-confidentialcomputing/v1alpha1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/create/SyncCreateSetCredentialsProvider.java b/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/java-confidentialcomputing/v1alpha1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/create/SyncCreateSetCredentialsProvider.java rename to java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/java-confidentialcomputing/v1alpha1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/create/SyncCreateSetCredentialsProvider1.java b/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from owl-bot-staging/java-confidentialcomputing/v1alpha1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/create/SyncCreateSetCredentialsProvider1.java rename to java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/create/SyncCreateSetCredentialsProvider1.java diff --git a/owl-bot-staging/java-confidentialcomputing/v1alpha1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/create/SyncCreateSetEndpoint.java b/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/java-confidentialcomputing/v1alpha1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/create/SyncCreateSetEndpoint.java rename to java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/java-confidentialcomputing/v1alpha1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/createchallenge/AsyncCreateChallenge.java b/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/createchallenge/AsyncCreateChallenge.java similarity index 100% rename from owl-bot-staging/java-confidentialcomputing/v1alpha1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/createchallenge/AsyncCreateChallenge.java rename to java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/createchallenge/AsyncCreateChallenge.java diff --git a/owl-bot-staging/java-confidentialcomputing/v1alpha1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/createchallenge/SyncCreateChallenge.java b/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/createchallenge/SyncCreateChallenge.java similarity index 100% rename from owl-bot-staging/java-confidentialcomputing/v1alpha1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/createchallenge/SyncCreateChallenge.java rename to java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/createchallenge/SyncCreateChallenge.java diff --git a/owl-bot-staging/java-confidentialcomputing/v1alpha1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/createchallenge/SyncCreateChallengeLocationnameChallenge.java b/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/createchallenge/SyncCreateChallengeLocationnameChallenge.java similarity index 100% rename from owl-bot-staging/java-confidentialcomputing/v1alpha1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/createchallenge/SyncCreateChallengeLocationnameChallenge.java rename to java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/createchallenge/SyncCreateChallengeLocationnameChallenge.java diff --git a/owl-bot-staging/java-confidentialcomputing/v1alpha1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/createchallenge/SyncCreateChallengeStringChallenge.java b/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/createchallenge/SyncCreateChallengeStringChallenge.java similarity index 100% rename from owl-bot-staging/java-confidentialcomputing/v1alpha1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/createchallenge/SyncCreateChallengeStringChallenge.java rename to java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/createchallenge/SyncCreateChallengeStringChallenge.java diff --git a/owl-bot-staging/java-confidentialcomputing/v1alpha1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/getlocation/AsyncGetLocation.java b/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/getlocation/AsyncGetLocation.java similarity index 100% rename from owl-bot-staging/java-confidentialcomputing/v1alpha1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/getlocation/AsyncGetLocation.java rename to java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/getlocation/AsyncGetLocation.java diff --git a/owl-bot-staging/java-confidentialcomputing/v1alpha1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/getlocation/SyncGetLocation.java b/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/getlocation/SyncGetLocation.java similarity index 100% rename from owl-bot-staging/java-confidentialcomputing/v1alpha1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/getlocation/SyncGetLocation.java rename to java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/getlocation/SyncGetLocation.java diff --git a/owl-bot-staging/java-confidentialcomputing/v1alpha1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/listlocations/AsyncListLocations.java b/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/listlocations/AsyncListLocations.java similarity index 100% rename from owl-bot-staging/java-confidentialcomputing/v1alpha1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/listlocations/AsyncListLocations.java rename to java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/listlocations/AsyncListLocations.java diff --git a/owl-bot-staging/java-confidentialcomputing/v1alpha1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/listlocations/AsyncListLocationsPaged.java b/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/listlocations/AsyncListLocationsPaged.java similarity index 100% rename from owl-bot-staging/java-confidentialcomputing/v1alpha1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/listlocations/AsyncListLocationsPaged.java rename to java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/listlocations/AsyncListLocationsPaged.java diff --git a/owl-bot-staging/java-confidentialcomputing/v1alpha1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/listlocations/SyncListLocations.java b/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/listlocations/SyncListLocations.java similarity index 100% rename from owl-bot-staging/java-confidentialcomputing/v1alpha1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/listlocations/SyncListLocations.java rename to java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/listlocations/SyncListLocations.java diff --git a/owl-bot-staging/java-confidentialcomputing/v1alpha1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/verifyattestation/AsyncVerifyAttestation.java b/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/verifyattestation/AsyncVerifyAttestation.java similarity index 100% rename from owl-bot-staging/java-confidentialcomputing/v1alpha1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/verifyattestation/AsyncVerifyAttestation.java rename to java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/verifyattestation/AsyncVerifyAttestation.java diff --git a/owl-bot-staging/java-confidentialcomputing/v1alpha1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/verifyattestation/SyncVerifyAttestation.java b/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/verifyattestation/SyncVerifyAttestation.java similarity index 100% rename from owl-bot-staging/java-confidentialcomputing/v1alpha1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/verifyattestation/SyncVerifyAttestation.java rename to java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputing/verifyattestation/SyncVerifyAttestation.java diff --git a/owl-bot-staging/java-confidentialcomputing/v1alpha1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputingsettings/createchallenge/SyncCreateChallenge.java b/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputingsettings/createchallenge/SyncCreateChallenge.java similarity index 100% rename from owl-bot-staging/java-confidentialcomputing/v1alpha1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputingsettings/createchallenge/SyncCreateChallenge.java rename to java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/confidentialcomputingsettings/createchallenge/SyncCreateChallenge.java diff --git a/owl-bot-staging/java-confidentialcomputing/v1alpha1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/stub/confidentialcomputingstubsettings/createchallenge/SyncCreateChallenge.java b/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/stub/confidentialcomputingstubsettings/createchallenge/SyncCreateChallenge.java similarity index 100% rename from owl-bot-staging/java-confidentialcomputing/v1alpha1/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/stub/confidentialcomputingstubsettings/createchallenge/SyncCreateChallenge.java rename to java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1alpha1/stub/confidentialcomputingstubsettings/createchallenge/SyncCreateChallenge.java diff --git a/owl-bot-staging/java-confidentialcomputing/v1/grpc-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingGrpc.java b/owl-bot-staging/java-confidentialcomputing/v1/grpc-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingGrpc.java deleted file mode 100644 index 6988bef1ce72..000000000000 --- a/owl-bot-staging/java-confidentialcomputing/v1/grpc-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingGrpc.java +++ /dev/null @@ -1,409 +0,0 @@ -package com.google.cloud.confidentialcomputing.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * Service describing handlers for resources
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/confidentialcomputing/v1/service.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class ConfidentialComputingGrpc { - - private ConfidentialComputingGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.confidentialcomputing.v1.ConfidentialComputing"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getCreateChallengeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateChallenge", - requestType = com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest.class, - responseType = com.google.cloud.confidentialcomputing.v1.Challenge.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateChallengeMethod() { - io.grpc.MethodDescriptor getCreateChallengeMethod; - if ((getCreateChallengeMethod = ConfidentialComputingGrpc.getCreateChallengeMethod) == null) { - synchronized (ConfidentialComputingGrpc.class) { - if ((getCreateChallengeMethod = ConfidentialComputingGrpc.getCreateChallengeMethod) == null) { - ConfidentialComputingGrpc.getCreateChallengeMethod = getCreateChallengeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateChallenge")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.confidentialcomputing.v1.Challenge.getDefaultInstance())) - .setSchemaDescriptor(new ConfidentialComputingMethodDescriptorSupplier("CreateChallenge")) - .build(); - } - } - } - return getCreateChallengeMethod; - } - - private static volatile io.grpc.MethodDescriptor getVerifyAttestationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "VerifyAttestation", - requestType = com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest.class, - responseType = com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getVerifyAttestationMethod() { - io.grpc.MethodDescriptor getVerifyAttestationMethod; - if ((getVerifyAttestationMethod = ConfidentialComputingGrpc.getVerifyAttestationMethod) == null) { - synchronized (ConfidentialComputingGrpc.class) { - if ((getVerifyAttestationMethod = ConfidentialComputingGrpc.getVerifyAttestationMethod) == null) { - ConfidentialComputingGrpc.getVerifyAttestationMethod = getVerifyAttestationMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "VerifyAttestation")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse.getDefaultInstance())) - .setSchemaDescriptor(new ConfidentialComputingMethodDescriptorSupplier("VerifyAttestation")) - .build(); - } - } - } - return getVerifyAttestationMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static ConfidentialComputingStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ConfidentialComputingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConfidentialComputingStub(channel, callOptions); - } - }; - return ConfidentialComputingStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static ConfidentialComputingBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ConfidentialComputingBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConfidentialComputingBlockingStub(channel, callOptions); - } - }; - return ConfidentialComputingBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static ConfidentialComputingFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ConfidentialComputingFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConfidentialComputingFutureStub(channel, callOptions); - } - }; - return ConfidentialComputingFutureStub.newStub(factory, channel); - } - - /** - *
-   * Service describing handlers for resources
-   * 
- */ - public interface AsyncService { - - /** - *
-     * Creates a new Challenge in a given project and location.
-     * 
- */ - default void createChallenge(com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateChallengeMethod(), responseObserver); - } - - /** - *
-     * Verifies the provided attestation info, returning a signed OIDC token.
-     * 
- */ - default void verifyAttestation(com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getVerifyAttestationMethod(), responseObserver); - } - } - - /** - * Base class for the server implementation of the service ConfidentialComputing. - *
-   * Service describing handlers for resources
-   * 
- */ - public static abstract class ConfidentialComputingImplBase - implements io.grpc.BindableService, AsyncService { - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return ConfidentialComputingGrpc.bindService(this); - } - } - - /** - * A stub to allow clients to do asynchronous rpc calls to service ConfidentialComputing. - *
-   * Service describing handlers for resources
-   * 
- */ - public static final class ConfidentialComputingStub - extends io.grpc.stub.AbstractAsyncStub { - private ConfidentialComputingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ConfidentialComputingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConfidentialComputingStub(channel, callOptions); - } - - /** - *
-     * Creates a new Challenge in a given project and location.
-     * 
- */ - public void createChallenge(com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateChallengeMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Verifies the provided attestation info, returning a signed OIDC token.
-     * 
- */ - public void verifyAttestation(com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getVerifyAttestationMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service ConfidentialComputing. - *
-   * Service describing handlers for resources
-   * 
- */ - public static final class ConfidentialComputingBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private ConfidentialComputingBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ConfidentialComputingBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConfidentialComputingBlockingStub(channel, callOptions); - } - - /** - *
-     * Creates a new Challenge in a given project and location.
-     * 
- */ - public com.google.cloud.confidentialcomputing.v1.Challenge createChallenge(com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateChallengeMethod(), getCallOptions(), request); - } - - /** - *
-     * Verifies the provided attestation info, returning a signed OIDC token.
-     * 
- */ - public com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse verifyAttestation(com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getVerifyAttestationMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service ConfidentialComputing. - *
-   * Service describing handlers for resources
-   * 
- */ - public static final class ConfidentialComputingFutureStub - extends io.grpc.stub.AbstractFutureStub { - private ConfidentialComputingFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ConfidentialComputingFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConfidentialComputingFutureStub(channel, callOptions); - } - - /** - *
-     * Creates a new Challenge in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createChallenge( - com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateChallengeMethod(), getCallOptions()), request); - } - - /** - *
-     * Verifies the provided attestation info, returning a signed OIDC token.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture verifyAttestation( - com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getVerifyAttestationMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_CHALLENGE = 0; - private static final int METHODID_VERIFY_ATTESTATION = 1; - - 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 AsyncService serviceImpl; - private final int methodId; - - MethodHandlers(AsyncService 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_CREATE_CHALLENGE: - serviceImpl.createChallenge((com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_VERIFY_ATTESTATION: - serviceImpl.verifyAttestation((com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest) 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(); - } - } - } - - public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateChallengeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest, - com.google.cloud.confidentialcomputing.v1.Challenge>( - service, METHODID_CREATE_CHALLENGE))) - .addMethod( - getVerifyAttestationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest, - com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse>( - service, METHODID_VERIFY_ATTESTATION))) - .build(); - } - - private static abstract class ConfidentialComputingBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - ConfidentialComputingBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.confidentialcomputing.v1.ServiceProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("ConfidentialComputing"); - } - } - - private static final class ConfidentialComputingFileDescriptorSupplier - extends ConfidentialComputingBaseDescriptorSupplier { - ConfidentialComputingFileDescriptorSupplier() {} - } - - private static final class ConfidentialComputingMethodDescriptorSupplier - extends ConfidentialComputingBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - ConfidentialComputingMethodDescriptorSupplier(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 (ConfidentialComputingGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new ConfidentialComputingFileDescriptorSupplier()) - .addMethod(getCreateChallengeMethod()) - .addMethod(getVerifyAttestationMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ServiceProto.java b/owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ServiceProto.java deleted file mode 100644 index 13c014731155..000000000000 --- a/owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ServiceProto.java +++ /dev/null @@ -1,266 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/confidentialcomputing/v1/service.proto - -package com.google.cloud.confidentialcomputing.v1; - -public final class ServiceProto { - private ServiceProto() {} - 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_confidentialcomputing_v1_Challenge_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_confidentialcomputing_v1_Challenge_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_confidentialcomputing_v1_CreateChallengeRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_confidentialcomputing_v1_CreateChallengeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_confidentialcomputing_v1_VerifyAttestationRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_confidentialcomputing_v1_VerifyAttestationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_confidentialcomputing_v1_VerifyAttestationResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_confidentialcomputing_v1_VerifyAttestationResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_confidentialcomputing_v1_GcpCredentials_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_confidentialcomputing_v1_GcpCredentials_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_confidentialcomputing_v1_TokenOptions_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_confidentialcomputing_v1_TokenOptions_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_Quote_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_Quote_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_Quote_PcrValuesEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_Quote_PcrValuesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_confidentialcomputing_v1_ConfidentialSpaceInfo_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_confidentialcomputing_v1_ConfidentialSpaceInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_confidentialcomputing_v1_SignedEntity_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_confidentialcomputing_v1_SignedEntity_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_confidentialcomputing_v1_ContainerImageSignature_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_confidentialcomputing_v1_ContainerImageSignature_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n3google/cloud/confidentialcomputing/v1/" + - "service.proto\022%google.cloud.confidential" + - "computing.v1\032\034google/api/annotations.pro" + - "to\032\027google/api/client.proto\032\037google/api/" + - "field_behavior.proto\032\031google/api/resourc" + - "e.proto\032\037google/protobuf/timestamp.proto" + - "\"\252\002\n\tChallenge\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\0225\n\013cr" + - "eate_time\030\002 \001(\0132\032.google.protobuf.Timest" + - "ampB\004\342A\001\003\0225\n\013expire_time\030\003 \001(\0132\032.google." + - "protobuf.TimestampB\004\342A\001\003\022\022\n\004used\030\004 \001(\010B\004" + - "\342A\001\003\022\027\n\ttpm_nonce\030\006 \001(\tB\004\342A\001\003:n\352Ak\n.conf" + - "identialcomputing.googleapis.com/Challen" + - "ge\0229projects/{project}/locations/{locati" + - "on}/challenges/{uuid}\"\237\001\n\026CreateChalleng" + - "eRequest\022:\n\006parent\030\001 \001(\tB*\342A\001\002\372A#\n!locat" + - "ions.googleapis.com/Location\022I\n\tchalleng" + - "e\030\002 \001(\01320.google.cloud.confidentialcompu" + - "ting.v1.ChallengeB\004\342A\001\002\"\311\003\n\030VerifyAttest" + - "ationRequest\022J\n\tchallenge\030\001 \001(\tB7\342A\001\002\372A0" + - "\n.confidentialcomputing.googleapis.com/C" + - "hallenge\022T\n\017gcp_credentials\030\002 \001(\01325.goog" + - "le.cloud.confidentialcomputing.v1.GcpCre" + - "dentialsB\004\342A\001\001\022T\n\017tpm_attestation\030\003 \001(\0132" + - "5.google.cloud.confidentialcomputing.v1." + - "TpmAttestationB\004\342A\001\002\022c\n\027confidential_spa" + - "ce_info\030\004 \001(\0132<.google.cloud.confidentia" + - "lcomputing.v1.ConfidentialSpaceInfoB\004\342A\001" + - "\001\022P\n\rtoken_options\030\005 \001(\01323.google.cloud." + - "confidentialcomputing.v1.TokenOptionsB\004\342" + - "A\001\001\"<\n\031VerifyAttestationResponse\022\037\n\021oidc" + - "_claims_token\030\002 \001(\tB\004\342A\001\003\"3\n\016GcpCredenti" + - "als\022!\n\031service_account_id_tokens\030\002 \003(\t\";" + - "\n\014TokenOptions\022\026\n\010audience\030\001 \001(\tB\004\342A\001\001\022\023" + - "\n\005nonce\030\002 \003(\tB\004\342A\001\001\"\217\003\n\016TpmAttestation\022K" + - "\n\006quotes\030\001 \003(\0132;.google.cloud.confidenti" + - "alcomputing.v1.TpmAttestation.Quote\022\025\n\rt" + - "cg_event_log\030\002 \001(\014\022\033\n\023canonical_event_lo" + - "g\030\003 \001(\014\022\017\n\007ak_cert\030\004 \001(\014\022\022\n\ncert_chain\030\005" + - " \003(\014\032\326\001\n\005Quote\022\021\n\thash_algo\030\001 \001(\005\022^\n\npcr" + - "_values\030\002 \003(\0132J.google.cloud.confidentia" + - "lcomputing.v1.TpmAttestation.Quote.PcrVa" + - "luesEntry\022\021\n\traw_quote\030\003 \001(\014\022\025\n\rraw_sign" + - "ature\030\004 \001(\014\0320\n\016PcrValuesEntry\022\013\n\003key\030\001 \001" + - "(\005\022\r\n\005value\030\002 \001(\014:\0028\001\"k\n\025ConfidentialSpa" + - "ceInfo\022R\n\017signed_entities\030\001 \003(\01323.google" + - ".cloud.confidentialcomputing.v1.SignedEn" + - "tityB\004\342A\001\001\"x\n\014SignedEntity\022h\n\032container_" + - "image_signatures\030\001 \003(\0132>.google.cloud.co" + - "nfidentialcomputing.v1.ContainerImageSig" + - "natureB\004\342A\001\001\"\263\001\n\027ContainerImageSignature" + - "\022\025\n\007payload\030\001 \001(\014B\004\342A\001\002\022\027\n\tsignature\030\002 \001" + - "(\014B\004\342A\001\002\022\030\n\npublic_key\030\003 \001(\014B\004\342A\001\002\022N\n\007si" + - "g_alg\030\004 \001(\01627.google.cloud.confidentialc" + - "omputing.v1.SigningAlgorithmB\004\342A\001\002*\177\n\020Si" + - "gningAlgorithm\022!\n\035SIGNING_ALGORITHM_UNSP" + - "ECIFIED\020\000\022\025\n\021RSASSA_PSS_SHA256\020\001\022\032\n\026RSAS" + - "SA_PKCS1V15_SHA256\020\002\022\025\n\021ECDSA_P256_SHA25" + - "6\020\0032\267\004\n\025ConfidentialComputing\022\330\001\n\017Create" + - "Challenge\022=.google.cloud.confidentialcom" + - "puting.v1.CreateChallengeRequest\0320.googl" + - "e.cloud.confidentialcomputing.v1.Challen" + - "ge\"T\332A\020parent,challenge\202\323\344\223\002;\"./v1/{pare" + - "nt=projects/*/locations/*}/challenges:\tc" + - "hallenge\022\350\001\n\021VerifyAttestation\022?.google." + - "cloud.confidentialcomputing.v1.VerifyAtt" + - "estationRequest\032@.google.cloud.confident" + - "ialcomputing.v1.VerifyAttestationRespons" + - "e\"P\202\323\344\223\002J\"E/v1/{challenge=projects/*/loc" + - "ations/*/challenges/*}:verifyAttestation" + - ":\001*\032X\312A$confidentialcomputing.googleapis" + - ".com\322A.https://www.googleapis.com/auth/c" + - "loud-platformB\227\002\n)com.google.cloud.confi" + - "dentialcomputing.v1B\014ServiceProtoP\001Z_clo" + - "ud.google.com/go/confidentialcomputing/a" + - "piv1/confidentialcomputingpb;confidentia" + - "lcomputingpb\252\002%Google.Cloud.Confidential" + - "Computing.V1\312\002%Google\\Cloud\\Confidential" + - "Computing\\V1\352\002(Google::Cloud::Confidenti" + - "alComputing::V1b\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.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_confidentialcomputing_v1_Challenge_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_confidentialcomputing_v1_Challenge_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_confidentialcomputing_v1_Challenge_descriptor, - new java.lang.String[] { "Name", "CreateTime", "ExpireTime", "Used", "TpmNonce", }); - internal_static_google_cloud_confidentialcomputing_v1_CreateChallengeRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_confidentialcomputing_v1_CreateChallengeRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_confidentialcomputing_v1_CreateChallengeRequest_descriptor, - new java.lang.String[] { "Parent", "Challenge", }); - internal_static_google_cloud_confidentialcomputing_v1_VerifyAttestationRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_confidentialcomputing_v1_VerifyAttestationRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_confidentialcomputing_v1_VerifyAttestationRequest_descriptor, - new java.lang.String[] { "Challenge", "GcpCredentials", "TpmAttestation", "ConfidentialSpaceInfo", "TokenOptions", }); - internal_static_google_cloud_confidentialcomputing_v1_VerifyAttestationResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_confidentialcomputing_v1_VerifyAttestationResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_confidentialcomputing_v1_VerifyAttestationResponse_descriptor, - new java.lang.String[] { "OidcClaimsToken", }); - internal_static_google_cloud_confidentialcomputing_v1_GcpCredentials_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_confidentialcomputing_v1_GcpCredentials_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_confidentialcomputing_v1_GcpCredentials_descriptor, - new java.lang.String[] { "ServiceAccountIdTokens", }); - internal_static_google_cloud_confidentialcomputing_v1_TokenOptions_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_confidentialcomputing_v1_TokenOptions_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_confidentialcomputing_v1_TokenOptions_descriptor, - new java.lang.String[] { "Audience", "Nonce", }); - internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_descriptor, - new java.lang.String[] { "Quotes", "TcgEventLog", "CanonicalEventLog", "AkCert", "CertChain", }); - internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_Quote_descriptor = - internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_Quote_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_Quote_descriptor, - new java.lang.String[] { "HashAlgo", "PcrValues", "RawQuote", "RawSignature", }); - internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_Quote_PcrValuesEntry_descriptor = - internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_Quote_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_Quote_PcrValuesEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_Quote_PcrValuesEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_confidentialcomputing_v1_ConfidentialSpaceInfo_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_confidentialcomputing_v1_ConfidentialSpaceInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_confidentialcomputing_v1_ConfidentialSpaceInfo_descriptor, - new java.lang.String[] { "SignedEntities", }); - internal_static_google_cloud_confidentialcomputing_v1_SignedEntity_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_confidentialcomputing_v1_SignedEntity_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_confidentialcomputing_v1_SignedEntity_descriptor, - new java.lang.String[] { "ContainerImageSignatures", }); - internal_static_google_cloud_confidentialcomputing_v1_ContainerImageSignature_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_confidentialcomputing_v1_ContainerImageSignature_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_confidentialcomputing_v1_ContainerImageSignature_descriptor, - new java.lang.String[] { "Payload", "Signature", "PublicKey", "SigAlg", }); - 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.resource); - 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.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/SignedEntityOrBuilder.java b/owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/SignedEntityOrBuilder.java deleted file mode 100644 index a02288db7bc6..000000000000 --- a/owl-bot-staging/java-confidentialcomputing/v1/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/SignedEntityOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/confidentialcomputing/v1/service.proto - -package com.google.cloud.confidentialcomputing.v1; - -public interface SignedEntityOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.confidentialcomputing.v1.SignedEntity) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Optional. A list of container image signatures attached to an OCI image
-   * object.
-   * 
- * - * repeated .google.cloud.confidentialcomputing.v1.ContainerImageSignature container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - java.util.List - getContainerImageSignaturesList(); - /** - *
-   * Optional. A list of container image signatures attached to an OCI image
-   * object.
-   * 
- * - * repeated .google.cloud.confidentialcomputing.v1.ContainerImageSignature container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - com.google.cloud.confidentialcomputing.v1.ContainerImageSignature getContainerImageSignatures(int index); - /** - *
-   * Optional. A list of container image signatures attached to an OCI image
-   * object.
-   * 
- * - * repeated .google.cloud.confidentialcomputing.v1.ContainerImageSignature container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - int getContainerImageSignaturesCount(); - /** - *
-   * Optional. A list of container image signatures attached to an OCI image
-   * object.
-   * 
- * - * repeated .google.cloud.confidentialcomputing.v1.ContainerImageSignature container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - java.util.List - getContainerImageSignaturesOrBuilderList(); - /** - *
-   * Optional. A list of container image signatures attached to an OCI image
-   * object.
-   * 
- * - * repeated .google.cloud.confidentialcomputing.v1.ContainerImageSignature container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - com.google.cloud.confidentialcomputing.v1.ContainerImageSignatureOrBuilder getContainerImageSignaturesOrBuilder( - int index); -} diff --git a/owl-bot-staging/java-confidentialcomputing/v1alpha1/grpc-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/ConfidentialComputingGrpc.java b/owl-bot-staging/java-confidentialcomputing/v1alpha1/grpc-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/ConfidentialComputingGrpc.java deleted file mode 100644 index 2d7ba167ad24..000000000000 --- a/owl-bot-staging/java-confidentialcomputing/v1alpha1/grpc-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/ConfidentialComputingGrpc.java +++ /dev/null @@ -1,409 +0,0 @@ -package com.google.cloud.confidentialcomputing.v1alpha1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * Service describing handlers for resources
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/confidentialcomputing/v1alpha1/service.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class ConfidentialComputingGrpc { - - private ConfidentialComputingGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.confidentialcomputing.v1alpha1.ConfidentialComputing"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getCreateChallengeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateChallenge", - requestType = com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest.class, - responseType = com.google.cloud.confidentialcomputing.v1alpha1.Challenge.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateChallengeMethod() { - io.grpc.MethodDescriptor getCreateChallengeMethod; - if ((getCreateChallengeMethod = ConfidentialComputingGrpc.getCreateChallengeMethod) == null) { - synchronized (ConfidentialComputingGrpc.class) { - if ((getCreateChallengeMethod = ConfidentialComputingGrpc.getCreateChallengeMethod) == null) { - ConfidentialComputingGrpc.getCreateChallengeMethod = getCreateChallengeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateChallenge")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.confidentialcomputing.v1alpha1.Challenge.getDefaultInstance())) - .setSchemaDescriptor(new ConfidentialComputingMethodDescriptorSupplier("CreateChallenge")) - .build(); - } - } - } - return getCreateChallengeMethod; - } - - private static volatile io.grpc.MethodDescriptor getVerifyAttestationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "VerifyAttestation", - requestType = com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest.class, - responseType = com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getVerifyAttestationMethod() { - io.grpc.MethodDescriptor getVerifyAttestationMethod; - if ((getVerifyAttestationMethod = ConfidentialComputingGrpc.getVerifyAttestationMethod) == null) { - synchronized (ConfidentialComputingGrpc.class) { - if ((getVerifyAttestationMethod = ConfidentialComputingGrpc.getVerifyAttestationMethod) == null) { - ConfidentialComputingGrpc.getVerifyAttestationMethod = getVerifyAttestationMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "VerifyAttestation")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse.getDefaultInstance())) - .setSchemaDescriptor(new ConfidentialComputingMethodDescriptorSupplier("VerifyAttestation")) - .build(); - } - } - } - return getVerifyAttestationMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static ConfidentialComputingStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ConfidentialComputingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConfidentialComputingStub(channel, callOptions); - } - }; - return ConfidentialComputingStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static ConfidentialComputingBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ConfidentialComputingBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConfidentialComputingBlockingStub(channel, callOptions); - } - }; - return ConfidentialComputingBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static ConfidentialComputingFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ConfidentialComputingFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConfidentialComputingFutureStub(channel, callOptions); - } - }; - return ConfidentialComputingFutureStub.newStub(factory, channel); - } - - /** - *
-   * Service describing handlers for resources
-   * 
- */ - public interface AsyncService { - - /** - *
-     * Creates a new Challenge in a given project and location.
-     * 
- */ - default void createChallenge(com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateChallengeMethod(), responseObserver); - } - - /** - *
-     * Verifies the provided attestation info, returning a signed OIDC token.
-     * 
- */ - default void verifyAttestation(com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getVerifyAttestationMethod(), responseObserver); - } - } - - /** - * Base class for the server implementation of the service ConfidentialComputing. - *
-   * Service describing handlers for resources
-   * 
- */ - public static abstract class ConfidentialComputingImplBase - implements io.grpc.BindableService, AsyncService { - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return ConfidentialComputingGrpc.bindService(this); - } - } - - /** - * A stub to allow clients to do asynchronous rpc calls to service ConfidentialComputing. - *
-   * Service describing handlers for resources
-   * 
- */ - public static final class ConfidentialComputingStub - extends io.grpc.stub.AbstractAsyncStub { - private ConfidentialComputingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ConfidentialComputingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConfidentialComputingStub(channel, callOptions); - } - - /** - *
-     * Creates a new Challenge in a given project and location.
-     * 
- */ - public void createChallenge(com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateChallengeMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Verifies the provided attestation info, returning a signed OIDC token.
-     * 
- */ - public void verifyAttestation(com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getVerifyAttestationMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service ConfidentialComputing. - *
-   * Service describing handlers for resources
-   * 
- */ - public static final class ConfidentialComputingBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private ConfidentialComputingBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ConfidentialComputingBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConfidentialComputingBlockingStub(channel, callOptions); - } - - /** - *
-     * Creates a new Challenge in a given project and location.
-     * 
- */ - public com.google.cloud.confidentialcomputing.v1alpha1.Challenge createChallenge(com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateChallengeMethod(), getCallOptions(), request); - } - - /** - *
-     * Verifies the provided attestation info, returning a signed OIDC token.
-     * 
- */ - public com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse verifyAttestation(com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getVerifyAttestationMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service ConfidentialComputing. - *
-   * Service describing handlers for resources
-   * 
- */ - public static final class ConfidentialComputingFutureStub - extends io.grpc.stub.AbstractFutureStub { - private ConfidentialComputingFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ConfidentialComputingFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConfidentialComputingFutureStub(channel, callOptions); - } - - /** - *
-     * Creates a new Challenge in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createChallenge( - com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateChallengeMethod(), getCallOptions()), request); - } - - /** - *
-     * Verifies the provided attestation info, returning a signed OIDC token.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture verifyAttestation( - com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getVerifyAttestationMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_CHALLENGE = 0; - private static final int METHODID_VERIFY_ATTESTATION = 1; - - 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 AsyncService serviceImpl; - private final int methodId; - - MethodHandlers(AsyncService 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_CREATE_CHALLENGE: - serviceImpl.createChallenge((com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_VERIFY_ATTESTATION: - serviceImpl.verifyAttestation((com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest) 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(); - } - } - } - - public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateChallengeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.confidentialcomputing.v1alpha1.CreateChallengeRequest, - com.google.cloud.confidentialcomputing.v1alpha1.Challenge>( - service, METHODID_CREATE_CHALLENGE))) - .addMethod( - getVerifyAttestationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationRequest, - com.google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse>( - service, METHODID_VERIFY_ATTESTATION))) - .build(); - } - - private static abstract class ConfidentialComputingBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - ConfidentialComputingBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.confidentialcomputing.v1alpha1.ServiceProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("ConfidentialComputing"); - } - } - - private static final class ConfidentialComputingFileDescriptorSupplier - extends ConfidentialComputingBaseDescriptorSupplier { - ConfidentialComputingFileDescriptorSupplier() {} - } - - private static final class ConfidentialComputingMethodDescriptorSupplier - extends ConfidentialComputingBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - ConfidentialComputingMethodDescriptorSupplier(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 (ConfidentialComputingGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new ConfidentialComputingFileDescriptorSupplier()) - .addMethod(getCreateChallengeMethod()) - .addMethod(getVerifyAttestationMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/java-confidentialcomputing/v1alpha1/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/ServiceProto.java b/owl-bot-staging/java-confidentialcomputing/v1alpha1/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/ServiceProto.java deleted file mode 100644 index 89dfae1c42b0..000000000000 --- a/owl-bot-staging/java-confidentialcomputing/v1alpha1/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/ServiceProto.java +++ /dev/null @@ -1,204 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/confidentialcomputing/v1alpha1/service.proto - -package com.google.cloud.confidentialcomputing.v1alpha1; - -public final class ServiceProto { - private ServiceProto() {} - 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_confidentialcomputing_v1alpha1_Challenge_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_confidentialcomputing_v1alpha1_Challenge_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_confidentialcomputing_v1alpha1_CreateChallengeRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_confidentialcomputing_v1alpha1_CreateChallengeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_confidentialcomputing_v1alpha1_VerifyAttestationRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_confidentialcomputing_v1alpha1_VerifyAttestationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_confidentialcomputing_v1alpha1_VerifyAttestationResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_confidentialcomputing_v1alpha1_VerifyAttestationResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_confidentialcomputing_v1alpha1_GcpCredentials_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_confidentialcomputing_v1alpha1_GcpCredentials_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_Quote_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_Quote_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_Quote_PcrValuesEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_Quote_PcrValuesEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n9google/cloud/confidentialcomputing/v1a" + - "lpha1/service.proto\022+google.cloud.confid" + - "entialcomputing.v1alpha1\032\034google/api/ann" + - "otations.proto\032\027google/api/client.proto\032" + - "\037google/api/field_behavior.proto\032\031google" + - "/api/resource.proto\032\037google/protobuf/tim" + - "estamp.proto\"\246\002\n\tChallenge\022\022\n\004name\030\001 \001(\t" + - "B\004\342A\001\003\0225\n\013create_time\030\002 \001(\0132\032.google.pro" + - "tobuf.TimestampB\004\342A\001\003\0225\n\013expire_time\030\003 \001" + - "(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022\022\n\004" + - "used\030\004 \001(\010B\004\342A\001\003\022\023\n\005nonce\030\005 \001(\014B\004\342A\001\003:n\352" + - "Ak\n.confidentialcomputing.googleapis.com" + - "/Challenge\0229projects/{project}/locations" + - "/{location}/challenges/{uuid}\"\245\001\n\026Create" + - "ChallengeRequest\022:\n\006parent\030\001 \001(\tB*\342A\001\002\372A" + - "#\n!locations.googleapis.com/Location\022O\n\t" + - "challenge\030\002 \001(\01326.google.cloud.confident" + - "ialcomputing.v1alpha1.ChallengeB\004\342A\001\002\"\236\002" + - "\n\030VerifyAttestationRequest\022J\n\tchallenge\030" + - "\001 \001(\tB7\342A\001\002\372A0\n.confidentialcomputing.go" + - "ogleapis.com/Challenge\022Z\n\017gcp_credential" + - "s\030\002 \001(\0132;.google.cloud.confidentialcompu" + - "ting.v1alpha1.GcpCredentialsB\004\342A\001\001\022Z\n\017tp" + - "m_attestation\030\003 \001(\0132;.google.cloud.confi" + - "dentialcomputing.v1alpha1.TpmAttestation" + - "B\004\342A\001\002\"7\n\031VerifyAttestationResponse\022\032\n\014c" + - "laims_token\030\001 \001(\014B\004\342A\001\003\"#\n\016GcpCredential" + - "s\022\021\n\tid_tokens\030\001 \003(\014\"\233\003\n\016TpmAttestation\022" + - "Q\n\006quotes\030\001 \003(\0132A.google.cloud.confident" + - "ialcomputing.v1alpha1.TpmAttestation.Quo" + - "te\022\025\n\rtcg_event_log\030\002 \001(\014\022\033\n\023canonical_e" + - "vent_log\030\003 \001(\014\022\017\n\007ak_cert\030\004 \001(\014\022\022\n\ncert_" + - "chain\030\005 \003(\014\032\334\001\n\005Quote\022\021\n\thash_algo\030\001 \001(\005" + - "\022d\n\npcr_values\030\002 \003(\0132P.google.cloud.conf" + - "identialcomputing.v1alpha1.TpmAttestatio" + - "n.Quote.PcrValuesEntry\022\021\n\traw_quote\030\003 \001(" + - "\014\022\025\n\rraw_signature\030\004 \001(\014\0320\n\016PcrValuesEnt" + - "ry\022\013\n\003key\030\001 \001(\005\022\r\n\005value\030\002 \001(\014:\0028\0012\333\004\n\025C" + - "onfidentialComputing\022\352\001\n\017CreateChallenge" + - "\022C.google.cloud.confidentialcomputing.v1" + - "alpha1.CreateChallengeRequest\0326.google.c" + - "loud.confidentialcomputing.v1alpha1.Chal" + - "lenge\"Z\332A\020parent,challenge\202\323\344\223\002A\"4/v1alp" + - "ha1/{parent=projects/*/locations/*}/chal" + - "lenges:\tchallenge\022\372\001\n\021VerifyAttestation\022" + - "E.google.cloud.confidentialcomputing.v1a" + - "lpha1.VerifyAttestationRequest\032F.google." + - "cloud.confidentialcomputing.v1alpha1.Ver" + - "ifyAttestationResponse\"V\202\323\344\223\002P\"K/v1alpha" + - "1/{challenge=projects/*/locations/*/chal" + - "lenges/*}:verifyAttestation:\001*\032X\312A$confi" + - "dentialcomputing.googleapis.com\322A.https:" + - "//www.googleapis.com/auth/cloud-platform" + - "B\265\002\n/com.google.cloud.confidentialcomput" + - "ing.v1alpha1B\014ServiceProtoP\001Zecloud.goog" + - "le.com/go/confidentialcomputing/apiv1alp" + - "ha1/confidentialcomputingpb;confidential" + - "computingpb\252\002+Google.Cloud.ConfidentialC" + - "omputing.V1Alpha1\312\002+Google\\Cloud\\Confide" + - "ntialComputing\\V1alpha1\352\002.Google::Cloud:" + - ":ConfidentialComputing::V1alpha1b\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.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_confidentialcomputing_v1alpha1_Challenge_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_confidentialcomputing_v1alpha1_Challenge_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_confidentialcomputing_v1alpha1_Challenge_descriptor, - new java.lang.String[] { "Name", "CreateTime", "ExpireTime", "Used", "Nonce", }); - internal_static_google_cloud_confidentialcomputing_v1alpha1_CreateChallengeRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_confidentialcomputing_v1alpha1_CreateChallengeRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_confidentialcomputing_v1alpha1_CreateChallengeRequest_descriptor, - new java.lang.String[] { "Parent", "Challenge", }); - internal_static_google_cloud_confidentialcomputing_v1alpha1_VerifyAttestationRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_confidentialcomputing_v1alpha1_VerifyAttestationRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_confidentialcomputing_v1alpha1_VerifyAttestationRequest_descriptor, - new java.lang.String[] { "Challenge", "GcpCredentials", "TpmAttestation", }); - internal_static_google_cloud_confidentialcomputing_v1alpha1_VerifyAttestationResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_confidentialcomputing_v1alpha1_VerifyAttestationResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_confidentialcomputing_v1alpha1_VerifyAttestationResponse_descriptor, - new java.lang.String[] { "ClaimsToken", }); - internal_static_google_cloud_confidentialcomputing_v1alpha1_GcpCredentials_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_confidentialcomputing_v1alpha1_GcpCredentials_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_confidentialcomputing_v1alpha1_GcpCredentials_descriptor, - new java.lang.String[] { "IdTokens", }); - internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_descriptor, - new java.lang.String[] { "Quotes", "TcgEventLog", "CanonicalEventLog", "AkCert", "CertChain", }); - internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_Quote_descriptor = - internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_Quote_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_Quote_descriptor, - new java.lang.String[] { "HashAlgo", "PcrValues", "RawQuote", "RawSignature", }); - internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_Quote_PcrValuesEntry_descriptor = - internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_Quote_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_Quote_PcrValuesEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_confidentialcomputing_v1alpha1_TpmAttestation_Quote_PcrValuesEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - 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.resource); - 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.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -}