From 252d0948b91aacb7b03278347dbbda3dfb390d85 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Thu, 23 Jun 2022 03:01:57 +0000 Subject: [PATCH 1/3] feat: Enable REST transport for most of Java and Go clients PiperOrigin-RevId: 456641589 Source-Link: https://github.com/googleapis/googleapis/commit/8a251f5225b789b2383207ffd978f6aa3d77fcf7 Source-Link: https://github.com/googleapis/googleapis-gen/commit/4ca52a529cf01308d9714950edffbea3560cfbdb Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNGNhNTJhNTI5Y2YwMTMwOGQ5NzE0OTUwZWRmZmJlYTM1NjBjZmJkYiJ9 --- .../v1/AssuredWorkloadsServiceGrpc.java | 857 -- .../v1beta1/AssuredWorkloadsServiceGrpc.java | 863 -- .../v1/AssuredWorkloadsServiceClient.java | 54 +- .../v1/AssuredWorkloadsServiceSettings.java | 30 +- .../assuredworkloads/v1/gapic_metadata.json | 0 .../assuredworkloads/v1/package-info.java | 0 .../v1/stub/AssuredWorkloadsServiceStub.java | 6 +- .../AssuredWorkloadsServiceStubSettings.java | 59 +- ...ssuredWorkloadsServiceCallableFactory.java | 0 .../stub/GrpcAssuredWorkloadsServiceStub.java | 1 + ...ssuredWorkloadsServiceCallableFactory.java | 105 + .../HttpJsonAssuredWorkloadsServiceStub.java | 458 + ...redWorkloadsServiceClientHttpJsonTest.java | 586 ++ .../v1/AssuredWorkloadsServiceClientTest.java | 0 .../v1/MockAssuredWorkloadsService.java | 0 .../v1/MockAssuredWorkloadsServiceImpl.java | 0 .../v1/AssuredWorkloadsServiceGrpc.java | 667 ++ .../v1/AssuredworkloadsProto.java | 342 + .../v1/CreateWorkloadOperationMetadata.java | 666 +- ...ateWorkloadOperationMetadataOrBuilder.java | 67 +- .../v1/CreateWorkloadRequest.java | 567 +- .../v1/CreateWorkloadRequestOrBuilder.java | 64 +- .../v1/DeleteWorkloadRequest.java | 421 +- .../v1/DeleteWorkloadRequestOrBuilder.java | 44 +- .../v1/GetWorkloadRequest.java | 342 +- .../v1/GetWorkloadRequestOrBuilder.java | 35 +- .../v1/ListWorkloadsRequest.java | 536 +- .../v1/ListWorkloadsRequestOrBuilder.java | 56 +- .../v1/ListWorkloadsResponse.java | 464 +- .../v1/ListWorkloadsResponseOrBuilder.java | 45 +- .../assuredworkloads/v1/LocationName.java | 0 .../v1/UpdateWorkloadRequest.java | 516 +- .../v1/UpdateWorkloadRequestOrBuilder.java | 55 +- .../cloud/assuredworkloads/v1/Workload.java | 4746 ++++------ .../assuredworkloads/v1/WorkloadName.java | 0 .../v1/WorkloadOrBuilder.java | 275 +- .../v1/assuredworkloads.proto | 0 .../SyncCreateSetCredentialsProvider.java | 42 + .../SyncCreateSetCredentialsProvider1.java | 41 + .../create/SyncCreateSetEndpoint.java | 39 + .../createworkload/AsyncCreateWorkload.java | 51 + .../AsyncCreateWorkloadLRO.java | 51 + .../createworkload/SyncCreateWorkload.java | 46 + ...yncCreateWorkloadLocationnameWorkload.java | 41 + .../SyncCreateWorkloadStringWorkload.java | 41 + .../deleteworkload/AsyncDeleteWorkload.java | 49 + .../deleteworkload/SyncDeleteWorkload.java | 45 + .../SyncDeleteWorkloadString.java | 40 + .../SyncDeleteWorkloadWorkloadname.java | 40 + .../getworkload/AsyncGetWorkload.java | 48 + .../getworkload/SyncGetWorkload.java | 44 + .../getworkload/SyncGetWorkloadString.java | 40 + .../SyncGetWorkloadWorkloadname.java | 40 + .../listworkloads/AsyncListWorkloads.java | 53 + .../AsyncListWorkloadsPaged.java | 61 + .../listworkloads/SyncListWorkloads.java | 49 + .../SyncListWorkloadsLocationname.java | 42 + .../SyncListWorkloadsString.java | 42 + .../updateworkload/AsyncUpdateWorkload.java | 49 + .../updateworkload/SyncUpdateWorkload.java | 45 + .../SyncUpdateWorkloadWorkloadFieldmask.java | 41 + .../updateworkload/SyncUpdateWorkload.java | 47 + .../updateworkload/SyncUpdateWorkload.java | 47 + .../AssuredWorkloadsServiceClient.java | 54 +- .../AssuredWorkloadsServiceSettings.java | 30 +- .../v1beta1/gapic_metadata.json | 0 .../v1beta1/package-info.java | 0 .../stub/AssuredWorkloadsServiceStub.java | 6 +- .../AssuredWorkloadsServiceStubSettings.java | 59 +- ...ssuredWorkloadsServiceCallableFactory.java | 0 .../stub/GrpcAssuredWorkloadsServiceStub.java | 1 + ...ssuredWorkloadsServiceCallableFactory.java | 105 + .../HttpJsonAssuredWorkloadsServiceStub.java | 458 + ...redWorkloadsServiceClientHttpJsonTest.java | 586 ++ .../AssuredWorkloadsServiceClientTest.java | 0 .../v1beta1/MockAssuredWorkloadsService.java | 0 .../MockAssuredWorkloadsServiceImpl.java | 0 .../v1beta1/AssuredWorkloadsServiceGrpc.java | 667 ++ .../v1beta1/AssuredworkloadsProto.java | 416 + .../CreateWorkloadOperationMetadata.java | 976 +- ...ateWorkloadOperationMetadataOrBuilder.java | 109 +- .../v1beta1/CreateWorkloadRequest.java | 589 +- .../CreateWorkloadRequestOrBuilder.java | 64 +- .../v1beta1/DeleteWorkloadRequest.java | 442 +- .../DeleteWorkloadRequestOrBuilder.java | 44 +- .../v1beta1/GetWorkloadRequest.java | 349 +- .../v1beta1/GetWorkloadRequestOrBuilder.java | 35 +- .../v1beta1/ListWorkloadsRequest.java | 554 +- .../ListWorkloadsRequestOrBuilder.java | 56 +- .../v1beta1/ListWorkloadsResponse.java | 469 +- .../ListWorkloadsResponseOrBuilder.java | 45 +- .../v1beta1/LocationName.java | 0 .../v1beta1/UpdateWorkloadRequest.java | 538 +- .../UpdateWorkloadRequestOrBuilder.java | 55 +- .../assuredworkloads/v1beta1/Workload.java | 7827 ++++++----------- .../v1beta1/WorkloadName.java | 0 .../v1beta1/WorkloadOrBuilder.java | 420 +- .../v1beta1/assuredworkloads.proto | 0 .../SyncCreateSetCredentialsProvider.java | 42 + .../SyncCreateSetCredentialsProvider1.java | 41 + .../create/SyncCreateSetEndpoint.java | 39 + .../createworkload/AsyncCreateWorkload.java | 51 + .../AsyncCreateWorkloadLRO.java | 51 + .../createworkload/SyncCreateWorkload.java | 46 + ...yncCreateWorkloadLocationnameWorkload.java | 41 + .../SyncCreateWorkloadStringWorkload.java | 41 + .../deleteworkload/AsyncDeleteWorkload.java | 49 + .../deleteworkload/SyncDeleteWorkload.java | 45 + .../SyncDeleteWorkloadString.java | 40 + .../SyncDeleteWorkloadWorkloadname.java | 40 + .../getworkload/AsyncGetWorkload.java | 48 + .../getworkload/SyncGetWorkload.java | 44 + .../getworkload/SyncGetWorkloadString.java | 40 + .../SyncGetWorkloadWorkloadname.java | 40 + .../listworkloads/AsyncListWorkloads.java | 53 + .../AsyncListWorkloadsPaged.java | 61 + .../listworkloads/SyncListWorkloads.java | 49 + .../SyncListWorkloadsLocationname.java | 42 + .../SyncListWorkloadsString.java | 42 + .../updateworkload/AsyncUpdateWorkload.java | 49 + .../updateworkload/SyncUpdateWorkload.java | 45 + .../SyncUpdateWorkloadWorkloadFieldmask.java | 41 + .../updateworkload/SyncUpdateWorkload.java | 47 + .../updateworkload/SyncUpdateWorkload.java | 47 + .../v1/AssuredworkloadsProto.java | 392 - .../v1beta1/AssuredworkloadsProto.java | 483 - 126 files changed, 14430 insertions(+), 16674 deletions(-) delete mode 100644 grpc-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/AssuredWorkloadsServiceGrpc.java delete mode 100644 grpc-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AssuredWorkloadsServiceGrpc.java rename {google-cloud-assured-workloads => owl-bot-staging/v1/google-cloud-assured-workloads}/src/main/java/com/google/cloud/assuredworkloads/v1/AssuredWorkloadsServiceClient.java (94%) rename {google-cloud-assured-workloads => owl-bot-staging/v1/google-cloud-assured-workloads}/src/main/java/com/google/cloud/assuredworkloads/v1/AssuredWorkloadsServiceSettings.java (89%) rename {google-cloud-assured-workloads => owl-bot-staging/v1/google-cloud-assured-workloads}/src/main/java/com/google/cloud/assuredworkloads/v1/gapic_metadata.json (100%) rename {google-cloud-assured-workloads => owl-bot-staging/v1/google-cloud-assured-workloads}/src/main/java/com/google/cloud/assuredworkloads/v1/package-info.java (100%) rename {google-cloud-assured-workloads => owl-bot-staging/v1/google-cloud-assured-workloads}/src/main/java/com/google/cloud/assuredworkloads/v1/stub/AssuredWorkloadsServiceStub.java (96%) rename {google-cloud-assured-workloads => owl-bot-staging/v1/google-cloud-assured-workloads}/src/main/java/com/google/cloud/assuredworkloads/v1/stub/AssuredWorkloadsServiceStubSettings.java (89%) rename {google-cloud-assured-workloads => owl-bot-staging/v1/google-cloud-assured-workloads}/src/main/java/com/google/cloud/assuredworkloads/v1/stub/GrpcAssuredWorkloadsServiceCallableFactory.java (100%) rename {google-cloud-assured-workloads => owl-bot-staging/v1/google-cloud-assured-workloads}/src/main/java/com/google/cloud/assuredworkloads/v1/stub/GrpcAssuredWorkloadsServiceStub.java (99%) create mode 100644 owl-bot-staging/v1/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/stub/HttpJsonAssuredWorkloadsServiceCallableFactory.java create mode 100644 owl-bot-staging/v1/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/stub/HttpJsonAssuredWorkloadsServiceStub.java create mode 100644 owl-bot-staging/v1/google-cloud-assured-workloads/src/test/java/com/google/cloud/assuredworkloads/v1/AssuredWorkloadsServiceClientHttpJsonTest.java rename {google-cloud-assured-workloads => owl-bot-staging/v1/google-cloud-assured-workloads}/src/test/java/com/google/cloud/assuredworkloads/v1/AssuredWorkloadsServiceClientTest.java (100%) rename {google-cloud-assured-workloads => owl-bot-staging/v1/google-cloud-assured-workloads}/src/test/java/com/google/cloud/assuredworkloads/v1/MockAssuredWorkloadsService.java (100%) rename {google-cloud-assured-workloads => owl-bot-staging/v1/google-cloud-assured-workloads}/src/test/java/com/google/cloud/assuredworkloads/v1/MockAssuredWorkloadsServiceImpl.java (100%) create mode 100644 owl-bot-staging/v1/grpc-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/AssuredWorkloadsServiceGrpc.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/AssuredworkloadsProto.java rename {proto-google-cloud-assured-workloads-v1 => owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1}/src/main/java/com/google/cloud/assuredworkloads/v1/CreateWorkloadOperationMetadata.java (65%) rename {proto-google-cloud-assured-workloads-v1 => owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1}/src/main/java/com/google/cloud/assuredworkloads/v1/CreateWorkloadOperationMetadataOrBuilder.java (64%) rename {proto-google-cloud-assured-workloads-v1 => owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1}/src/main/java/com/google/cloud/assuredworkloads/v1/CreateWorkloadRequest.java (67%) rename {proto-google-cloud-assured-workloads-v1 => owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1}/src/main/java/com/google/cloud/assuredworkloads/v1/CreateWorkloadRequestOrBuilder.java (59%) rename {proto-google-cloud-assured-workloads-v1 => owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1}/src/main/java/com/google/cloud/assuredworkloads/v1/DeleteWorkloadRequest.java (68%) rename {proto-google-cloud-assured-workloads-v1 => owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1}/src/main/java/com/google/cloud/assuredworkloads/v1/DeleteWorkloadRequestOrBuilder.java (55%) rename {proto-google-cloud-assured-workloads-v1 => owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1}/src/main/java/com/google/cloud/assuredworkloads/v1/GetWorkloadRequest.java (68%) rename {proto-google-cloud-assured-workloads-v1 => owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1}/src/main/java/com/google/cloud/assuredworkloads/v1/GetWorkloadRequestOrBuilder.java (52%) rename {proto-google-cloud-assured-workloads-v1 => owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1}/src/main/java/com/google/cloud/assuredworkloads/v1/ListWorkloadsRequest.java (70%) rename {proto-google-cloud-assured-workloads-v1 => owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1}/src/main/java/com/google/cloud/assuredworkloads/v1/ListWorkloadsRequestOrBuilder.java (62%) rename {proto-google-cloud-assured-workloads-v1 => owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1}/src/main/java/com/google/cloud/assuredworkloads/v1/ListWorkloadsResponse.java (73%) rename {proto-google-cloud-assured-workloads-v1 => owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1}/src/main/java/com/google/cloud/assuredworkloads/v1/ListWorkloadsResponseOrBuilder.java (69%) rename {proto-google-cloud-assured-workloads-v1 => owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1}/src/main/java/com/google/cloud/assuredworkloads/v1/LocationName.java (100%) rename {proto-google-cloud-assured-workloads-v1 => owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1}/src/main/java/com/google/cloud/assuredworkloads/v1/UpdateWorkloadRequest.java (66%) rename {proto-google-cloud-assured-workloads-v1 => owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1}/src/main/java/com/google/cloud/assuredworkloads/v1/UpdateWorkloadRequestOrBuilder.java (61%) rename {proto-google-cloud-assured-workloads-v1 => owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1}/src/main/java/com/google/cloud/assuredworkloads/v1/Workload.java (67%) rename {proto-google-cloud-assured-workloads-v1 => owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1}/src/main/java/com/google/cloud/assuredworkloads/v1/WorkloadName.java (100%) rename {proto-google-cloud-assured-workloads-v1 => owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1}/src/main/java/com/google/cloud/assuredworkloads/v1/WorkloadOrBuilder.java (67%) rename {proto-google-cloud-assured-workloads-v1 => owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1}/src/main/proto/google/cloud/assuredworkloads/v1/assuredworkloads.proto (100%) create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/create/SyncCreateSetCredentialsProvider.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/create/SyncCreateSetCredentialsProvider1.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/create/SyncCreateSetEndpoint.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/createworkload/AsyncCreateWorkload.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/createworkload/AsyncCreateWorkloadLRO.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/createworkload/SyncCreateWorkload.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/createworkload/SyncCreateWorkloadLocationnameWorkload.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/createworkload/SyncCreateWorkloadStringWorkload.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/deleteworkload/AsyncDeleteWorkload.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/deleteworkload/SyncDeleteWorkload.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/deleteworkload/SyncDeleteWorkloadString.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/deleteworkload/SyncDeleteWorkloadWorkloadname.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/getworkload/AsyncGetWorkload.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/getworkload/SyncGetWorkload.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/getworkload/SyncGetWorkloadString.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/getworkload/SyncGetWorkloadWorkloadname.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/listworkloads/AsyncListWorkloads.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/listworkloads/AsyncListWorkloadsPaged.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/listworkloads/SyncListWorkloads.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/listworkloads/SyncListWorkloadsLocationname.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/listworkloads/SyncListWorkloadsString.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/updateworkload/AsyncUpdateWorkload.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/updateworkload/SyncUpdateWorkload.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/updateworkload/SyncUpdateWorkloadWorkloadFieldmask.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsservicesettings/updateworkload/SyncUpdateWorkload.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/stub/assuredworkloadsservicestubsettings/updateworkload/SyncUpdateWorkload.java rename {google-cloud-assured-workloads => owl-bot-staging/v1beta1/google-cloud-assured-workloads}/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AssuredWorkloadsServiceClient.java (94%) rename {google-cloud-assured-workloads => owl-bot-staging/v1beta1/google-cloud-assured-workloads}/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AssuredWorkloadsServiceSettings.java (89%) rename {google-cloud-assured-workloads => owl-bot-staging/v1beta1/google-cloud-assured-workloads}/src/main/java/com/google/cloud/assuredworkloads/v1beta1/gapic_metadata.json (100%) rename {google-cloud-assured-workloads => owl-bot-staging/v1beta1/google-cloud-assured-workloads}/src/main/java/com/google/cloud/assuredworkloads/v1beta1/package-info.java (100%) rename {google-cloud-assured-workloads => owl-bot-staging/v1beta1/google-cloud-assured-workloads}/src/main/java/com/google/cloud/assuredworkloads/v1beta1/stub/AssuredWorkloadsServiceStub.java (96%) rename {google-cloud-assured-workloads => owl-bot-staging/v1beta1/google-cloud-assured-workloads}/src/main/java/com/google/cloud/assuredworkloads/v1beta1/stub/AssuredWorkloadsServiceStubSettings.java (89%) rename {google-cloud-assured-workloads => owl-bot-staging/v1beta1/google-cloud-assured-workloads}/src/main/java/com/google/cloud/assuredworkloads/v1beta1/stub/GrpcAssuredWorkloadsServiceCallableFactory.java (100%) rename {google-cloud-assured-workloads => owl-bot-staging/v1beta1/google-cloud-assured-workloads}/src/main/java/com/google/cloud/assuredworkloads/v1beta1/stub/GrpcAssuredWorkloadsServiceStub.java (99%) create mode 100644 owl-bot-staging/v1beta1/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/stub/HttpJsonAssuredWorkloadsServiceCallableFactory.java create mode 100644 owl-bot-staging/v1beta1/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/stub/HttpJsonAssuredWorkloadsServiceStub.java create mode 100644 owl-bot-staging/v1beta1/google-cloud-assured-workloads/src/test/java/com/google/cloud/assuredworkloads/v1beta1/AssuredWorkloadsServiceClientHttpJsonTest.java rename {google-cloud-assured-workloads => owl-bot-staging/v1beta1/google-cloud-assured-workloads}/src/test/java/com/google/cloud/assuredworkloads/v1beta1/AssuredWorkloadsServiceClientTest.java (100%) rename {google-cloud-assured-workloads => owl-bot-staging/v1beta1/google-cloud-assured-workloads}/src/test/java/com/google/cloud/assuredworkloads/v1beta1/MockAssuredWorkloadsService.java (100%) rename {google-cloud-assured-workloads => owl-bot-staging/v1beta1/google-cloud-assured-workloads}/src/test/java/com/google/cloud/assuredworkloads/v1beta1/MockAssuredWorkloadsServiceImpl.java (100%) create mode 100644 owl-bot-staging/v1beta1/grpc-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AssuredWorkloadsServiceGrpc.java create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AssuredworkloadsProto.java rename {proto-google-cloud-assured-workloads-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1}/src/main/java/com/google/cloud/assuredworkloads/v1beta1/CreateWorkloadOperationMetadata.java (62%) rename {proto-google-cloud-assured-workloads-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1}/src/main/java/com/google/cloud/assuredworkloads/v1beta1/CreateWorkloadOperationMetadataOrBuilder.java (58%) rename {proto-google-cloud-assured-workloads-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1}/src/main/java/com/google/cloud/assuredworkloads/v1beta1/CreateWorkloadRequest.java (65%) rename {proto-google-cloud-assured-workloads-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1}/src/main/java/com/google/cloud/assuredworkloads/v1beta1/CreateWorkloadRequestOrBuilder.java (59%) rename {proto-google-cloud-assured-workloads-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1}/src/main/java/com/google/cloud/assuredworkloads/v1beta1/DeleteWorkloadRequest.java (67%) rename {proto-google-cloud-assured-workloads-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1}/src/main/java/com/google/cloud/assuredworkloads/v1beta1/DeleteWorkloadRequestOrBuilder.java (55%) rename {proto-google-cloud-assured-workloads-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1}/src/main/java/com/google/cloud/assuredworkloads/v1beta1/GetWorkloadRequest.java (67%) rename {proto-google-cloud-assured-workloads-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1}/src/main/java/com/google/cloud/assuredworkloads/v1beta1/GetWorkloadRequestOrBuilder.java (52%) rename {proto-google-cloud-assured-workloads-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1}/src/main/java/com/google/cloud/assuredworkloads/v1beta1/ListWorkloadsRequest.java (69%) rename {proto-google-cloud-assured-workloads-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1}/src/main/java/com/google/cloud/assuredworkloads/v1beta1/ListWorkloadsRequestOrBuilder.java (63%) rename {proto-google-cloud-assured-workloads-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1}/src/main/java/com/google/cloud/assuredworkloads/v1beta1/ListWorkloadsResponse.java (73%) rename {proto-google-cloud-assured-workloads-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1}/src/main/java/com/google/cloud/assuredworkloads/v1beta1/ListWorkloadsResponseOrBuilder.java (69%) rename {proto-google-cloud-assured-workloads-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1}/src/main/java/com/google/cloud/assuredworkloads/v1beta1/LocationName.java (100%) rename {proto-google-cloud-assured-workloads-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1}/src/main/java/com/google/cloud/assuredworkloads/v1beta1/UpdateWorkloadRequest.java (65%) rename {proto-google-cloud-assured-workloads-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1}/src/main/java/com/google/cloud/assuredworkloads/v1beta1/UpdateWorkloadRequestOrBuilder.java (61%) rename {proto-google-cloud-assured-workloads-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1}/src/main/java/com/google/cloud/assuredworkloads/v1beta1/Workload.java (62%) rename {proto-google-cloud-assured-workloads-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1}/src/main/java/com/google/cloud/assuredworkloads/v1beta1/WorkloadName.java (100%) rename {proto-google-cloud-assured-workloads-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1}/src/main/java/com/google/cloud/assuredworkloads/v1beta1/WorkloadOrBuilder.java (57%) rename {proto-google-cloud-assured-workloads-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1}/src/main/proto/google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto (100%) create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/create/SyncCreateSetCredentialsProvider.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/create/SyncCreateSetCredentialsProvider1.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/create/SyncCreateSetEndpoint.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/createworkload/AsyncCreateWorkload.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/createworkload/AsyncCreateWorkloadLRO.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/createworkload/SyncCreateWorkload.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/createworkload/SyncCreateWorkloadLocationnameWorkload.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/createworkload/SyncCreateWorkloadStringWorkload.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/deleteworkload/AsyncDeleteWorkload.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/deleteworkload/SyncDeleteWorkload.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/deleteworkload/SyncDeleteWorkloadString.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/deleteworkload/SyncDeleteWorkloadWorkloadname.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/getworkload/AsyncGetWorkload.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/getworkload/SyncGetWorkload.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/getworkload/SyncGetWorkloadString.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/getworkload/SyncGetWorkloadWorkloadname.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/listworkloads/AsyncListWorkloads.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/listworkloads/AsyncListWorkloadsPaged.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/listworkloads/SyncListWorkloads.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/listworkloads/SyncListWorkloadsLocationname.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/listworkloads/SyncListWorkloadsString.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/updateworkload/AsyncUpdateWorkload.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/updateworkload/SyncUpdateWorkload.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/updateworkload/SyncUpdateWorkloadWorkloadFieldmask.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsservicesettings/updateworkload/SyncUpdateWorkload.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/stub/assuredworkloadsservicestubsettings/updateworkload/SyncUpdateWorkload.java delete mode 100644 proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/AssuredworkloadsProto.java delete mode 100644 proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AssuredworkloadsProto.java diff --git a/grpc-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/AssuredWorkloadsServiceGrpc.java b/grpc-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/AssuredWorkloadsServiceGrpc.java deleted file mode 100644 index 5b8312b0..00000000 --- a/grpc-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/AssuredWorkloadsServiceGrpc.java +++ /dev/null @@ -1,857 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.cloud.assuredworkloads.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * Service to manage AssuredWorkloads.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/assuredworkloads/v1/assuredworkloads.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class AssuredWorkloadsServiceGrpc { - - private AssuredWorkloadsServiceGrpc() {} - - public static final String SERVICE_NAME = - "google.cloud.assuredworkloads.v1.AssuredWorkloadsService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest, - com.google.longrunning.Operation> - getCreateWorkloadMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateWorkload", - requestType = com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest, - com.google.longrunning.Operation> - getCreateWorkloadMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest, - com.google.longrunning.Operation> - getCreateWorkloadMethod; - if ((getCreateWorkloadMethod = AssuredWorkloadsServiceGrpc.getCreateWorkloadMethod) == null) { - synchronized (AssuredWorkloadsServiceGrpc.class) { - if ((getCreateWorkloadMethod = AssuredWorkloadsServiceGrpc.getCreateWorkloadMethod) - == null) { - AssuredWorkloadsServiceGrpc.getCreateWorkloadMethod = - getCreateWorkloadMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateWorkload")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new AssuredWorkloadsServiceMethodDescriptorSupplier("CreateWorkload")) - .build(); - } - } - } - return getCreateWorkloadMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest, - com.google.cloud.assuredworkloads.v1.Workload> - getUpdateWorkloadMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateWorkload", - requestType = com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest.class, - responseType = com.google.cloud.assuredworkloads.v1.Workload.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest, - com.google.cloud.assuredworkloads.v1.Workload> - getUpdateWorkloadMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest, - com.google.cloud.assuredworkloads.v1.Workload> - getUpdateWorkloadMethod; - if ((getUpdateWorkloadMethod = AssuredWorkloadsServiceGrpc.getUpdateWorkloadMethod) == null) { - synchronized (AssuredWorkloadsServiceGrpc.class) { - if ((getUpdateWorkloadMethod = AssuredWorkloadsServiceGrpc.getUpdateWorkloadMethod) - == null) { - AssuredWorkloadsServiceGrpc.getUpdateWorkloadMethod = - getUpdateWorkloadMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateWorkload")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.assuredworkloads.v1.Workload.getDefaultInstance())) - .setSchemaDescriptor( - new AssuredWorkloadsServiceMethodDescriptorSupplier("UpdateWorkload")) - .build(); - } - } - } - return getUpdateWorkloadMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest, com.google.protobuf.Empty> - getDeleteWorkloadMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteWorkload", - requestType = com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest, com.google.protobuf.Empty> - getDeleteWorkloadMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest, com.google.protobuf.Empty> - getDeleteWorkloadMethod; - if ((getDeleteWorkloadMethod = AssuredWorkloadsServiceGrpc.getDeleteWorkloadMethod) == null) { - synchronized (AssuredWorkloadsServiceGrpc.class) { - if ((getDeleteWorkloadMethod = AssuredWorkloadsServiceGrpc.getDeleteWorkloadMethod) - == null) { - AssuredWorkloadsServiceGrpc.getDeleteWorkloadMethod = - getDeleteWorkloadMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteWorkload")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new AssuredWorkloadsServiceMethodDescriptorSupplier("DeleteWorkload")) - .build(); - } - } - } - return getDeleteWorkloadMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.assuredworkloads.v1.GetWorkloadRequest, - com.google.cloud.assuredworkloads.v1.Workload> - getGetWorkloadMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetWorkload", - requestType = com.google.cloud.assuredworkloads.v1.GetWorkloadRequest.class, - responseType = com.google.cloud.assuredworkloads.v1.Workload.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.assuredworkloads.v1.GetWorkloadRequest, - com.google.cloud.assuredworkloads.v1.Workload> - getGetWorkloadMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.assuredworkloads.v1.GetWorkloadRequest, - com.google.cloud.assuredworkloads.v1.Workload> - getGetWorkloadMethod; - if ((getGetWorkloadMethod = AssuredWorkloadsServiceGrpc.getGetWorkloadMethod) == null) { - synchronized (AssuredWorkloadsServiceGrpc.class) { - if ((getGetWorkloadMethod = AssuredWorkloadsServiceGrpc.getGetWorkloadMethod) == null) { - AssuredWorkloadsServiceGrpc.getGetWorkloadMethod = - getGetWorkloadMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetWorkload")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.assuredworkloads.v1.GetWorkloadRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.assuredworkloads.v1.Workload.getDefaultInstance())) - .setSchemaDescriptor( - new AssuredWorkloadsServiceMethodDescriptorSupplier("GetWorkload")) - .build(); - } - } - } - return getGetWorkloadMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest, - com.google.cloud.assuredworkloads.v1.ListWorkloadsResponse> - getListWorkloadsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListWorkloads", - requestType = com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest.class, - responseType = com.google.cloud.assuredworkloads.v1.ListWorkloadsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest, - com.google.cloud.assuredworkloads.v1.ListWorkloadsResponse> - getListWorkloadsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest, - com.google.cloud.assuredworkloads.v1.ListWorkloadsResponse> - getListWorkloadsMethod; - if ((getListWorkloadsMethod = AssuredWorkloadsServiceGrpc.getListWorkloadsMethod) == null) { - synchronized (AssuredWorkloadsServiceGrpc.class) { - if ((getListWorkloadsMethod = AssuredWorkloadsServiceGrpc.getListWorkloadsMethod) == null) { - AssuredWorkloadsServiceGrpc.getListWorkloadsMethod = - getListWorkloadsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListWorkloads")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.assuredworkloads.v1.ListWorkloadsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new AssuredWorkloadsServiceMethodDescriptorSupplier("ListWorkloads")) - .build(); - } - } - } - return getListWorkloadsMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static AssuredWorkloadsServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AssuredWorkloadsServiceStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AssuredWorkloadsServiceStub(channel, callOptions); - } - }; - return AssuredWorkloadsServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static AssuredWorkloadsServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AssuredWorkloadsServiceBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AssuredWorkloadsServiceBlockingStub(channel, callOptions); - } - }; - return AssuredWorkloadsServiceBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static AssuredWorkloadsServiceFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AssuredWorkloadsServiceFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AssuredWorkloadsServiceFutureStub(channel, callOptions); - } - }; - return AssuredWorkloadsServiceFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Service to manage AssuredWorkloads.
-   * 
- */ - public abstract static class AssuredWorkloadsServiceImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Creates Assured Workload.
-     * 
- */ - public void createWorkload( - com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateWorkloadMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates an existing workload.
-     * Currently allows updating of workload display_name and labels.
-     * For force updates don't set etag field in the Workload.
-     * Only one update operation per workload can be in progress.
-     * 
- */ - public void updateWorkload( - com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateWorkloadMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes the workload. Make sure that workload's direct children are already
-     * in a deleted state, otherwise the request will fail with a
-     * FAILED_PRECONDITION error.
-     * 
- */ - public void deleteWorkload( - com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteWorkloadMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets Assured Workload associated with a CRM Node
-     * 
- */ - public void getWorkload( - com.google.cloud.assuredworkloads.v1.GetWorkloadRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetWorkloadMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists Assured Workloads under a CRM Node.
-     * 
- */ - public void listWorkloads( - com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListWorkloadsMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateWorkloadMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest, - com.google.longrunning.Operation>(this, METHODID_CREATE_WORKLOAD))) - .addMethod( - getUpdateWorkloadMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest, - com.google.cloud.assuredworkloads.v1.Workload>( - this, METHODID_UPDATE_WORKLOAD))) - .addMethod( - getDeleteWorkloadMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest, - com.google.protobuf.Empty>(this, METHODID_DELETE_WORKLOAD))) - .addMethod( - getGetWorkloadMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.assuredworkloads.v1.GetWorkloadRequest, - com.google.cloud.assuredworkloads.v1.Workload>(this, METHODID_GET_WORKLOAD))) - .addMethod( - getListWorkloadsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest, - com.google.cloud.assuredworkloads.v1.ListWorkloadsResponse>( - this, METHODID_LIST_WORKLOADS))) - .build(); - } - } - - /** - * - * - *
-   * Service to manage AssuredWorkloads.
-   * 
- */ - public static final class AssuredWorkloadsServiceStub - extends io.grpc.stub.AbstractAsyncStub { - private AssuredWorkloadsServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AssuredWorkloadsServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AssuredWorkloadsServiceStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates Assured Workload.
-     * 
- */ - public void createWorkload( - com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateWorkloadMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates an existing workload.
-     * Currently allows updating of workload display_name and labels.
-     * For force updates don't set etag field in the Workload.
-     * Only one update operation per workload can be in progress.
-     * 
- */ - public void updateWorkload( - com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateWorkloadMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes the workload. Make sure that workload's direct children are already
-     * in a deleted state, otherwise the request will fail with a
-     * FAILED_PRECONDITION error.
-     * 
- */ - public void deleteWorkload( - com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteWorkloadMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets Assured Workload associated with a CRM Node
-     * 
- */ - public void getWorkload( - com.google.cloud.assuredworkloads.v1.GetWorkloadRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetWorkloadMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists Assured Workloads under a CRM Node.
-     * 
- */ - public void listWorkloads( - com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListWorkloadsMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * Service to manage AssuredWorkloads.
-   * 
- */ - public static final class AssuredWorkloadsServiceBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private AssuredWorkloadsServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AssuredWorkloadsServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AssuredWorkloadsServiceBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates Assured Workload.
-     * 
- */ - public com.google.longrunning.Operation createWorkload( - com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateWorkloadMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates an existing workload.
-     * Currently allows updating of workload display_name and labels.
-     * For force updates don't set etag field in the Workload.
-     * Only one update operation per workload can be in progress.
-     * 
- */ - public com.google.cloud.assuredworkloads.v1.Workload updateWorkload( - com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateWorkloadMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes the workload. Make sure that workload's direct children are already
-     * in a deleted state, otherwise the request will fail with a
-     * FAILED_PRECONDITION error.
-     * 
- */ - public com.google.protobuf.Empty deleteWorkload( - com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteWorkloadMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets Assured Workload associated with a CRM Node
-     * 
- */ - public com.google.cloud.assuredworkloads.v1.Workload getWorkload( - com.google.cloud.assuredworkloads.v1.GetWorkloadRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetWorkloadMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists Assured Workloads under a CRM Node.
-     * 
- */ - public com.google.cloud.assuredworkloads.v1.ListWorkloadsResponse listWorkloads( - com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListWorkloadsMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * Service to manage AssuredWorkloads.
-   * 
- */ - public static final class AssuredWorkloadsServiceFutureStub - extends io.grpc.stub.AbstractFutureStub { - private AssuredWorkloadsServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AssuredWorkloadsServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AssuredWorkloadsServiceFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates Assured Workload.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createWorkload(com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateWorkloadMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates an existing workload.
-     * Currently allows updating of workload display_name and labels.
-     * For force updates don't set etag field in the Workload.
-     * Only one update operation per workload can be in progress.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.assuredworkloads.v1.Workload> - updateWorkload(com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateWorkloadMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes the workload. Make sure that workload's direct children are already
-     * in a deleted state, otherwise the request will fail with a
-     * FAILED_PRECONDITION error.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteWorkload(com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteWorkloadMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets Assured Workload associated with a CRM Node
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.assuredworkloads.v1.Workload> - getWorkload(com.google.cloud.assuredworkloads.v1.GetWorkloadRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetWorkloadMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists Assured Workloads under a CRM Node.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.assuredworkloads.v1.ListWorkloadsResponse> - listWorkloads(com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListWorkloadsMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_WORKLOAD = 0; - private static final int METHODID_UPDATE_WORKLOAD = 1; - private static final int METHODID_DELETE_WORKLOAD = 2; - private static final int METHODID_GET_WORKLOAD = 3; - private static final int METHODID_LIST_WORKLOADS = 4; - - 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 AssuredWorkloadsServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(AssuredWorkloadsServiceImplBase 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_WORKLOAD: - serviceImpl.createWorkload( - (com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_WORKLOAD: - serviceImpl.updateWorkload( - (com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_DELETE_WORKLOAD: - serviceImpl.deleteWorkload( - (com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_WORKLOAD: - serviceImpl.getWorkload( - (com.google.cloud.assuredworkloads.v1.GetWorkloadRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_WORKLOADS: - serviceImpl.listWorkloads( - (com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.assuredworkloads.v1.ListWorkloadsResponse>) - responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private abstract static class AssuredWorkloadsServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - AssuredWorkloadsServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("AssuredWorkloadsService"); - } - } - - private static final class AssuredWorkloadsServiceFileDescriptorSupplier - extends AssuredWorkloadsServiceBaseDescriptorSupplier { - AssuredWorkloadsServiceFileDescriptorSupplier() {} - } - - private static final class AssuredWorkloadsServiceMethodDescriptorSupplier - extends AssuredWorkloadsServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - AssuredWorkloadsServiceMethodDescriptorSupplier(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 (AssuredWorkloadsServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new AssuredWorkloadsServiceFileDescriptorSupplier()) - .addMethod(getCreateWorkloadMethod()) - .addMethod(getUpdateWorkloadMethod()) - .addMethod(getDeleteWorkloadMethod()) - .addMethod(getGetWorkloadMethod()) - .addMethod(getListWorkloadsMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/grpc-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AssuredWorkloadsServiceGrpc.java b/grpc-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AssuredWorkloadsServiceGrpc.java deleted file mode 100644 index 92c0204d..00000000 --- a/grpc-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AssuredWorkloadsServiceGrpc.java +++ /dev/null @@ -1,863 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.cloud.assuredworkloads.v1beta1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * Service to manage AssuredWorkloads.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class AssuredWorkloadsServiceGrpc { - - private AssuredWorkloadsServiceGrpc() {} - - public static final String SERVICE_NAME = - "google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest, - com.google.longrunning.Operation> - getCreateWorkloadMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateWorkload", - requestType = com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest, - com.google.longrunning.Operation> - getCreateWorkloadMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest, - com.google.longrunning.Operation> - getCreateWorkloadMethod; - if ((getCreateWorkloadMethod = AssuredWorkloadsServiceGrpc.getCreateWorkloadMethod) == null) { - synchronized (AssuredWorkloadsServiceGrpc.class) { - if ((getCreateWorkloadMethod = AssuredWorkloadsServiceGrpc.getCreateWorkloadMethod) - == null) { - AssuredWorkloadsServiceGrpc.getCreateWorkloadMethod = - getCreateWorkloadMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateWorkload")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new AssuredWorkloadsServiceMethodDescriptorSupplier("CreateWorkload")) - .build(); - } - } - } - return getCreateWorkloadMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest, - com.google.cloud.assuredworkloads.v1beta1.Workload> - getUpdateWorkloadMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateWorkload", - requestType = com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest.class, - responseType = com.google.cloud.assuredworkloads.v1beta1.Workload.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest, - com.google.cloud.assuredworkloads.v1beta1.Workload> - getUpdateWorkloadMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest, - com.google.cloud.assuredworkloads.v1beta1.Workload> - getUpdateWorkloadMethod; - if ((getUpdateWorkloadMethod = AssuredWorkloadsServiceGrpc.getUpdateWorkloadMethod) == null) { - synchronized (AssuredWorkloadsServiceGrpc.class) { - if ((getUpdateWorkloadMethod = AssuredWorkloadsServiceGrpc.getUpdateWorkloadMethod) - == null) { - AssuredWorkloadsServiceGrpc.getUpdateWorkloadMethod = - getUpdateWorkloadMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateWorkload")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.assuredworkloads.v1beta1.Workload - .getDefaultInstance())) - .setSchemaDescriptor( - new AssuredWorkloadsServiceMethodDescriptorSupplier("UpdateWorkload")) - .build(); - } - } - } - return getUpdateWorkloadMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest, - com.google.protobuf.Empty> - getDeleteWorkloadMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteWorkload", - requestType = com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest, - com.google.protobuf.Empty> - getDeleteWorkloadMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest, - com.google.protobuf.Empty> - getDeleteWorkloadMethod; - if ((getDeleteWorkloadMethod = AssuredWorkloadsServiceGrpc.getDeleteWorkloadMethod) == null) { - synchronized (AssuredWorkloadsServiceGrpc.class) { - if ((getDeleteWorkloadMethod = AssuredWorkloadsServiceGrpc.getDeleteWorkloadMethod) - == null) { - AssuredWorkloadsServiceGrpc.getDeleteWorkloadMethod = - getDeleteWorkloadMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteWorkload")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new AssuredWorkloadsServiceMethodDescriptorSupplier("DeleteWorkload")) - .build(); - } - } - } - return getDeleteWorkloadMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest, - com.google.cloud.assuredworkloads.v1beta1.Workload> - getGetWorkloadMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetWorkload", - requestType = com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest.class, - responseType = com.google.cloud.assuredworkloads.v1beta1.Workload.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest, - com.google.cloud.assuredworkloads.v1beta1.Workload> - getGetWorkloadMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest, - com.google.cloud.assuredworkloads.v1beta1.Workload> - getGetWorkloadMethod; - if ((getGetWorkloadMethod = AssuredWorkloadsServiceGrpc.getGetWorkloadMethod) == null) { - synchronized (AssuredWorkloadsServiceGrpc.class) { - if ((getGetWorkloadMethod = AssuredWorkloadsServiceGrpc.getGetWorkloadMethod) == null) { - AssuredWorkloadsServiceGrpc.getGetWorkloadMethod = - getGetWorkloadMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetWorkload")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.assuredworkloads.v1beta1.Workload - .getDefaultInstance())) - .setSchemaDescriptor( - new AssuredWorkloadsServiceMethodDescriptorSupplier("GetWorkload")) - .build(); - } - } - } - return getGetWorkloadMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest, - com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse> - getListWorkloadsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListWorkloads", - requestType = com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest.class, - responseType = com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest, - com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse> - getListWorkloadsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest, - com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse> - getListWorkloadsMethod; - if ((getListWorkloadsMethod = AssuredWorkloadsServiceGrpc.getListWorkloadsMethod) == null) { - synchronized (AssuredWorkloadsServiceGrpc.class) { - if ((getListWorkloadsMethod = AssuredWorkloadsServiceGrpc.getListWorkloadsMethod) == null) { - AssuredWorkloadsServiceGrpc.getListWorkloadsMethod = - getListWorkloadsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListWorkloads")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new AssuredWorkloadsServiceMethodDescriptorSupplier("ListWorkloads")) - .build(); - } - } - } - return getListWorkloadsMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static AssuredWorkloadsServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AssuredWorkloadsServiceStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AssuredWorkloadsServiceStub(channel, callOptions); - } - }; - return AssuredWorkloadsServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static AssuredWorkloadsServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AssuredWorkloadsServiceBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AssuredWorkloadsServiceBlockingStub(channel, callOptions); - } - }; - return AssuredWorkloadsServiceBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static AssuredWorkloadsServiceFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AssuredWorkloadsServiceFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AssuredWorkloadsServiceFutureStub(channel, callOptions); - } - }; - return AssuredWorkloadsServiceFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Service to manage AssuredWorkloads.
-   * 
- */ - public abstract static class AssuredWorkloadsServiceImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Creates Assured Workload.
-     * 
- */ - public void createWorkload( - com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateWorkloadMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates an existing workload.
-     * Currently allows updating of workload display_name and labels.
-     * For force updates don't set etag field in the Workload.
-     * Only one update operation per workload can be in progress.
-     * 
- */ - public void updateWorkload( - com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateWorkloadMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes the workload. Make sure that workload's direct children are already
-     * in a deleted state, otherwise the request will fail with a
-     * FAILED_PRECONDITION error.
-     * 
- */ - public void deleteWorkload( - com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteWorkloadMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets Assured Workload associated with a CRM Node
-     * 
- */ - public void getWorkload( - com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetWorkloadMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists Assured Workloads under a CRM Node.
-     * 
- */ - public void listWorkloads( - com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListWorkloadsMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateWorkloadMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest, - com.google.longrunning.Operation>(this, METHODID_CREATE_WORKLOAD))) - .addMethod( - getUpdateWorkloadMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest, - com.google.cloud.assuredworkloads.v1beta1.Workload>( - this, METHODID_UPDATE_WORKLOAD))) - .addMethod( - getDeleteWorkloadMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest, - com.google.protobuf.Empty>(this, METHODID_DELETE_WORKLOAD))) - .addMethod( - getGetWorkloadMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest, - com.google.cloud.assuredworkloads.v1beta1.Workload>( - this, METHODID_GET_WORKLOAD))) - .addMethod( - getListWorkloadsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest, - com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse>( - this, METHODID_LIST_WORKLOADS))) - .build(); - } - } - - /** - * - * - *
-   * Service to manage AssuredWorkloads.
-   * 
- */ - public static final class AssuredWorkloadsServiceStub - extends io.grpc.stub.AbstractAsyncStub { - private AssuredWorkloadsServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AssuredWorkloadsServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AssuredWorkloadsServiceStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates Assured Workload.
-     * 
- */ - public void createWorkload( - com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateWorkloadMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates an existing workload.
-     * Currently allows updating of workload display_name and labels.
-     * For force updates don't set etag field in the Workload.
-     * Only one update operation per workload can be in progress.
-     * 
- */ - public void updateWorkload( - com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateWorkloadMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes the workload. Make sure that workload's direct children are already
-     * in a deleted state, otherwise the request will fail with a
-     * FAILED_PRECONDITION error.
-     * 
- */ - public void deleteWorkload( - com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteWorkloadMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets Assured Workload associated with a CRM Node
-     * 
- */ - public void getWorkload( - com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetWorkloadMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists Assured Workloads under a CRM Node.
-     * 
- */ - public void listWorkloads( - com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListWorkloadsMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * Service to manage AssuredWorkloads.
-   * 
- */ - public static final class AssuredWorkloadsServiceBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private AssuredWorkloadsServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AssuredWorkloadsServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AssuredWorkloadsServiceBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates Assured Workload.
-     * 
- */ - public com.google.longrunning.Operation createWorkload( - com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateWorkloadMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates an existing workload.
-     * Currently allows updating of workload display_name and labels.
-     * For force updates don't set etag field in the Workload.
-     * Only one update operation per workload can be in progress.
-     * 
- */ - public com.google.cloud.assuredworkloads.v1beta1.Workload updateWorkload( - com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateWorkloadMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes the workload. Make sure that workload's direct children are already
-     * in a deleted state, otherwise the request will fail with a
-     * FAILED_PRECONDITION error.
-     * 
- */ - public com.google.protobuf.Empty deleteWorkload( - com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteWorkloadMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets Assured Workload associated with a CRM Node
-     * 
- */ - public com.google.cloud.assuredworkloads.v1beta1.Workload getWorkload( - com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetWorkloadMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists Assured Workloads under a CRM Node.
-     * 
- */ - public com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse listWorkloads( - com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListWorkloadsMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * Service to manage AssuredWorkloads.
-   * 
- */ - public static final class AssuredWorkloadsServiceFutureStub - extends io.grpc.stub.AbstractFutureStub { - private AssuredWorkloadsServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AssuredWorkloadsServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AssuredWorkloadsServiceFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates Assured Workload.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createWorkload(com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateWorkloadMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates an existing workload.
-     * Currently allows updating of workload display_name and labels.
-     * For force updates don't set etag field in the Workload.
-     * Only one update operation per workload can be in progress.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.assuredworkloads.v1beta1.Workload> - updateWorkload(com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateWorkloadMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes the workload. Make sure that workload's direct children are already
-     * in a deleted state, otherwise the request will fail with a
-     * FAILED_PRECONDITION error.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteWorkload(com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteWorkloadMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets Assured Workload associated with a CRM Node
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.assuredworkloads.v1beta1.Workload> - getWorkload(com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetWorkloadMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists Assured Workloads under a CRM Node.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse> - listWorkloads(com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListWorkloadsMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_WORKLOAD = 0; - private static final int METHODID_UPDATE_WORKLOAD = 1; - private static final int METHODID_DELETE_WORKLOAD = 2; - private static final int METHODID_GET_WORKLOAD = 3; - private static final int METHODID_LIST_WORKLOADS = 4; - - 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 AssuredWorkloadsServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(AssuredWorkloadsServiceImplBase 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_WORKLOAD: - serviceImpl.createWorkload( - (com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_WORKLOAD: - serviceImpl.updateWorkload( - (com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_DELETE_WORKLOAD: - serviceImpl.deleteWorkload( - (com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_WORKLOAD: - serviceImpl.getWorkload( - (com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_WORKLOADS: - serviceImpl.listWorkloads( - (com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse>) - responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private abstract static class AssuredWorkloadsServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - AssuredWorkloadsServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("AssuredWorkloadsService"); - } - } - - private static final class AssuredWorkloadsServiceFileDescriptorSupplier - extends AssuredWorkloadsServiceBaseDescriptorSupplier { - AssuredWorkloadsServiceFileDescriptorSupplier() {} - } - - private static final class AssuredWorkloadsServiceMethodDescriptorSupplier - extends AssuredWorkloadsServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - AssuredWorkloadsServiceMethodDescriptorSupplier(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 (AssuredWorkloadsServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new AssuredWorkloadsServiceFileDescriptorSupplier()) - .addMethod(getCreateWorkloadMethod()) - .addMethod(getUpdateWorkloadMethod()) - .addMethod(getDeleteWorkloadMethod()) - .addMethod(getGetWorkloadMethod()) - .addMethod(getListWorkloadsMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/AssuredWorkloadsServiceClient.java b/owl-bot-staging/v1/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/AssuredWorkloadsServiceClient.java similarity index 94% rename from google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/AssuredWorkloadsServiceClient.java rename to owl-bot-staging/v1/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/AssuredWorkloadsServiceClient.java index 22a6c36f..00a1def1 100644 --- a/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/AssuredWorkloadsServiceClient.java +++ b/owl-bot-staging/v1/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/AssuredWorkloadsServiceClient.java @@ -19,6 +19,7 @@ import com.google.api.core.ApiFuture; import com.google.api.core.ApiFutures; import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.longrunning.OperationsClient; import com.google.api.gax.longrunning.OperationFuture; import com.google.api.gax.paging.AbstractFixedSizeCollection; import com.google.api.gax.paging.AbstractPage; @@ -30,7 +31,6 @@ import com.google.cloud.assuredworkloads.v1.stub.AssuredWorkloadsServiceStubSettings; import com.google.common.util.concurrent.MoreExecutors; import com.google.longrunning.Operation; -import com.google.longrunning.OperationsClient; import com.google.protobuf.Empty; import com.google.protobuf.FieldMask; import java.io.IOException; @@ -64,13 +64,13 @@ * methods: * *
    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* @@ -107,13 +107,29 @@ * AssuredWorkloadsServiceClient.create(assuredWorkloadsServiceSettings); * } * + *

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

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

Please refer to the GitHub repository's samples for more quickstart code snippets. */ @Generated("by gapic-generator-java") public class AssuredWorkloadsServiceClient implements BackgroundResource { private final AssuredWorkloadsServiceSettings settings; private final AssuredWorkloadsServiceStub stub; - private final OperationsClient operationsClient; + private final OperationsClient httpJsonOperationsClient; + private final com.google.longrunning.OperationsClient operationsClient; /** Constructs an instance of AssuredWorkloadsServiceClient with default settings. */ public static final AssuredWorkloadsServiceClient create() throws IOException { @@ -146,13 +162,17 @@ protected AssuredWorkloadsServiceClient(AssuredWorkloadsServiceSettings settings throws IOException { this.settings = settings; this.stub = ((AssuredWorkloadsServiceStubSettings) settings.getStubSettings()).createStub(); - this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } protected AssuredWorkloadsServiceClient(AssuredWorkloadsServiceStub stub) { this.settings = null; this.stub = stub; - this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } public final AssuredWorkloadsServiceSettings getSettings() { @@ -167,10 +187,18 @@ public AssuredWorkloadsServiceStub getStub() { * Returns the OperationsClient that can be used to query the status of a long-running operation * returned by another API method call. */ - public final OperationsClient getOperationsClient() { + public final com.google.longrunning.OperationsClient getOperationsClient() { return operationsClient; } + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + public final OperationsClient getHttpJsonOperationsClient() { + return httpJsonOperationsClient; + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates Assured Workload. @@ -813,10 +841,7 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListWorkloadsPagedResponse extends AbstractPagedListResponse< - ListWorkloadsRequest, - ListWorkloadsResponse, - Workload, - ListWorkloadsPage, + ListWorkloadsRequest, ListWorkloadsResponse, Workload, ListWorkloadsPage, ListWorkloadsFixedSizeCollection> { public static ApiFuture createAsync( @@ -866,10 +891,7 @@ public ApiFuture createPageAsync( public static class ListWorkloadsFixedSizeCollection extends AbstractFixedSizeCollection< - ListWorkloadsRequest, - ListWorkloadsResponse, - Workload, - ListWorkloadsPage, + ListWorkloadsRequest, ListWorkloadsResponse, Workload, ListWorkloadsPage, ListWorkloadsFixedSizeCollection> { private ListWorkloadsFixedSizeCollection(List pages, int collectionSize) { diff --git a/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/AssuredWorkloadsServiceSettings.java b/owl-bot-staging/v1/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/AssuredWorkloadsServiceSettings.java similarity index 89% rename from google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/AssuredWorkloadsServiceSettings.java rename to owl-bot-staging/v1/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/AssuredWorkloadsServiceSettings.java index 1a487ee2..0de498e8 100644 --- a/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/AssuredWorkloadsServiceSettings.java +++ b/owl-bot-staging/v1/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/AssuredWorkloadsServiceSettings.java @@ -23,11 +23,13 @@ import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; 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.assuredworkloads.v1.stub.AssuredWorkloadsServiceStubSettings; @@ -44,10 +46,10 @@ *

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

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

The builder of this class is recursive, so contained classes are themselves builders. When @@ -135,11 +137,18 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde return AssuredWorkloadsServiceStubSettings.defaultCredentialsProviderBuilder(); } - /** Returns a builder for the default ChannelProvider for this service. */ + /** Returns a builder for the default gRPC ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { return AssuredWorkloadsServiceStubSettings.defaultGrpcTransportProviderBuilder(); } + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return AssuredWorkloadsServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + public static TransportChannelProvider defaultTransportChannelProvider() { return AssuredWorkloadsServiceStubSettings.defaultTransportChannelProvider(); } @@ -149,11 +158,17 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil return AssuredWorkloadsServiceStubSettings.defaultApiClientHeaderProviderBuilder(); } - /** Returns a new builder for this class. */ + /** Returns a new gRPC builder for this class. */ public static Builder newBuilder() { return Builder.createDefault(); } + /** Returns a new REST builder for this class. */ + @BetaApi + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + /** Returns a new builder for this class. */ public static Builder newBuilder(ClientContext clientContext) { return new Builder(clientContext); @@ -192,6 +207,11 @@ private static Builder createDefault() { return new Builder(AssuredWorkloadsServiceStubSettings.newBuilder()); } + @BetaApi + private static Builder createHttpJsonDefault() { + return new Builder(AssuredWorkloadsServiceStubSettings.newHttpJsonBuilder()); + } + public AssuredWorkloadsServiceStubSettings.Builder getStubSettingsBuilder() { return ((AssuredWorkloadsServiceStubSettings.Builder) getStubSettings()); } diff --git a/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/gapic_metadata.json b/owl-bot-staging/v1/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/gapic_metadata.json similarity index 100% rename from google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/gapic_metadata.json rename to owl-bot-staging/v1/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/gapic_metadata.json diff --git a/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/package-info.java b/owl-bot-staging/v1/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/package-info.java similarity index 100% rename from google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/package-info.java rename to owl-bot-staging/v1/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/package-info.java diff --git a/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/stub/AssuredWorkloadsServiceStub.java b/owl-bot-staging/v1/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/stub/AssuredWorkloadsServiceStub.java similarity index 96% rename from google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/stub/AssuredWorkloadsServiceStub.java rename to owl-bot-staging/v1/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/stub/AssuredWorkloadsServiceStub.java index b6082e62..5515cbfc 100644 --- a/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/stub/AssuredWorkloadsServiceStub.java +++ b/owl-bot-staging/v1/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/stub/AssuredWorkloadsServiceStub.java @@ -44,7 +44,11 @@ public abstract class AssuredWorkloadsServiceStub implements BackgroundResource { public OperationsStub getOperationsStub() { - throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); + return null; + } + + public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + return null; } public OperationCallable diff --git a/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/stub/AssuredWorkloadsServiceStubSettings.java b/owl-bot-staging/v1/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/stub/AssuredWorkloadsServiceStubSettings.java similarity index 89% rename from google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/stub/AssuredWorkloadsServiceStubSettings.java rename to owl-bot-staging/v1/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/stub/AssuredWorkloadsServiceStubSettings.java index b218e2de..b16dfd60 100644 --- a/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/stub/AssuredWorkloadsServiceStubSettings.java +++ b/owl-bot-staging/v1/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/stub/AssuredWorkloadsServiceStubSettings.java @@ -28,6 +28,9 @@ import com.google.api.gax.grpc.GrpcTransportChannel; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; import com.google.api.gax.grpc.ProtoOperationTransformers; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; import com.google.api.gax.retrying.RetrySettings; @@ -70,10 +73,10 @@ *

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

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

The builder of this class is recursive, so contained classes are themselves builders. When @@ -208,6 +211,11 @@ public AssuredWorkloadsServiceStub createStub() throws IOException { .equals(GrpcTransportChannel.getGrpcTransportName())) { return GrpcAssuredWorkloadsServiceStub.create(this); } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonAssuredWorkloadsServiceStub.create(this); + } throw new UnsupportedOperationException( String.format( "Transport not supported: %s", getTransportChannelProvider().getTransportName())); @@ -240,18 +248,25 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde .setUseJwtAccessWithScope(true); } - /** Returns a builder for the default ChannelProvider for this service. */ + /** Returns a builder for the default gRPC ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { return InstantiatingGrpcChannelProvider.newBuilder() .setMaxInboundMessageSize(Integer.MAX_VALUE); } + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + public static TransportChannelProvider defaultTransportChannelProvider() { return defaultGrpcTransportProviderBuilder().build(); } @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken( "gapic", GaxProperties.getLibraryVersion(AssuredWorkloadsServiceStubSettings.class)) @@ -259,11 +274,30 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); } - /** Returns a new builder for this class. */ + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(AssuredWorkloadsServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return AssuredWorkloadsServiceStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ public static Builder newBuilder() { return Builder.createDefault(); } + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + /** Returns a new builder for this class. */ public static Builder newBuilder(ClientContext clientContext) { return new Builder(clientContext); @@ -383,6 +417,19 @@ private static Builder createDefault() { return initDefaults(builder); } + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + private static Builder initDefaults(Builder builder) { builder .createWorkloadSettings() diff --git a/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/stub/GrpcAssuredWorkloadsServiceCallableFactory.java b/owl-bot-staging/v1/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/stub/GrpcAssuredWorkloadsServiceCallableFactory.java similarity index 100% rename from google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/stub/GrpcAssuredWorkloadsServiceCallableFactory.java rename to owl-bot-staging/v1/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/stub/GrpcAssuredWorkloadsServiceCallableFactory.java diff --git a/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/stub/GrpcAssuredWorkloadsServiceStub.java b/owl-bot-staging/v1/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/stub/GrpcAssuredWorkloadsServiceStub.java similarity index 99% rename from google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/stub/GrpcAssuredWorkloadsServiceStub.java rename to owl-bot-staging/v1/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/stub/GrpcAssuredWorkloadsServiceStub.java index 155974fd..49002528 100644 --- a/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/stub/GrpcAssuredWorkloadsServiceStub.java +++ b/owl-bot-staging/v1/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/stub/GrpcAssuredWorkloadsServiceStub.java @@ -40,6 +40,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/v1/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/stub/HttpJsonAssuredWorkloadsServiceCallableFactory.java b/owl-bot-staging/v1/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/stub/HttpJsonAssuredWorkloadsServiceCallableFactory.java new file mode 100644 index 00000000..f55c5355 --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/stub/HttpJsonAssuredWorkloadsServiceCallableFactory.java @@ -0,0 +1,105 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.assuredworkloads.v1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the AssuredWorkloadsService service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +@BetaApi +public class HttpJsonAssuredWorkloadsServiceCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/owl-bot-staging/v1/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/stub/HttpJsonAssuredWorkloadsServiceStub.java b/owl-bot-staging/v1/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/stub/HttpJsonAssuredWorkloadsServiceStub.java new file mode 100644 index 00000000..cc36a15e --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/stub/HttpJsonAssuredWorkloadsServiceStub.java @@ -0,0 +1,458 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.assuredworkloads.v1.stub; + +import static com.google.cloud.assuredworkloads.v1.AssuredWorkloadsServiceClient.ListWorkloadsPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshot; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata; +import com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest; +import com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest; +import com.google.cloud.assuredworkloads.v1.GetWorkloadRequest; +import com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest; +import com.google.cloud.assuredworkloads.v1.ListWorkloadsResponse; +import com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest; +import com.google.cloud.assuredworkloads.v1.Workload; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the AssuredWorkloadsService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +@BetaApi +public class HttpJsonAssuredWorkloadsServiceStub extends AssuredWorkloadsServiceStub { + private static final TypeRegistry typeRegistry = + TypeRegistry.newBuilder() + .add(Workload.getDescriptor()) + .add(CreateWorkloadOperationMetadata.getDescriptor()) + .build(); + + private static final ApiMethodDescriptor + createWorkloadMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.assuredworkloads.v1.AssuredWorkloadsService/CreateWorkload") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=organizations/*/locations/*}/workloads", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "externalId", request.getExternalId()); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("workload", request.getWorkload())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (CreateWorkloadRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + updateWorkloadMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.assuredworkloads.v1.AssuredWorkloadsService/UpdateWorkload") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{workload.name=organizations/*/locations/*/workloads/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "workload.name", request.getWorkload().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("workload", request.getWorkload())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Workload.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteWorkloadMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.assuredworkloads.v1.AssuredWorkloadsService/DeleteWorkload") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=organizations/*/locations/*/workloads/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "etag", request.getEtag()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getWorkloadMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.assuredworkloads.v1.AssuredWorkloadsService/GetWorkload") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=organizations/*/locations/*/workloads/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Workload.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listWorkloadsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.assuredworkloads.v1.AssuredWorkloadsService/ListWorkloads") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=organizations/*/locations/*}/workloads", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListWorkloadsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable createWorkloadCallable; + private final OperationCallable + createWorkloadOperationCallable; + private final UnaryCallable updateWorkloadCallable; + private final UnaryCallable deleteWorkloadCallable; + private final UnaryCallable getWorkloadCallable; + private final UnaryCallable listWorkloadsCallable; + private final UnaryCallable + listWorkloadsPagedCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonOperationsStub httpJsonOperationsStub; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonAssuredWorkloadsServiceStub create( + AssuredWorkloadsServiceStubSettings settings) throws IOException { + return new HttpJsonAssuredWorkloadsServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonAssuredWorkloadsServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonAssuredWorkloadsServiceStub( + AssuredWorkloadsServiceStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonAssuredWorkloadsServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonAssuredWorkloadsServiceStub( + AssuredWorkloadsServiceStubSettings.newHttpJsonBuilder().build(), + clientContext, + callableFactory); + } + + /** + * Constructs an instance of HttpJsonAssuredWorkloadsServiceStub, using the given settings. This + * is protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonAssuredWorkloadsServiceStub( + AssuredWorkloadsServiceStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new HttpJsonAssuredWorkloadsServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonAssuredWorkloadsServiceStub, using the given settings. This + * is protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonAssuredWorkloadsServiceStub( + AssuredWorkloadsServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.httpJsonOperationsStub = + HttpJsonOperationsStub.create(clientContext, callableFactory, typeRegistry); + + HttpJsonCallSettings createWorkloadTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createWorkloadMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings updateWorkloadTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateWorkloadMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings deleteWorkloadTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteWorkloadMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings getWorkloadTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getWorkloadMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + listWorkloadsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listWorkloadsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + + this.createWorkloadCallable = + callableFactory.createUnaryCallable( + createWorkloadTransportSettings, settings.createWorkloadSettings(), clientContext); + this.createWorkloadOperationCallable = + callableFactory.createOperationCallable( + createWorkloadTransportSettings, + settings.createWorkloadOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.updateWorkloadCallable = + callableFactory.createUnaryCallable( + updateWorkloadTransportSettings, settings.updateWorkloadSettings(), clientContext); + this.deleteWorkloadCallable = + callableFactory.createUnaryCallable( + deleteWorkloadTransportSettings, settings.deleteWorkloadSettings(), clientContext); + this.getWorkloadCallable = + callableFactory.createUnaryCallable( + getWorkloadTransportSettings, settings.getWorkloadSettings(), clientContext); + this.listWorkloadsCallable = + callableFactory.createUnaryCallable( + listWorkloadsTransportSettings, settings.listWorkloadsSettings(), clientContext); + this.listWorkloadsPagedCallable = + callableFactory.createPagedCallable( + listWorkloadsTransportSettings, settings.listWorkloadsSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(createWorkloadMethodDescriptor); + methodDescriptors.add(updateWorkloadMethodDescriptor); + methodDescriptors.add(deleteWorkloadMethodDescriptor); + methodDescriptors.add(getWorkloadMethodDescriptor); + methodDescriptors.add(listWorkloadsMethodDescriptor); + return methodDescriptors; + } + + public HttpJsonOperationsStub getHttpJsonOperationsStub() { + return httpJsonOperationsStub; + } + + @Override + public UnaryCallable createWorkloadCallable() { + return createWorkloadCallable; + } + + @Override + public OperationCallable + createWorkloadOperationCallable() { + return createWorkloadOperationCallable; + } + + @Override + public UnaryCallable updateWorkloadCallable() { + return updateWorkloadCallable; + } + + @Override + public UnaryCallable deleteWorkloadCallable() { + return deleteWorkloadCallable; + } + + @Override + public UnaryCallable getWorkloadCallable() { + return getWorkloadCallable; + } + + @Override + public UnaryCallable listWorkloadsCallable() { + return listWorkloadsCallable; + } + + @Override + public UnaryCallable + listWorkloadsPagedCallable() { + return listWorkloadsPagedCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/owl-bot-staging/v1/google-cloud-assured-workloads/src/test/java/com/google/cloud/assuredworkloads/v1/AssuredWorkloadsServiceClientHttpJsonTest.java b/owl-bot-staging/v1/google-cloud-assured-workloads/src/test/java/com/google/cloud/assuredworkloads/v1/AssuredWorkloadsServiceClientHttpJsonTest.java new file mode 100644 index 00000000..bc56604b --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-assured-workloads/src/test/java/com/google/cloud/assuredworkloads/v1/AssuredWorkloadsServiceClientHttpJsonTest.java @@ -0,0 +1,586 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.assuredworkloads.v1; + +import static com.google.cloud.assuredworkloads.v1.AssuredWorkloadsServiceClient.ListWorkloadsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.assuredworkloads.v1.stub.HttpJsonAssuredWorkloadsServiceStub; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import com.google.protobuf.Any; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class AssuredWorkloadsServiceClientHttpJsonTest { + private static MockHttpService mockService; + private static AssuredWorkloadsServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonAssuredWorkloadsServiceStub.getMethodDescriptors(), + AssuredWorkloadsServiceSettings.getDefaultEndpoint()); + AssuredWorkloadsServiceSettings settings = + AssuredWorkloadsServiceSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + AssuredWorkloadsServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = AssuredWorkloadsServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void createWorkloadTest() throws Exception { + Workload expectedResponse = + Workload.newBuilder() + .setName(WorkloadName.of("[ORGANIZATION]", "[LOCATION]", "[WORKLOAD]").toString()) + .setDisplayName("displayName1714148973") + .addAllResources(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setBillingAccount("billingAccount708726578") + .setEtag("etag3123477") + .putAllLabels(new HashMap()) + .setProvisionedResourcesParent("provisionedResourcesParent1733249115") + .setKmsSettings(Workload.KMSSettings.newBuilder().build()) + .addAllResourceSettings(new ArrayList()) + .setEnableSovereignControls(true) + .setSaaEnrollmentResponse(Workload.SaaEnrollmentResponse.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createWorkloadTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[ORGANIZATION]", "[LOCATION]"); + Workload workload = Workload.newBuilder().build(); + + Workload actualResponse = client.createWorkloadAsync(parent, workload).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createWorkloadExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[ORGANIZATION]", "[LOCATION]"); + Workload workload = Workload.newBuilder().build(); + client.createWorkloadAsync(parent, workload).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createWorkloadTest2() throws Exception { + Workload expectedResponse = + Workload.newBuilder() + .setName(WorkloadName.of("[ORGANIZATION]", "[LOCATION]", "[WORKLOAD]").toString()) + .setDisplayName("displayName1714148973") + .addAllResources(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setBillingAccount("billingAccount708726578") + .setEtag("etag3123477") + .putAllLabels(new HashMap()) + .setProvisionedResourcesParent("provisionedResourcesParent1733249115") + .setKmsSettings(Workload.KMSSettings.newBuilder().build()) + .addAllResourceSettings(new ArrayList()) + .setEnableSovereignControls(true) + .setSaaEnrollmentResponse(Workload.SaaEnrollmentResponse.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createWorkloadTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "organizations/organization-9365/locations/location-9365"; + Workload workload = Workload.newBuilder().build(); + + Workload actualResponse = client.createWorkloadAsync(parent, workload).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createWorkloadExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "organizations/organization-9365/locations/location-9365"; + Workload workload = Workload.newBuilder().build(); + client.createWorkloadAsync(parent, workload).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void updateWorkloadTest() throws Exception { + Workload expectedResponse = + Workload.newBuilder() + .setName(WorkloadName.of("[ORGANIZATION]", "[LOCATION]", "[WORKLOAD]").toString()) + .setDisplayName("displayName1714148973") + .addAllResources(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setBillingAccount("billingAccount708726578") + .setEtag("etag3123477") + .putAllLabels(new HashMap()) + .setProvisionedResourcesParent("provisionedResourcesParent1733249115") + .setKmsSettings(Workload.KMSSettings.newBuilder().build()) + .addAllResourceSettings(new ArrayList()) + .setEnableSovereignControls(true) + .setSaaEnrollmentResponse(Workload.SaaEnrollmentResponse.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + Workload workload = + Workload.newBuilder() + .setName(WorkloadName.of("[ORGANIZATION]", "[LOCATION]", "[WORKLOAD]").toString()) + .setDisplayName("displayName1714148973") + .addAllResources(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setBillingAccount("billingAccount708726578") + .setEtag("etag3123477") + .putAllLabels(new HashMap()) + .setProvisionedResourcesParent("provisionedResourcesParent1733249115") + .setKmsSettings(Workload.KMSSettings.newBuilder().build()) + .addAllResourceSettings(new ArrayList()) + .setEnableSovereignControls(true) + .setSaaEnrollmentResponse(Workload.SaaEnrollmentResponse.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Workload actualResponse = client.updateWorkload(workload, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateWorkloadExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + Workload workload = + Workload.newBuilder() + .setName(WorkloadName.of("[ORGANIZATION]", "[LOCATION]", "[WORKLOAD]").toString()) + .setDisplayName("displayName1714148973") + .addAllResources(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setBillingAccount("billingAccount708726578") + .setEtag("etag3123477") + .putAllLabels(new HashMap()) + .setProvisionedResourcesParent("provisionedResourcesParent1733249115") + .setKmsSettings(Workload.KMSSettings.newBuilder().build()) + .addAllResourceSettings(new ArrayList()) + .setEnableSovereignControls(true) + .setSaaEnrollmentResponse(Workload.SaaEnrollmentResponse.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateWorkload(workload, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteWorkloadTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + WorkloadName name = WorkloadName.of("[ORGANIZATION]", "[LOCATION]", "[WORKLOAD]"); + + client.deleteWorkload(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteWorkloadExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + WorkloadName name = WorkloadName.of("[ORGANIZATION]", "[LOCATION]", "[WORKLOAD]"); + client.deleteWorkload(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteWorkloadTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = "organizations/organization-4962/locations/location-4962/workloads/workload-4962"; + + client.deleteWorkload(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteWorkloadExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "organizations/organization-4962/locations/location-4962/workloads/workload-4962"; + client.deleteWorkload(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getWorkloadTest() throws Exception { + Workload expectedResponse = + Workload.newBuilder() + .setName(WorkloadName.of("[ORGANIZATION]", "[LOCATION]", "[WORKLOAD]").toString()) + .setDisplayName("displayName1714148973") + .addAllResources(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setBillingAccount("billingAccount708726578") + .setEtag("etag3123477") + .putAllLabels(new HashMap()) + .setProvisionedResourcesParent("provisionedResourcesParent1733249115") + .setKmsSettings(Workload.KMSSettings.newBuilder().build()) + .addAllResourceSettings(new ArrayList()) + .setEnableSovereignControls(true) + .setSaaEnrollmentResponse(Workload.SaaEnrollmentResponse.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + WorkloadName name = WorkloadName.of("[ORGANIZATION]", "[LOCATION]", "[WORKLOAD]"); + + Workload actualResponse = client.getWorkload(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getWorkloadExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + WorkloadName name = WorkloadName.of("[ORGANIZATION]", "[LOCATION]", "[WORKLOAD]"); + client.getWorkload(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getWorkloadTest2() throws Exception { + Workload expectedResponse = + Workload.newBuilder() + .setName(WorkloadName.of("[ORGANIZATION]", "[LOCATION]", "[WORKLOAD]").toString()) + .setDisplayName("displayName1714148973") + .addAllResources(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setBillingAccount("billingAccount708726578") + .setEtag("etag3123477") + .putAllLabels(new HashMap()) + .setProvisionedResourcesParent("provisionedResourcesParent1733249115") + .setKmsSettings(Workload.KMSSettings.newBuilder().build()) + .addAllResourceSettings(new ArrayList()) + .setEnableSovereignControls(true) + .setSaaEnrollmentResponse(Workload.SaaEnrollmentResponse.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "organizations/organization-4962/locations/location-4962/workloads/workload-4962"; + + Workload actualResponse = client.getWorkload(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getWorkloadExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "organizations/organization-4962/locations/location-4962/workloads/workload-4962"; + client.getWorkload(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listWorkloadsTest() throws Exception { + Workload responsesElement = Workload.newBuilder().build(); + ListWorkloadsResponse expectedResponse = + ListWorkloadsResponse.newBuilder() + .setNextPageToken("") + .addAllWorkloads(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[ORGANIZATION]", "[LOCATION]"); + + ListWorkloadsPagedResponse pagedListResponse = client.listWorkloads(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getWorkloadsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listWorkloadsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[ORGANIZATION]", "[LOCATION]"); + client.listWorkloads(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listWorkloadsTest2() throws Exception { + Workload responsesElement = Workload.newBuilder().build(); + ListWorkloadsResponse expectedResponse = + ListWorkloadsResponse.newBuilder() + .setNextPageToken("") + .addAllWorkloads(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "organizations/organization-9365/locations/location-9365"; + + ListWorkloadsPagedResponse pagedListResponse = client.listWorkloads(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getWorkloadsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listWorkloadsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "organizations/organization-9365/locations/location-9365"; + client.listWorkloads(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/google-cloud-assured-workloads/src/test/java/com/google/cloud/assuredworkloads/v1/AssuredWorkloadsServiceClientTest.java b/owl-bot-staging/v1/google-cloud-assured-workloads/src/test/java/com/google/cloud/assuredworkloads/v1/AssuredWorkloadsServiceClientTest.java similarity index 100% rename from google-cloud-assured-workloads/src/test/java/com/google/cloud/assuredworkloads/v1/AssuredWorkloadsServiceClientTest.java rename to owl-bot-staging/v1/google-cloud-assured-workloads/src/test/java/com/google/cloud/assuredworkloads/v1/AssuredWorkloadsServiceClientTest.java diff --git a/google-cloud-assured-workloads/src/test/java/com/google/cloud/assuredworkloads/v1/MockAssuredWorkloadsService.java b/owl-bot-staging/v1/google-cloud-assured-workloads/src/test/java/com/google/cloud/assuredworkloads/v1/MockAssuredWorkloadsService.java similarity index 100% rename from google-cloud-assured-workloads/src/test/java/com/google/cloud/assuredworkloads/v1/MockAssuredWorkloadsService.java rename to owl-bot-staging/v1/google-cloud-assured-workloads/src/test/java/com/google/cloud/assuredworkloads/v1/MockAssuredWorkloadsService.java diff --git a/google-cloud-assured-workloads/src/test/java/com/google/cloud/assuredworkloads/v1/MockAssuredWorkloadsServiceImpl.java b/owl-bot-staging/v1/google-cloud-assured-workloads/src/test/java/com/google/cloud/assuredworkloads/v1/MockAssuredWorkloadsServiceImpl.java similarity index 100% rename from google-cloud-assured-workloads/src/test/java/com/google/cloud/assuredworkloads/v1/MockAssuredWorkloadsServiceImpl.java rename to owl-bot-staging/v1/google-cloud-assured-workloads/src/test/java/com/google/cloud/assuredworkloads/v1/MockAssuredWorkloadsServiceImpl.java diff --git a/owl-bot-staging/v1/grpc-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/AssuredWorkloadsServiceGrpc.java b/owl-bot-staging/v1/grpc-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/AssuredWorkloadsServiceGrpc.java new file mode 100644 index 00000000..93930f41 --- /dev/null +++ b/owl-bot-staging/v1/grpc-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/AssuredWorkloadsServiceGrpc.java @@ -0,0 +1,667 @@ +package com.google.cloud.assuredworkloads.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *

+ * Service to manage AssuredWorkloads.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/assuredworkloads/v1/assuredworkloads.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class AssuredWorkloadsServiceGrpc { + + private AssuredWorkloadsServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.assuredworkloads.v1.AssuredWorkloadsService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getCreateWorkloadMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateWorkload", + requestType = com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateWorkloadMethod() { + io.grpc.MethodDescriptor getCreateWorkloadMethod; + if ((getCreateWorkloadMethod = AssuredWorkloadsServiceGrpc.getCreateWorkloadMethod) == null) { + synchronized (AssuredWorkloadsServiceGrpc.class) { + if ((getCreateWorkloadMethod = AssuredWorkloadsServiceGrpc.getCreateWorkloadMethod) == null) { + AssuredWorkloadsServiceGrpc.getCreateWorkloadMethod = getCreateWorkloadMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateWorkload")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new AssuredWorkloadsServiceMethodDescriptorSupplier("CreateWorkload")) + .build(); + } + } + } + return getCreateWorkloadMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateWorkloadMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateWorkload", + requestType = com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest.class, + responseType = com.google.cloud.assuredworkloads.v1.Workload.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateWorkloadMethod() { + io.grpc.MethodDescriptor getUpdateWorkloadMethod; + if ((getUpdateWorkloadMethod = AssuredWorkloadsServiceGrpc.getUpdateWorkloadMethod) == null) { + synchronized (AssuredWorkloadsServiceGrpc.class) { + if ((getUpdateWorkloadMethod = AssuredWorkloadsServiceGrpc.getUpdateWorkloadMethod) == null) { + AssuredWorkloadsServiceGrpc.getUpdateWorkloadMethod = getUpdateWorkloadMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateWorkload")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.assuredworkloads.v1.Workload.getDefaultInstance())) + .setSchemaDescriptor(new AssuredWorkloadsServiceMethodDescriptorSupplier("UpdateWorkload")) + .build(); + } + } + } + return getUpdateWorkloadMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteWorkloadMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteWorkload", + requestType = com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteWorkloadMethod() { + io.grpc.MethodDescriptor getDeleteWorkloadMethod; + if ((getDeleteWorkloadMethod = AssuredWorkloadsServiceGrpc.getDeleteWorkloadMethod) == null) { + synchronized (AssuredWorkloadsServiceGrpc.class) { + if ((getDeleteWorkloadMethod = AssuredWorkloadsServiceGrpc.getDeleteWorkloadMethod) == null) { + AssuredWorkloadsServiceGrpc.getDeleteWorkloadMethod = getDeleteWorkloadMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteWorkload")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new AssuredWorkloadsServiceMethodDescriptorSupplier("DeleteWorkload")) + .build(); + } + } + } + return getDeleteWorkloadMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetWorkloadMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetWorkload", + requestType = com.google.cloud.assuredworkloads.v1.GetWorkloadRequest.class, + responseType = com.google.cloud.assuredworkloads.v1.Workload.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetWorkloadMethod() { + io.grpc.MethodDescriptor getGetWorkloadMethod; + if ((getGetWorkloadMethod = AssuredWorkloadsServiceGrpc.getGetWorkloadMethod) == null) { + synchronized (AssuredWorkloadsServiceGrpc.class) { + if ((getGetWorkloadMethod = AssuredWorkloadsServiceGrpc.getGetWorkloadMethod) == null) { + AssuredWorkloadsServiceGrpc.getGetWorkloadMethod = getGetWorkloadMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetWorkload")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.assuredworkloads.v1.GetWorkloadRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.assuredworkloads.v1.Workload.getDefaultInstance())) + .setSchemaDescriptor(new AssuredWorkloadsServiceMethodDescriptorSupplier("GetWorkload")) + .build(); + } + } + } + return getGetWorkloadMethod; + } + + private static volatile io.grpc.MethodDescriptor getListWorkloadsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListWorkloads", + requestType = com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest.class, + responseType = com.google.cloud.assuredworkloads.v1.ListWorkloadsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListWorkloadsMethod() { + io.grpc.MethodDescriptor getListWorkloadsMethod; + if ((getListWorkloadsMethod = AssuredWorkloadsServiceGrpc.getListWorkloadsMethod) == null) { + synchronized (AssuredWorkloadsServiceGrpc.class) { + if ((getListWorkloadsMethod = AssuredWorkloadsServiceGrpc.getListWorkloadsMethod) == null) { + AssuredWorkloadsServiceGrpc.getListWorkloadsMethod = getListWorkloadsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListWorkloads")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.assuredworkloads.v1.ListWorkloadsResponse.getDefaultInstance())) + .setSchemaDescriptor(new AssuredWorkloadsServiceMethodDescriptorSupplier("ListWorkloads")) + .build(); + } + } + } + return getListWorkloadsMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static AssuredWorkloadsServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AssuredWorkloadsServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AssuredWorkloadsServiceStub(channel, callOptions); + } + }; + return AssuredWorkloadsServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static AssuredWorkloadsServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AssuredWorkloadsServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AssuredWorkloadsServiceBlockingStub(channel, callOptions); + } + }; + return AssuredWorkloadsServiceBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static AssuredWorkloadsServiceFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AssuredWorkloadsServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AssuredWorkloadsServiceFutureStub(channel, callOptions); + } + }; + return AssuredWorkloadsServiceFutureStub.newStub(factory, channel); + } + + /** + *
+   * Service to manage AssuredWorkloads.
+   * 
+ */ + public static abstract class AssuredWorkloadsServiceImplBase implements io.grpc.BindableService { + + /** + *
+     * Creates Assured Workload.
+     * 
+ */ + public void createWorkload(com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateWorkloadMethod(), responseObserver); + } + + /** + *
+     * Updates an existing workload.
+     * Currently allows updating of workload display_name and labels.
+     * For force updates don't set etag field in the Workload.
+     * Only one update operation per workload can be in progress.
+     * 
+ */ + public void updateWorkload(com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateWorkloadMethod(), responseObserver); + } + + /** + *
+     * Deletes the workload. Make sure that workload's direct children are already
+     * in a deleted state, otherwise the request will fail with a
+     * FAILED_PRECONDITION error.
+     * 
+ */ + public void deleteWorkload(com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteWorkloadMethod(), responseObserver); + } + + /** + *
+     * Gets Assured Workload associated with a CRM Node
+     * 
+ */ + public void getWorkload(com.google.cloud.assuredworkloads.v1.GetWorkloadRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetWorkloadMethod(), responseObserver); + } + + /** + *
+     * Lists Assured Workloads under a CRM Node.
+     * 
+ */ + public void listWorkloads(com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListWorkloadsMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateWorkloadMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest, + com.google.longrunning.Operation>( + this, METHODID_CREATE_WORKLOAD))) + .addMethod( + getUpdateWorkloadMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest, + com.google.cloud.assuredworkloads.v1.Workload>( + this, METHODID_UPDATE_WORKLOAD))) + .addMethod( + getDeleteWorkloadMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest, + com.google.protobuf.Empty>( + this, METHODID_DELETE_WORKLOAD))) + .addMethod( + getGetWorkloadMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.assuredworkloads.v1.GetWorkloadRequest, + com.google.cloud.assuredworkloads.v1.Workload>( + this, METHODID_GET_WORKLOAD))) + .addMethod( + getListWorkloadsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest, + com.google.cloud.assuredworkloads.v1.ListWorkloadsResponse>( + this, METHODID_LIST_WORKLOADS))) + .build(); + } + } + + /** + *
+   * Service to manage AssuredWorkloads.
+   * 
+ */ + public static final class AssuredWorkloadsServiceStub extends io.grpc.stub.AbstractAsyncStub { + private AssuredWorkloadsServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AssuredWorkloadsServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AssuredWorkloadsServiceStub(channel, callOptions); + } + + /** + *
+     * Creates Assured Workload.
+     * 
+ */ + public void createWorkload(com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateWorkloadMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates an existing workload.
+     * Currently allows updating of workload display_name and labels.
+     * For force updates don't set etag field in the Workload.
+     * Only one update operation per workload can be in progress.
+     * 
+ */ + public void updateWorkload(com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateWorkloadMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes the workload. Make sure that workload's direct children are already
+     * in a deleted state, otherwise the request will fail with a
+     * FAILED_PRECONDITION error.
+     * 
+ */ + public void deleteWorkload(com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteWorkloadMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets Assured Workload associated with a CRM Node
+     * 
+ */ + public void getWorkload(com.google.cloud.assuredworkloads.v1.GetWorkloadRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetWorkloadMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists Assured Workloads under a CRM Node.
+     * 
+ */ + public void listWorkloads(com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListWorkloadsMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * Service to manage AssuredWorkloads.
+   * 
+ */ + public static final class AssuredWorkloadsServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private AssuredWorkloadsServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AssuredWorkloadsServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AssuredWorkloadsServiceBlockingStub(channel, callOptions); + } + + /** + *
+     * Creates Assured Workload.
+     * 
+ */ + public com.google.longrunning.Operation createWorkload(com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateWorkloadMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates an existing workload.
+     * Currently allows updating of workload display_name and labels.
+     * For force updates don't set etag field in the Workload.
+     * Only one update operation per workload can be in progress.
+     * 
+ */ + public com.google.cloud.assuredworkloads.v1.Workload updateWorkload(com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateWorkloadMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes the workload. Make sure that workload's direct children are already
+     * in a deleted state, otherwise the request will fail with a
+     * FAILED_PRECONDITION error.
+     * 
+ */ + public com.google.protobuf.Empty deleteWorkload(com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteWorkloadMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets Assured Workload associated with a CRM Node
+     * 
+ */ + public com.google.cloud.assuredworkloads.v1.Workload getWorkload(com.google.cloud.assuredworkloads.v1.GetWorkloadRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetWorkloadMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists Assured Workloads under a CRM Node.
+     * 
+ */ + public com.google.cloud.assuredworkloads.v1.ListWorkloadsResponse listWorkloads(com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListWorkloadsMethod(), getCallOptions(), request); + } + } + + /** + *
+   * Service to manage AssuredWorkloads.
+   * 
+ */ + public static final class AssuredWorkloadsServiceFutureStub extends io.grpc.stub.AbstractFutureStub { + private AssuredWorkloadsServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AssuredWorkloadsServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AssuredWorkloadsServiceFutureStub(channel, callOptions); + } + + /** + *
+     * Creates Assured Workload.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createWorkload( + com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateWorkloadMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates an existing workload.
+     * Currently allows updating of workload display_name and labels.
+     * For force updates don't set etag field in the Workload.
+     * Only one update operation per workload can be in progress.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateWorkload( + com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateWorkloadMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes the workload. Make sure that workload's direct children are already
+     * in a deleted state, otherwise the request will fail with a
+     * FAILED_PRECONDITION error.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteWorkload( + com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteWorkloadMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets Assured Workload associated with a CRM Node
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getWorkload( + com.google.cloud.assuredworkloads.v1.GetWorkloadRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetWorkloadMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists Assured Workloads under a CRM Node.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listWorkloads( + com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListWorkloadsMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_WORKLOAD = 0; + private static final int METHODID_UPDATE_WORKLOAD = 1; + private static final int METHODID_DELETE_WORKLOAD = 2; + private static final int METHODID_GET_WORKLOAD = 3; + private static final int METHODID_LIST_WORKLOADS = 4; + + 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 AssuredWorkloadsServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(AssuredWorkloadsServiceImplBase 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_WORKLOAD: + serviceImpl.createWorkload((com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_WORKLOAD: + serviceImpl.updateWorkload((com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_WORKLOAD: + serviceImpl.deleteWorkload((com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_WORKLOAD: + serviceImpl.getWorkload((com.google.cloud.assuredworkloads.v1.GetWorkloadRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_WORKLOADS: + serviceImpl.listWorkloads((com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private static abstract class AssuredWorkloadsServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + AssuredWorkloadsServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("AssuredWorkloadsService"); + } + } + + private static final class AssuredWorkloadsServiceFileDescriptorSupplier + extends AssuredWorkloadsServiceBaseDescriptorSupplier { + AssuredWorkloadsServiceFileDescriptorSupplier() {} + } + + private static final class AssuredWorkloadsServiceMethodDescriptorSupplier + extends AssuredWorkloadsServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + AssuredWorkloadsServiceMethodDescriptorSupplier(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 (AssuredWorkloadsServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new AssuredWorkloadsServiceFileDescriptorSupplier()) + .addMethod(getCreateWorkloadMethod()) + .addMethod(getUpdateWorkloadMethod()) + .addMethod(getDeleteWorkloadMethod()) + .addMethod(getGetWorkloadMethod()) + .addMethod(getListWorkloadsMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/AssuredworkloadsProto.java b/owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/AssuredworkloadsProto.java new file mode 100644 index 00000000..ec894f76 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/AssuredworkloadsProto.java @@ -0,0 +1,342 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/assuredworkloads/v1/assuredworkloads.proto + +package com.google.cloud.assuredworkloads.v1; + +public final class AssuredworkloadsProto { + private AssuredworkloadsProto() {} + 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_assuredworkloads_v1_CreateWorkloadRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_assuredworkloads_v1_CreateWorkloadRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_assuredworkloads_v1_UpdateWorkloadRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_assuredworkloads_v1_UpdateWorkloadRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_assuredworkloads_v1_DeleteWorkloadRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_assuredworkloads_v1_DeleteWorkloadRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_assuredworkloads_v1_GetWorkloadRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_assuredworkloads_v1_GetWorkloadRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_assuredworkloads_v1_ListWorkloadsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_assuredworkloads_v1_ListWorkloadsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_assuredworkloads_v1_ListWorkloadsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_assuredworkloads_v1_ListWorkloadsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_assuredworkloads_v1_Workload_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_assuredworkloads_v1_Workload_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_assuredworkloads_v1_Workload_ResourceInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_assuredworkloads_v1_Workload_ResourceInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_assuredworkloads_v1_Workload_KMSSettings_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_assuredworkloads_v1_Workload_KMSSettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_assuredworkloads_v1_Workload_ResourceSettings_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_assuredworkloads_v1_Workload_ResourceSettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_assuredworkloads_v1_Workload_SaaEnrollmentResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_assuredworkloads_v1_Workload_SaaEnrollmentResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_assuredworkloads_v1_Workload_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_assuredworkloads_v1_Workload_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_assuredworkloads_v1_CreateWorkloadOperationMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_assuredworkloads_v1_CreateWorkloadOperationMetadata_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n7google/cloud/assuredworkloads/v1/assur" + + "edworkloads.proto\022 google.cloud.assuredw" + + "orkloads.v1\032\034google/api/annotations.prot" + + "o\032\027google/api/client.proto\032\037google/api/f" + + "ield_behavior.proto\032\031google/api/resource" + + ".proto\032#google/longrunning/operations.pr" + + "oto\032\036google/protobuf/duration.proto\032\033goo" + + "gle/protobuf/empty.proto\032 google/protobu" + + "f/field_mask.proto\032\037google/protobuf/time" + + "stamp.proto\"\266\001\n\025CreateWorkloadRequest\022@\n" + + "\006parent\030\001 \001(\tB0\340A\002\372A*\022(assuredworkloads." + + "googleapis.com/Workload\022A\n\010workload\030\002 \001(" + + "\0132*.google.cloud.assuredworkloads.v1.Wor" + + "kloadB\003\340A\002\022\030\n\013external_id\030\003 \001(\tB\003\340A\001\"\220\001\n" + + "\025UpdateWorkloadRequest\022A\n\010workload\030\001 \001(\013" + + "2*.google.cloud.assuredworkloads.v1.Work" + + "loadB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google." + + "protobuf.FieldMaskB\003\340A\002\"j\n\025DeleteWorkloa" + + "dRequest\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n(assuredw" + + "orkloads.googleapis.com/Workload\022\021\n\004etag" + + "\030\002 \001(\tB\003\340A\001\"T\n\022GetWorkloadRequest\022>\n\004nam" + + "e\030\001 \001(\tB0\340A\002\372A*\n(assuredworkloads.google" + + "apis.com/Workload\"\217\001\n\024ListWorkloadsReque" + + "st\022@\n\006parent\030\001 \001(\tB0\340A\002\372A*\022(assuredworkl" + + "oads.googleapis.com/Workload\022\021\n\tpage_siz" + + "e\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\004 " + + "\001(\t\"o\n\025ListWorkloadsResponse\022=\n\tworkload" + + "s\030\001 \003(\0132*.google.cloud.assuredworkloads." + + "v1.Workload\022\027\n\017next_page_token\030\002 \001(\t\"\222\023\n" + + "\010Workload\022\021\n\004name\030\001 \001(\tB\003\340A\001\022\031\n\014display_" + + "name\030\002 \001(\tB\003\340A\002\022O\n\tresources\030\003 \003(\01327.goo" + + "gle.cloud.assuredworkloads.v1.Workload.R" + + "esourceInfoB\003\340A\003\022^\n\021compliance_regime\030\004 " + + "\001(\0162;.google.cloud.assuredworkloads.v1.W" + + "orkload.ComplianceRegimeB\006\340A\002\340A\005\0227\n\013crea" + + "te_time\030\005 \001(\0132\032.google.protobuf.Timestam" + + "pB\006\340A\003\340A\005\022\037\n\017billing_account\030\006 \001(\tB\006\340A\002\340" + + "A\004\022\021\n\004etag\030\t \001(\tB\003\340A\001\022K\n\006labels\030\n \003(\01326." + + "google.cloud.assuredworkloads.v1.Workloa" + + "d.LabelsEntryB\003\340A\001\022)\n\034provisioned_resour" + + "ces_parent\030\r \001(\tB\003\340A\004\022Q\n\014kms_settings\030\016 " + + "\001(\01326.google.cloud.assuredworkloads.v1.W" + + "orkload.KMSSettingsB\003\340A\004\022[\n\021resource_set" + + "tings\030\017 \003(\0132;.google.cloud.assuredworklo" + + "ads.v1.Workload.ResourceSettingsB\003\340A\004\022`\n" + + "\024kaj_enrollment_state\030\021 \001(\0162=.google.clo" + + "ud.assuredworkloads.v1.Workload.KajEnrol" + + "lmentStateB\003\340A\003\022&\n\031enable_sovereign_cont" + + "rols\030\022 \001(\010B\003\340A\001\022f\n\027saa_enrollment_respon" + + "se\030\024 \001(\0132@.google.cloud.assuredworkloads" + + ".v1.Workload.SaaEnrollmentResponseB\003\340A\003\032" + + "\357\001\n\014ResourceInfo\022\023\n\013resource_id\030\001 \001(\003\022[\n" + + "\rresource_type\030\002 \001(\0162D.google.cloud.assu" + + "redworkloads.v1.Workload.ResourceInfo.Re" + + "sourceType\"m\n\014ResourceType\022\035\n\031RESOURCE_T" + + "YPE_UNSPECIFIED\020\000\022\024\n\020CONSUMER_PROJECT\020\001\022" + + "\033\n\027ENCRYPTION_KEYS_PROJECT\020\002\022\013\n\007KEYRING\020" + + "\003\032\217\001\n\013KMSSettings\022A\n\022next_rotation_time\030" + + "\001 \001(\0132\032.google.protobuf.TimestampB\t\340A\002\340A" + + "\004\340A\005\022=\n\017rotation_period\030\002 \001(\0132\031.google.p" + + "rotobuf.DurationB\t\340A\002\340A\004\340A\005\032\232\001\n\020Resource" + + "Settings\022\023\n\013resource_id\030\001 \001(\t\022[\n\rresourc" + + "e_type\030\002 \001(\0162D.google.cloud.assuredworkl" + + "oads.v1.Workload.ResourceInfo.ResourceTy" + + "pe\022\024\n\014display_name\030\003 \001(\t\032\374\003\n\025SaaEnrollme" + + "ntResponse\022f\n\014setup_status\030\001 \001(\0162K.googl" + + "e.cloud.assuredworkloads.v1.Workload.Saa" + + "EnrollmentResponse.SetupStateH\000\210\001\001\022a\n\014se" + + "tup_errors\030\002 \003(\0162K.google.cloud.assuredw" + + "orkloads.v1.Workload.SaaEnrollmentRespon" + + "se.SetupError\"R\n\nSetupState\022\033\n\027SETUP_STA" + + "TE_UNSPECIFIED\020\000\022\022\n\016STATUS_PENDING\020\001\022\023\n\017" + + "STATUS_COMPLETE\020\002\"\262\001\n\nSetupError\022\033\n\027SETU" + + "P_ERROR_UNSPECIFIED\020\000\022\034\n\030ERROR_INVALID_B" + + "ASE_SETUP\020\001\022&\n\"ERROR_MISSING_EXTERNAL_SI" + + "GNING_KEY\020\002\022#\n\037ERROR_NOT_ALL_SERVICES_EN" + + "ROLLED\020\003\022\034\n\030ERROR_SETUP_CHECK_FAILED\020\004B\017" + + "\n\r_setup_status\032-\n\013LabelsEntry\022\013\n\003key\030\001 " + + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\330\001\n\020ComplianceReg" + + "ime\022!\n\035COMPLIANCE_REGIME_UNSPECIFIED\020\000\022\007" + + "\n\003IL4\020\001\022\010\n\004CJIS\020\002\022\020\n\014FEDRAMP_HIGH\020\003\022\024\n\020F" + + "EDRAMP_MODERATE\020\004\022\026\n\022US_REGIONAL_ACCESS\020" + + "\005\022\t\n\005HIPAA\020\006\022\013\n\007HITRUST\020\007\022\032\n\026EU_REGIONS_" + + "AND_SUPPORT\020\010\022\032\n\026CA_REGIONS_AND_SUPPORT\020" + + "\t\"\177\n\022KajEnrollmentState\022$\n KAJ_ENROLLMEN" + + "T_STATE_UNSPECIFIED\020\000\022 \n\034KAJ_ENROLLMENT_" + + "STATE_PENDING\020\001\022!\n\035KAJ_ENROLLMENT_STATE_" + + "COMPLETE\020\002:u\352Ar\n(assuredworkloads.google" + + "apis.com/Workload\022Forganizations/{organi" + + "zation}/locations/{location}/workloads/{" + + "workload}\"\344\001\n\037CreateWorkloadOperationMet" + + "adata\0224\n\013create_time\030\001 \001(\0132\032.google.prot" + + "obuf.TimestampB\003\340A\001\022\031\n\014display_name\030\002 \001(" + + "\tB\003\340A\001\022\023\n\006parent\030\003 \001(\tB\003\340A\001\022[\n\021complianc" + + "e_regime\030\004 \001(\0162;.google.cloud.assuredwor" + + "kloads.v1.Workload.ComplianceRegimeB\003\340A\001" + + "2\342\010\n\027AssuredWorkloadsService\022\357\001\n\016CreateW" + + "orkload\0227.google.cloud.assuredworkloads." + + "v1.CreateWorkloadRequest\032\035.google.longru" + + "nning.Operation\"\204\001\202\323\344\223\002>\"2/v1/{parent=or" + + "ganizations/*/locations/*}/workloads:\010wo" + + "rkload\332A\017parent,workload\312A+\n\010Workload\022\037C" + + "reateWorkloadOperationMetadata\022\333\001\n\016Updat" + + "eWorkload\0227.google.cloud.assuredworkload" + + "s.v1.UpdateWorkloadRequest\032*.google.clou" + + "d.assuredworkloads.v1.Workload\"d\202\323\344\223\002G2;" + + "/v1/{workload.name=organizations/*/locat" + + "ions/*/workloads/*}:\010workload\332A\024workload" + + ",update_mask\022\244\001\n\016DeleteWorkload\0227.google" + + ".cloud.assuredworkloads.v1.DeleteWorkloa" + + "dRequest\032\026.google.protobuf.Empty\"A\202\323\344\223\0024" + + "*2/v1/{name=organizations/*/locations/*/" + + "workloads/*}\332A\004name\022\262\001\n\013GetWorkload\0224.go" + + "ogle.cloud.assuredworkloads.v1.GetWorklo" + + "adRequest\032*.google.cloud.assuredworkload" + + "s.v1.Workload\"A\202\323\344\223\0024\0222/v1/{name=organiz" + + "ations/*/locations/*/workloads/*}\332A\004name" + + "\022\305\001\n\rListWorkloads\0226.google.cloud.assure" + + "dworkloads.v1.ListWorkloadsRequest\0327.goo" + + "gle.cloud.assuredworkloads.v1.ListWorklo" + + "adsResponse\"C\202\323\344\223\0024\0222/v1/{parent=organiz" + + "ations/*/locations/*}/workloads\332A\006parent" + + "\032S\312A\037assuredworkloads.googleapis.com\322A.h" + + "ttps://www.googleapis.com/auth/cloud-pla" + + "tformB\335\002\n$com.google.cloud.assuredworklo" + + "ads.v1B\025AssuredworkloadsProtoP\001ZPgoogle." + + "golang.org/genproto/googleapis/cloud/ass" + + "uredworkloads/v1;assuredworkloads\252\002 Goog" + + "le.Cloud.AssuredWorkloads.V1\312\002 Google\\Cl" + + "oud\\AssuredWorkloads\\V1\352\002#Google::Cloud:" + + ":AssuredWorkloads::V1\352A]\n(assuredworkloa" + + "ds.googleapis.com/Location\0221organization" + + "s/{organization}/locations/{location}b\006p" + + "roto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_assuredworkloads_v1_CreateWorkloadRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_assuredworkloads_v1_CreateWorkloadRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_assuredworkloads_v1_CreateWorkloadRequest_descriptor, + new java.lang.String[] { "Parent", "Workload", "ExternalId", }); + internal_static_google_cloud_assuredworkloads_v1_UpdateWorkloadRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_assuredworkloads_v1_UpdateWorkloadRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_assuredworkloads_v1_UpdateWorkloadRequest_descriptor, + new java.lang.String[] { "Workload", "UpdateMask", }); + internal_static_google_cloud_assuredworkloads_v1_DeleteWorkloadRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_assuredworkloads_v1_DeleteWorkloadRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_assuredworkloads_v1_DeleteWorkloadRequest_descriptor, + new java.lang.String[] { "Name", "Etag", }); + internal_static_google_cloud_assuredworkloads_v1_GetWorkloadRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_assuredworkloads_v1_GetWorkloadRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_assuredworkloads_v1_GetWorkloadRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_assuredworkloads_v1_ListWorkloadsRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_assuredworkloads_v1_ListWorkloadsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_assuredworkloads_v1_ListWorkloadsRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", }); + internal_static_google_cloud_assuredworkloads_v1_ListWorkloadsResponse_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_assuredworkloads_v1_ListWorkloadsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_assuredworkloads_v1_ListWorkloadsResponse_descriptor, + new java.lang.String[] { "Workloads", "NextPageToken", }); + internal_static_google_cloud_assuredworkloads_v1_Workload_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_assuredworkloads_v1_Workload_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_assuredworkloads_v1_Workload_descriptor, + new java.lang.String[] { "Name", "DisplayName", "Resources", "ComplianceRegime", "CreateTime", "BillingAccount", "Etag", "Labels", "ProvisionedResourcesParent", "KmsSettings", "ResourceSettings", "KajEnrollmentState", "EnableSovereignControls", "SaaEnrollmentResponse", }); + internal_static_google_cloud_assuredworkloads_v1_Workload_ResourceInfo_descriptor = + internal_static_google_cloud_assuredworkloads_v1_Workload_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_assuredworkloads_v1_Workload_ResourceInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_assuredworkloads_v1_Workload_ResourceInfo_descriptor, + new java.lang.String[] { "ResourceId", "ResourceType", }); + internal_static_google_cloud_assuredworkloads_v1_Workload_KMSSettings_descriptor = + internal_static_google_cloud_assuredworkloads_v1_Workload_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_assuredworkloads_v1_Workload_KMSSettings_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_assuredworkloads_v1_Workload_KMSSettings_descriptor, + new java.lang.String[] { "NextRotationTime", "RotationPeriod", }); + internal_static_google_cloud_assuredworkloads_v1_Workload_ResourceSettings_descriptor = + internal_static_google_cloud_assuredworkloads_v1_Workload_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_assuredworkloads_v1_Workload_ResourceSettings_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_assuredworkloads_v1_Workload_ResourceSettings_descriptor, + new java.lang.String[] { "ResourceId", "ResourceType", "DisplayName", }); + internal_static_google_cloud_assuredworkloads_v1_Workload_SaaEnrollmentResponse_descriptor = + internal_static_google_cloud_assuredworkloads_v1_Workload_descriptor.getNestedTypes().get(3); + internal_static_google_cloud_assuredworkloads_v1_Workload_SaaEnrollmentResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_assuredworkloads_v1_Workload_SaaEnrollmentResponse_descriptor, + new java.lang.String[] { "SetupStatus", "SetupErrors", "SetupStatus", }); + internal_static_google_cloud_assuredworkloads_v1_Workload_LabelsEntry_descriptor = + internal_static_google_cloud_assuredworkloads_v1_Workload_descriptor.getNestedTypes().get(4); + internal_static_google_cloud_assuredworkloads_v1_Workload_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_assuredworkloads_v1_Workload_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_assuredworkloads_v1_CreateWorkloadOperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_assuredworkloads_v1_CreateWorkloadOperationMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_assuredworkloads_v1_CreateWorkloadOperationMetadata_descriptor, + new java.lang.String[] { "CreateTime", "DisplayName", "Parent", "ComplianceRegime", }); + 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.resourceDefinition); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + 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.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/CreateWorkloadOperationMetadata.java b/owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/CreateWorkloadOperationMetadata.java similarity index 65% rename from proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/CreateWorkloadOperationMetadata.java rename to owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/CreateWorkloadOperationMetadata.java index 9b6508f6..83ebfb58 100644 --- a/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/CreateWorkloadOperationMetadata.java +++ b/owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/CreateWorkloadOperationMetadata.java @@ -1,43 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/assuredworkloads/v1/assuredworkloads.proto package com.google.cloud.assuredworkloads.v1; /** - * - * *
  * Operation metadata to give request details of CreateWorkload.
  * 
* * Protobuf type {@code google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata} */ -public final class CreateWorkloadOperationMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateWorkloadOperationMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata) CreateWorkloadOperationMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateWorkloadOperationMetadata.newBuilder() to construct. - private CreateWorkloadOperationMetadata( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private CreateWorkloadOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateWorkloadOperationMetadata() { displayName_ = ""; parent_ = ""; @@ -46,15 +27,16 @@ private CreateWorkloadOperationMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateWorkloadOperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CreateWorkloadOperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,49 +55,44 @@ private CreateWorkloadOperationMetadata( case 0: done = true; break; - case 10: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); - } - createTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - displayName_ = s; - break; + createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 32: - { - int rawValue = input.readEnum(); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - complianceRegime_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + displayName_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 32: { + int rawValue = input.readEnum(); + + complianceRegime_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -123,40 +100,34 @@ private CreateWorkloadOperationMetadata( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1_CreateWorkloadOperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_CreateWorkloadOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1_CreateWorkloadOperationMetadata_fieldAccessorTable + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_CreateWorkloadOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata.class, - com.google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata.Builder.class); + com.google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata.class, com.google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata.Builder.class); } public static final int CREATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Optional. Time when the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -164,15 +135,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Optional. Time when the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The createTime. */ @java.lang.Override @@ -180,14 +147,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Optional. Time when the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -197,14 +161,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int DISPLAY_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object displayName_; /** - * - * *
    * Optional. The display name of the workload.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The displayName. */ @java.lang.Override @@ -213,29 +174,29 @@ public java.lang.String getDisplayName() { 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(); displayName_ = s; return s; } } /** - * - * *
    * Optional. The display name of the workload.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; 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); displayName_ = b; return b; } else { @@ -246,14 +207,11 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { public static final int PARENT_FIELD_NUMBER = 3; private volatile java.lang.Object parent_; /** - * - * *
    * Optional. The parent of the workload.
    * 
* * string parent = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The parent. */ @java.lang.Override @@ -262,29 +220,29 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Optional. The parent of the workload.
    * 
* * string parent = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -295,49 +253,33 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int COMPLIANCE_REGIME_FIELD_NUMBER = 4; private int complianceRegime_; /** - * - * *
    * Optional. Compliance controls that should be applied to the resources
    * managed by the workload.
    * 
* - * - * .google.cloud.assuredworkloads.v1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.assuredworkloads.v1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for complianceRegime. */ - @java.lang.Override - public int getComplianceRegimeValue() { + @java.lang.Override public int getComplianceRegimeValue() { return complianceRegime_; } /** - * - * *
    * Optional. Compliance controls that should be applied to the resources
    * managed by the workload.
    * 
* - * - * .google.cloud.assuredworkloads.v1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.assuredworkloads.v1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The complianceRegime. */ - @java.lang.Override - public com.google.cloud.assuredworkloads.v1.Workload.ComplianceRegime getComplianceRegime() { + @java.lang.Override public com.google.cloud.assuredworkloads.v1.Workload.ComplianceRegime getComplianceRegime() { @SuppressWarnings("deprecation") - com.google.cloud.assuredworkloads.v1.Workload.ComplianceRegime result = - com.google.cloud.assuredworkloads.v1.Workload.ComplianceRegime.valueOf(complianceRegime_); - return result == null - ? com.google.cloud.assuredworkloads.v1.Workload.ComplianceRegime.UNRECOGNIZED - : result; + com.google.cloud.assuredworkloads.v1.Workload.ComplianceRegime result = com.google.cloud.assuredworkloads.v1.Workload.ComplianceRegime.valueOf(complianceRegime_); + return result == null ? com.google.cloud.assuredworkloads.v1.Workload.ComplianceRegime.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -349,7 +291,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 (createTime_ != null) { output.writeMessage(1, getCreateTime()); } @@ -359,10 +302,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, parent_); } - if (complianceRegime_ - != com.google.cloud.assuredworkloads.v1.Workload.ComplianceRegime - .COMPLIANCE_REGIME_UNSPECIFIED - .getNumber()) { + if (complianceRegime_ != com.google.cloud.assuredworkloads.v1.Workload.ComplianceRegime.COMPLIANCE_REGIME_UNSPECIFIED.getNumber()) { output.writeEnum(4, complianceRegime_); } unknownFields.writeTo(output); @@ -375,7 +315,8 @@ public int getSerializedSize() { size = 0; if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCreateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); @@ -383,11 +324,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, parent_); } - if (complianceRegime_ - != com.google.cloud.assuredworkloads.v1.Workload.ComplianceRegime - .COMPLIANCE_REGIME_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, complianceRegime_); + if (complianceRegime_ != com.google.cloud.assuredworkloads.v1.Workload.ComplianceRegime.COMPLIANCE_REGIME_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, complianceRegime_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -397,20 +336,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata)) { return super.equals(obj); } - com.google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata other = - (com.google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata) obj; + com.google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata other = (com.google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata) obj; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (!getParent().equals(other.getParent())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (complianceRegime_ != other.complianceRegime_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -439,145 +380,134 @@ public int hashCode() { } public static com.google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata 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.assuredworkloads.v1.CreateWorkloadOperationMetadata 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.assuredworkloads.v1.CreateWorkloadOperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata 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.assuredworkloads.v1.CreateWorkloadOperationMetadata parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata 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.assuredworkloads.v1.CreateWorkloadOperationMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata 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.assuredworkloads.v1.CreateWorkloadOperationMetadata - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata - parseDelimitedFrom( - java.io.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.assuredworkloads.v1.CreateWorkloadOperationMetadata parseDelimitedFrom( + java.io.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.assuredworkloads.v1.CreateWorkloadOperationMetadata 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.assuredworkloads.v1.CreateWorkloadOperationMetadata 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.assuredworkloads.v1.CreateWorkloadOperationMetadata prototype) { + public static Builder newBuilder(com.google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata 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; } /** - * - * *
    * Operation metadata to give request details of CreateWorkload.
    * 
* * Protobuf type {@code google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata} */ - 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.assuredworkloads.v1.CreateWorkloadOperationMetadata) com.google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1_CreateWorkloadOperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_CreateWorkloadOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1_CreateWorkloadOperationMetadata_fieldAccessorTable + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_CreateWorkloadOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata.class, - com.google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata.Builder.class); + com.google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata.class, com.google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata.Builder.class); } - // Construct using - // com.google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata.newBuilder() + // Construct using com.google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -597,16 +527,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1_CreateWorkloadOperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_CreateWorkloadOperationMetadata_descriptor; } @java.lang.Override - public com.google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata - getDefaultInstanceForType() { - return com.google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata - .getDefaultInstance(); + public com.google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata getDefaultInstanceForType() { + return com.google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata.getDefaultInstance(); } @java.lang.Override @@ -620,8 +548,7 @@ public com.google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata buil @java.lang.Override public com.google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata buildPartial() { - com.google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata result = - new com.google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata(this); + com.google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata result = new com.google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata(this); if (createTimeBuilder_ == null) { result.createTime_ = createTime_; } else { @@ -638,51 +565,46 @@ public com.google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata buil 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.assuredworkloads.v1.CreateWorkloadOperationMetadata) { - return mergeFrom( - (com.google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata) other); + return mergeFrom((com.google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata other) { - if (other - == com.google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata other) { + if (other == com.google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata.getDefaultInstance()) return this; if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } @@ -716,9 +638,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -730,55 +650,39 @@ public Builder mergeFrom( 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_; /** - * - * *
      * Optional. Time when the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
      * Optional. Time when the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; * @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(); } } /** - * - * *
      * Optional. Time when the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -794,16 +698,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Optional. Time when the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -814,20 +716,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Optional. Time when the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -839,14 +738,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Optional. Time when the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -860,61 +756,48 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Optional. Time when the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Time when the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; */ 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_; } } /** - * - * *
      * Optional. Time when the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; */ 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_; @@ -922,20 +805,18 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private java.lang.Object displayName_ = ""; /** - * - * *
      * Optional. The display name of the workload.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; 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(); displayName_ = s; return s; @@ -944,21 +825,20 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * Optional. The display name of the workload.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; 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); displayName_ = b; return b; } else { @@ -966,61 +846,54 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * Optional. The display name of the workload.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { + public Builder setDisplayName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The display name of the workload.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** - * - * *
      * Optional. The display name of the workload.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; @@ -1028,20 +901,18 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object parent_ = ""; /** - * - * *
      * Optional. The parent of the workload.
      * 
* * string parent = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; @@ -1050,21 +921,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Optional. The parent of the workload.
      * 
* * string parent = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -1072,61 +942,54 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Optional. The parent of the workload.
      * 
* * string parent = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The parent of the workload.
      * 
* * string parent = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Optional. The parent of the workload.
      * 
* * string parent = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -1134,115 +997,85 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private int complianceRegime_ = 0; /** - * - * *
      * Optional. Compliance controls that should be applied to the resources
      * managed by the workload.
      * 
* - * - * .google.cloud.assuredworkloads.v1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.assuredworkloads.v1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for complianceRegime. */ - @java.lang.Override - public int getComplianceRegimeValue() { + @java.lang.Override public int getComplianceRegimeValue() { return complianceRegime_; } /** - * - * *
      * Optional. Compliance controls that should be applied to the resources
      * managed by the workload.
      * 
* - * - * .google.cloud.assuredworkloads.v1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.assuredworkloads.v1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param value The enum numeric value on the wire for complianceRegime to set. * @return This builder for chaining. */ public Builder setComplianceRegimeValue(int value) { - + complianceRegime_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Compliance controls that should be applied to the resources
      * managed by the workload.
      * 
* - * - * .google.cloud.assuredworkloads.v1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.assuredworkloads.v1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The complianceRegime. */ @java.lang.Override public com.google.cloud.assuredworkloads.v1.Workload.ComplianceRegime getComplianceRegime() { @SuppressWarnings("deprecation") - com.google.cloud.assuredworkloads.v1.Workload.ComplianceRegime result = - com.google.cloud.assuredworkloads.v1.Workload.ComplianceRegime.valueOf(complianceRegime_); - return result == null - ? com.google.cloud.assuredworkloads.v1.Workload.ComplianceRegime.UNRECOGNIZED - : result; + com.google.cloud.assuredworkloads.v1.Workload.ComplianceRegime result = com.google.cloud.assuredworkloads.v1.Workload.ComplianceRegime.valueOf(complianceRegime_); + return result == null ? com.google.cloud.assuredworkloads.v1.Workload.ComplianceRegime.UNRECOGNIZED : result; } /** - * - * *
      * Optional. Compliance controls that should be applied to the resources
      * managed by the workload.
      * 
* - * - * .google.cloud.assuredworkloads.v1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.assuredworkloads.v1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param value The complianceRegime to set. * @return This builder for chaining. */ - public Builder setComplianceRegime( - com.google.cloud.assuredworkloads.v1.Workload.ComplianceRegime value) { + public Builder setComplianceRegime(com.google.cloud.assuredworkloads.v1.Workload.ComplianceRegime value) { if (value == null) { throw new NullPointerException(); } - + complianceRegime_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Optional. Compliance controls that should be applied to the resources
      * managed by the workload.
      * 
* - * - * .google.cloud.assuredworkloads.v1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.assuredworkloads.v1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearComplianceRegime() { - + complianceRegime_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1252,32 +1085,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata) - private static final com.google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata - DEFAULT_INSTANCE; - + private static final com.google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata(); } - public static com.google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata - getDefaultInstance() { + public static com.google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateWorkloadOperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateWorkloadOperationMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateWorkloadOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateWorkloadOperationMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1289,8 +1120,9 @@ public com.google.protobuf.Parser getParserForT } @java.lang.Override - public com.google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata - getDefaultInstanceForType() { + public com.google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/CreateWorkloadOperationMetadataOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/CreateWorkloadOperationMetadataOrBuilder.java similarity index 64% rename from proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/CreateWorkloadOperationMetadataOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/CreateWorkloadOperationMetadataOrBuilder.java index b73db6ff..cf7a9869 100644 --- a/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/CreateWorkloadOperationMetadataOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/CreateWorkloadOperationMetadataOrBuilder.java @@ -1,143 +1,96 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/assuredworkloads/v1/assuredworkloads.proto package com.google.cloud.assuredworkloads.v1; -public interface CreateWorkloadOperationMetadataOrBuilder - extends +public interface CreateWorkloadOperationMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Optional. Time when the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Optional. Time when the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Optional. Time when the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Optional. The display name of the workload.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * Optional. The display name of the workload.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
    * Optional. The parent of the workload.
    * 
* * string parent = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Optional. The parent of the workload.
    * 
* * string parent = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Optional. Compliance controls that should be applied to the resources
    * managed by the workload.
    * 
* - * - * .google.cloud.assuredworkloads.v1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.assuredworkloads.v1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for complianceRegime. */ int getComplianceRegimeValue(); /** - * - * *
    * Optional. Compliance controls that should be applied to the resources
    * managed by the workload.
    * 
* - * - * .google.cloud.assuredworkloads.v1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.assuredworkloads.v1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The complianceRegime. */ com.google.cloud.assuredworkloads.v1.Workload.ComplianceRegime getComplianceRegime(); diff --git a/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/CreateWorkloadRequest.java b/owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/CreateWorkloadRequest.java similarity index 67% rename from proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/CreateWorkloadRequest.java rename to owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/CreateWorkloadRequest.java index 52c29c86..34c8a3d8 100644 --- a/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/CreateWorkloadRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/CreateWorkloadRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/assuredworkloads/v1/assuredworkloads.proto package com.google.cloud.assuredworkloads.v1; /** - * - * *
  * Request for creating a workload.
  * 
* * Protobuf type {@code google.cloud.assuredworkloads.v1.CreateWorkloadRequest} */ -public final class CreateWorkloadRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateWorkloadRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.assuredworkloads.v1.CreateWorkloadRequest) CreateWorkloadRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateWorkloadRequest.newBuilder() to construct. private CreateWorkloadRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateWorkloadRequest() { parent_ = ""; externalId_ = ""; @@ -44,15 +26,16 @@ private CreateWorkloadRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateWorkloadRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CreateWorkloadRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,43 +54,38 @@ private CreateWorkloadRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; + parent_ = s; + break; + } + case 18: { + com.google.cloud.assuredworkloads.v1.Workload.Builder subBuilder = null; + if (workload_ != null) { + subBuilder = workload_.toBuilder(); } - case 18: - { - com.google.cloud.assuredworkloads.v1.Workload.Builder subBuilder = null; - if (workload_ != null) { - subBuilder = workload_.toBuilder(); - } - workload_ = - input.readMessage( - com.google.cloud.assuredworkloads.v1.Workload.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(workload_); - workload_ = subBuilder.buildPartial(); - } - - break; + workload_ = input.readMessage(com.google.cloud.assuredworkloads.v1.Workload.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(workload_); + workload_ = subBuilder.buildPartial(); } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - externalId_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + externalId_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -115,42 +93,35 @@ private CreateWorkloadRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1_CreateWorkloadRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_CreateWorkloadRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1_CreateWorkloadRequest_fieldAccessorTable + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_CreateWorkloadRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest.class, - com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest.Builder.class); + com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest.class, com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The resource name of the new Workload's parent.
    * Must be of the form `organizations/{org_id}/locations/{location_id}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -159,32 +130,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 new Workload's parent.
    * Must be of the form `organizations/{org_id}/locations/{location_id}`.
    * 
* - * - * 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 { @@ -195,16 +164,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int WORKLOAD_FIELD_NUMBER = 2; private com.google.cloud.assuredworkloads.v1.Workload workload_; /** - * - * *
    * Required. Assured Workload to create
    * 
* - * - * .google.cloud.assuredworkloads.v1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.assuredworkloads.v1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the workload field is set. */ @java.lang.Override @@ -212,34 +176,23 @@ public boolean hasWorkload() { return workload_ != null; } /** - * - * *
    * Required. Assured Workload to create
    * 
* - * - * .google.cloud.assuredworkloads.v1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.assuredworkloads.v1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The workload. */ @java.lang.Override public com.google.cloud.assuredworkloads.v1.Workload getWorkload() { - return workload_ == null - ? com.google.cloud.assuredworkloads.v1.Workload.getDefaultInstance() - : workload_; + return workload_ == null ? com.google.cloud.assuredworkloads.v1.Workload.getDefaultInstance() : workload_; } /** - * - * *
    * Required. Assured Workload to create
    * 
* - * - * .google.cloud.assuredworkloads.v1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.assuredworkloads.v1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.assuredworkloads.v1.WorkloadOrBuilder getWorkloadOrBuilder() { @@ -249,8 +202,6 @@ public com.google.cloud.assuredworkloads.v1.WorkloadOrBuilder getWorkloadOrBuild public static final int EXTERNAL_ID_FIELD_NUMBER = 3; private volatile java.lang.Object externalId_; /** - * - * *
    * Optional. A identifier associated with the workload and underlying projects
    * which allows for the break down of billing costs for a workload. The value
@@ -259,7 +210,6 @@ public com.google.cloud.assuredworkloads.v1.WorkloadOrBuilder getWorkloadOrBuild
    * 
* * string external_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The externalId. */ @java.lang.Override @@ -268,15 +218,14 @@ public java.lang.String getExternalId() { 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(); externalId_ = s; return s; } } /** - * - * *
    * Optional. A identifier associated with the workload and underlying projects
    * which allows for the break down of billing costs for a workload. The value
@@ -285,15 +234,16 @@ public java.lang.String getExternalId() {
    * 
* * string external_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for externalId. */ @java.lang.Override - public com.google.protobuf.ByteString getExternalIdBytes() { + public com.google.protobuf.ByteString + getExternalIdBytes() { java.lang.Object ref = externalId_; 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); externalId_ = b; return b; } else { @@ -302,7 +252,6 @@ public com.google.protobuf.ByteString getExternalIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -314,7 +263,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_); } @@ -337,7 +287,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (workload_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getWorkload()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getWorkload()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(externalId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, externalId_); @@ -350,20 +301,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest)) { return super.equals(obj); } - com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest other = - (com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest) obj; + com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest other = (com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasWorkload() != other.hasWorkload()) return false; if (hasWorkload()) { - if (!getWorkload().equals(other.getWorkload())) return false; + if (!getWorkload() + .equals(other.getWorkload())) return false; } - if (!getExternalId().equals(other.getExternalId())) return false; + if (!getExternalId() + .equals(other.getExternalId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -389,127 +342,117 @@ public int hashCode() { } public static com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest 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.assuredworkloads.v1.CreateWorkloadRequest 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.assuredworkloads.v1.CreateWorkloadRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest 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.assuredworkloads.v1.CreateWorkloadRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest 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.assuredworkloads.v1.CreateWorkloadRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest 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.assuredworkloads.v1.CreateWorkloadRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest 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.assuredworkloads.v1.CreateWorkloadRequest 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.assuredworkloads.v1.CreateWorkloadRequest 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.assuredworkloads.v1.CreateWorkloadRequest prototype) { + public static Builder newBuilder(com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for creating a workload.
    * 
* * Protobuf type {@code google.cloud.assuredworkloads.v1.CreateWorkloadRequest} */ - 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.assuredworkloads.v1.CreateWorkloadRequest) com.google.cloud.assuredworkloads.v1.CreateWorkloadRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1_CreateWorkloadRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_CreateWorkloadRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1_CreateWorkloadRequest_fieldAccessorTable + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_CreateWorkloadRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest.class, - com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest.Builder.class); + com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest.class, com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest.Builder.class); } // Construct using com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest.newBuilder() @@ -517,15 +460,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -543,9 +487,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1_CreateWorkloadRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_CreateWorkloadRequest_descriptor; } @java.lang.Override @@ -564,8 +508,7 @@ public com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest build() { @java.lang.Override public com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest buildPartial() { - com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest result = - new com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest(this); + com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest result = new com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest(this); result.parent_ = parent_; if (workloadBuilder_ == null) { result.workload_ = workload_; @@ -581,39 +524,38 @@ public com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest) { - return mergeFrom((com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest) other); + return mergeFrom((com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest)other); } else { super.mergeFrom(other); return this; @@ -621,8 +563,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest other) { - if (other == com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -653,8 +594,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -666,23 +606,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The resource name of the new Workload's parent.
      * Must be of the form `organizations/{org_id}/locations/{location_id}`.
      * 
* - * - * 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; @@ -691,24 +627,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The resource name of the new Workload's parent.
      * Must be of the form `organizations/{org_id}/locations/{location_id}`.
      * 
* - * - * 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 { @@ -716,70 +649,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The resource name of the new Workload's parent.
      * Must be of the form `organizations/{org_id}/locations/{location_id}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the new Workload's parent.
      * Must be of the form `organizations/{org_id}/locations/{location_id}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The resource name of the new Workload's parent.
      * Must be of the form `organizations/{org_id}/locations/{location_id}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -787,58 +707,39 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.assuredworkloads.v1.Workload workload_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.assuredworkloads.v1.Workload, - com.google.cloud.assuredworkloads.v1.Workload.Builder, - com.google.cloud.assuredworkloads.v1.WorkloadOrBuilder> - workloadBuilder_; + com.google.cloud.assuredworkloads.v1.Workload, com.google.cloud.assuredworkloads.v1.Workload.Builder, com.google.cloud.assuredworkloads.v1.WorkloadOrBuilder> workloadBuilder_; /** - * - * *
      * Required. Assured Workload to create
      * 
* - * - * .google.cloud.assuredworkloads.v1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.assuredworkloads.v1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the workload field is set. */ public boolean hasWorkload() { return workloadBuilder_ != null || workload_ != null; } /** - * - * *
      * Required. Assured Workload to create
      * 
* - * - * .google.cloud.assuredworkloads.v1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.assuredworkloads.v1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The workload. */ public com.google.cloud.assuredworkloads.v1.Workload getWorkload() { if (workloadBuilder_ == null) { - return workload_ == null - ? com.google.cloud.assuredworkloads.v1.Workload.getDefaultInstance() - : workload_; + return workload_ == null ? com.google.cloud.assuredworkloads.v1.Workload.getDefaultInstance() : workload_; } else { return workloadBuilder_.getMessage(); } } /** - * - * *
      * Required. Assured Workload to create
      * 
* - * - * .google.cloud.assuredworkloads.v1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.assuredworkloads.v1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setWorkload(com.google.cloud.assuredworkloads.v1.Workload value) { if (workloadBuilder_ == null) { @@ -854,15 +755,11 @@ public Builder setWorkload(com.google.cloud.assuredworkloads.v1.Workload value) return this; } /** - * - * *
      * Required. Assured Workload to create
      * 
* - * - * .google.cloud.assuredworkloads.v1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.assuredworkloads.v1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setWorkload( com.google.cloud.assuredworkloads.v1.Workload.Builder builderForValue) { @@ -876,23 +773,17 @@ public Builder setWorkload( return this; } /** - * - * *
      * Required. Assured Workload to create
      * 
* - * - * .google.cloud.assuredworkloads.v1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.assuredworkloads.v1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeWorkload(com.google.cloud.assuredworkloads.v1.Workload value) { if (workloadBuilder_ == null) { if (workload_ != null) { workload_ = - com.google.cloud.assuredworkloads.v1.Workload.newBuilder(workload_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.assuredworkloads.v1.Workload.newBuilder(workload_).mergeFrom(value).buildPartial(); } else { workload_ = value; } @@ -904,15 +795,11 @@ public Builder mergeWorkload(com.google.cloud.assuredworkloads.v1.Workload value return this; } /** - * - * *
      * Required. Assured Workload to create
      * 
* - * - * .google.cloud.assuredworkloads.v1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.assuredworkloads.v1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearWorkload() { if (workloadBuilder_ == null) { @@ -926,64 +813,48 @@ public Builder clearWorkload() { return this; } /** - * - * *
      * Required. Assured Workload to create
      * 
* - * - * .google.cloud.assuredworkloads.v1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.assuredworkloads.v1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.assuredworkloads.v1.Workload.Builder getWorkloadBuilder() { - + onChanged(); return getWorkloadFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Assured Workload to create
      * 
* - * - * .google.cloud.assuredworkloads.v1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.assuredworkloads.v1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.assuredworkloads.v1.WorkloadOrBuilder getWorkloadOrBuilder() { if (workloadBuilder_ != null) { return workloadBuilder_.getMessageOrBuilder(); } else { - return workload_ == null - ? com.google.cloud.assuredworkloads.v1.Workload.getDefaultInstance() - : workload_; + return workload_ == null ? + com.google.cloud.assuredworkloads.v1.Workload.getDefaultInstance() : workload_; } } /** - * - * *
      * Required. Assured Workload to create
      * 
* - * - * .google.cloud.assuredworkloads.v1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.assuredworkloads.v1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.assuredworkloads.v1.Workload, - com.google.cloud.assuredworkloads.v1.Workload.Builder, - com.google.cloud.assuredworkloads.v1.WorkloadOrBuilder> + com.google.cloud.assuredworkloads.v1.Workload, com.google.cloud.assuredworkloads.v1.Workload.Builder, com.google.cloud.assuredworkloads.v1.WorkloadOrBuilder> getWorkloadFieldBuilder() { if (workloadBuilder_ == null) { - workloadBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.assuredworkloads.v1.Workload, - com.google.cloud.assuredworkloads.v1.Workload.Builder, - com.google.cloud.assuredworkloads.v1.WorkloadOrBuilder>( - getWorkload(), getParentForChildren(), isClean()); + workloadBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.assuredworkloads.v1.Workload, com.google.cloud.assuredworkloads.v1.Workload.Builder, com.google.cloud.assuredworkloads.v1.WorkloadOrBuilder>( + getWorkload(), + getParentForChildren(), + isClean()); workload_ = null; } return workloadBuilder_; @@ -991,8 +862,6 @@ public com.google.cloud.assuredworkloads.v1.WorkloadOrBuilder getWorkloadOrBuild private java.lang.Object externalId_ = ""; /** - * - * *
      * Optional. A identifier associated with the workload and underlying projects
      * which allows for the break down of billing costs for a workload. The value
@@ -1001,13 +870,13 @@ public com.google.cloud.assuredworkloads.v1.WorkloadOrBuilder getWorkloadOrBuild
      * 
* * string external_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The externalId. */ public java.lang.String getExternalId() { java.lang.Object ref = externalId_; 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(); externalId_ = s; return s; @@ -1016,8 +885,6 @@ public java.lang.String getExternalId() { } } /** - * - * *
      * Optional. A identifier associated with the workload and underlying projects
      * which allows for the break down of billing costs for a workload. The value
@@ -1026,14 +893,15 @@ public java.lang.String getExternalId() {
      * 
* * string external_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for externalId. */ - public com.google.protobuf.ByteString getExternalIdBytes() { + public com.google.protobuf.ByteString + getExternalIdBytes() { java.lang.Object ref = externalId_; 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); externalId_ = b; return b; } else { @@ -1041,8 +909,6 @@ public com.google.protobuf.ByteString getExternalIdBytes() { } } /** - * - * *
      * Optional. A identifier associated with the workload and underlying projects
      * which allows for the break down of billing costs for a workload. The value
@@ -1051,22 +917,20 @@ public com.google.protobuf.ByteString getExternalIdBytes() {
      * 
* * string external_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The externalId to set. * @return This builder for chaining. */ - public Builder setExternalId(java.lang.String value) { + public Builder setExternalId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + externalId_ = value; onChanged(); return this; } /** - * - * *
      * Optional. A identifier associated with the workload and underlying projects
      * which allows for the break down of billing costs for a workload. The value
@@ -1075,18 +939,15 @@ public Builder setExternalId(java.lang.String value) {
      * 
* * string external_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearExternalId() { - + externalId_ = getDefaultInstance().getExternalId(); onChanged(); return this; } /** - * - * *
      * Optional. A identifier associated with the workload and underlying projects
      * which allows for the break down of billing costs for a workload. The value
@@ -1095,23 +956,23 @@ public Builder clearExternalId() {
      * 
* * string external_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for externalId to set. * @return This builder for chaining. */ - public Builder setExternalIdBytes(com.google.protobuf.ByteString value) { + public Builder setExternalIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + externalId_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1121,12 +982,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.assuredworkloads.v1.CreateWorkloadRequest) } // @@protoc_insertion_point(class_scope:google.cloud.assuredworkloads.v1.CreateWorkloadRequest) private static final com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest(); } @@ -1135,16 +996,16 @@ public static com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateWorkloadRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateWorkloadRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateWorkloadRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateWorkloadRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1159,4 +1020,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/CreateWorkloadRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/CreateWorkloadRequestOrBuilder.java similarity index 59% rename from proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/CreateWorkloadRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/CreateWorkloadRequestOrBuilder.java index bfad0707..87fca8f9 100644 --- a/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/CreateWorkloadRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/CreateWorkloadRequestOrBuilder.java @@ -1,103 +1,62 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/assuredworkloads/v1/assuredworkloads.proto package com.google.cloud.assuredworkloads.v1; -public interface CreateWorkloadRequestOrBuilder - extends +public interface CreateWorkloadRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.assuredworkloads.v1.CreateWorkloadRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name of the new Workload's parent.
    * Must be of the form `organizations/{org_id}/locations/{location_id}`.
    * 
* - * - * 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 new Workload's parent.
    * Must be of the form `organizations/{org_id}/locations/{location_id}`.
    * 
* - * - * 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. Assured Workload to create
    * 
* - * - * .google.cloud.assuredworkloads.v1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.assuredworkloads.v1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the workload field is set. */ boolean hasWorkload(); /** - * - * *
    * Required. Assured Workload to create
    * 
* - * - * .google.cloud.assuredworkloads.v1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.assuredworkloads.v1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The workload. */ com.google.cloud.assuredworkloads.v1.Workload getWorkload(); /** - * - * *
    * Required. Assured Workload to create
    * 
* - * - * .google.cloud.assuredworkloads.v1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.assuredworkloads.v1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.assuredworkloads.v1.WorkloadOrBuilder getWorkloadOrBuilder(); /** - * - * *
    * Optional. A identifier associated with the workload and underlying projects
    * which allows for the break down of billing costs for a workload. The value
@@ -106,13 +65,10 @@ public interface CreateWorkloadRequestOrBuilder
    * 
* * string external_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The externalId. */ java.lang.String getExternalId(); /** - * - * *
    * Optional. A identifier associated with the workload and underlying projects
    * which allows for the break down of billing costs for a workload. The value
@@ -121,8 +77,8 @@ public interface CreateWorkloadRequestOrBuilder
    * 
* * string external_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for externalId. */ - com.google.protobuf.ByteString getExternalIdBytes(); + com.google.protobuf.ByteString + getExternalIdBytes(); } diff --git a/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/DeleteWorkloadRequest.java b/owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/DeleteWorkloadRequest.java similarity index 68% rename from proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/DeleteWorkloadRequest.java rename to owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/DeleteWorkloadRequest.java index dbf35323..eb5822a5 100644 --- a/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/DeleteWorkloadRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/DeleteWorkloadRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/assuredworkloads/v1/assuredworkloads.proto package com.google.cloud.assuredworkloads.v1; /** - * - * *
  * Request for deleting a Workload.
  * 
* * Protobuf type {@code google.cloud.assuredworkloads.v1.DeleteWorkloadRequest} */ -public final class DeleteWorkloadRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteWorkloadRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.assuredworkloads.v1.DeleteWorkloadRequest) DeleteWorkloadRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteWorkloadRequest.newBuilder() to construct. private DeleteWorkloadRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteWorkloadRequest() { name_ = ""; etag_ = ""; @@ -44,15 +26,16 @@ private DeleteWorkloadRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteWorkloadRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeleteWorkloadRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,27 +54,25 @@ private DeleteWorkloadRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - etag_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + etag_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,43 +80,36 @@ private DeleteWorkloadRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1_DeleteWorkloadRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_DeleteWorkloadRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1_DeleteWorkloadRequest_fieldAccessorTable + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_DeleteWorkloadRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest.class, - com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest.Builder.class); + com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest.class, com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The `name` field is used to identify the workload.
    * Format:
    * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -144,33 +118,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The `name` field is used to identify the workload.
    * Format:
    * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -181,15 +153,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int ETAG_FIELD_NUMBER = 2; private volatile java.lang.Object etag_; /** - * - * *
    * Optional. The etag of the workload.
    * If this is provided, it must match the server's etag.
    * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The etag. */ @java.lang.Override @@ -198,30 +167,30 @@ public java.lang.String getEtag() { 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(); etag_ = s; return s; } } /** - * - * *
    * Optional. The etag of the workload.
    * If this is provided, it must match the server's etag.
    * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -230,7 +199,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -242,7 +210,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_); } @@ -272,16 +241,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.assuredworkloads.v1.DeleteWorkloadRequest)) { return super.equals(obj); } - com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest other = - (com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest) obj; + com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest other = (com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!getEtag().equals(other.getEtag())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getEtag() + .equals(other.getEtag())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -303,127 +273,117 @@ public int hashCode() { } public static com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest 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.assuredworkloads.v1.DeleteWorkloadRequest 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.assuredworkloads.v1.DeleteWorkloadRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest 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.assuredworkloads.v1.DeleteWorkloadRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest 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.assuredworkloads.v1.DeleteWorkloadRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest 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.assuredworkloads.v1.DeleteWorkloadRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest 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.assuredworkloads.v1.DeleteWorkloadRequest 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.assuredworkloads.v1.DeleteWorkloadRequest 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.assuredworkloads.v1.DeleteWorkloadRequest prototype) { + public static Builder newBuilder(com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for deleting a Workload.
    * 
* * Protobuf type {@code google.cloud.assuredworkloads.v1.DeleteWorkloadRequest} */ - 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.assuredworkloads.v1.DeleteWorkloadRequest) com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1_DeleteWorkloadRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_DeleteWorkloadRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1_DeleteWorkloadRequest_fieldAccessorTable + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_DeleteWorkloadRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest.class, - com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest.Builder.class); + com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest.class, com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest.Builder.class); } // Construct using com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest.newBuilder() @@ -431,15 +391,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -451,9 +412,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1_DeleteWorkloadRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_DeleteWorkloadRequest_descriptor; } @java.lang.Override @@ -472,8 +433,7 @@ public com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest build() { @java.lang.Override public com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest buildPartial() { - com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest result = - new com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest(this); + com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest result = new com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest(this); result.name_ = name_; result.etag_ = etag_; onBuilt(); @@ -484,39 +444,38 @@ public com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest) { - return mergeFrom((com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest) other); + return mergeFrom((com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest)other); } else { super.mergeFrom(other); return this; @@ -524,8 +483,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest other) { - if (other == com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -553,8 +511,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -566,24 +523,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The `name` field is used to identify the workload.
      * Format:
      * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -592,25 +545,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The `name` field is used to identify the workload.
      * Format:
      * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -618,73 +568,60 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The `name` field is used to identify the workload.
      * Format:
      * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The `name` field is used to identify the workload.
      * Format:
      * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The `name` field is used to identify the workload.
      * Format:
      * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -692,21 +629,19 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object etag_ = ""; /** - * - * *
      * Optional. The etag of the workload.
      * If this is provided, it must match the server's etag.
      * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; 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(); etag_ = s; return s; @@ -715,22 +650,21 @@ public java.lang.String getEtag() { } } /** - * - * *
      * Optional. The etag of the workload.
      * If this is provided, it must match the server's etag.
      * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for etag. */ - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -738,71 +672,64 @@ public com.google.protobuf.ByteString getEtagBytes() { } } /** - * - * *
      * Optional. The etag of the workload.
      * If this is provided, it must match the server's etag.
      * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag(java.lang.String value) { + public Builder setEtag( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + etag_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The etag of the workload.
      * If this is provided, it must match the server's etag.
      * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearEtag() { - + etag_ = getDefaultInstance().getEtag(); onChanged(); return this; } /** - * - * *
      * Optional. The etag of the workload.
      * If this is provided, it must match the server's etag.
      * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -812,12 +739,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.assuredworkloads.v1.DeleteWorkloadRequest) } // @@protoc_insertion_point(class_scope:google.cloud.assuredworkloads.v1.DeleteWorkloadRequest) private static final com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest(); } @@ -826,16 +753,16 @@ public static com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteWorkloadRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteWorkloadRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteWorkloadRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteWorkloadRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -850,4 +777,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/DeleteWorkloadRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/DeleteWorkloadRequestOrBuilder.java similarity index 55% rename from proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/DeleteWorkloadRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/DeleteWorkloadRequestOrBuilder.java index 71e8e9a3..823f2937 100644 --- a/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/DeleteWorkloadRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/DeleteWorkloadRequestOrBuilder.java @@ -1,85 +1,55 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/assuredworkloads/v1/assuredworkloads.proto package com.google.cloud.assuredworkloads.v1; -public interface DeleteWorkloadRequestOrBuilder - extends +public interface DeleteWorkloadRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.assuredworkloads.v1.DeleteWorkloadRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The `name` field is used to identify the workload.
    * Format:
    * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The `name` field is used to identify the workload.
    * Format:
    * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Optional. The etag of the workload.
    * If this is provided, it must match the server's etag.
    * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The etag. */ java.lang.String getEtag(); /** - * - * *
    * Optional. The etag of the workload.
    * If this is provided, it must match the server's etag.
    * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for etag. */ - com.google.protobuf.ByteString getEtagBytes(); + com.google.protobuf.ByteString + getEtagBytes(); } diff --git a/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/GetWorkloadRequest.java b/owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/GetWorkloadRequest.java similarity index 68% rename from proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/GetWorkloadRequest.java rename to owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/GetWorkloadRequest.java index 5a7bd056..8edd9f87 100644 --- a/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/GetWorkloadRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/GetWorkloadRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/assuredworkloads/v1/assuredworkloads.proto package com.google.cloud.assuredworkloads.v1; /** - * - * *
  * Request for fetching a workload.
  * 
* * Protobuf type {@code google.cloud.assuredworkloads.v1.GetWorkloadRequest} */ -public final class GetWorkloadRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetWorkloadRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.assuredworkloads.v1.GetWorkloadRequest) GetWorkloadRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetWorkloadRequest.newBuilder() to construct. private GetWorkloadRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetWorkloadRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetWorkloadRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetWorkloadRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GetWorkloadRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,33 +73,29 @@ private GetWorkloadRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1_GetWorkloadRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_GetWorkloadRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1_GetWorkloadRequest_fieldAccessorTable + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_GetWorkloadRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.assuredworkloads.v1.GetWorkloadRequest.class, - com.google.cloud.assuredworkloads.v1.GetWorkloadRequest.Builder.class); + com.google.cloud.assuredworkloads.v1.GetWorkloadRequest.class, com.google.cloud.assuredworkloads.v1.GetWorkloadRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The resource name of the Workload to fetch. This is the
    * workloads's relative path in the API, formatted as
@@ -126,10 +104,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * "organizations/123/locations/us-east1/workloads/assured-workload-1".
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -138,15 +113,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The resource name of the Workload to fetch. This is the
    * workloads's relative path in the API, formatted as
@@ -155,18 +129,17 @@ public java.lang.String getName() {
    * "organizations/123/locations/us-east1/workloads/assured-workload-1".
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -175,7 +148,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -187,7 +159,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_); } @@ -211,15 +184,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.assuredworkloads.v1.GetWorkloadRequest)) { return super.equals(obj); } - com.google.cloud.assuredworkloads.v1.GetWorkloadRequest other = - (com.google.cloud.assuredworkloads.v1.GetWorkloadRequest) obj; + com.google.cloud.assuredworkloads.v1.GetWorkloadRequest other = (com.google.cloud.assuredworkloads.v1.GetWorkloadRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -239,127 +212,117 @@ public int hashCode() { } public static com.google.cloud.assuredworkloads.v1.GetWorkloadRequest 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.assuredworkloads.v1.GetWorkloadRequest 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.assuredworkloads.v1.GetWorkloadRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.assuredworkloads.v1.GetWorkloadRequest 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.assuredworkloads.v1.GetWorkloadRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.assuredworkloads.v1.GetWorkloadRequest 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.assuredworkloads.v1.GetWorkloadRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.assuredworkloads.v1.GetWorkloadRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.assuredworkloads.v1.GetWorkloadRequest 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.assuredworkloads.v1.GetWorkloadRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.assuredworkloads.v1.GetWorkloadRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.assuredworkloads.v1.GetWorkloadRequest 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.assuredworkloads.v1.GetWorkloadRequest 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.assuredworkloads.v1.GetWorkloadRequest 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.assuredworkloads.v1.GetWorkloadRequest prototype) { + public static Builder newBuilder(com.google.cloud.assuredworkloads.v1.GetWorkloadRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for fetching a workload.
    * 
* * Protobuf type {@code google.cloud.assuredworkloads.v1.GetWorkloadRequest} */ - 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.assuredworkloads.v1.GetWorkloadRequest) com.google.cloud.assuredworkloads.v1.GetWorkloadRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1_GetWorkloadRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_GetWorkloadRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1_GetWorkloadRequest_fieldAccessorTable + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_GetWorkloadRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.assuredworkloads.v1.GetWorkloadRequest.class, - com.google.cloud.assuredworkloads.v1.GetWorkloadRequest.Builder.class); + com.google.cloud.assuredworkloads.v1.GetWorkloadRequest.class, com.google.cloud.assuredworkloads.v1.GetWorkloadRequest.Builder.class); } // Construct using com.google.cloud.assuredworkloads.v1.GetWorkloadRequest.newBuilder() @@ -367,15 +330,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -385,9 +349,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1_GetWorkloadRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_GetWorkloadRequest_descriptor; } @java.lang.Override @@ -406,8 +370,7 @@ public com.google.cloud.assuredworkloads.v1.GetWorkloadRequest build() { @java.lang.Override public com.google.cloud.assuredworkloads.v1.GetWorkloadRequest buildPartial() { - com.google.cloud.assuredworkloads.v1.GetWorkloadRequest result = - new com.google.cloud.assuredworkloads.v1.GetWorkloadRequest(this); + com.google.cloud.assuredworkloads.v1.GetWorkloadRequest result = new com.google.cloud.assuredworkloads.v1.GetWorkloadRequest(this); result.name_ = name_; onBuilt(); return result; @@ -417,39 +380,38 @@ public com.google.cloud.assuredworkloads.v1.GetWorkloadRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.assuredworkloads.v1.GetWorkloadRequest) { - return mergeFrom((com.google.cloud.assuredworkloads.v1.GetWorkloadRequest) other); + return mergeFrom((com.google.cloud.assuredworkloads.v1.GetWorkloadRequest)other); } else { super.mergeFrom(other); return this; @@ -457,8 +419,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.assuredworkloads.v1.GetWorkloadRequest other) { - if (other == com.google.cloud.assuredworkloads.v1.GetWorkloadRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.assuredworkloads.v1.GetWorkloadRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -482,8 +443,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.assuredworkloads.v1.GetWorkloadRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.assuredworkloads.v1.GetWorkloadRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -495,8 +455,6 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name of the Workload to fetch. This is the
      * workloads's relative path in the API, formatted as
@@ -505,16 +463,14 @@ public Builder mergeFrom(
      * "organizations/123/locations/us-east1/workloads/assured-workload-1".
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -523,8 +479,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the Workload to fetch. This is the
      * workloads's relative path in the API, formatted as
@@ -533,17 +487,16 @@ public java.lang.String getName() {
      * "organizations/123/locations/us-east1/workloads/assured-workload-1".
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -551,8 +504,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the Workload to fetch. This is the
      * workloads's relative path in the API, formatted as
@@ -561,25 +512,21 @@ public com.google.protobuf.ByteString getNameBytes() {
      * "organizations/123/locations/us-east1/workloads/assured-workload-1".
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the Workload to fetch. This is the
      * workloads's relative path in the API, formatted as
@@ -588,21 +535,16 @@ public Builder setName(java.lang.String value) {
      * "organizations/123/locations/us-east1/workloads/assured-workload-1".
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The resource name of the Workload to fetch. This is the
      * workloads's relative path in the API, formatted as
@@ -611,26 +553,24 @@ public Builder clearName() {
      * "organizations/123/locations/us-east1/workloads/assured-workload-1".
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -640,12 +580,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.assuredworkloads.v1.GetWorkloadRequest) } // @@protoc_insertion_point(class_scope:google.cloud.assuredworkloads.v1.GetWorkloadRequest) private static final com.google.cloud.assuredworkloads.v1.GetWorkloadRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.assuredworkloads.v1.GetWorkloadRequest(); } @@ -654,16 +594,16 @@ public static com.google.cloud.assuredworkloads.v1.GetWorkloadRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetWorkloadRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetWorkloadRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetWorkloadRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetWorkloadRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -678,4 +618,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.assuredworkloads.v1.GetWorkloadRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/GetWorkloadRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/GetWorkloadRequestOrBuilder.java similarity index 52% rename from proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/GetWorkloadRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/GetWorkloadRequestOrBuilder.java index c0ce0880..53013ce6 100644 --- a/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/GetWorkloadRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/GetWorkloadRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/assuredworkloads/v1/assuredworkloads.proto package com.google.cloud.assuredworkloads.v1; -public interface GetWorkloadRequestOrBuilder - extends +public interface GetWorkloadRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.assuredworkloads.v1.GetWorkloadRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name of the Workload to fetch. This is the
    * workloads's relative path in the API, formatted as
@@ -34,16 +16,11 @@ public interface GetWorkloadRequestOrBuilder
    * "organizations/123/locations/us-east1/workloads/assured-workload-1".
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The resource name of the Workload to fetch. This is the
    * workloads's relative path in the API, formatted as
@@ -52,11 +29,9 @@ public interface GetWorkloadRequestOrBuilder
    * "organizations/123/locations/us-east1/workloads/assured-workload-1".
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); } diff --git a/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/ListWorkloadsRequest.java b/owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/ListWorkloadsRequest.java similarity index 70% rename from proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/ListWorkloadsRequest.java rename to owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/ListWorkloadsRequest.java index 7fa3f28d..df2b806c 100644 --- a/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/ListWorkloadsRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/ListWorkloadsRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/assuredworkloads/v1/assuredworkloads.proto package com.google.cloud.assuredworkloads.v1; /** - * - * *
  * Request for fetching workloads in an organization.
  * 
* * Protobuf type {@code google.cloud.assuredworkloads.v1.ListWorkloadsRequest} */ -public final class ListWorkloadsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListWorkloadsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.assuredworkloads.v1.ListWorkloadsRequest) ListWorkloadsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListWorkloadsRequest.newBuilder() to construct. private ListWorkloadsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListWorkloadsRequest() { parent_ = ""; pageToken_ = ""; @@ -45,15 +27,16 @@ private ListWorkloadsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListWorkloadsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListWorkloadsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,39 +55,36 @@ private ListWorkloadsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: { - pageToken_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + pageSize_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageToken_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + filter_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -112,42 +92,35 @@ private ListWorkloadsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1_ListWorkloadsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_ListWorkloadsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1_ListWorkloadsRequest_fieldAccessorTable + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_ListWorkloadsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest.class, - com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest.Builder.class); + com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest.class, com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. Parent Resource to list workloads from.
    * Must be of the form `organizations/{org_id}/locations/{location}`.
    * 
* - * - * 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 @@ -156,32 +129,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. Parent Resource to list workloads from.
    * Must be of the form `organizations/{org_id}/locations/{location}`.
    * 
* - * - * 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 { @@ -192,14 +163,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * Page size.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -210,8 +178,6 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * Page token returned from previous request. Page token contains context from
    * previous request. Page token needs to be passed in the second and following
@@ -219,7 +185,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -228,15 +193,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * Page token returned from previous request. Page token contains context from
    * previous request. Page token needs to be passed in the second and following
@@ -244,15 +208,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -263,15 +228,12 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int FILTER_FIELD_NUMBER = 4; private volatile java.lang.Object filter_; /** - * - * *
    * A custom filter for filtering by properties of a workload. At this time,
    * only filtering by labels is supported.
    * 
* * string filter = 4; - * * @return The filter. */ @java.lang.Override @@ -280,30 +242,30 @@ public java.lang.String getFilter() { 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(); filter_ = s; return s; } } /** - * - * *
    * A custom filter for filtering by properties of a workload. At this time,
    * only filtering by labels is supported.
    * 
* * string filter = 4; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; 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); filter_ = b; return b; } else { @@ -312,7 +274,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -324,7 +285,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_); } @@ -350,7 +312,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -366,18 +329,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.assuredworkloads.v1.ListWorkloadsRequest)) { return super.equals(obj); } - com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest other = - (com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getFilter().equals(other.getFilter())) return false; + com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest other = (com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -403,127 +369,117 @@ public int hashCode() { } public static com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest 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.assuredworkloads.v1.ListWorkloadsRequest 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.assuredworkloads.v1.ListWorkloadsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest 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.assuredworkloads.v1.ListWorkloadsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest 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.assuredworkloads.v1.ListWorkloadsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest 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.assuredworkloads.v1.ListWorkloadsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest 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.assuredworkloads.v1.ListWorkloadsRequest 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.assuredworkloads.v1.ListWorkloadsRequest 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.assuredworkloads.v1.ListWorkloadsRequest prototype) { + public static Builder newBuilder(com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for fetching workloads in an organization.
    * 
* * Protobuf type {@code google.cloud.assuredworkloads.v1.ListWorkloadsRequest} */ - 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.assuredworkloads.v1.ListWorkloadsRequest) com.google.cloud.assuredworkloads.v1.ListWorkloadsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1_ListWorkloadsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_ListWorkloadsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1_ListWorkloadsRequest_fieldAccessorTable + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_ListWorkloadsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest.class, - com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest.Builder.class); + com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest.class, com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest.Builder.class); } // Construct using com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest.newBuilder() @@ -531,15 +487,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -555,9 +512,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1_ListWorkloadsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_ListWorkloadsRequest_descriptor; } @java.lang.Override @@ -576,8 +533,7 @@ public com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest build() { @java.lang.Override public com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest buildPartial() { - com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest result = - new com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest(this); + com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest result = new com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -590,39 +546,38 @@ public com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest) { - return mergeFrom((com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest) other); + return mergeFrom((com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest)other); } else { super.mergeFrom(other); return this; @@ -630,8 +585,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest other) { - if (other == com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -666,8 +620,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -679,23 +632,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Parent Resource to list workloads from.
      * Must be of the form `organizations/{org_id}/locations/{location}`.
      * 
* - * - * 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; @@ -704,24 +653,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Parent Resource to list workloads from.
      * Must be of the form `organizations/{org_id}/locations/{location}`.
      * 
* - * - * 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 { @@ -729,85 +675,69 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Parent Resource to list workloads from.
      * Must be of the form `organizations/{org_id}/locations/{location}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. Parent Resource to list workloads from.
      * Must be of the form `organizations/{org_id}/locations/{location}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. Parent Resource to list workloads from.
      * Must be of the form `organizations/{org_id}/locations/{location}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Page size.
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -815,36 +745,30 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Page size.
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * Page size.
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -852,8 +776,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Page token returned from previous request. Page token contains context from
      * previous request. Page token needs to be passed in the second and following
@@ -861,13 +783,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -876,8 +798,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Page token returned from previous request. Page token contains context from
      * previous request. Page token needs to be passed in the second and following
@@ -885,14 +805,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -900,8 +821,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Page token returned from previous request. Page token contains context from
      * previous request. Page token needs to be passed in the second and following
@@ -909,22 +828,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * Page token returned from previous request. Page token contains context from
      * previous request. Page token needs to be passed in the second and following
@@ -932,18 +849,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * Page token returned from previous request. Page token contains context from
      * previous request. Page token needs to be passed in the second and following
@@ -951,16 +865,16 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; @@ -968,21 +882,19 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * A custom filter for filtering by properties of a workload. At this time,
      * only filtering by labels is supported.
      * 
* * string filter = 4; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; 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(); filter_ = s; return s; @@ -991,22 +903,21 @@ public java.lang.String getFilter() { } } /** - * - * *
      * A custom filter for filtering by properties of a workload. At this time,
      * only filtering by labels is supported.
      * 
* * string filter = 4; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; 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); filter_ = b; return b; } else { @@ -1014,71 +925,64 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * A custom filter for filtering by properties of a workload. At this time,
      * only filtering by labels is supported.
      * 
* * string filter = 4; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { + public Builder setFilter( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** - * - * *
      * A custom filter for filtering by properties of a workload. At this time,
      * only filtering by labels is supported.
      * 
* * string filter = 4; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
      * A custom filter for filtering by properties of a workload. At this time,
      * only filtering by labels is supported.
      * 
* * string filter = 4; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1088,12 +992,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.assuredworkloads.v1.ListWorkloadsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.assuredworkloads.v1.ListWorkloadsRequest) private static final com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest(); } @@ -1102,16 +1006,16 @@ public static com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListWorkloadsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListWorkloadsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListWorkloadsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListWorkloadsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1126,4 +1030,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/ListWorkloadsRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/ListWorkloadsRequestOrBuilder.java similarity index 62% rename from proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/ListWorkloadsRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/ListWorkloadsRequestOrBuilder.java index cbad62a1..71fd525b 100644 --- a/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/ListWorkloadsRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/ListWorkloadsRequestOrBuilder.java @@ -1,75 +1,45 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/assuredworkloads/v1/assuredworkloads.proto package com.google.cloud.assuredworkloads.v1; -public interface ListWorkloadsRequestOrBuilder - extends +public interface ListWorkloadsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.assuredworkloads.v1.ListWorkloadsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Parent Resource to list workloads from.
    * Must be of the form `organizations/{org_id}/locations/{location}`.
    * 
* - * - * 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. Parent Resource to list workloads from.
    * Must be of the form `organizations/{org_id}/locations/{location}`.
    * 
* - * - * 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(); /** - * - * *
    * Page size.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * Page token returned from previous request. Page token contains context from
    * previous request. Page token needs to be passed in the second and following
@@ -77,13 +47,10 @@ public interface ListWorkloadsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Page token returned from previous request. Page token contains context from
    * previous request. Page token needs to be passed in the second and following
@@ -91,35 +58,30 @@ public interface ListWorkloadsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * A custom filter for filtering by properties of a workload. At this time,
    * only filtering by labels is supported.
    * 
* * string filter = 4; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * A custom filter for filtering by properties of a workload. At this time,
    * only filtering by labels is supported.
    * 
* * string filter = 4; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); } diff --git a/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/ListWorkloadsResponse.java b/owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/ListWorkloadsResponse.java similarity index 73% rename from proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/ListWorkloadsResponse.java rename to owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/ListWorkloadsResponse.java index 509615c2..d682202a 100644 --- a/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/ListWorkloadsResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/ListWorkloadsResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/assuredworkloads/v1/assuredworkloads.proto package com.google.cloud.assuredworkloads.v1; /** - * - * *
  * Response of ListWorkloads endpoint.
  * 
* * Protobuf type {@code google.cloud.assuredworkloads.v1.ListWorkloadsResponse} */ -public final class ListWorkloadsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListWorkloadsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.assuredworkloads.v1.ListWorkloadsResponse) ListWorkloadsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListWorkloadsResponse.newBuilder() to construct. private ListWorkloadsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListWorkloadsResponse() { workloads_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,15 +26,16 @@ private ListWorkloadsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListWorkloadsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListWorkloadsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,32 +55,28 @@ private ListWorkloadsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - workloads_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - workloads_.add( - input.readMessage( - com.google.cloud.assuredworkloads.v1.Workload.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + workloads_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + workloads_.add( + input.readMessage(com.google.cloud.assuredworkloads.v1.Workload.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -105,7 +84,8 @@ private ListWorkloadsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { workloads_ = java.util.Collections.unmodifiableList(workloads_); @@ -114,27 +94,22 @@ private ListWorkloadsResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1_ListWorkloadsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_ListWorkloadsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1_ListWorkloadsResponse_fieldAccessorTable + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_ListWorkloadsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.assuredworkloads.v1.ListWorkloadsResponse.class, - com.google.cloud.assuredworkloads.v1.ListWorkloadsResponse.Builder.class); + com.google.cloud.assuredworkloads.v1.ListWorkloadsResponse.class, com.google.cloud.assuredworkloads.v1.ListWorkloadsResponse.Builder.class); } public static final int WORKLOADS_FIELD_NUMBER = 1; private java.util.List workloads_; /** - * - * *
    * List of Workloads under a given parent.
    * 
@@ -146,8 +121,6 @@ public java.util.List getWorkload return workloads_; } /** - * - * *
    * List of Workloads under a given parent.
    * 
@@ -155,13 +128,11 @@ public java.util.List getWorkload * repeated .google.cloud.assuredworkloads.v1.Workload workloads = 1; */ @java.lang.Override - public java.util.List + public java.util.List getWorkloadsOrBuilderList() { return workloads_; } /** - * - * *
    * List of Workloads under a given parent.
    * 
@@ -173,8 +144,6 @@ public int getWorkloadsCount() { return workloads_.size(); } /** - * - * *
    * List of Workloads under a given parent.
    * 
@@ -186,8 +155,6 @@ public com.google.cloud.assuredworkloads.v1.Workload getWorkloads(int index) { return workloads_.get(index); } /** - * - * *
    * List of Workloads under a given parent.
    * 
@@ -195,21 +162,19 @@ public com.google.cloud.assuredworkloads.v1.Workload getWorkloads(int index) { * repeated .google.cloud.assuredworkloads.v1.Workload workloads = 1; */ @java.lang.Override - public com.google.cloud.assuredworkloads.v1.WorkloadOrBuilder getWorkloadsOrBuilder(int index) { + public com.google.cloud.assuredworkloads.v1.WorkloadOrBuilder getWorkloadsOrBuilder( + int index) { return workloads_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * The next page token. Return empty if reached the last page.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -218,29 +183,29 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * The next page token. Return empty if reached the last page.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -249,7 +214,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -261,7 +225,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 < workloads_.size(); i++) { output.writeMessage(1, workloads_.get(i)); } @@ -278,7 +243,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < workloads_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, workloads_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, workloads_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -291,16 +257,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.assuredworkloads.v1.ListWorkloadsResponse)) { return super.equals(obj); } - com.google.cloud.assuredworkloads.v1.ListWorkloadsResponse other = - (com.google.cloud.assuredworkloads.v1.ListWorkloadsResponse) obj; + com.google.cloud.assuredworkloads.v1.ListWorkloadsResponse other = (com.google.cloud.assuredworkloads.v1.ListWorkloadsResponse) obj; - if (!getWorkloadsList().equals(other.getWorkloadsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getWorkloadsList() + .equals(other.getWorkloadsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -324,127 +291,117 @@ public int hashCode() { } public static com.google.cloud.assuredworkloads.v1.ListWorkloadsResponse 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.assuredworkloads.v1.ListWorkloadsResponse 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.assuredworkloads.v1.ListWorkloadsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.assuredworkloads.v1.ListWorkloadsResponse 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.assuredworkloads.v1.ListWorkloadsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.assuredworkloads.v1.ListWorkloadsResponse 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.assuredworkloads.v1.ListWorkloadsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.assuredworkloads.v1.ListWorkloadsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.assuredworkloads.v1.ListWorkloadsResponse 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.assuredworkloads.v1.ListWorkloadsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.assuredworkloads.v1.ListWorkloadsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.assuredworkloads.v1.ListWorkloadsResponse 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.assuredworkloads.v1.ListWorkloadsResponse 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.assuredworkloads.v1.ListWorkloadsResponse 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.assuredworkloads.v1.ListWorkloadsResponse prototype) { + public static Builder newBuilder(com.google.cloud.assuredworkloads.v1.ListWorkloadsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response of ListWorkloads endpoint.
    * 
* * Protobuf type {@code google.cloud.assuredworkloads.v1.ListWorkloadsResponse} */ - 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.assuredworkloads.v1.ListWorkloadsResponse) com.google.cloud.assuredworkloads.v1.ListWorkloadsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1_ListWorkloadsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_ListWorkloadsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1_ListWorkloadsResponse_fieldAccessorTable + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_ListWorkloadsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.assuredworkloads.v1.ListWorkloadsResponse.class, - com.google.cloud.assuredworkloads.v1.ListWorkloadsResponse.Builder.class); + com.google.cloud.assuredworkloads.v1.ListWorkloadsResponse.class, com.google.cloud.assuredworkloads.v1.ListWorkloadsResponse.Builder.class); } // Construct using com.google.cloud.assuredworkloads.v1.ListWorkloadsResponse.newBuilder() @@ -452,17 +409,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getWorkloadsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -478,9 +435,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1_ListWorkloadsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_ListWorkloadsResponse_descriptor; } @java.lang.Override @@ -499,8 +456,7 @@ public com.google.cloud.assuredworkloads.v1.ListWorkloadsResponse build() { @java.lang.Override public com.google.cloud.assuredworkloads.v1.ListWorkloadsResponse buildPartial() { - com.google.cloud.assuredworkloads.v1.ListWorkloadsResponse result = - new com.google.cloud.assuredworkloads.v1.ListWorkloadsResponse(this); + com.google.cloud.assuredworkloads.v1.ListWorkloadsResponse result = new com.google.cloud.assuredworkloads.v1.ListWorkloadsResponse(this); int from_bitField0_ = bitField0_; if (workloadsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -520,39 +476,38 @@ public com.google.cloud.assuredworkloads.v1.ListWorkloadsResponse buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.assuredworkloads.v1.ListWorkloadsResponse) { - return mergeFrom((com.google.cloud.assuredworkloads.v1.ListWorkloadsResponse) other); + return mergeFrom((com.google.cloud.assuredworkloads.v1.ListWorkloadsResponse)other); } else { super.mergeFrom(other); return this; @@ -560,8 +515,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.assuredworkloads.v1.ListWorkloadsResponse other) { - if (other == com.google.cloud.assuredworkloads.v1.ListWorkloadsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.assuredworkloads.v1.ListWorkloadsResponse.getDefaultInstance()) return this; if (workloadsBuilder_ == null) { if (!other.workloads_.isEmpty()) { if (workloads_.isEmpty()) { @@ -580,10 +534,9 @@ public Builder mergeFrom(com.google.cloud.assuredworkloads.v1.ListWorkloadsRespo workloadsBuilder_ = null; workloads_ = other.workloads_; bitField0_ = (bitField0_ & ~0x00000001); - workloadsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getWorkloadsFieldBuilder() - : null; + workloadsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getWorkloadsFieldBuilder() : null; } else { workloadsBuilder_.addAllMessages(other.workloads_); } @@ -612,8 +565,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.assuredworkloads.v1.ListWorkloadsResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.assuredworkloads.v1.ListWorkloadsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -622,29 +574,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List workloads_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureWorkloadsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - workloads_ = - new java.util.ArrayList(workloads_); + workloads_ = new java.util.ArrayList(workloads_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.assuredworkloads.v1.Workload, - com.google.cloud.assuredworkloads.v1.Workload.Builder, - com.google.cloud.assuredworkloads.v1.WorkloadOrBuilder> - workloadsBuilder_; + com.google.cloud.assuredworkloads.v1.Workload, com.google.cloud.assuredworkloads.v1.Workload.Builder, com.google.cloud.assuredworkloads.v1.WorkloadOrBuilder> workloadsBuilder_; /** - * - * *
      * List of Workloads under a given parent.
      * 
@@ -659,8 +603,6 @@ public java.util.List getWorkload } } /** - * - * *
      * List of Workloads under a given parent.
      * 
@@ -675,8 +617,6 @@ public int getWorkloadsCount() { } } /** - * - * *
      * List of Workloads under a given parent.
      * 
@@ -691,15 +631,14 @@ public com.google.cloud.assuredworkloads.v1.Workload getWorkloads(int index) { } } /** - * - * *
      * List of Workloads under a given parent.
      * 
* * repeated .google.cloud.assuredworkloads.v1.Workload workloads = 1; */ - public Builder setWorkloads(int index, com.google.cloud.assuredworkloads.v1.Workload value) { + public Builder setWorkloads( + int index, com.google.cloud.assuredworkloads.v1.Workload value) { if (workloadsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -713,8 +652,6 @@ public Builder setWorkloads(int index, com.google.cloud.assuredworkloads.v1.Work return this; } /** - * - * *
      * List of Workloads under a given parent.
      * 
@@ -733,8 +670,6 @@ public Builder setWorkloads( return this; } /** - * - * *
      * List of Workloads under a given parent.
      * 
@@ -755,15 +690,14 @@ public Builder addWorkloads(com.google.cloud.assuredworkloads.v1.Workload value) return this; } /** - * - * *
      * List of Workloads under a given parent.
      * 
* * repeated .google.cloud.assuredworkloads.v1.Workload workloads = 1; */ - public Builder addWorkloads(int index, com.google.cloud.assuredworkloads.v1.Workload value) { + public Builder addWorkloads( + int index, com.google.cloud.assuredworkloads.v1.Workload value) { if (workloadsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -777,8 +711,6 @@ public Builder addWorkloads(int index, com.google.cloud.assuredworkloads.v1.Work return this; } /** - * - * *
      * List of Workloads under a given parent.
      * 
@@ -797,8 +729,6 @@ public Builder addWorkloads( return this; } /** - * - * *
      * List of Workloads under a given parent.
      * 
@@ -817,8 +747,6 @@ public Builder addWorkloads( return this; } /** - * - * *
      * List of Workloads under a given parent.
      * 
@@ -829,7 +757,8 @@ public Builder addAllWorkloads( java.lang.Iterable values) { if (workloadsBuilder_ == null) { ensureWorkloadsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, workloads_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, workloads_); onChanged(); } else { workloadsBuilder_.addAllMessages(values); @@ -837,8 +766,6 @@ public Builder addAllWorkloads( return this; } /** - * - * *
      * List of Workloads under a given parent.
      * 
@@ -856,8 +783,6 @@ public Builder clearWorkloads() { return this; } /** - * - * *
      * List of Workloads under a given parent.
      * 
@@ -875,44 +800,39 @@ public Builder removeWorkloads(int index) { return this; } /** - * - * *
      * List of Workloads under a given parent.
      * 
* * repeated .google.cloud.assuredworkloads.v1.Workload workloads = 1; */ - public com.google.cloud.assuredworkloads.v1.Workload.Builder getWorkloadsBuilder(int index) { + public com.google.cloud.assuredworkloads.v1.Workload.Builder getWorkloadsBuilder( + int index) { return getWorkloadsFieldBuilder().getBuilder(index); } /** - * - * *
      * List of Workloads under a given parent.
      * 
* * repeated .google.cloud.assuredworkloads.v1.Workload workloads = 1; */ - public com.google.cloud.assuredworkloads.v1.WorkloadOrBuilder getWorkloadsOrBuilder(int index) { + public com.google.cloud.assuredworkloads.v1.WorkloadOrBuilder getWorkloadsOrBuilder( + int index) { if (workloadsBuilder_ == null) { - return workloads_.get(index); - } else { + return workloads_.get(index); } else { return workloadsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * List of Workloads under a given parent.
      * 
* * repeated .google.cloud.assuredworkloads.v1.Workload workloads = 1; */ - public java.util.List - getWorkloadsOrBuilderList() { + public java.util.List + getWorkloadsOrBuilderList() { if (workloadsBuilder_ != null) { return workloadsBuilder_.getMessageOrBuilderList(); } else { @@ -920,8 +840,6 @@ public com.google.cloud.assuredworkloads.v1.WorkloadOrBuilder getWorkloadsOrBuil } } /** - * - * *
      * List of Workloads under a given parent.
      * 
@@ -929,48 +847,42 @@ public com.google.cloud.assuredworkloads.v1.WorkloadOrBuilder getWorkloadsOrBuil * repeated .google.cloud.assuredworkloads.v1.Workload workloads = 1; */ public com.google.cloud.assuredworkloads.v1.Workload.Builder addWorkloadsBuilder() { - return getWorkloadsFieldBuilder() - .addBuilder(com.google.cloud.assuredworkloads.v1.Workload.getDefaultInstance()); + return getWorkloadsFieldBuilder().addBuilder( + com.google.cloud.assuredworkloads.v1.Workload.getDefaultInstance()); } /** - * - * *
      * List of Workloads under a given parent.
      * 
* * repeated .google.cloud.assuredworkloads.v1.Workload workloads = 1; */ - public com.google.cloud.assuredworkloads.v1.Workload.Builder addWorkloadsBuilder(int index) { - return getWorkloadsFieldBuilder() - .addBuilder(index, com.google.cloud.assuredworkloads.v1.Workload.getDefaultInstance()); + public com.google.cloud.assuredworkloads.v1.Workload.Builder addWorkloadsBuilder( + int index) { + return getWorkloadsFieldBuilder().addBuilder( + index, com.google.cloud.assuredworkloads.v1.Workload.getDefaultInstance()); } /** - * - * *
      * List of Workloads under a given parent.
      * 
* * repeated .google.cloud.assuredworkloads.v1.Workload workloads = 1; */ - public java.util.List - getWorkloadsBuilderList() { + public java.util.List + getWorkloadsBuilderList() { return getWorkloadsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.assuredworkloads.v1.Workload, - com.google.cloud.assuredworkloads.v1.Workload.Builder, - com.google.cloud.assuredworkloads.v1.WorkloadOrBuilder> + com.google.cloud.assuredworkloads.v1.Workload, com.google.cloud.assuredworkloads.v1.Workload.Builder, com.google.cloud.assuredworkloads.v1.WorkloadOrBuilder> getWorkloadsFieldBuilder() { if (workloadsBuilder_ == null) { - workloadsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.assuredworkloads.v1.Workload, - com.google.cloud.assuredworkloads.v1.Workload.Builder, - com.google.cloud.assuredworkloads.v1.WorkloadOrBuilder>( - workloads_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + workloadsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.assuredworkloads.v1.Workload, com.google.cloud.assuredworkloads.v1.Workload.Builder, com.google.cloud.assuredworkloads.v1.WorkloadOrBuilder>( + workloads_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); workloads_ = null; } return workloadsBuilder_; @@ -978,20 +890,18 @@ public com.google.cloud.assuredworkloads.v1.Workload.Builder addWorkloadsBuilder private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * The next page token. Return empty if reached the last page.
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1000,21 +910,20 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * The next page token. Return empty if reached the last page.
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1022,68 +931,61 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * The next page token. Return empty if reached the last page.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * The next page token. Return empty if reached the last page.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * The next page token. Return empty if reached the last page.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1093,12 +995,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.assuredworkloads.v1.ListWorkloadsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.assuredworkloads.v1.ListWorkloadsResponse) private static final com.google.cloud.assuredworkloads.v1.ListWorkloadsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.assuredworkloads.v1.ListWorkloadsResponse(); } @@ -1107,16 +1009,16 @@ public static com.google.cloud.assuredworkloads.v1.ListWorkloadsResponse getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListWorkloadsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListWorkloadsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListWorkloadsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListWorkloadsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1131,4 +1033,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.assuredworkloads.v1.ListWorkloadsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/ListWorkloadsResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/ListWorkloadsResponseOrBuilder.java similarity index 69% rename from proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/ListWorkloadsResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/ListWorkloadsResponseOrBuilder.java index ddf9f8a1..003f7e93 100644 --- a/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/ListWorkloadsResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/ListWorkloadsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/assuredworkloads/v1/assuredworkloads.proto package com.google.cloud.assuredworkloads.v1; -public interface ListWorkloadsResponseOrBuilder - extends +public interface ListWorkloadsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.assuredworkloads.v1.ListWorkloadsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * List of Workloads under a given parent.
    * 
* * repeated .google.cloud.assuredworkloads.v1.Workload workloads = 1; */ - java.util.List getWorkloadsList(); + java.util.List + getWorkloadsList(); /** - * - * *
    * List of Workloads under a given parent.
    * 
@@ -44,8 +25,6 @@ public interface ListWorkloadsResponseOrBuilder */ com.google.cloud.assuredworkloads.v1.Workload getWorkloads(int index); /** - * - * *
    * List of Workloads under a given parent.
    * 
@@ -54,49 +33,41 @@ public interface ListWorkloadsResponseOrBuilder */ int getWorkloadsCount(); /** - * - * *
    * List of Workloads under a given parent.
    * 
* * repeated .google.cloud.assuredworkloads.v1.Workload workloads = 1; */ - java.util.List + java.util.List getWorkloadsOrBuilderList(); /** - * - * *
    * List of Workloads under a given parent.
    * 
* * repeated .google.cloud.assuredworkloads.v1.Workload workloads = 1; */ - com.google.cloud.assuredworkloads.v1.WorkloadOrBuilder getWorkloadsOrBuilder(int index); + com.google.cloud.assuredworkloads.v1.WorkloadOrBuilder getWorkloadsOrBuilder( + int index); /** - * - * *
    * The next page token. Return empty if reached the last page.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * The next page token. Return empty if reached the last page.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/LocationName.java b/owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/LocationName.java similarity index 100% rename from proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/LocationName.java rename to owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/LocationName.java diff --git a/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/UpdateWorkloadRequest.java b/owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/UpdateWorkloadRequest.java similarity index 66% rename from proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/UpdateWorkloadRequest.java rename to owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/UpdateWorkloadRequest.java index ceb0fbfa..449bab09 100644 --- a/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/UpdateWorkloadRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/UpdateWorkloadRequest.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/assuredworkloads/v1/assuredworkloads.proto package com.google.cloud.assuredworkloads.v1; /** - * - * *
  * Request for Updating a workload.
  * 
* * Protobuf type {@code google.cloud.assuredworkloads.v1.UpdateWorkloadRequest} */ -public final class UpdateWorkloadRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateWorkloadRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.assuredworkloads.v1.UpdateWorkloadRequest) UpdateWorkloadRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateWorkloadRequest.newBuilder() to construct. private UpdateWorkloadRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateWorkloadRequest() {} + private UpdateWorkloadRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateWorkloadRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdateWorkloadRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,44 +52,39 @@ private UpdateWorkloadRequest( case 0: done = true; break; - case 10: - { - com.google.cloud.assuredworkloads.v1.Workload.Builder subBuilder = null; - if (workload_ != null) { - subBuilder = workload_.toBuilder(); - } - workload_ = - input.readMessage( - com.google.cloud.assuredworkloads.v1.Workload.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(workload_); - workload_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.assuredworkloads.v1.Workload.Builder subBuilder = null; + if (workload_ != null) { + subBuilder = workload_.toBuilder(); + } + workload_ = input.readMessage(com.google.cloud.assuredworkloads.v1.Workload.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(workload_); + workload_ = subBuilder.buildPartial(); } - case 18: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - break; + break; + } + case 18: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -113,33 +92,29 @@ private UpdateWorkloadRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1_UpdateWorkloadRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_UpdateWorkloadRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1_UpdateWorkloadRequest_fieldAccessorTable + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_UpdateWorkloadRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest.class, - com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest.Builder.class); + com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest.class, com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest.Builder.class); } public static final int WORKLOAD_FIELD_NUMBER = 1; private com.google.cloud.assuredworkloads.v1.Workload workload_; /** - * - * *
    * Required. The workload to update.
    * The workload’s `name` field is used to identify the workload to be updated.
@@ -147,10 +122,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
    * 
* - * - * .google.cloud.assuredworkloads.v1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.assuredworkloads.v1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the workload field is set. */ @java.lang.Override @@ -158,8 +130,6 @@ public boolean hasWorkload() { return workload_ != null; } /** - * - * *
    * Required. The workload to update.
    * The workload’s `name` field is used to identify the workload to be updated.
@@ -167,21 +137,14 @@ public boolean hasWorkload() {
    * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
    * 
* - * - * .google.cloud.assuredworkloads.v1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.assuredworkloads.v1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The workload. */ @java.lang.Override public com.google.cloud.assuredworkloads.v1.Workload getWorkload() { - return workload_ == null - ? com.google.cloud.assuredworkloads.v1.Workload.getDefaultInstance() - : workload_; + return workload_ == null ? com.google.cloud.assuredworkloads.v1.Workload.getDefaultInstance() : workload_; } /** - * - * *
    * Required. The workload to update.
    * The workload’s `name` field is used to identify the workload to be updated.
@@ -189,9 +152,7 @@ public com.google.cloud.assuredworkloads.v1.Workload getWorkload() {
    * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
    * 
* - * - * .google.cloud.assuredworkloads.v1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.assuredworkloads.v1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.assuredworkloads.v1.WorkloadOrBuilder getWorkloadOrBuilder() { @@ -201,15 +162,11 @@ public com.google.cloud.assuredworkloads.v1.WorkloadOrBuilder getWorkloadOrBuild public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Required. The list of fields to be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ @java.lang.Override @@ -217,15 +174,11 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Required. The list of fields to be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ @java.lang.Override @@ -233,14 +186,11 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Required. The list of fields to be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -248,7 +198,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -260,7 +209,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 (workload_ != null) { output.writeMessage(1, getWorkload()); } @@ -277,10 +227,12 @@ public int getSerializedSize() { size = 0; if (workload_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getWorkload()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getWorkload()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateMask()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -290,21 +242,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest)) { return super.equals(obj); } - com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest other = - (com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest) obj; + com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest other = (com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest) obj; if (hasWorkload() != other.hasWorkload()) return false; if (hasWorkload()) { - if (!getWorkload().equals(other.getWorkload())) return false; + if (!getWorkload() + .equals(other.getWorkload())) return false; } if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -331,127 +284,117 @@ public int hashCode() { } public static com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest 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.assuredworkloads.v1.UpdateWorkloadRequest 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.assuredworkloads.v1.UpdateWorkloadRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest 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.assuredworkloads.v1.UpdateWorkloadRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest 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.assuredworkloads.v1.UpdateWorkloadRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest 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.assuredworkloads.v1.UpdateWorkloadRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest 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.assuredworkloads.v1.UpdateWorkloadRequest 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.assuredworkloads.v1.UpdateWorkloadRequest 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.assuredworkloads.v1.UpdateWorkloadRequest prototype) { + public static Builder newBuilder(com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for Updating a workload.
    * 
* * Protobuf type {@code google.cloud.assuredworkloads.v1.UpdateWorkloadRequest} */ - 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.assuredworkloads.v1.UpdateWorkloadRequest) com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1_UpdateWorkloadRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_UpdateWorkloadRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1_UpdateWorkloadRequest_fieldAccessorTable + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_UpdateWorkloadRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest.class, - com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest.Builder.class); + com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest.class, com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest.Builder.class); } // Construct using com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest.newBuilder() @@ -459,15 +402,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -487,9 +431,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1_UpdateWorkloadRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_UpdateWorkloadRequest_descriptor; } @java.lang.Override @@ -508,8 +452,7 @@ public com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest build() { @java.lang.Override public com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest buildPartial() { - com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest result = - new com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest(this); + com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest result = new com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest(this); if (workloadBuilder_ == null) { result.workload_ = workload_; } else { @@ -528,39 +471,38 @@ public com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest) { - return mergeFrom((com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest) other); + return mergeFrom((com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest)other); } else { super.mergeFrom(other); return this; @@ -568,8 +510,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest other) { - if (other == com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest.getDefaultInstance()) return this; if (other.hasWorkload()) { mergeWorkload(other.getWorkload()); } @@ -595,8 +536,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -608,13 +548,8 @@ public Builder mergeFrom( private com.google.cloud.assuredworkloads.v1.Workload workload_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.assuredworkloads.v1.Workload, - com.google.cloud.assuredworkloads.v1.Workload.Builder, - com.google.cloud.assuredworkloads.v1.WorkloadOrBuilder> - workloadBuilder_; + com.google.cloud.assuredworkloads.v1.Workload, com.google.cloud.assuredworkloads.v1.Workload.Builder, com.google.cloud.assuredworkloads.v1.WorkloadOrBuilder> workloadBuilder_; /** - * - * *
      * Required. The workload to update.
      * The workload’s `name` field is used to identify the workload to be updated.
@@ -622,18 +557,13 @@ public Builder mergeFrom(
      * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
      * 
* - * - * .google.cloud.assuredworkloads.v1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.assuredworkloads.v1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the workload field is set. */ public boolean hasWorkload() { return workloadBuilder_ != null || workload_ != null; } /** - * - * *
      * Required. The workload to update.
      * The workload’s `name` field is used to identify the workload to be updated.
@@ -641,24 +571,17 @@ public boolean hasWorkload() {
      * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
      * 
* - * - * .google.cloud.assuredworkloads.v1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.assuredworkloads.v1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The workload. */ public com.google.cloud.assuredworkloads.v1.Workload getWorkload() { if (workloadBuilder_ == null) { - return workload_ == null - ? com.google.cloud.assuredworkloads.v1.Workload.getDefaultInstance() - : workload_; + return workload_ == null ? com.google.cloud.assuredworkloads.v1.Workload.getDefaultInstance() : workload_; } else { return workloadBuilder_.getMessage(); } } /** - * - * *
      * Required. The workload to update.
      * The workload’s `name` field is used to identify the workload to be updated.
@@ -666,9 +589,7 @@ public com.google.cloud.assuredworkloads.v1.Workload getWorkload() {
      * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
      * 
* - * - * .google.cloud.assuredworkloads.v1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.assuredworkloads.v1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setWorkload(com.google.cloud.assuredworkloads.v1.Workload value) { if (workloadBuilder_ == null) { @@ -684,8 +605,6 @@ public Builder setWorkload(com.google.cloud.assuredworkloads.v1.Workload value) return this; } /** - * - * *
      * Required. The workload to update.
      * The workload’s `name` field is used to identify the workload to be updated.
@@ -693,9 +612,7 @@ public Builder setWorkload(com.google.cloud.assuredworkloads.v1.Workload value)
      * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
      * 
* - * - * .google.cloud.assuredworkloads.v1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.assuredworkloads.v1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setWorkload( com.google.cloud.assuredworkloads.v1.Workload.Builder builderForValue) { @@ -709,8 +626,6 @@ public Builder setWorkload( return this; } /** - * - * *
      * Required. The workload to update.
      * The workload’s `name` field is used to identify the workload to be updated.
@@ -718,17 +633,13 @@ public Builder setWorkload(
      * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
      * 
* - * - * .google.cloud.assuredworkloads.v1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.assuredworkloads.v1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeWorkload(com.google.cloud.assuredworkloads.v1.Workload value) { if (workloadBuilder_ == null) { if (workload_ != null) { workload_ = - com.google.cloud.assuredworkloads.v1.Workload.newBuilder(workload_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.assuredworkloads.v1.Workload.newBuilder(workload_).mergeFrom(value).buildPartial(); } else { workload_ = value; } @@ -740,8 +651,6 @@ public Builder mergeWorkload(com.google.cloud.assuredworkloads.v1.Workload value return this; } /** - * - * *
      * Required. The workload to update.
      * The workload’s `name` field is used to identify the workload to be updated.
@@ -749,9 +658,7 @@ public Builder mergeWorkload(com.google.cloud.assuredworkloads.v1.Workload value
      * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
      * 
* - * - * .google.cloud.assuredworkloads.v1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.assuredworkloads.v1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearWorkload() { if (workloadBuilder_ == null) { @@ -765,8 +672,6 @@ public Builder clearWorkload() { return this; } /** - * - * *
      * Required. The workload to update.
      * The workload’s `name` field is used to identify the workload to be updated.
@@ -774,18 +679,14 @@ public Builder clearWorkload() {
      * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
      * 
* - * - * .google.cloud.assuredworkloads.v1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.assuredworkloads.v1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.assuredworkloads.v1.Workload.Builder getWorkloadBuilder() { - + onChanged(); return getWorkloadFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The workload to update.
      * The workload’s `name` field is used to identify the workload to be updated.
@@ -793,22 +694,17 @@ public com.google.cloud.assuredworkloads.v1.Workload.Builder getWorkloadBuilder(
      * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
      * 
* - * - * .google.cloud.assuredworkloads.v1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.assuredworkloads.v1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.assuredworkloads.v1.WorkloadOrBuilder getWorkloadOrBuilder() { if (workloadBuilder_ != null) { return workloadBuilder_.getMessageOrBuilder(); } else { - return workload_ == null - ? com.google.cloud.assuredworkloads.v1.Workload.getDefaultInstance() - : workload_; + return workload_ == null ? + com.google.cloud.assuredworkloads.v1.Workload.getDefaultInstance() : workload_; } } /** - * - * *
      * Required. The workload to update.
      * The workload’s `name` field is used to identify the workload to be updated.
@@ -816,22 +712,17 @@ public com.google.cloud.assuredworkloads.v1.WorkloadOrBuilder getWorkloadOrBuild
      * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
      * 
* - * - * .google.cloud.assuredworkloads.v1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.assuredworkloads.v1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.assuredworkloads.v1.Workload, - com.google.cloud.assuredworkloads.v1.Workload.Builder, - com.google.cloud.assuredworkloads.v1.WorkloadOrBuilder> + com.google.cloud.assuredworkloads.v1.Workload, com.google.cloud.assuredworkloads.v1.Workload.Builder, com.google.cloud.assuredworkloads.v1.WorkloadOrBuilder> getWorkloadFieldBuilder() { if (workloadBuilder_ == null) { - workloadBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.assuredworkloads.v1.Workload, - com.google.cloud.assuredworkloads.v1.Workload.Builder, - com.google.cloud.assuredworkloads.v1.WorkloadOrBuilder>( - getWorkload(), getParentForChildren(), isClean()); + workloadBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.assuredworkloads.v1.Workload, com.google.cloud.assuredworkloads.v1.Workload.Builder, com.google.cloud.assuredworkloads.v1.WorkloadOrBuilder>( + getWorkload(), + getParentForChildren(), + isClean()); workload_ = null; } return workloadBuilder_; @@ -839,55 +730,39 @@ public com.google.cloud.assuredworkloads.v1.WorkloadOrBuilder getWorkloadOrBuild private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
      * Required. The list of fields to be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
      * Required. The list of fields to be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * Required. The list of fields to be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -903,16 +778,14 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. The list of fields to be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); @@ -923,20 +796,17 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * Required. The list of fields to be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -948,14 +818,11 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. The list of fields to be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearUpdateMask() { if (updateMaskBuilder_ == null) { @@ -969,68 +836,55 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * Required. The list of fields to be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The list of fields to be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } } /** - * - * *
      * Required. The list of fields to be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); + updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), + getParentForChildren(), + isClean()); updateMask_ = null; } return updateMaskBuilder_; } - @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); } @@ -1040,12 +894,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.assuredworkloads.v1.UpdateWorkloadRequest) } // @@protoc_insertion_point(class_scope:google.cloud.assuredworkloads.v1.UpdateWorkloadRequest) private static final com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest(); } @@ -1054,16 +908,16 @@ public static com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateWorkloadRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateWorkloadRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateWorkloadRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateWorkloadRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1078,4 +932,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/UpdateWorkloadRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/UpdateWorkloadRequestOrBuilder.java similarity index 61% rename from proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/UpdateWorkloadRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/UpdateWorkloadRequestOrBuilder.java index 61ac3819..2eb7a975 100644 --- a/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/UpdateWorkloadRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/UpdateWorkloadRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/assuredworkloads/v1/assuredworkloads.proto package com.google.cloud.assuredworkloads.v1; -public interface UpdateWorkloadRequestOrBuilder - extends +public interface UpdateWorkloadRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.assuredworkloads.v1.UpdateWorkloadRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The workload to update.
    * The workload’s `name` field is used to identify the workload to be updated.
@@ -33,16 +15,11 @@ public interface UpdateWorkloadRequestOrBuilder
    * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
    * 
* - * - * .google.cloud.assuredworkloads.v1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.assuredworkloads.v1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the workload field is set. */ boolean hasWorkload(); /** - * - * *
    * Required. The workload to update.
    * The workload’s `name` field is used to identify the workload to be updated.
@@ -50,16 +27,11 @@ public interface UpdateWorkloadRequestOrBuilder
    * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
    * 
* - * - * .google.cloud.assuredworkloads.v1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.assuredworkloads.v1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The workload. */ com.google.cloud.assuredworkloads.v1.Workload getWorkload(); /** - * - * *
    * Required. The workload to update.
    * The workload’s `name` field is used to identify the workload to be updated.
@@ -67,47 +39,34 @@ public interface UpdateWorkloadRequestOrBuilder
    * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
    * 
* - * - * .google.cloud.assuredworkloads.v1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.assuredworkloads.v1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.assuredworkloads.v1.WorkloadOrBuilder getWorkloadOrBuilder(); /** - * - * *
    * Required. The list of fields to be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * Required. The list of fields to be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * Required. The list of fields to be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); } diff --git a/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/Workload.java b/owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/Workload.java similarity index 67% rename from proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/Workload.java rename to owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/Workload.java index 53bc6a1f..9c139c33 100644 --- a/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/Workload.java +++ b/owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/Workload.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/assuredworkloads/v1/assuredworkloads.proto package com.google.cloud.assuredworkloads.v1; /** - * - * *
  * An Workload object for managing highly regulated workloads of cloud
  * customers.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.assuredworkloads.v1.Workload}
  */
-public final class Workload extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Workload extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.assuredworkloads.v1.Workload)
     WorkloadOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Workload.newBuilder() to construct.
   private Workload(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private Workload() {
     name_ = "";
     displayName_ = "";
@@ -52,15 +34,16 @@ private Workload() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Workload();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private Workload(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -80,158 +63,130 @@ private Workload(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
+            name_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            displayName_ = s;
+            break;
+          }
+          case 26: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              resources_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            resources_.add(
+                input.readMessage(com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.parser(), extensionRegistry));
+            break;
+          }
+          case 32: {
+            int rawValue = input.readEnum();
 
-              displayName_ = s;
-              break;
+            complianceRegime_ = rawValue;
+            break;
+          }
+          case 42: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (createTime_ != null) {
+              subBuilder = createTime_.toBuilder();
             }
-          case 26:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                resources_ =
-                    new java.util.ArrayList<
-                        com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo>();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              resources_.add(
-                  input.readMessage(
-                      com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.parser(),
-                      extensionRegistry));
-              break;
+            createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(createTime_);
+              createTime_ = subBuilder.buildPartial();
             }
-          case 32:
-            {
-              int rawValue = input.readEnum();
 
-              complianceRegime_ = rawValue;
-              break;
-            }
-          case 42:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (createTime_ != null) {
-                subBuilder = createTime_.toBuilder();
-              }
-              createTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(createTime_);
-                createTime_ = subBuilder.buildPartial();
-              }
+            break;
+          }
+          case 50: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              break;
-            }
-          case 50:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            billingAccount_ = s;
+            break;
+          }
+          case 74: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              billingAccount_ = s;
-              break;
+            etag_ = s;
+            break;
+          }
+          case 82: {
+            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+              labels_ = com.google.protobuf.MapField.newMapField(
+                  LabelsDefaultEntryHolder.defaultEntry);
+              mutable_bitField0_ |= 0x00000002;
             }
-          case 74:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            com.google.protobuf.MapEntry
+            labels__ = input.readMessage(
+                LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+            labels_.getMutableMap().put(
+                labels__.getKey(), labels__.getValue());
+            break;
+          }
+          case 106: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              etag_ = s;
-              break;
+            provisionedResourcesParent_ = s;
+            break;
+          }
+          case 114: {
+            com.google.cloud.assuredworkloads.v1.Workload.KMSSettings.Builder subBuilder = null;
+            if (kmsSettings_ != null) {
+              subBuilder = kmsSettings_.toBuilder();
             }
-          case 82:
-            {
-              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-                labels_ =
-                    com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
-                mutable_bitField0_ |= 0x00000002;
-              }
-              com.google.protobuf.MapEntry labels__ =
-                  input.readMessage(
-                      LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              labels_.getMutableMap().put(labels__.getKey(), labels__.getValue());
-              break;
+            kmsSettings_ = input.readMessage(com.google.cloud.assuredworkloads.v1.Workload.KMSSettings.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(kmsSettings_);
+              kmsSettings_ = subBuilder.buildPartial();
             }
-          case 106:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
 
-              provisionedResourcesParent_ = s;
-              break;
+            break;
+          }
+          case 122: {
+            if (!((mutable_bitField0_ & 0x00000004) != 0)) {
+              resourceSettings_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000004;
             }
-          case 114:
-            {
-              com.google.cloud.assuredworkloads.v1.Workload.KMSSettings.Builder subBuilder = null;
-              if (kmsSettings_ != null) {
-                subBuilder = kmsSettings_.toBuilder();
-              }
-              kmsSettings_ =
-                  input.readMessage(
-                      com.google.cloud.assuredworkloads.v1.Workload.KMSSettings.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(kmsSettings_);
-                kmsSettings_ = subBuilder.buildPartial();
-              }
+            resourceSettings_.add(
+                input.readMessage(com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings.parser(), extensionRegistry));
+            break;
+          }
+          case 136: {
+            int rawValue = input.readEnum();
 
-              break;
-            }
-          case 122:
-            {
-              if (!((mutable_bitField0_ & 0x00000004) != 0)) {
-                resourceSettings_ =
-                    new java.util.ArrayList<
-                        com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings>();
-                mutable_bitField0_ |= 0x00000004;
-              }
-              resourceSettings_.add(
-                  input.readMessage(
-                      com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings.parser(),
-                      extensionRegistry));
-              break;
-            }
-          case 136:
-            {
-              int rawValue = input.readEnum();
+            kajEnrollmentState_ = rawValue;
+            break;
+          }
+          case 144: {
 
-              kajEnrollmentState_ = rawValue;
-              break;
+            enableSovereignControls_ = input.readBool();
+            break;
+          }
+          case 162: {
+            com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.Builder subBuilder = null;
+            if (saaEnrollmentResponse_ != null) {
+              subBuilder = saaEnrollmentResponse_.toBuilder();
             }
-          case 144:
-            {
-              enableSovereignControls_ = input.readBool();
-              break;
+            saaEnrollmentResponse_ = input.readMessage(com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(saaEnrollmentResponse_);
+              saaEnrollmentResponse_ = subBuilder.buildPartial();
             }
-          case 162:
-            {
-              com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.Builder
-                  subBuilder = null;
-              if (saaEnrollmentResponse_ != null) {
-                subBuilder = saaEnrollmentResponse_.toBuilder();
-              }
-              saaEnrollmentResponse_ =
-                  input.readMessage(
-                      com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(saaEnrollmentResponse_);
-                saaEnrollmentResponse_ = subBuilder.buildPartial();
-              }
 
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -239,7 +194,8 @@ private Workload(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         resources_ = java.util.Collections.unmodifiableList(resources_);
@@ -251,46 +207,41 @@ private Workload(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto
-        .internal_static_google_cloud_assuredworkloads_v1_Workload_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_Workload_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 10:
         return internalGetLabels();
       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.assuredworkloads.v1.AssuredworkloadsProto
-        .internal_static_google_cloud_assuredworkloads_v1_Workload_fieldAccessorTable
+    return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_Workload_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.assuredworkloads.v1.Workload.class,
-            com.google.cloud.assuredworkloads.v1.Workload.Builder.class);
+            com.google.cloud.assuredworkloads.v1.Workload.class, com.google.cloud.assuredworkloads.v1.Workload.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * Supported Compliance Regimes.
    * 
* * Protobuf enum {@code google.cloud.assuredworkloads.v1.Workload.ComplianceRegime} */ - public enum ComplianceRegime implements com.google.protobuf.ProtocolMessageEnum { + public enum ComplianceRegime + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Unknown compliance regime.
      * 
@@ -299,8 +250,6 @@ public enum ComplianceRegime implements com.google.protobuf.ProtocolMessageEnum */ COMPLIANCE_REGIME_UNSPECIFIED(0), /** - * - * *
      * Information protection as per DoD IL4 requirements.
      * 
@@ -309,8 +258,6 @@ public enum ComplianceRegime implements com.google.protobuf.ProtocolMessageEnum */ IL4(1), /** - * - * *
      * Criminal Justice Information Services (CJIS) Security policies.
      * 
@@ -319,8 +266,6 @@ public enum ComplianceRegime implements com.google.protobuf.ProtocolMessageEnum */ CJIS(2), /** - * - * *
      * FedRAMP High data protection controls
      * 
@@ -329,8 +274,6 @@ public enum ComplianceRegime implements com.google.protobuf.ProtocolMessageEnum */ FEDRAMP_HIGH(3), /** - * - * *
      * FedRAMP Moderate data protection controls
      * 
@@ -339,8 +282,6 @@ public enum ComplianceRegime implements com.google.protobuf.ProtocolMessageEnum */ FEDRAMP_MODERATE(4), /** - * - * *
      * Assured Workloads For US Regions data protection controls
      * 
@@ -349,8 +290,6 @@ public enum ComplianceRegime implements com.google.protobuf.ProtocolMessageEnum */ US_REGIONAL_ACCESS(5), /** - * - * *
      * Health Insurance Portability and Accountability Act controls
      * 
@@ -359,8 +298,6 @@ public enum ComplianceRegime implements com.google.protobuf.ProtocolMessageEnum */ HIPAA(6), /** - * - * *
      * Health Information Trust Alliance controls
      * 
@@ -369,8 +306,6 @@ public enum ComplianceRegime implements com.google.protobuf.ProtocolMessageEnum */ HITRUST(7), /** - * - * *
      * Assured Workloads For EU Regions and Support controls
      * 
@@ -379,8 +314,6 @@ public enum ComplianceRegime implements com.google.protobuf.ProtocolMessageEnum */ EU_REGIONS_AND_SUPPORT(8), /** - * - * *
      * Assured Workloads For Canada Regions and Support controls
      * 
@@ -392,8 +325,6 @@ public enum ComplianceRegime implements com.google.protobuf.ProtocolMessageEnum ; /** - * - * *
      * Unknown compliance regime.
      * 
@@ -402,8 +333,6 @@ public enum ComplianceRegime implements com.google.protobuf.ProtocolMessageEnum */ public static final int COMPLIANCE_REGIME_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Information protection as per DoD IL4 requirements.
      * 
@@ -412,8 +341,6 @@ public enum ComplianceRegime implements com.google.protobuf.ProtocolMessageEnum */ public static final int IL4_VALUE = 1; /** - * - * *
      * Criminal Justice Information Services (CJIS) Security policies.
      * 
@@ -422,8 +349,6 @@ public enum ComplianceRegime implements com.google.protobuf.ProtocolMessageEnum */ public static final int CJIS_VALUE = 2; /** - * - * *
      * FedRAMP High data protection controls
      * 
@@ -432,8 +357,6 @@ public enum ComplianceRegime implements com.google.protobuf.ProtocolMessageEnum */ public static final int FEDRAMP_HIGH_VALUE = 3; /** - * - * *
      * FedRAMP Moderate data protection controls
      * 
@@ -442,8 +365,6 @@ public enum ComplianceRegime implements com.google.protobuf.ProtocolMessageEnum */ public static final int FEDRAMP_MODERATE_VALUE = 4; /** - * - * *
      * Assured Workloads For US Regions data protection controls
      * 
@@ -452,8 +373,6 @@ public enum ComplianceRegime implements com.google.protobuf.ProtocolMessageEnum */ public static final int US_REGIONAL_ACCESS_VALUE = 5; /** - * - * *
      * Health Insurance Portability and Accountability Act controls
      * 
@@ -462,8 +381,6 @@ public enum ComplianceRegime implements com.google.protobuf.ProtocolMessageEnum */ public static final int HIPAA_VALUE = 6; /** - * - * *
      * Health Information Trust Alliance controls
      * 
@@ -472,8 +389,6 @@ public enum ComplianceRegime implements com.google.protobuf.ProtocolMessageEnum */ public static final int HITRUST_VALUE = 7; /** - * - * *
      * Assured Workloads For EU Regions and Support controls
      * 
@@ -482,8 +397,6 @@ public enum ComplianceRegime implements com.google.protobuf.ProtocolMessageEnum */ public static final int EU_REGIONS_AND_SUPPORT_VALUE = 8; /** - * - * *
      * Assured Workloads For Canada Regions and Support controls
      * 
@@ -492,6 +405,7 @@ public enum ComplianceRegime implements com.google.protobuf.ProtocolMessageEnum */ public static final int CA_REGIONS_AND_SUPPORT_VALUE = 9; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -516,56 +430,46 @@ public static ComplianceRegime valueOf(int value) { */ public static ComplianceRegime forNumber(int value) { switch (value) { - case 0: - return COMPLIANCE_REGIME_UNSPECIFIED; - case 1: - return IL4; - case 2: - return CJIS; - case 3: - return FEDRAMP_HIGH; - case 4: - return FEDRAMP_MODERATE; - case 5: - return US_REGIONAL_ACCESS; - case 6: - return HIPAA; - case 7: - return HITRUST; - case 8: - return EU_REGIONS_AND_SUPPORT; - case 9: - return CA_REGIONS_AND_SUPPORT; - default: - return null; + case 0: return COMPLIANCE_REGIME_UNSPECIFIED; + case 1: return IL4; + case 2: return CJIS; + case 3: return FEDRAMP_HIGH; + case 4: return FEDRAMP_MODERATE; + case 5: return US_REGIONAL_ACCESS; + case 6: return HIPAA; + case 7: return HITRUST; + case 8: return EU_REGIONS_AND_SUPPORT; + case 9: return CA_REGIONS_AND_SUPPORT; + 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< + ComplianceRegime> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ComplianceRegime findValueByNumber(int number) { + return ComplianceRegime.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ComplianceRegime findValueByNumber(int number) { - return ComplianceRegime.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.assuredworkloads.v1.Workload.getDescriptor().getEnumTypes().get(0); } @@ -574,7 +478,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor public static ComplianceRegime 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; @@ -592,18 +497,15 @@ private ComplianceRegime(int value) { } /** - * - * *
    * Key Access Justifications(KAJ) Enrollment State.
    * 
* * Protobuf enum {@code google.cloud.assuredworkloads.v1.Workload.KajEnrollmentState} */ - public enum KajEnrollmentState implements com.google.protobuf.ProtocolMessageEnum { + public enum KajEnrollmentState + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Default State for KAJ Enrollment.
      * 
@@ -612,8 +514,6 @@ public enum KajEnrollmentState implements com.google.protobuf.ProtocolMessageEnu */ KAJ_ENROLLMENT_STATE_UNSPECIFIED(0), /** - * - * *
      * Pending State for KAJ Enrollment.
      * 
@@ -622,8 +522,6 @@ public enum KajEnrollmentState implements com.google.protobuf.ProtocolMessageEnu */ KAJ_ENROLLMENT_STATE_PENDING(1), /** - * - * *
      * Complete State for KAJ Enrollment.
      * 
@@ -635,8 +533,6 @@ public enum KajEnrollmentState implements com.google.protobuf.ProtocolMessageEnu ; /** - * - * *
      * Default State for KAJ Enrollment.
      * 
@@ -645,8 +541,6 @@ public enum KajEnrollmentState implements com.google.protobuf.ProtocolMessageEnu */ public static final int KAJ_ENROLLMENT_STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Pending State for KAJ Enrollment.
      * 
@@ -655,8 +549,6 @@ public enum KajEnrollmentState implements com.google.protobuf.ProtocolMessageEnu */ public static final int KAJ_ENROLLMENT_STATE_PENDING_VALUE = 1; /** - * - * *
      * Complete State for KAJ Enrollment.
      * 
@@ -665,6 +557,7 @@ public enum KajEnrollmentState implements com.google.protobuf.ProtocolMessageEnu */ public static final int KAJ_ENROLLMENT_STATE_COMPLETE_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -689,14 +582,10 @@ public static KajEnrollmentState valueOf(int value) { */ public static KajEnrollmentState forNumber(int value) { switch (value) { - case 0: - return KAJ_ENROLLMENT_STATE_UNSPECIFIED; - case 1: - return KAJ_ENROLLMENT_STATE_PENDING; - case 2: - return KAJ_ENROLLMENT_STATE_COMPLETE; - default: - return null; + case 0: return KAJ_ENROLLMENT_STATE_UNSPECIFIED; + case 1: return KAJ_ENROLLMENT_STATE_PENDING; + case 2: return KAJ_ENROLLMENT_STATE_COMPLETE; + default: return null; } } @@ -704,28 +593,28 @@ public static KajEnrollmentState forNumber(int value) { internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + KajEnrollmentState> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public KajEnrollmentState findValueByNumber(int number) { + return KajEnrollmentState.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public KajEnrollmentState findValueByNumber(int number) { - return KajEnrollmentState.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.assuredworkloads.v1.Workload.getDescriptor().getEnumTypes().get(1); } @@ -734,7 +623,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor public static KajEnrollmentState 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; @@ -751,86 +641,72 @@ private KajEnrollmentState(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.assuredworkloads.v1.Workload.KajEnrollmentState) } - public interface ResourceInfoOrBuilder - extends + public interface ResourceInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.assuredworkloads.v1.Workload.ResourceInfo) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Resource identifier.
      * For a project this represents project_number.
      * 
* * int64 resource_id = 1; - * * @return The resourceId. */ long getResourceId(); /** - * - * *
      * Indicates the type of resource.
      * 
* - * .google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType resource_type = 2; - * - * + * .google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType resource_type = 2; * @return The enum numeric value on the wire for resourceType. */ int getResourceTypeValue(); /** - * - * *
      * Indicates the type of resource.
      * 
* - * .google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType resource_type = 2; - * - * + * .google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType resource_type = 2; * @return The resourceType. */ com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType getResourceType(); } /** - * - * *
    * Represent the resources that are children of this Workload.
    * 
* * Protobuf type {@code google.cloud.assuredworkloads.v1.Workload.ResourceInfo} */ - public static final class ResourceInfo extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class ResourceInfo extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.assuredworkloads.v1.Workload.ResourceInfo) ResourceInfoOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ResourceInfo.newBuilder() to construct. private ResourceInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ResourceInfo() { resourceType_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ResourceInfo(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ResourceInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -849,25 +725,24 @@ private ResourceInfo( case 0: done = true; break; - case 8: - { - resourceId_ = input.readInt64(); - break; - } - case 16: - { - int rawValue = input.readEnum(); + case 8: { - resourceType_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + resourceId_ = input.readInt64(); + break; + } + case 16: { + int rawValue = input.readEnum(); + + resourceType_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -875,41 +750,36 @@ private ResourceInfo( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1_Workload_ResourceInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_Workload_ResourceInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1_Workload_ResourceInfo_fieldAccessorTable + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_Workload_ResourceInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.class, - com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.Builder.class); + com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.class, com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.Builder.class); } /** - * - * *
      * The type of resource.
      * 
* * Protobuf enum {@code google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType} */ - public enum ResourceType implements com.google.protobuf.ProtocolMessageEnum { + public enum ResourceType + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
        * Unknown resource type.
        * 
@@ -918,8 +788,6 @@ public enum ResourceType implements com.google.protobuf.ProtocolMessageEnum { */ RESOURCE_TYPE_UNSPECIFIED(0), /** - * - * *
        * Consumer project.
        * 
@@ -928,8 +796,6 @@ public enum ResourceType implements com.google.protobuf.ProtocolMessageEnum { */ CONSUMER_PROJECT(1), /** - * - * *
        * Consumer project containing encryption keys.
        * 
@@ -938,8 +804,6 @@ public enum ResourceType implements com.google.protobuf.ProtocolMessageEnum { */ ENCRYPTION_KEYS_PROJECT(2), /** - * - * *
        * Keyring resource that hosts encryption keys.
        * 
@@ -951,8 +815,6 @@ public enum ResourceType implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
        * Unknown resource type.
        * 
@@ -961,8 +823,6 @@ public enum ResourceType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RESOURCE_TYPE_UNSPECIFIED_VALUE = 0; /** - * - * *
        * Consumer project.
        * 
@@ -971,8 +831,6 @@ public enum ResourceType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CONSUMER_PROJECT_VALUE = 1; /** - * - * *
        * Consumer project containing encryption keys.
        * 
@@ -981,8 +839,6 @@ public enum ResourceType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ENCRYPTION_KEYS_PROJECT_VALUE = 2; /** - * - * *
        * Keyring resource that hosts encryption keys.
        * 
@@ -991,6 +847,7 @@ public enum ResourceType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int KEYRING_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -1015,53 +872,50 @@ public static ResourceType valueOf(int value) { */ public static ResourceType forNumber(int value) { switch (value) { - case 0: - return RESOURCE_TYPE_UNSPECIFIED; - case 1: - return CONSUMER_PROJECT; - case 2: - return ENCRYPTION_KEYS_PROJECT; - case 3: - return KEYRING; - default: - return null; + case 0: return RESOURCE_TYPE_UNSPECIFIED; + case 1: return CONSUMER_PROJECT; + case 2: return ENCRYPTION_KEYS_PROJECT; + case 3: return KEYRING; + 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< + ResourceType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ResourceType findValueByNumber(int number) { + return ResourceType.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ResourceType findValueByNumber(int number) { - return ResourceType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.getDescriptor().getEnumTypes().get(0); } private static final ResourceType[] VALUES = values(); - public static ResourceType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static ResourceType 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; @@ -1081,15 +935,12 @@ private ResourceType(int value) { public static final int RESOURCE_ID_FIELD_NUMBER = 1; private long resourceId_; /** - * - * *
      * Resource identifier.
      * For a project this represents project_number.
      * 
* * int64 resource_id = 1; - * * @return The resourceId. */ @java.lang.Override @@ -1100,47 +951,31 @@ public long getResourceId() { public static final int RESOURCE_TYPE_FIELD_NUMBER = 2; private int resourceType_; /** - * - * *
      * Indicates the type of resource.
      * 
* - * .google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType resource_type = 2; - * - * + * .google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType resource_type = 2; * @return The enum numeric value on the wire for resourceType. */ - @java.lang.Override - public int getResourceTypeValue() { + @java.lang.Override public int getResourceTypeValue() { return resourceType_; } /** - * - * *
      * Indicates the type of resource.
      * 
* - * .google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType resource_type = 2; - * - * + * .google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType resource_type = 2; * @return The resourceType. */ - @java.lang.Override - public com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType - getResourceType() { + @java.lang.Override public com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType getResourceType() { @SuppressWarnings("deprecation") - com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType result = - com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType.valueOf( - resourceType_); - return result == null - ? com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType.UNRECOGNIZED - : result; + com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType result = com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType.valueOf(resourceType_); + return result == null ? com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1152,14 +987,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 (resourceId_ != 0L) { output.writeInt64(1, resourceId_); } - if (resourceType_ - != com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType - .RESOURCE_TYPE_UNSPECIFIED - .getNumber()) { + if (resourceType_ != com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType.RESOURCE_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(2, resourceType_); } unknownFields.writeTo(output); @@ -1172,13 +1005,12 @@ public int getSerializedSize() { size = 0; if (resourceId_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, resourceId_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, resourceId_); } - if (resourceType_ - != com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType - .RESOURCE_TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, resourceType_); + if (resourceType_ != com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType.RESOURCE_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, resourceType_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1188,15 +1020,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.assuredworkloads.v1.Workload.ResourceInfo)) { return super.equals(obj); } - com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo other = - (com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo) obj; + com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo other = (com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo) obj; - if (getResourceId() != other.getResourceId()) return false; + if (getResourceId() + != other.getResourceId()) return false; if (resourceType_ != other.resourceType_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -1210,7 +1042,8 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + RESOURCE_ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getResourceId()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getResourceId()); hash = (37 * hash) + RESOURCE_TYPE_FIELD_NUMBER; hash = (53 * hash) + resourceType_; hash = (29 * hash) + unknownFields.hashCode(); @@ -1219,94 +1052,87 @@ public int hashCode() { } public static com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo 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.assuredworkloads.v1.Workload.ResourceInfo 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.assuredworkloads.v1.Workload.ResourceInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo 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.assuredworkloads.v1.Workload.ResourceInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo 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.assuredworkloads.v1.Workload.ResourceInfo parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo 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.assuredworkloads.v1.Workload.ResourceInfo parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo 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.assuredworkloads.v1.Workload.ResourceInfo 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.assuredworkloads.v1.Workload.ResourceInfo 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.assuredworkloads.v1.Workload.ResourceInfo prototype) { + public static Builder newBuilder(com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo 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 @@ -1316,32 +1142,27 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Represent the resources that are children of this Workload.
      * 
* * Protobuf type {@code google.cloud.assuredworkloads.v1.Workload.ResourceInfo} */ - 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.assuredworkloads.v1.Workload.ResourceInfo) com.google.cloud.assuredworkloads.v1.Workload.ResourceInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1_Workload_ResourceInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_Workload_ResourceInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1_Workload_ResourceInfo_fieldAccessorTable + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_Workload_ResourceInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.class, - com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.Builder.class); + com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.class, com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.Builder.class); } // Construct using com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.newBuilder() @@ -1349,15 +1170,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1369,14 +1191,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1_Workload_ResourceInfo_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_Workload_ResourceInfo_descriptor; } @java.lang.Override - public com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo - getDefaultInstanceForType() { + public com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo getDefaultInstanceForType() { return com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.getDefaultInstance(); } @@ -1391,8 +1212,7 @@ public com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo build() { @java.lang.Override public com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo buildPartial() { - com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo result = - new com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo(this); + com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo result = new com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo(this); result.resourceId_ = resourceId_; result.resourceType_ = resourceType_; onBuilt(); @@ -1403,41 +1223,38 @@ public com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + 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.assuredworkloads.v1.Workload.ResourceInfo) { - return mergeFrom((com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo) other); + return mergeFrom((com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo)other); } else { super.mergeFrom(other); return this; @@ -1445,9 +1262,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo other) { - if (other - == com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.getDefaultInstance()) - return this; + if (other == com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.getDefaultInstance()) return this; if (other.getResourceId() != 0L) { setResourceId(other.getResourceId()); } @@ -1473,8 +1288,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1484,17 +1298,14 @@ public Builder mergeFrom( return this; } - private long resourceId_; + private long resourceId_ ; /** - * - * *
        * Resource identifier.
        * For a project this represents project_number.
        * 
* * int64 resource_id = 1; - * * @return The resourceId. */ @java.lang.Override @@ -1502,38 +1313,32 @@ public long getResourceId() { return resourceId_; } /** - * - * *
        * Resource identifier.
        * For a project this represents project_number.
        * 
* * int64 resource_id = 1; - * * @param value The resourceId to set. * @return This builder for chaining. */ public Builder setResourceId(long value) { - + resourceId_ = value; onChanged(); return this; } /** - * - * *
        * Resource identifier.
        * For a project this represents project_number.
        * 
* * int64 resource_id = 1; - * * @return This builder for chaining. */ public Builder clearResourceId() { - + resourceId_ = 0L; onChanged(); return this; @@ -1541,110 +1346,77 @@ public Builder clearResourceId() { private int resourceType_ = 0; /** - * - * *
        * Indicates the type of resource.
        * 
* - * - * .google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType resource_type = 2; - * - * + * .google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType resource_type = 2; * @return The enum numeric value on the wire for resourceType. */ - @java.lang.Override - public int getResourceTypeValue() { + @java.lang.Override public int getResourceTypeValue() { return resourceType_; } /** - * - * *
        * Indicates the type of resource.
        * 
* - * - * .google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType resource_type = 2; - * - * + * .google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType resource_type = 2; * @param value The enum numeric value on the wire for resourceType to set. * @return This builder for chaining. */ public Builder setResourceTypeValue(int value) { - + resourceType_ = value; onChanged(); return this; } /** - * - * *
        * Indicates the type of resource.
        * 
* - * - * .google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType resource_type = 2; - * - * + * .google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType resource_type = 2; * @return The resourceType. */ @java.lang.Override - public com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType - getResourceType() { + public com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType getResourceType() { @SuppressWarnings("deprecation") - com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType result = - com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType.valueOf( - resourceType_); - return result == null - ? com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType.UNRECOGNIZED - : result; + com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType result = com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType.valueOf(resourceType_); + return result == null ? com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType.UNRECOGNIZED : result; } /** - * - * *
        * Indicates the type of resource.
        * 
* - * - * .google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType resource_type = 2; - * - * + * .google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType resource_type = 2; * @param value The resourceType to set. * @return This builder for chaining. */ - public Builder setResourceType( - com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType value) { + public Builder setResourceType(com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType value) { if (value == null) { throw new NullPointerException(); } - + resourceType_ = value.getNumber(); onChanged(); return this; } /** - * - * *
        * Indicates the type of resource.
        * 
* - * - * .google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType resource_type = 2; - * - * + * .google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType resource_type = 2; * @return This builder for chaining. */ public Builder clearResourceType() { - + resourceType_ = 0; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1657,13 +1429,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.assuredworkloads.v1.Workload.ResourceInfo) } // @@protoc_insertion_point(class_scope:google.cloud.assuredworkloads.v1.Workload.ResourceInfo) - private static final com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo - DEFAULT_INSTANCE; - + private static final com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo(); } @@ -1672,16 +1443,16 @@ public static com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ResourceInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ResourceInfo(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResourceInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ResourceInfo(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1696,139 +1467,110 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface KMSSettingsOrBuilder - extends + public interface KMSSettingsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.assuredworkloads.v1.Workload.KMSSettings) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Required. Input only. Immutable. The time at which the Key Management
      * Service will automatically create a new version of the crypto key and
      * mark it as the primary.
      * 
* - * - * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; * @return Whether the nextRotationTime field is set. */ boolean hasNextRotationTime(); /** - * - * *
      * Required. Input only. Immutable. The time at which the Key Management
      * Service will automatically create a new version of the crypto key and
      * mark it as the primary.
      * 
* - * - * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; * @return The nextRotationTime. */ com.google.protobuf.Timestamp getNextRotationTime(); /** - * - * *
      * Required. Input only. Immutable. The time at which the Key Management
      * Service will automatically create a new version of the crypto key and
      * mark it as the primary.
      * 
* - * - * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ com.google.protobuf.TimestampOrBuilder getNextRotationTimeOrBuilder(); /** - * - * *
      * Required. Input only. Immutable. [next_rotation_time] will be advanced by
      * this period when the Key Management Service automatically rotates a key.
      * Must be at least 24 hours and at most 876,000 hours.
      * 
* - * - * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; * @return Whether the rotationPeriod field is set. */ boolean hasRotationPeriod(); /** - * - * *
      * Required. Input only. Immutable. [next_rotation_time] will be advanced by
      * this period when the Key Management Service automatically rotates a key.
      * Must be at least 24 hours and at most 876,000 hours.
      * 
* - * - * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; * @return The rotationPeriod. */ com.google.protobuf.Duration getRotationPeriod(); /** - * - * *
      * Required. Input only. Immutable. [next_rotation_time] will be advanced by
      * this period when the Key Management Service automatically rotates a key.
      * Must be at least 24 hours and at most 876,000 hours.
      * 
* - * - * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ com.google.protobuf.DurationOrBuilder getRotationPeriodOrBuilder(); } /** - * - * *
    * Settings specific to the Key Management Service.
    * 
* * Protobuf type {@code google.cloud.assuredworkloads.v1.Workload.KMSSettings} */ - public static final class KMSSettings extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class KMSSettings extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.assuredworkloads.v1.Workload.KMSSettings) KMSSettingsOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use KMSSettings.newBuilder() to construct. private KMSSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private KMSSettings() {} + private KMSSettings() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new KMSSettings(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private KMSSettings( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1847,43 +1589,39 @@ private KMSSettings( case 0: done = true; break; - case 10: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (nextRotationTime_ != null) { - subBuilder = nextRotationTime_.toBuilder(); - } - nextRotationTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(nextRotationTime_); - nextRotationTime_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (nextRotationTime_ != null) { + subBuilder = nextRotationTime_.toBuilder(); + } + nextRotationTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(nextRotationTime_); + nextRotationTime_ = subBuilder.buildPartial(); } - case 18: - { - com.google.protobuf.Duration.Builder subBuilder = null; - if (rotationPeriod_ != null) { - subBuilder = rotationPeriod_.toBuilder(); - } - rotationPeriod_ = - input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(rotationPeriod_); - rotationPeriod_ = subBuilder.buildPartial(); - } - break; + break; + } + case 18: { + com.google.protobuf.Duration.Builder subBuilder = null; + if (rotationPeriod_ != null) { + subBuilder = rotationPeriod_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + rotationPeriod_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(rotationPeriod_); + rotationPeriod_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1891,43 +1629,36 @@ private KMSSettings( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1_Workload_KMSSettings_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_Workload_KMSSettings_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1_Workload_KMSSettings_fieldAccessorTable + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_Workload_KMSSettings_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.assuredworkloads.v1.Workload.KMSSettings.class, - com.google.cloud.assuredworkloads.v1.Workload.KMSSettings.Builder.class); + com.google.cloud.assuredworkloads.v1.Workload.KMSSettings.class, com.google.cloud.assuredworkloads.v1.Workload.KMSSettings.Builder.class); } public static final int NEXT_ROTATION_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp nextRotationTime_; /** - * - * *
      * Required. Input only. Immutable. The time at which the Key Management
      * Service will automatically create a new version of the crypto key and
      * mark it as the primary.
      * 
* - * - * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; * @return Whether the nextRotationTime field is set. */ @java.lang.Override @@ -1935,38 +1666,27 @@ public boolean hasNextRotationTime() { return nextRotationTime_ != null; } /** - * - * *
      * Required. Input only. Immutable. The time at which the Key Management
      * Service will automatically create a new version of the crypto key and
      * mark it as the primary.
      * 
* - * - * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; * @return The nextRotationTime. */ @java.lang.Override public com.google.protobuf.Timestamp getNextRotationTime() { - return nextRotationTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : nextRotationTime_; + return nextRotationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : nextRotationTime_; } /** - * - * *
      * Required. Input only. Immutable. The time at which the Key Management
      * Service will automatically create a new version of the crypto key and
      * mark it as the primary.
      * 
* - * - * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getNextRotationTimeOrBuilder() { @@ -1976,18 +1696,13 @@ public com.google.protobuf.TimestampOrBuilder getNextRotationTimeOrBuilder() { public static final int ROTATION_PERIOD_FIELD_NUMBER = 2; private com.google.protobuf.Duration rotationPeriod_; /** - * - * *
      * Required. Input only. Immutable. [next_rotation_time] will be advanced by
      * this period when the Key Management Service automatically rotates a key.
      * Must be at least 24 hours and at most 876,000 hours.
      * 
* - * - * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; * @return Whether the rotationPeriod field is set. */ @java.lang.Override @@ -1995,38 +1710,27 @@ public boolean hasRotationPeriod() { return rotationPeriod_ != null; } /** - * - * *
      * Required. Input only. Immutable. [next_rotation_time] will be advanced by
      * this period when the Key Management Service automatically rotates a key.
      * Must be at least 24 hours and at most 876,000 hours.
      * 
* - * - * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; * @return The rotationPeriod. */ @java.lang.Override public com.google.protobuf.Duration getRotationPeriod() { - return rotationPeriod_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : rotationPeriod_; + return rotationPeriod_ == null ? com.google.protobuf.Duration.getDefaultInstance() : rotationPeriod_; } /** - * - * *
      * Required. Input only. Immutable. [next_rotation_time] will be advanced by
      * this period when the Key Management Service automatically rotates a key.
      * Must be at least 24 hours and at most 876,000 hours.
      * 
* - * - * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getRotationPeriodOrBuilder() { @@ -2034,7 +1738,6 @@ public com.google.protobuf.DurationOrBuilder getRotationPeriodOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2046,7 +1749,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 (nextRotationTime_ != null) { output.writeMessage(1, getNextRotationTime()); } @@ -2063,10 +1767,12 @@ public int getSerializedSize() { size = 0; if (nextRotationTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getNextRotationTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getNextRotationTime()); } if (rotationPeriod_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRotationPeriod()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getRotationPeriod()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2076,21 +1782,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.assuredworkloads.v1.Workload.KMSSettings)) { return super.equals(obj); } - com.google.cloud.assuredworkloads.v1.Workload.KMSSettings other = - (com.google.cloud.assuredworkloads.v1.Workload.KMSSettings) obj; + com.google.cloud.assuredworkloads.v1.Workload.KMSSettings other = (com.google.cloud.assuredworkloads.v1.Workload.KMSSettings) obj; if (hasNextRotationTime() != other.hasNextRotationTime()) return false; if (hasNextRotationTime()) { - if (!getNextRotationTime().equals(other.getNextRotationTime())) return false; + if (!getNextRotationTime() + .equals(other.getNextRotationTime())) return false; } if (hasRotationPeriod() != other.hasRotationPeriod()) return false; if (hasRotationPeriod()) { - if (!getRotationPeriod().equals(other.getRotationPeriod())) return false; + if (!getRotationPeriod() + .equals(other.getRotationPeriod())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -2117,94 +1824,87 @@ public int hashCode() { } public static com.google.cloud.assuredworkloads.v1.Workload.KMSSettings 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.assuredworkloads.v1.Workload.KMSSettings 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.assuredworkloads.v1.Workload.KMSSettings parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.assuredworkloads.v1.Workload.KMSSettings 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.assuredworkloads.v1.Workload.KMSSettings parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.assuredworkloads.v1.Workload.KMSSettings 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.assuredworkloads.v1.Workload.KMSSettings parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.assuredworkloads.v1.Workload.KMSSettings parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.assuredworkloads.v1.Workload.KMSSettings 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.assuredworkloads.v1.Workload.KMSSettings parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.assuredworkloads.v1.Workload.KMSSettings parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.assuredworkloads.v1.Workload.KMSSettings 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.assuredworkloads.v1.Workload.KMSSettings 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.assuredworkloads.v1.Workload.KMSSettings 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.assuredworkloads.v1.Workload.KMSSettings prototype) { + public static Builder newBuilder(com.google.cloud.assuredworkloads.v1.Workload.KMSSettings 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 @@ -2214,32 +1914,27 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Settings specific to the Key Management Service.
      * 
* * Protobuf type {@code google.cloud.assuredworkloads.v1.Workload.KMSSettings} */ - 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.assuredworkloads.v1.Workload.KMSSettings) com.google.cloud.assuredworkloads.v1.Workload.KMSSettingsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1_Workload_KMSSettings_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_Workload_KMSSettings_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1_Workload_KMSSettings_fieldAccessorTable + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_Workload_KMSSettings_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.assuredworkloads.v1.Workload.KMSSettings.class, - com.google.cloud.assuredworkloads.v1.Workload.KMSSettings.Builder.class); + com.google.cloud.assuredworkloads.v1.Workload.KMSSettings.class, com.google.cloud.assuredworkloads.v1.Workload.KMSSettings.Builder.class); } // Construct using com.google.cloud.assuredworkloads.v1.Workload.KMSSettings.newBuilder() @@ -2247,15 +1942,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -2275,9 +1971,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1_Workload_KMSSettings_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_Workload_KMSSettings_descriptor; } @java.lang.Override @@ -2296,8 +1992,7 @@ public com.google.cloud.assuredworkloads.v1.Workload.KMSSettings build() { @java.lang.Override public com.google.cloud.assuredworkloads.v1.Workload.KMSSettings buildPartial() { - com.google.cloud.assuredworkloads.v1.Workload.KMSSettings result = - new com.google.cloud.assuredworkloads.v1.Workload.KMSSettings(this); + com.google.cloud.assuredworkloads.v1.Workload.KMSSettings result = new com.google.cloud.assuredworkloads.v1.Workload.KMSSettings(this); if (nextRotationTimeBuilder_ == null) { result.nextRotationTime_ = nextRotationTime_; } else { @@ -2316,41 +2011,38 @@ public com.google.cloud.assuredworkloads.v1.Workload.KMSSettings buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + 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.assuredworkloads.v1.Workload.KMSSettings) { - return mergeFrom((com.google.cloud.assuredworkloads.v1.Workload.KMSSettings) other); + return mergeFrom((com.google.cloud.assuredworkloads.v1.Workload.KMSSettings)other); } else { super.mergeFrom(other); return this; @@ -2358,8 +2050,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.assuredworkloads.v1.Workload.KMSSettings other) { - if (other == com.google.cloud.assuredworkloads.v1.Workload.KMSSettings.getDefaultInstance()) - return this; + if (other == com.google.cloud.assuredworkloads.v1.Workload.KMSSettings.getDefaultInstance()) return this; if (other.hasNextRotationTime()) { mergeNextRotationTime(other.getNextRotationTime()); } @@ -2385,8 +2076,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.assuredworkloads.v1.Workload.KMSSettings) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.assuredworkloads.v1.Workload.KMSSettings) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -2398,64 +2088,45 @@ public Builder mergeFrom( private com.google.protobuf.Timestamp nextRotationTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - nextRotationTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> nextRotationTimeBuilder_; /** - * - * *
        * Required. Input only. Immutable. The time at which the Key Management
        * Service will automatically create a new version of the crypto key and
        * mark it as the primary.
        * 
* - * - * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; * @return Whether the nextRotationTime field is set. */ public boolean hasNextRotationTime() { return nextRotationTimeBuilder_ != null || nextRotationTime_ != null; } /** - * - * *
        * Required. Input only. Immutable. The time at which the Key Management
        * Service will automatically create a new version of the crypto key and
        * mark it as the primary.
        * 
* - * - * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; * @return The nextRotationTime. */ public com.google.protobuf.Timestamp getNextRotationTime() { if (nextRotationTimeBuilder_ == null) { - return nextRotationTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : nextRotationTime_; + return nextRotationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : nextRotationTime_; } else { return nextRotationTimeBuilder_.getMessage(); } } /** - * - * *
        * Required. Input only. Immutable. The time at which the Key Management
        * Service will automatically create a new version of the crypto key and
        * mark it as the primary.
        * 
* - * - * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ public Builder setNextRotationTime(com.google.protobuf.Timestamp value) { if (nextRotationTimeBuilder_ == null) { @@ -2471,19 +2142,16 @@ public Builder setNextRotationTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
        * Required. Input only. Immutable. The time at which the Key Management
        * Service will automatically create a new version of the crypto key and
        * mark it as the primary.
        * 
* - * - * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ - public Builder setNextRotationTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setNextRotationTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (nextRotationTimeBuilder_ == null) { nextRotationTime_ = builderForValue.build(); onChanged(); @@ -2494,25 +2162,19 @@ public Builder setNextRotationTime(com.google.protobuf.Timestamp.Builder builder return this; } /** - * - * *
        * Required. Input only. Immutable. The time at which the Key Management
        * Service will automatically create a new version of the crypto key and
        * mark it as the primary.
        * 
* - * - * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ public Builder mergeNextRotationTime(com.google.protobuf.Timestamp value) { if (nextRotationTimeBuilder_ == null) { if (nextRotationTime_ != null) { nextRotationTime_ = - com.google.protobuf.Timestamp.newBuilder(nextRotationTime_) - .mergeFrom(value) - .buildPartial(); + com.google.protobuf.Timestamp.newBuilder(nextRotationTime_).mergeFrom(value).buildPartial(); } else { nextRotationTime_ = value; } @@ -2524,17 +2186,13 @@ public Builder mergeNextRotationTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
        * Required. Input only. Immutable. The time at which the Key Management
        * Service will automatically create a new version of the crypto key and
        * mark it as the primary.
        * 
* - * - * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ public Builder clearNextRotationTime() { if (nextRotationTimeBuilder_ == null) { @@ -2548,70 +2206,54 @@ public Builder clearNextRotationTime() { return this; } /** - * - * *
        * Required. Input only. Immutable. The time at which the Key Management
        * Service will automatically create a new version of the crypto key and
        * mark it as the primary.
        * 
* - * - * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ public com.google.protobuf.Timestamp.Builder getNextRotationTimeBuilder() { - + onChanged(); return getNextRotationTimeFieldBuilder().getBuilder(); } /** - * - * *
        * Required. Input only. Immutable. The time at which the Key Management
        * Service will automatically create a new version of the crypto key and
        * mark it as the primary.
        * 
* - * - * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ public com.google.protobuf.TimestampOrBuilder getNextRotationTimeOrBuilder() { if (nextRotationTimeBuilder_ != null) { return nextRotationTimeBuilder_.getMessageOrBuilder(); } else { - return nextRotationTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : nextRotationTime_; + return nextRotationTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : nextRotationTime_; } } /** - * - * *
        * Required. Input only. Immutable. The time at which the Key Management
        * Service will automatically create a new version of the crypto key and
        * mark it as the primary.
        * 
* - * - * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ 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> getNextRotationTimeFieldBuilder() { if (nextRotationTimeBuilder_ == null) { - nextRotationTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getNextRotationTime(), getParentForChildren(), isClean()); + nextRotationTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getNextRotationTime(), + getParentForChildren(), + isClean()); nextRotationTime_ = null; } return nextRotationTimeBuilder_; @@ -2619,64 +2261,45 @@ public com.google.protobuf.TimestampOrBuilder getNextRotationTimeOrBuilder() { private com.google.protobuf.Duration rotationPeriod_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - rotationPeriodBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> rotationPeriodBuilder_; /** - * - * *
        * Required. Input only. Immutable. [next_rotation_time] will be advanced by
        * this period when the Key Management Service automatically rotates a key.
        * Must be at least 24 hours and at most 876,000 hours.
        * 
* - * - * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; * @return Whether the rotationPeriod field is set. */ public boolean hasRotationPeriod() { return rotationPeriodBuilder_ != null || rotationPeriod_ != null; } /** - * - * *
        * Required. Input only. Immutable. [next_rotation_time] will be advanced by
        * this period when the Key Management Service automatically rotates a key.
        * Must be at least 24 hours and at most 876,000 hours.
        * 
* - * - * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; * @return The rotationPeriod. */ public com.google.protobuf.Duration getRotationPeriod() { if (rotationPeriodBuilder_ == null) { - return rotationPeriod_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : rotationPeriod_; + return rotationPeriod_ == null ? com.google.protobuf.Duration.getDefaultInstance() : rotationPeriod_; } else { return rotationPeriodBuilder_.getMessage(); } } /** - * - * *
        * Required. Input only. Immutable. [next_rotation_time] will be advanced by
        * this period when the Key Management Service automatically rotates a key.
        * Must be at least 24 hours and at most 876,000 hours.
        * 
* - * - * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ public Builder setRotationPeriod(com.google.protobuf.Duration value) { if (rotationPeriodBuilder_ == null) { @@ -2692,19 +2315,16 @@ public Builder setRotationPeriod(com.google.protobuf.Duration value) { return this; } /** - * - * *
        * Required. Input only. Immutable. [next_rotation_time] will be advanced by
        * this period when the Key Management Service automatically rotates a key.
        * Must be at least 24 hours and at most 876,000 hours.
        * 
* - * - * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ - public Builder setRotationPeriod(com.google.protobuf.Duration.Builder builderForValue) { + public Builder setRotationPeriod( + com.google.protobuf.Duration.Builder builderForValue) { if (rotationPeriodBuilder_ == null) { rotationPeriod_ = builderForValue.build(); onChanged(); @@ -2715,25 +2335,19 @@ public Builder setRotationPeriod(com.google.protobuf.Duration.Builder builderFor return this; } /** - * - * *
        * Required. Input only. Immutable. [next_rotation_time] will be advanced by
        * this period when the Key Management Service automatically rotates a key.
        * Must be at least 24 hours and at most 876,000 hours.
        * 
* - * - * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ public Builder mergeRotationPeriod(com.google.protobuf.Duration value) { if (rotationPeriodBuilder_ == null) { if (rotationPeriod_ != null) { rotationPeriod_ = - com.google.protobuf.Duration.newBuilder(rotationPeriod_) - .mergeFrom(value) - .buildPartial(); + com.google.protobuf.Duration.newBuilder(rotationPeriod_).mergeFrom(value).buildPartial(); } else { rotationPeriod_ = value; } @@ -2745,17 +2359,13 @@ public Builder mergeRotationPeriod(com.google.protobuf.Duration value) { return this; } /** - * - * *
        * Required. Input only. Immutable. [next_rotation_time] will be advanced by
        * this period when the Key Management Service automatically rotates a key.
        * Must be at least 24 hours and at most 876,000 hours.
        * 
* - * - * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ public Builder clearRotationPeriod() { if (rotationPeriodBuilder_ == null) { @@ -2769,75 +2379,58 @@ public Builder clearRotationPeriod() { return this; } /** - * - * *
        * Required. Input only. Immutable. [next_rotation_time] will be advanced by
        * this period when the Key Management Service automatically rotates a key.
        * Must be at least 24 hours and at most 876,000 hours.
        * 
* - * - * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ public com.google.protobuf.Duration.Builder getRotationPeriodBuilder() { - + onChanged(); return getRotationPeriodFieldBuilder().getBuilder(); } /** - * - * *
        * Required. Input only. Immutable. [next_rotation_time] will be advanced by
        * this period when the Key Management Service automatically rotates a key.
        * Must be at least 24 hours and at most 876,000 hours.
        * 
* - * - * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ public com.google.protobuf.DurationOrBuilder getRotationPeriodOrBuilder() { if (rotationPeriodBuilder_ != null) { return rotationPeriodBuilder_.getMessageOrBuilder(); } else { - return rotationPeriod_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : rotationPeriod_; + return rotationPeriod_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : rotationPeriod_; } } /** - * - * *
        * Required. Input only. Immutable. [next_rotation_time] will be advanced by
        * this period when the Key Management Service automatically rotates a key.
        * Must be at least 24 hours and at most 876,000 hours.
        * 
* - * - * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getRotationPeriodFieldBuilder() { if (rotationPeriodBuilder_ == null) { - rotationPeriodBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getRotationPeriod(), getParentForChildren(), isClean()); + rotationPeriodBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getRotationPeriod(), + getParentForChildren(), + isClean()); rotationPeriod_ = null; } return rotationPeriodBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2850,12 +2443,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.assuredworkloads.v1.Workload.KMSSettings) } // @@protoc_insertion_point(class_scope:google.cloud.assuredworkloads.v1.Workload.KMSSettings) private static final com.google.cloud.assuredworkloads.v1.Workload.KMSSettings DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.assuredworkloads.v1.Workload.KMSSettings(); } @@ -2864,16 +2457,16 @@ public static com.google.cloud.assuredworkloads.v1.Workload.KMSSettings getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public KMSSettings parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new KMSSettings(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public KMSSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new KMSSettings(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2888,16 +2481,14 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.assuredworkloads.v1.Workload.KMSSettings getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface ResourceSettingsOrBuilder - extends + public interface ResourceSettingsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.assuredworkloads.v1.Workload.ResourceSettings) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Resource identifier.
      * For a project this represents project_id. If the project is already
@@ -2905,13 +2496,10 @@ public interface ResourceSettingsOrBuilder
      * 
* * string resource_id = 1; - * * @return The resourceId. */ java.lang.String getResourceId(); /** - * - * *
      * Resource identifier.
      * For a project this represents project_id. If the project is already
@@ -2919,45 +2507,35 @@ public interface ResourceSettingsOrBuilder
      * 
* * string resource_id = 1; - * * @return The bytes for resourceId. */ - com.google.protobuf.ByteString getResourceIdBytes(); + com.google.protobuf.ByteString + getResourceIdBytes(); /** - * - * *
      * Indicates the type of resource. This field should be specified to
      * correspond the id to the right project type (CONSUMER_PROJECT or
      * ENCRYPTION_KEYS_PROJECT)
      * 
* - * .google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType resource_type = 2; - * - * + * .google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType resource_type = 2; * @return The enum numeric value on the wire for resourceType. */ int getResourceTypeValue(); /** - * - * *
      * Indicates the type of resource. This field should be specified to
      * correspond the id to the right project type (CONSUMER_PROJECT or
      * ENCRYPTION_KEYS_PROJECT)
      * 
* - * .google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType resource_type = 2; - * - * + * .google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType resource_type = 2; * @return The resourceType. */ com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType getResourceType(); /** - * - * *
      * User-assigned resource display name.
      * If not empty it will be used to create a resource with the specified
@@ -2965,13 +2543,10 @@ public interface ResourceSettingsOrBuilder
      * 
* * string display_name = 3; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
      * User-assigned resource display name.
      * If not empty it will be used to create a resource with the specified
@@ -2979,30 +2554,27 @@ public interface ResourceSettingsOrBuilder
      * 
* * string display_name = 3; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); } /** - * - * *
    * Represent the custom settings for the resources to be created.
    * 
* * Protobuf type {@code google.cloud.assuredworkloads.v1.Workload.ResourceSettings} */ - public static final class ResourceSettings extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class ResourceSettings extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.assuredworkloads.v1.Workload.ResourceSettings) ResourceSettingsOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ResourceSettings.newBuilder() to construct. private ResourceSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ResourceSettings() { resourceId_ = ""; resourceType_ = 0; @@ -3011,15 +2583,16 @@ private ResourceSettings() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ResourceSettings(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ResourceSettings( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -3038,34 +2611,31 @@ private ResourceSettings( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - resourceId_ = s; - break; - } - case 16: - { - int rawValue = input.readEnum(); + resourceId_ = s; + break; + } + case 16: { + int rawValue = input.readEnum(); - resourceType_ = rawValue; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + resourceType_ = rawValue; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - displayName_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + displayName_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -3073,33 +2643,29 @@ private ResourceSettings( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1_Workload_ResourceSettings_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_Workload_ResourceSettings_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1_Workload_ResourceSettings_fieldAccessorTable + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_Workload_ResourceSettings_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings.class, - com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings.Builder.class); + com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings.class, com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings.Builder.class); } public static final int RESOURCE_ID_FIELD_NUMBER = 1; private volatile java.lang.Object resourceId_; /** - * - * *
      * Resource identifier.
      * For a project this represents project_id. If the project is already
@@ -3107,7 +2673,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * 
* * string resource_id = 1; - * * @return The resourceId. */ @java.lang.Override @@ -3116,15 +2681,14 @@ public java.lang.String getResourceId() { 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(); resourceId_ = s; return s; } } /** - * - * *
      * Resource identifier.
      * For a project this represents project_id. If the project is already
@@ -3132,15 +2696,16 @@ public java.lang.String getResourceId() {
      * 
* * string resource_id = 1; - * * @return The bytes for resourceId. */ @java.lang.Override - public com.google.protobuf.ByteString getResourceIdBytes() { + public com.google.protobuf.ByteString + getResourceIdBytes() { java.lang.Object ref = resourceId_; 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); resourceId_ = b; return b; } else { @@ -3151,54 +2716,37 @@ public com.google.protobuf.ByteString getResourceIdBytes() { public static final int RESOURCE_TYPE_FIELD_NUMBER = 2; private int resourceType_; /** - * - * *
      * Indicates the type of resource. This field should be specified to
      * correspond the id to the right project type (CONSUMER_PROJECT or
      * ENCRYPTION_KEYS_PROJECT)
      * 
* - * .google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType resource_type = 2; - * - * + * .google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType resource_type = 2; * @return The enum numeric value on the wire for resourceType. */ - @java.lang.Override - public int getResourceTypeValue() { + @java.lang.Override public int getResourceTypeValue() { return resourceType_; } /** - * - * *
      * Indicates the type of resource. This field should be specified to
      * correspond the id to the right project type (CONSUMER_PROJECT or
      * ENCRYPTION_KEYS_PROJECT)
      * 
* - * .google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType resource_type = 2; - * - * + * .google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType resource_type = 2; * @return The resourceType. */ - @java.lang.Override - public com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType - getResourceType() { + @java.lang.Override public com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType getResourceType() { @SuppressWarnings("deprecation") - com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType result = - com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType.valueOf( - resourceType_); - return result == null - ? com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType.UNRECOGNIZED - : result; + com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType result = com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType.valueOf(resourceType_); + return result == null ? com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType.UNRECOGNIZED : result; } public static final int DISPLAY_NAME_FIELD_NUMBER = 3; private volatile java.lang.Object displayName_; /** - * - * *
      * User-assigned resource display name.
      * If not empty it will be used to create a resource with the specified
@@ -3206,7 +2754,6 @@ public int getResourceTypeValue() {
      * 
* * string display_name = 3; - * * @return The displayName. */ @java.lang.Override @@ -3215,15 +2762,14 @@ public java.lang.String getDisplayName() { 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(); displayName_ = s; return s; } } /** - * - * *
      * User-assigned resource display name.
      * If not empty it will be used to create a resource with the specified
@@ -3231,15 +2777,16 @@ public java.lang.String getDisplayName() {
      * 
* * string display_name = 3; - * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; 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); displayName_ = b; return b; } else { @@ -3248,7 +2795,6 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3260,14 +2806,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceId_); } - if (resourceType_ - != com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType - .RESOURCE_TYPE_UNSPECIFIED - .getNumber()) { + if (resourceType_ != com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType.RESOURCE_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(2, resourceType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { @@ -3285,11 +2829,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resourceId_); } - if (resourceType_ - != com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType - .RESOURCE_TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, resourceType_); + if (resourceType_ != com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType.RESOURCE_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, resourceType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, displayName_); @@ -3302,17 +2844,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.assuredworkloads.v1.Workload.ResourceSettings)) { return super.equals(obj); } - com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings other = - (com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings) obj; + com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings other = (com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings) obj; - if (!getResourceId().equals(other.getResourceId())) return false; + if (!getResourceId() + .equals(other.getResourceId())) return false; if (resourceType_ != other.resourceType_) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -3336,94 +2879,87 @@ public int hashCode() { } public static com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings 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.assuredworkloads.v1.Workload.ResourceSettings 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.assuredworkloads.v1.Workload.ResourceSettings parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings 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.assuredworkloads.v1.Workload.ResourceSettings parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings 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.assuredworkloads.v1.Workload.ResourceSettings parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings 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.assuredworkloads.v1.Workload.ResourceSettings parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings 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.assuredworkloads.v1.Workload.ResourceSettings 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.assuredworkloads.v1.Workload.ResourceSettings 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.assuredworkloads.v1.Workload.ResourceSettings prototype) { + public static Builder newBuilder(com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings 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 @@ -3433,32 +2969,27 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Represent the custom settings for the resources to be created.
      * 
* * Protobuf type {@code google.cloud.assuredworkloads.v1.Workload.ResourceSettings} */ - 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.assuredworkloads.v1.Workload.ResourceSettings) com.google.cloud.assuredworkloads.v1.Workload.ResourceSettingsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1_Workload_ResourceSettings_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_Workload_ResourceSettings_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1_Workload_ResourceSettings_fieldAccessorTable + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_Workload_ResourceSettings_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings.class, - com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings.Builder.class); + com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings.class, com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings.Builder.class); } // Construct using com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings.newBuilder() @@ -3466,15 +2997,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -3488,14 +3020,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1_Workload_ResourceSettings_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_Workload_ResourceSettings_descriptor; } @java.lang.Override - public com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings - getDefaultInstanceForType() { + public com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings getDefaultInstanceForType() { return com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings.getDefaultInstance(); } @@ -3510,8 +3041,7 @@ public com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings build() { @java.lang.Override public com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings buildPartial() { - com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings result = - new com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings(this); + com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings result = new com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings(this); result.resourceId_ = resourceId_; result.resourceType_ = resourceType_; result.displayName_ = displayName_; @@ -3523,52 +3053,46 @@ public com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings buildParti public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + 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.assuredworkloads.v1.Workload.ResourceSettings) { - return mergeFrom((com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings) other); + return mergeFrom((com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings other) { - if (other - == com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings other) { + if (other == com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings.getDefaultInstance()) return this; if (!other.getResourceId().isEmpty()) { resourceId_ = other.resourceId_; onChanged(); @@ -3599,9 +3123,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -3613,8 +3135,6 @@ public Builder mergeFrom( private java.lang.Object resourceId_ = ""; /** - * - * *
        * Resource identifier.
        * For a project this represents project_id. If the project is already
@@ -3622,13 +3142,13 @@ public Builder mergeFrom(
        * 
* * string resource_id = 1; - * * @return The resourceId. */ public java.lang.String getResourceId() { java.lang.Object ref = resourceId_; 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(); resourceId_ = s; return s; @@ -3637,8 +3157,6 @@ public java.lang.String getResourceId() { } } /** - * - * *
        * Resource identifier.
        * For a project this represents project_id. If the project is already
@@ -3646,14 +3164,15 @@ public java.lang.String getResourceId() {
        * 
* * string resource_id = 1; - * * @return The bytes for resourceId. */ - public com.google.protobuf.ByteString getResourceIdBytes() { + public com.google.protobuf.ByteString + getResourceIdBytes() { java.lang.Object ref = resourceId_; 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); resourceId_ = b; return b; } else { @@ -3661,8 +3180,6 @@ public com.google.protobuf.ByteString getResourceIdBytes() { } } /** - * - * *
        * Resource identifier.
        * For a project this represents project_id. If the project is already
@@ -3670,22 +3187,20 @@ public com.google.protobuf.ByteString getResourceIdBytes() {
        * 
* * string resource_id = 1; - * * @param value The resourceId to set. * @return This builder for chaining. */ - public Builder setResourceId(java.lang.String value) { + public Builder setResourceId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resourceId_ = value; onChanged(); return this; } /** - * - * *
        * Resource identifier.
        * For a project this represents project_id. If the project is already
@@ -3693,18 +3208,15 @@ public Builder setResourceId(java.lang.String value) {
        * 
* * string resource_id = 1; - * * @return This builder for chaining. */ public Builder clearResourceId() { - + resourceId_ = getDefaultInstance().getResourceId(); onChanged(); return this; } /** - * - * *
        * Resource identifier.
        * For a project this represents project_id. If the project is already
@@ -3712,16 +3224,16 @@ public Builder clearResourceId() {
        * 
* * string resource_id = 1; - * * @param value The bytes for resourceId to set. * @return This builder for chaining. */ - public Builder setResourceIdBytes(com.google.protobuf.ByteString value) { + public Builder setResourceIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceId_ = value; onChanged(); return this; @@ -3729,115 +3241,83 @@ public Builder setResourceIdBytes(com.google.protobuf.ByteString value) { private int resourceType_ = 0; /** - * - * *
        * Indicates the type of resource. This field should be specified to
        * correspond the id to the right project type (CONSUMER_PROJECT or
        * ENCRYPTION_KEYS_PROJECT)
        * 
* - * - * .google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType resource_type = 2; - * - * + * .google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType resource_type = 2; * @return The enum numeric value on the wire for resourceType. */ - @java.lang.Override - public int getResourceTypeValue() { + @java.lang.Override public int getResourceTypeValue() { return resourceType_; } /** - * - * *
        * Indicates the type of resource. This field should be specified to
        * correspond the id to the right project type (CONSUMER_PROJECT or
        * ENCRYPTION_KEYS_PROJECT)
        * 
* - * - * .google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType resource_type = 2; - * - * + * .google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType resource_type = 2; * @param value The enum numeric value on the wire for resourceType to set. * @return This builder for chaining. */ public Builder setResourceTypeValue(int value) { - + resourceType_ = value; onChanged(); return this; } /** - * - * *
        * Indicates the type of resource. This field should be specified to
        * correspond the id to the right project type (CONSUMER_PROJECT or
        * ENCRYPTION_KEYS_PROJECT)
        * 
* - * - * .google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType resource_type = 2; - * - * + * .google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType resource_type = 2; * @return The resourceType. */ @java.lang.Override - public com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType - getResourceType() { + public com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType getResourceType() { @SuppressWarnings("deprecation") - com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType result = - com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType.valueOf( - resourceType_); - return result == null - ? com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType.UNRECOGNIZED - : result; + com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType result = com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType.valueOf(resourceType_); + return result == null ? com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType.UNRECOGNIZED : result; } /** - * - * *
        * Indicates the type of resource. This field should be specified to
        * correspond the id to the right project type (CONSUMER_PROJECT or
        * ENCRYPTION_KEYS_PROJECT)
        * 
* - * - * .google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType resource_type = 2; - * - * + * .google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType resource_type = 2; * @param value The resourceType to set. * @return This builder for chaining. */ - public Builder setResourceType( - com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType value) { + public Builder setResourceType(com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType value) { if (value == null) { throw new NullPointerException(); } - + resourceType_ = value.getNumber(); onChanged(); return this; } /** - * - * *
        * Indicates the type of resource. This field should be specified to
        * correspond the id to the right project type (CONSUMER_PROJECT or
        * ENCRYPTION_KEYS_PROJECT)
        * 
* - * - * .google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType resource_type = 2; - * - * + * .google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType resource_type = 2; * @return This builder for chaining. */ public Builder clearResourceType() { - + resourceType_ = 0; onChanged(); return this; @@ -3845,8 +3325,6 @@ public Builder clearResourceType() { private java.lang.Object displayName_ = ""; /** - * - * *
        * User-assigned resource display name.
        * If not empty it will be used to create a resource with the specified
@@ -3854,13 +3332,13 @@ public Builder clearResourceType() {
        * 
* * string display_name = 3; - * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; 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(); displayName_ = s; return s; @@ -3869,8 +3347,6 @@ public java.lang.String getDisplayName() { } } /** - * - * *
        * User-assigned resource display name.
        * If not empty it will be used to create a resource with the specified
@@ -3878,14 +3354,15 @@ public java.lang.String getDisplayName() {
        * 
* * string display_name = 3; - * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; 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); displayName_ = b; return b; } else { @@ -3893,8 +3370,6 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
        * User-assigned resource display name.
        * If not empty it will be used to create a resource with the specified
@@ -3902,22 +3377,20 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
        * 
* * string display_name = 3; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { + public Builder setDisplayName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** - * - * *
        * User-assigned resource display name.
        * If not empty it will be used to create a resource with the specified
@@ -3925,18 +3398,15 @@ public Builder setDisplayName(java.lang.String value) {
        * 
* * string display_name = 3; - * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** - * - * *
        * User-assigned resource display name.
        * If not empty it will be used to create a resource with the specified
@@ -3944,21 +3414,20 @@ public Builder clearDisplayName() {
        * 
* * string display_name = 3; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3971,32 +3440,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.assuredworkloads.v1.Workload.ResourceSettings) } // @@protoc_insertion_point(class_scope:google.cloud.assuredworkloads.v1.Workload.ResourceSettings) - private static final com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings - DEFAULT_INSTANCE; - + private static final com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings(); } - public static com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings - getDefaultInstance() { + public static com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ResourceSettings parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ResourceSettings(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResourceSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ResourceSettings(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4008,154 +3475,109 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings - getDefaultInstanceForType() { + public com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface SaaEnrollmentResponseOrBuilder - extends + public interface SaaEnrollmentResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Indicates SAA enrollment status of a given workload.
      * 
* - * - * optional .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1; - * - * + * optional .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1; * @return Whether the setupStatus field is set. */ boolean hasSetupStatus(); /** - * - * *
      * Indicates SAA enrollment status of a given workload.
      * 
* - * - * optional .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1; - * - * + * optional .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1; * @return The enum numeric value on the wire for setupStatus. */ int getSetupStatusValue(); /** - * - * *
      * Indicates SAA enrollment status of a given workload.
      * 
* - * - * optional .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1; - * - * + * optional .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1; * @return The setupStatus. */ com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupState getSetupStatus(); /** - * - * *
      * Indicates SAA enrollment setup error if any.
      * 
* - * - * repeated .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; - * - * + * repeated .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; * @return A list containing the setupErrors. */ - java.util.List - getSetupErrorsList(); + java.util.List getSetupErrorsList(); /** - * - * *
      * Indicates SAA enrollment setup error if any.
      * 
* - * - * repeated .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; - * - * + * repeated .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; * @return The count of setupErrors. */ int getSetupErrorsCount(); /** - * - * *
      * Indicates SAA enrollment setup error if any.
      * 
* - * - * repeated .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; - * - * + * repeated .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; * @param index The index of the element to return. * @return The setupErrors at the given index. */ - com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError getSetupErrors( - int index); + com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError getSetupErrors(int index); /** - * - * *
      * Indicates SAA enrollment setup error if any.
      * 
* - * - * repeated .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; - * - * + * repeated .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; * @return A list containing the enum numeric values on the wire for setupErrors. */ - java.util.List getSetupErrorsValueList(); + java.util.List + getSetupErrorsValueList(); /** - * - * *
      * Indicates SAA enrollment setup error if any.
      * 
* - * - * repeated .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; - * - * + * repeated .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; * @param index The index of the value to return. * @return The enum numeric value on the wire of setupErrors at the given index. */ int getSetupErrorsValue(int index); } /** - * - * *
    * Signed Access Approvals (SAA) enrollment response.
    * 
* * Protobuf type {@code google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse} */ - public static final class SaaEnrollmentResponse extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class SaaEnrollmentResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse) SaaEnrollmentResponseOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SaaEnrollmentResponse.newBuilder() to construct. private SaaEnrollmentResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SaaEnrollmentResponse() { setupStatus_ = 0; setupErrors_ = java.util.Collections.emptyList(); @@ -4163,15 +3585,16 @@ private SaaEnrollmentResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SaaEnrollmentResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private SaaEnrollmentResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -4191,45 +3614,42 @@ private SaaEnrollmentResponse( case 0: done = true; break; - case 8: - { - int rawValue = input.readEnum(); - bitField0_ |= 0x00000001; - setupStatus_ = rawValue; - break; + case 8: { + int rawValue = input.readEnum(); + bitField0_ |= 0x00000001; + setupStatus_ = rawValue; + break; + } + case 16: { + int rawValue = input.readEnum(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + setupErrors_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; } - case 16: - { + setupErrors_.add(rawValue); + break; + } + case 18: { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while(input.getBytesUntilLimit() > 0) { int rawValue = input.readEnum(); if (!((mutable_bitField0_ & 0x00000002) != 0)) { setupErrors_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } setupErrors_.add(rawValue); - break; } - case 18: - { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while (input.getBytesUntilLimit() > 0) { - int rawValue = input.readEnum(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - setupErrors_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - setupErrors_.add(rawValue); - } - input.popLimit(oldLimit); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + input.popLimit(oldLimit); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -4237,7 +3657,8 @@ private SaaEnrollmentResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) != 0)) { setupErrors_ = java.util.Collections.unmodifiableList(setupErrors_); @@ -4246,36 +3667,29 @@ private SaaEnrollmentResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1_Workload_SaaEnrollmentResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_Workload_SaaEnrollmentResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1_Workload_SaaEnrollmentResponse_fieldAccessorTable + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_Workload_SaaEnrollmentResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.class, - com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.Builder.class); + com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.class, com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.Builder.class); } /** - * - * *
      * Setup state of SAA enrollment.
      * 
* - * Protobuf enum {@code - * google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupState} + * Protobuf enum {@code google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupState} */ - public enum SetupState implements com.google.protobuf.ProtocolMessageEnum { + public enum SetupState + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
        * Unspecified.
        * 
@@ -4284,8 +3698,6 @@ public enum SetupState implements com.google.protobuf.ProtocolMessageEnum { */ SETUP_STATE_UNSPECIFIED(0), /** - * - * *
        * SAA enrollment pending.
        * 
@@ -4294,8 +3706,6 @@ public enum SetupState implements com.google.protobuf.ProtocolMessageEnum { */ STATUS_PENDING(1), /** - * - * *
        * SAA enrollment comopleted.
        * 
@@ -4307,8 +3717,6 @@ public enum SetupState implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
        * Unspecified.
        * 
@@ -4317,8 +3725,6 @@ public enum SetupState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SETUP_STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
        * SAA enrollment pending.
        * 
@@ -4327,8 +3733,6 @@ public enum SetupState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATUS_PENDING_VALUE = 1; /** - * - * *
        * SAA enrollment comopleted.
        * 
@@ -4337,6 +3741,7 @@ public enum SetupState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATUS_COMPLETE_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -4361,51 +3766,49 @@ public static SetupState valueOf(int value) { */ public static SetupState forNumber(int value) { switch (value) { - case 0: - return SETUP_STATE_UNSPECIFIED; - case 1: - return STATUS_PENDING; - case 2: - return STATUS_COMPLETE; - default: - return null; + case 0: return SETUP_STATE_UNSPECIFIED; + case 1: return STATUS_PENDING; + case 2: return STATUS_COMPLETE; + 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< + SetupState> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SetupState findValueByNumber(int number) { + return SetupState.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public SetupState findValueByNumber(int number) { - return SetupState.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.getDescriptor().getEnumTypes().get(0); } private static final SetupState[] VALUES = values(); - public static SetupState valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static SetupState 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; @@ -4423,19 +3826,15 @@ private SetupState(int value) { } /** - * - * *
      * Setup error of SAA enrollment.
      * 
* - * Protobuf enum {@code - * google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError} + * Protobuf enum {@code google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError} */ - public enum SetupError implements com.google.protobuf.ProtocolMessageEnum { + public enum SetupError + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
        * Unspecified.
        * 
@@ -4444,8 +3843,6 @@ public enum SetupError implements com.google.protobuf.ProtocolMessageEnum { */ SETUP_ERROR_UNSPECIFIED(0), /** - * - * *
        * Invalid states for all customers, to be redirected to AA UI for
        * additional details.
@@ -4455,8 +3852,6 @@ public enum SetupError implements com.google.protobuf.ProtocolMessageEnum {
        */
       ERROR_INVALID_BASE_SETUP(1),
       /**
-       *
-       *
        * 
        * Returned when there is not an EKM key configured.
        * 
@@ -4465,8 +3860,6 @@ public enum SetupError implements com.google.protobuf.ProtocolMessageEnum { */ ERROR_MISSING_EXTERNAL_SIGNING_KEY(2), /** - * - * *
        * Returned when there are no enrolled services or the customer is
        * enrolled in CAA only for a subset of services.
@@ -4476,8 +3869,6 @@ public enum SetupError implements com.google.protobuf.ProtocolMessageEnum {
        */
       ERROR_NOT_ALL_SERVICES_ENROLLED(3),
       /**
-       *
-       *
        * 
        * Returned when exception was encountered during evaluation of other
        * criteria.
@@ -4490,8 +3881,6 @@ public enum SetupError implements com.google.protobuf.ProtocolMessageEnum {
       ;
 
       /**
-       *
-       *
        * 
        * Unspecified.
        * 
@@ -4500,8 +3889,6 @@ public enum SetupError implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SETUP_ERROR_UNSPECIFIED_VALUE = 0; /** - * - * *
        * Invalid states for all customers, to be redirected to AA UI for
        * additional details.
@@ -4511,8 +3898,6 @@ public enum SetupError implements com.google.protobuf.ProtocolMessageEnum {
        */
       public static final int ERROR_INVALID_BASE_SETUP_VALUE = 1;
       /**
-       *
-       *
        * 
        * Returned when there is not an EKM key configured.
        * 
@@ -4521,8 +3906,6 @@ public enum SetupError implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ERROR_MISSING_EXTERNAL_SIGNING_KEY_VALUE = 2; /** - * - * *
        * Returned when there are no enrolled services or the customer is
        * enrolled in CAA only for a subset of services.
@@ -4532,8 +3915,6 @@ public enum SetupError implements com.google.protobuf.ProtocolMessageEnum {
        */
       public static final int ERROR_NOT_ALL_SERVICES_ENROLLED_VALUE = 3;
       /**
-       *
-       *
        * 
        * Returned when exception was encountered during evaluation of other
        * criteria.
@@ -4543,6 +3924,7 @@ public enum SetupError implements com.google.protobuf.ProtocolMessageEnum {
        */
       public static final int ERROR_SETUP_CHECK_FAILED_VALUE = 4;
 
+
       public final int getNumber() {
         if (this == UNRECOGNIZED) {
           throw new java.lang.IllegalArgumentException(
@@ -4567,55 +3949,51 @@ public static SetupError valueOf(int value) {
        */
       public static SetupError forNumber(int value) {
         switch (value) {
-          case 0:
-            return SETUP_ERROR_UNSPECIFIED;
-          case 1:
-            return ERROR_INVALID_BASE_SETUP;
-          case 2:
-            return ERROR_MISSING_EXTERNAL_SIGNING_KEY;
-          case 3:
-            return ERROR_NOT_ALL_SERVICES_ENROLLED;
-          case 4:
-            return ERROR_SETUP_CHECK_FAILED;
-          default:
-            return null;
+          case 0: return SETUP_ERROR_UNSPECIFIED;
+          case 1: return ERROR_INVALID_BASE_SETUP;
+          case 2: return ERROR_MISSING_EXTERNAL_SIGNING_KEY;
+          case 3: return ERROR_NOT_ALL_SERVICES_ENROLLED;
+          case 4: return ERROR_SETUP_CHECK_FAILED;
+          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<
+          SetupError> internalValueMap =
+            new com.google.protobuf.Internal.EnumLiteMap() {
+              public SetupError findValueByNumber(int number) {
+                return SetupError.forNumber(number);
+              }
+            };
 
-      private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public SetupError findValueByNumber(int number) {
-              return SetupError.forNumber(number);
-            }
-          };
-
-      public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+      public final com.google.protobuf.Descriptors.EnumValueDescriptor
+          getValueDescriptor() {
         if (this == UNRECOGNIZED) {
           throw new java.lang.IllegalStateException(
               "Can't get the descriptor of an unrecognized enum value.");
         }
         return getDescriptor().getValues().get(ordinal());
       }
-
-      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+      public final com.google.protobuf.Descriptors.EnumDescriptor
+          getDescriptorForType() {
         return getDescriptor();
       }
-
-      public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
-        return com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.getDescriptor()
-            .getEnumTypes()
-            .get(1);
+      public static final com.google.protobuf.Descriptors.EnumDescriptor
+          getDescriptor() {
+        return com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.getDescriptor().getEnumTypes().get(1);
       }
 
       private static final SetupError[] VALUES = values();
 
-      public static SetupError valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+      public static SetupError 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;
@@ -4636,120 +4014,72 @@ private SetupError(int value) {
     public static final int SETUP_STATUS_FIELD_NUMBER = 1;
     private int setupStatus_;
     /**
-     *
-     *
      * 
      * Indicates SAA enrollment status of a given workload.
      * 
* - * - * optional .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1; - * - * + * optional .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1; * @return Whether the setupStatus field is set. */ - @java.lang.Override - public boolean hasSetupStatus() { + @java.lang.Override public boolean hasSetupStatus() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Indicates SAA enrollment status of a given workload.
      * 
* - * - * optional .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1; - * - * + * optional .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1; * @return The enum numeric value on the wire for setupStatus. */ - @java.lang.Override - public int getSetupStatusValue() { + @java.lang.Override public int getSetupStatusValue() { return setupStatus_; } /** - * - * *
      * Indicates SAA enrollment status of a given workload.
      * 
* - * - * optional .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1; - * - * + * optional .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1; * @return The setupStatus. */ - @java.lang.Override - public com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupState - getSetupStatus() { + @java.lang.Override public com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupState getSetupStatus() { @SuppressWarnings("deprecation") - com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupState result = - com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupState.valueOf( - setupStatus_); - return result == null - ? com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupState - .UNRECOGNIZED - : result; + com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupState result = com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupState.valueOf(setupStatus_); + return result == null ? com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupState.UNRECOGNIZED : result; } public static final int SETUP_ERRORS_FIELD_NUMBER = 2; private java.util.List setupErrors_; private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, - com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError> - setupErrors_converter_ = + java.lang.Integer, com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError> setupErrors_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, - com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError>() { - public com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError - convert(java.lang.Integer from) { + java.lang.Integer, com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError>() { + public com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError convert(java.lang.Integer from) { @SuppressWarnings("deprecation") - com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError - result = - com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse - .SetupError.valueOf(from); - return result == null - ? com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError - .UNRECOGNIZED - : result; + com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError result = com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError.valueOf(from); + return result == null ? com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError.UNRECOGNIZED : result; } }; /** - * - * *
      * Indicates SAA enrollment setup error if any.
      * 
* - * - * repeated .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; - * - * + * repeated .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; * @return A list containing the setupErrors. */ @java.lang.Override - public java.util.List< - com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError> - getSetupErrorsList() { + public java.util.List getSetupErrorsList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, - com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError>( - setupErrors_, setupErrors_converter_); + java.lang.Integer, com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError>(setupErrors_, setupErrors_converter_); } /** - * - * *
      * Indicates SAA enrollment setup error if any.
      * 
* - * - * repeated .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; - * - * + * repeated .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; * @return The count of setupErrors. */ @java.lang.Override @@ -4757,52 +4087,37 @@ public int getSetupErrorsCount() { return setupErrors_.size(); } /** - * - * *
      * Indicates SAA enrollment setup error if any.
      * 
* - * - * repeated .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; - * - * + * repeated .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; * @param index The index of the element to return. * @return The setupErrors at the given index. */ @java.lang.Override - public com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError - getSetupErrors(int index) { + public com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError getSetupErrors(int index) { return setupErrors_converter_.convert(setupErrors_.get(index)); } /** - * - * *
      * Indicates SAA enrollment setup error if any.
      * 
* - * - * repeated .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; - * - * + * repeated .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; * @return A list containing the enum numeric values on the wire for setupErrors. */ @java.lang.Override - public java.util.List getSetupErrorsValueList() { + public java.util.List + getSetupErrorsValueList() { return setupErrors_; } /** - * - * *
      * Indicates SAA enrollment setup error if any.
      * 
* - * - * repeated .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; - * - * + * repeated .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; * @param index The index of the value to return. * @return The enum numeric value on the wire of setupErrors at the given index. */ @@ -4810,11 +4125,9 @@ public java.util.List getSetupErrorsValueList() { public int getSetupErrorsValue(int index) { return setupErrors_.get(index); } - private int setupErrorsMemoizedSerializedSize; private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -4826,7 +4139,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 { getSerializedSize(); if (((bitField0_ & 0x00000001) != 0)) { output.writeEnum(1, setupStatus_); @@ -4848,20 +4162,20 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, setupStatus_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, setupStatus_); } { int dataSize = 0; for (int i = 0; i < setupErrors_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(setupErrors_.get(i)); + dataSize += com.google.protobuf.CodedOutputStream + .computeEnumSizeNoTag(setupErrors_.get(i)); } size += dataSize; - if (!getSetupErrorsList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); - } - setupErrorsMemoizedSerializedSize = dataSize; + if (!getSetupErrorsList().isEmpty()) { size += 1; + size += com.google.protobuf.CodedOutputStream + .computeUInt32SizeNoTag(dataSize); + }setupErrorsMemoizedSerializedSize = dataSize; } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -4871,13 +4185,12 @@ 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.assuredworkloads.v1.Workload.SaaEnrollmentResponse)) { return super.equals(obj); } - com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse other = - (com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse) obj; + com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse other = (com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse) obj; if (hasSetupStatus() != other.hasSetupStatus()) return false; if (hasSetupStatus()) { @@ -4909,95 +4222,87 @@ public int hashCode() { } public static com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse 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.assuredworkloads.v1.Workload.SaaEnrollmentResponse 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.assuredworkloads.v1.Workload.SaaEnrollmentResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse 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.assuredworkloads.v1.Workload.SaaEnrollmentResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse 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.assuredworkloads.v1.Workload.SaaEnrollmentResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse 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.assuredworkloads.v1.Workload.SaaEnrollmentResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse - parseDelimitedFrom( - java.io.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.assuredworkloads.v1.Workload.SaaEnrollmentResponse parseDelimitedFrom( + java.io.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.assuredworkloads.v1.Workload.SaaEnrollmentResponse 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.assuredworkloads.v1.Workload.SaaEnrollmentResponse 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.assuredworkloads.v1.Workload.SaaEnrollmentResponse prototype) { + public static Builder newBuilder(com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse 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 @@ -5007,49 +4312,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Signed Access Approvals (SAA) enrollment response.
      * 
* * Protobuf type {@code google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse} */ - 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.assuredworkloads.v1.Workload.SaaEnrollmentResponse) com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1_Workload_SaaEnrollmentResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_Workload_SaaEnrollmentResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1_Workload_SaaEnrollmentResponse_fieldAccessorTable + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_Workload_SaaEnrollmentResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.class, - com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.Builder.class); + com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.class, com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.Builder.class); } - // Construct using - // com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.newBuilder() + // Construct using com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -5061,16 +4361,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1_Workload_SaaEnrollmentResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_Workload_SaaEnrollmentResponse_descriptor; } @java.lang.Override - public com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse - getDefaultInstanceForType() { - return com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse - .getDefaultInstance(); + public com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse getDefaultInstanceForType() { + return com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.getDefaultInstance(); } @java.lang.Override @@ -5084,8 +4382,7 @@ public com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse build @java.lang.Override public com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse buildPartial() { - com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse result = - new com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse(this); + com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse result = new com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { @@ -5106,53 +4403,46 @@ public com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse build public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + 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.assuredworkloads.v1.Workload.SaaEnrollmentResponse) { - return mergeFrom( - (com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse) other); + return mergeFrom((com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse other) { - if (other - == com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse other) { + if (other == com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.getDefaultInstance()) return this; if (other.hasSetupStatus()) { setSetupStatus(other.getSetupStatus()); } @@ -5185,9 +4475,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -5196,55 +4484,37 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private int setupStatus_ = 0; /** - * - * *
        * Indicates SAA enrollment status of a given workload.
        * 
* - * - * optional .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1; - * - * + * optional .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1; * @return Whether the setupStatus field is set. */ - @java.lang.Override - public boolean hasSetupStatus() { + @java.lang.Override public boolean hasSetupStatus() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
        * Indicates SAA enrollment status of a given workload.
        * 
* - * - * optional .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1; - * - * + * optional .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1; * @return The enum numeric value on the wire for setupStatus. */ - @java.lang.Override - public int getSetupStatusValue() { + @java.lang.Override public int getSetupStatusValue() { return setupStatus_; } /** - * - * *
        * Indicates SAA enrollment status of a given workload.
        * 
* - * - * optional .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1; - * - * + * optional .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1; * @param value The enum numeric value on the wire for setupStatus to set. * @return This builder for chaining. */ @@ -5255,46 +4525,29 @@ public Builder setSetupStatusValue(int value) { return this; } /** - * - * *
        * Indicates SAA enrollment status of a given workload.
        * 
* - * - * optional .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1; - * - * + * optional .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1; * @return The setupStatus. */ @java.lang.Override - public com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupState - getSetupStatus() { + public com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupState getSetupStatus() { @SuppressWarnings("deprecation") - com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupState result = - com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupState.valueOf( - setupStatus_); - return result == null - ? com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupState - .UNRECOGNIZED - : result; + com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupState result = com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupState.valueOf(setupStatus_); + return result == null ? com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupState.UNRECOGNIZED : result; } /** - * - * *
        * Indicates SAA enrollment status of a given workload.
        * 
* - * - * optional .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1; - * - * + * optional .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1; * @param value The setupStatus to set. * @return This builder for chaining. */ - public Builder setSetupStatus( - com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupState value) { + public Builder setSetupStatus(com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupState value) { if (value == null) { throw new NullPointerException(); } @@ -5304,16 +4557,11 @@ public Builder setSetupStatus( return this; } /** - * - * *
        * Indicates SAA enrollment status of a given workload.
        * 
* - * - * optional .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1; - * - * + * optional .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1; * @return This builder for chaining. */ public Builder clearSetupStatus() { @@ -5323,8 +4571,8 @@ public Builder clearSetupStatus() { return this; } - private java.util.List setupErrors_ = java.util.Collections.emptyList(); - + private java.util.List setupErrors_ = + java.util.Collections.emptyList(); private void ensureSetupErrorsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { setupErrors_ = new java.util.ArrayList(setupErrors_); @@ -5332,78 +4580,52 @@ private void ensureSetupErrorsIsMutable() { } } /** - * - * *
        * Indicates SAA enrollment setup error if any.
        * 
* - * - * repeated .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; - * - * + * repeated .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; * @return A list containing the setupErrors. */ - public java.util.List< - com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError> - getSetupErrorsList() { + public java.util.List getSetupErrorsList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, - com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError>( - setupErrors_, setupErrors_converter_); + java.lang.Integer, com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError>(setupErrors_, setupErrors_converter_); } /** - * - * *
        * Indicates SAA enrollment setup error if any.
        * 
* - * - * repeated .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; - * - * + * repeated .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; * @return The count of setupErrors. */ public int getSetupErrorsCount() { return setupErrors_.size(); } /** - * - * *
        * Indicates SAA enrollment setup error if any.
        * 
* - * - * repeated .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; - * - * + * repeated .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; * @param index The index of the element to return. * @return The setupErrors at the given index. */ - public com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError - getSetupErrors(int index) { + public com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError getSetupErrors(int index) { return setupErrors_converter_.convert(setupErrors_.get(index)); } /** - * - * *
        * Indicates SAA enrollment setup error if any.
        * 
* - * - * repeated .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; - * - * + * repeated .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; * @param index The index to set the value at. * @param value The setupErrors to set. * @return This builder for chaining. */ public Builder setSetupErrors( - int index, - com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError value) { + int index, com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError value) { if (value == null) { throw new NullPointerException(); } @@ -5413,21 +4635,15 @@ public Builder setSetupErrors( return this; } /** - * - * *
        * Indicates SAA enrollment setup error if any.
        * 
* - * - * repeated .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; - * - * + * repeated .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; * @param value The setupErrors to add. * @return This builder for chaining. */ - public Builder addSetupErrors( - com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError value) { + public Builder addSetupErrors(com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError value) { if (value == null) { throw new NullPointerException(); } @@ -5437,44 +4653,29 @@ public Builder addSetupErrors( return this; } /** - * - * *
        * Indicates SAA enrollment setup error if any.
        * 
* - * - * repeated .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; - * - * + * repeated .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; * @param values The setupErrors to add. * @return This builder for chaining. */ public Builder addAllSetupErrors( - java.lang.Iterable< - ? extends - com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse - .SetupError> - values) { + java.lang.Iterable values) { ensureSetupErrorsIsMutable(); - for (com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError value : - values) { + for (com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError value : values) { setupErrors_.add(value.getNumber()); } onChanged(); return this; } /** - * - * *
        * Indicates SAA enrollment setup error if any.
        * 
* - * - * repeated .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; - * - * + * repeated .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; * @return This builder for chaining. */ public Builder clearSetupErrors() { @@ -5484,32 +4685,23 @@ public Builder clearSetupErrors() { return this; } /** - * - * *
        * Indicates SAA enrollment setup error if any.
        * 
* - * - * repeated .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; - * - * + * repeated .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; * @return A list containing the enum numeric values on the wire for setupErrors. */ - public java.util.List getSetupErrorsValueList() { + public java.util.List + getSetupErrorsValueList() { return java.util.Collections.unmodifiableList(setupErrors_); } /** - * - * *
        * Indicates SAA enrollment setup error if any.
        * 
* - * - * repeated .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; - * - * + * repeated .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; * @param index The index of the value to return. * @return The enum numeric value on the wire of setupErrors at the given index. */ @@ -5517,37 +4709,28 @@ public int getSetupErrorsValue(int index) { return setupErrors_.get(index); } /** - * - * *
        * Indicates SAA enrollment setup error if any.
        * 
* - * - * repeated .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; - * - * + * repeated .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; * @param index The index of the value to return. * @return The enum numeric value on the wire of setupErrors at the given index. * @return This builder for chaining. */ - public Builder setSetupErrorsValue(int index, int value) { + public Builder setSetupErrorsValue( + int index, int value) { ensureSetupErrorsIsMutable(); setupErrors_.set(index, value); onChanged(); return this; } /** - * - * *
        * Indicates SAA enrollment setup error if any.
        * 
* - * - * repeated .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; - * - * + * repeated .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; * @param value The enum numeric value on the wire for setupErrors to add. * @return This builder for chaining. */ @@ -5558,20 +4741,16 @@ public Builder addSetupErrorsValue(int value) { return this; } /** - * - * *
        * Indicates SAA enrollment setup error if any.
        * 
* - * - * repeated .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; - * - * + * repeated .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; * @param values The enum numeric values on the wire for setupErrors to add. * @return This builder for chaining. */ - public Builder addAllSetupErrorsValue(java.lang.Iterable values) { + public Builder addAllSetupErrorsValue( + java.lang.Iterable values) { ensureSetupErrorsIsMutable(); for (int value : values) { setupErrors_.add(value); @@ -5579,7 +4758,6 @@ public Builder addAllSetupErrorsValue(java.lang.Iterable valu onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -5592,32 +4770,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse) } // @@protoc_insertion_point(class_scope:google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse) - private static final com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse(); } - public static com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse - getDefaultInstance() { + public static com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SaaEnrollmentResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SaaEnrollmentResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SaaEnrollmentResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SaaEnrollmentResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5629,17 +4805,15 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse - getDefaultInstanceForType() { + public com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Optional. The resource name of the workload.
    * Format:
@@ -5648,7 +4822,6 @@ public com.google.protobuf.Parser getParserForType() {
    * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The name. */ @java.lang.Override @@ -5657,15 +4830,14 @@ 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; } } /** - * - * *
    * Optional. The resource name of the workload.
    * Format:
@@ -5674,15 +4846,16 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -5693,8 +4866,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int DISPLAY_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object displayName_; /** - * - * *
    * Required. The user-assigned display name of the Workload.
    * When present it must be between 4 to 30 characters.
@@ -5704,7 +4875,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The displayName. */ @java.lang.Override @@ -5713,15 +4883,14 @@ public java.lang.String getDisplayName() { 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(); displayName_ = s; return s; } } /** - * - * *
    * Required. The user-assigned display name of the Workload.
    * When present it must be between 4 to 30 characters.
@@ -5731,15 +4900,16 @@ public java.lang.String getDisplayName() {
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; 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); displayName_ = b; return b; } else { @@ -5750,8 +4920,6 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { public static final int RESOURCES_FIELD_NUMBER = 3; private java.util.List resources_; /** - * - * *
    * Output only. The resources associated with this workload.
    * These resources will be created when creating the workload.
@@ -5759,18 +4927,13 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
    * Always read only.
    * 
* - * - * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public java.util.List - getResourcesList() { + public java.util.List getResourcesList() { return resources_; } /** - * - * *
    * Output only. The resources associated with this workload.
    * These resources will be created when creating the workload.
@@ -5778,19 +4941,14 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
    * Always read only.
    * 
* - * - * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.assuredworkloads.v1.Workload.ResourceInfoOrBuilder> + public java.util.List getResourcesOrBuilderList() { return resources_; } /** - * - * *
    * Output only. The resources associated with this workload.
    * These resources will be created when creating the workload.
@@ -5798,17 +4956,13 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
    * Always read only.
    * 
* - * - * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public int getResourcesCount() { return resources_.size(); } /** - * - * *
    * Output only. The resources associated with this workload.
    * These resources will be created when creating the workload.
@@ -5816,17 +4970,13 @@ public int getResourcesCount() {
    * Always read only.
    * 
* - * - * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo getResources(int index) { return resources_.get(index); } /** - * - * *
    * Output only. The resources associated with this workload.
    * These resources will be created when creating the workload.
@@ -5834,9 +4984,7 @@ public com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo getResources(i
    * Always read only.
    * 
* - * - * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.assuredworkloads.v1.Workload.ResourceInfoOrBuilder getResourcesOrBuilder( @@ -5847,58 +4995,38 @@ public com.google.cloud.assuredworkloads.v1.Workload.ResourceInfoOrBuilder getRe public static final int COMPLIANCE_REGIME_FIELD_NUMBER = 4; private int complianceRegime_; /** - * - * *
    * Required. Immutable. Compliance Regime associated with this workload.
    * 
* - * - * .google.cloud.assuredworkloads.v1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.assuredworkloads.v1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return The enum numeric value on the wire for complianceRegime. */ - @java.lang.Override - public int getComplianceRegimeValue() { + @java.lang.Override public int getComplianceRegimeValue() { return complianceRegime_; } /** - * - * *
    * Required. Immutable. Compliance Regime associated with this workload.
    * 
* - * - * .google.cloud.assuredworkloads.v1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.assuredworkloads.v1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return The complianceRegime. */ - @java.lang.Override - public com.google.cloud.assuredworkloads.v1.Workload.ComplianceRegime getComplianceRegime() { + @java.lang.Override public com.google.cloud.assuredworkloads.v1.Workload.ComplianceRegime getComplianceRegime() { @SuppressWarnings("deprecation") - com.google.cloud.assuredworkloads.v1.Workload.ComplianceRegime result = - com.google.cloud.assuredworkloads.v1.Workload.ComplianceRegime.valueOf(complianceRegime_); - return result == null - ? com.google.cloud.assuredworkloads.v1.Workload.ComplianceRegime.UNRECOGNIZED - : result; + com.google.cloud.assuredworkloads.v1.Workload.ComplianceRegime result = com.google.cloud.assuredworkloads.v1.Workload.ComplianceRegime.valueOf(complianceRegime_); + return result == null ? com.google.cloud.assuredworkloads.v1.Workload.ComplianceRegime.UNRECOGNIZED : result; } public static final int CREATE_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. Immutable. The Workload creation timestamp.
    * 
* - * - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -5906,16 +5034,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. Immutable. The Workload creation timestamp.
    * 
* - * - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; * @return The createTime. */ @java.lang.Override @@ -5923,15 +5046,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. Immutable. The Workload creation timestamp.
    * 
* - * - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -5941,8 +5060,6 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int BILLING_ACCOUNT_FIELD_NUMBER = 6; private volatile java.lang.Object billingAccount_; /** - * - * *
    * Required. Input only. The billing account used for the resources which are
    * direct children of workload. This billing account is initially associated
@@ -5954,10 +5071,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
    * `billingAccounts/012345-567890-ABCDEF`.
    * 
* - * - * string billing_account = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string billing_account = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @return The billingAccount. */ @java.lang.Override @@ -5966,15 +5080,14 @@ public java.lang.String getBillingAccount() { 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(); billingAccount_ = s; return s; } } /** - * - * *
    * Required. Input only. The billing account used for the resources which are
    * direct children of workload. This billing account is initially associated
@@ -5986,18 +5099,17 @@ public java.lang.String getBillingAccount() {
    * `billingAccounts/012345-567890-ABCDEF`.
    * 
* - * - * string billing_account = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string billing_account = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @return The bytes for billingAccount. */ @java.lang.Override - public com.google.protobuf.ByteString getBillingAccountBytes() { + public com.google.protobuf.ByteString + getBillingAccountBytes() { java.lang.Object ref = billingAccount_; 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); billingAccount_ = b; return b; } else { @@ -6008,15 +5120,12 @@ public com.google.protobuf.ByteString getBillingAccountBytes() { public static final int ETAG_FIELD_NUMBER = 9; private volatile java.lang.Object etag_; /** - * - * *
    * Optional. ETag of the workload, it is calculated on the basis
    * of the Workload contents. It will be used in Update & Delete operations.
    * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The etag. */ @java.lang.Override @@ -6025,30 +5134,30 @@ public java.lang.String getEtag() { 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(); etag_ = s; return s; } } /** - * - * *
    * Optional. ETag of the workload, it is calculated on the basis
    * of the Workload contents. It will be used in Update & Delete operations.
    * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -6057,23 +5166,24 @@ public com.google.protobuf.ByteString getEtagBytes() { } public static final int LABELS_FIELD_NUMBER = 10; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1_Workload_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_Workload_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -6082,30 +5192,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Optional. Labels applied to the workload.
    * 
* * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; */ + @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } - /** Use {@link #getLabelsMap()} instead. */ + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** - * - * *
    * Optional. Labels applied to the workload.
    * 
@@ -6113,12 +5221,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
    * Optional. Labels applied to the workload.
    * 
@@ -6126,16 +5233,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Optional. Labels applied to the workload.
    * 
@@ -6143,11 +5250,12 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -6157,8 +5265,6 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { public static final int PROVISIONED_RESOURCES_PARENT_FIELD_NUMBER = 13; private volatile java.lang.Object provisionedResourcesParent_; /** - * - * *
    * Input only. The parent resource for the resources managed by this Assured
    * Workload. May be either empty or a folder resource which is a child of the
@@ -6168,9 +5274,7 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
    * folders/{folder_id}
    * 
* - * string provisioned_resources_parent = 13 [(.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string provisioned_resources_parent = 13 [(.google.api.field_behavior) = INPUT_ONLY]; * @return The provisionedResourcesParent. */ @java.lang.Override @@ -6179,15 +5283,14 @@ public java.lang.String getProvisionedResourcesParent() { 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(); provisionedResourcesParent_ = s; return s; } } /** - * - * *
    * Input only. The parent resource for the resources managed by this Assured
    * Workload. May be either empty or a folder resource which is a child of the
@@ -6197,17 +5300,17 @@ public java.lang.String getProvisionedResourcesParent() {
    * folders/{folder_id}
    * 
* - * string provisioned_resources_parent = 13 [(.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string provisioned_resources_parent = 13 [(.google.api.field_behavior) = INPUT_ONLY]; * @return The bytes for provisionedResourcesParent. */ @java.lang.Override - public com.google.protobuf.ByteString getProvisionedResourcesParentBytes() { + public com.google.protobuf.ByteString + getProvisionedResourcesParentBytes() { java.lang.Object ref = provisionedResourcesParent_; 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); provisionedResourcesParent_ = b; return b; } else { @@ -6218,18 +5321,13 @@ public com.google.protobuf.ByteString getProvisionedResourcesParentBytes() { public static final int KMS_SETTINGS_FIELD_NUMBER = 14; private com.google.cloud.assuredworkloads.v1.Workload.KMSSettings kmsSettings_; /** - * - * *
    * Input only. Settings used to create a CMEK crypto key. When set a project
    * with a KMS CMEK key is provisioned. This field is mandatory for a subset of
    * Compliance Regimes.
    * 
* - * - * .google.cloud.assuredworkloads.v1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; - * - * + * .google.cloud.assuredworkloads.v1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; * @return Whether the kmsSettings field is set. */ @java.lang.Override @@ -6237,194 +5335,139 @@ public boolean hasKmsSettings() { return kmsSettings_ != null; } /** - * - * *
    * Input only. Settings used to create a CMEK crypto key. When set a project
    * with a KMS CMEK key is provisioned. This field is mandatory for a subset of
    * Compliance Regimes.
    * 
* - * - * .google.cloud.assuredworkloads.v1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; - * - * + * .google.cloud.assuredworkloads.v1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; * @return The kmsSettings. */ @java.lang.Override public com.google.cloud.assuredworkloads.v1.Workload.KMSSettings getKmsSettings() { - return kmsSettings_ == null - ? com.google.cloud.assuredworkloads.v1.Workload.KMSSettings.getDefaultInstance() - : kmsSettings_; + return kmsSettings_ == null ? com.google.cloud.assuredworkloads.v1.Workload.KMSSettings.getDefaultInstance() : kmsSettings_; } /** - * - * *
    * Input only. Settings used to create a CMEK crypto key. When set a project
    * with a KMS CMEK key is provisioned. This field is mandatory for a subset of
    * Compliance Regimes.
    * 
* - * - * .google.cloud.assuredworkloads.v1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; - * + * .google.cloud.assuredworkloads.v1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; */ @java.lang.Override - public com.google.cloud.assuredworkloads.v1.Workload.KMSSettingsOrBuilder - getKmsSettingsOrBuilder() { + public com.google.cloud.assuredworkloads.v1.Workload.KMSSettingsOrBuilder getKmsSettingsOrBuilder() { return getKmsSettings(); } public static final int RESOURCE_SETTINGS_FIELD_NUMBER = 15; - private java.util.List - resourceSettings_; + private java.util.List resourceSettings_; /** - * - * *
    * Input only. Resource properties that are used to customize workload
    * resources. These properties (such as custom project id) will be used to
    * create workload resources if possible. This field is optional.
    * 
* - * - * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; */ @java.lang.Override - public java.util.List - getResourceSettingsList() { + public java.util.List getResourceSettingsList() { return resourceSettings_; } /** - * - * *
    * Input only. Resource properties that are used to customize workload
    * resources. These properties (such as custom project id) will be used to
    * create workload resources if possible. This field is optional.
    * 
* - * - * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.assuredworkloads.v1.Workload.ResourceSettingsOrBuilder> + public java.util.List getResourceSettingsOrBuilderList() { return resourceSettings_; } /** - * - * *
    * Input only. Resource properties that are used to customize workload
    * resources. These properties (such as custom project id) will be used to
    * create workload resources if possible. This field is optional.
    * 
* - * - * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; */ @java.lang.Override public int getResourceSettingsCount() { return resourceSettings_.size(); } /** - * - * *
    * Input only. Resource properties that are used to customize workload
    * resources. These properties (such as custom project id) will be used to
    * create workload resources if possible. This field is optional.
    * 
* - * - * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; */ @java.lang.Override - public com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings getResourceSettings( - int index) { + public com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings getResourceSettings(int index) { return resourceSettings_.get(index); } /** - * - * *
    * Input only. Resource properties that are used to customize workload
    * resources. These properties (such as custom project id) will be used to
    * create workload resources if possible. This field is optional.
    * 
* - * - * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; */ @java.lang.Override - public com.google.cloud.assuredworkloads.v1.Workload.ResourceSettingsOrBuilder - getResourceSettingsOrBuilder(int index) { + public com.google.cloud.assuredworkloads.v1.Workload.ResourceSettingsOrBuilder getResourceSettingsOrBuilder( + int index) { return resourceSettings_.get(index); } public static final int KAJ_ENROLLMENT_STATE_FIELD_NUMBER = 17; private int kajEnrollmentState_; /** - * - * *
    * Output only. Represents the KAJ enrollment state of the given workload.
    * 
* - * - * .google.cloud.assuredworkloads.v1.Workload.KajEnrollmentState kaj_enrollment_state = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.assuredworkloads.v1.Workload.KajEnrollmentState kaj_enrollment_state = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for kajEnrollmentState. */ - @java.lang.Override - public int getKajEnrollmentStateValue() { + @java.lang.Override public int getKajEnrollmentStateValue() { return kajEnrollmentState_; } /** - * - * *
    * Output only. Represents the KAJ enrollment state of the given workload.
    * 
* - * - * .google.cloud.assuredworkloads.v1.Workload.KajEnrollmentState kaj_enrollment_state = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.assuredworkloads.v1.Workload.KajEnrollmentState kaj_enrollment_state = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The kajEnrollmentState. */ - @java.lang.Override - public com.google.cloud.assuredworkloads.v1.Workload.KajEnrollmentState getKajEnrollmentState() { + @java.lang.Override public com.google.cloud.assuredworkloads.v1.Workload.KajEnrollmentState getKajEnrollmentState() { @SuppressWarnings("deprecation") - com.google.cloud.assuredworkloads.v1.Workload.KajEnrollmentState result = - com.google.cloud.assuredworkloads.v1.Workload.KajEnrollmentState.valueOf( - kajEnrollmentState_); - return result == null - ? com.google.cloud.assuredworkloads.v1.Workload.KajEnrollmentState.UNRECOGNIZED - : result; + com.google.cloud.assuredworkloads.v1.Workload.KajEnrollmentState result = com.google.cloud.assuredworkloads.v1.Workload.KajEnrollmentState.valueOf(kajEnrollmentState_); + return result == null ? com.google.cloud.assuredworkloads.v1.Workload.KajEnrollmentState.UNRECOGNIZED : result; } public static final int ENABLE_SOVEREIGN_CONTROLS_FIELD_NUMBER = 18; private boolean enableSovereignControls_; /** - * - * *
    * Optional. Indicates the sovereignty status of the given workload.
    * Currently meant to be used by Europe/Canada customers.
    * 
* * bool enable_sovereign_controls = 18 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The enableSovereignControls. */ @java.lang.Override @@ -6433,21 +5476,15 @@ public boolean getEnableSovereignControls() { } public static final int SAA_ENROLLMENT_RESPONSE_FIELD_NUMBER = 20; - private com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse - saaEnrollmentResponse_; + private com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse saaEnrollmentResponse_; /** - * - * *
    * Output only. Represents the SAA enrollment response of the given workload.
    * SAA enrollment response is queried during GetWorkload call.
    * In failure cases, user friendly error message is shown in SAA details page.
    * 
* - * - * .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the saaEnrollmentResponse field is set. */ @java.lang.Override @@ -6455,48 +5492,34 @@ public boolean hasSaaEnrollmentResponse() { return saaEnrollmentResponse_ != null; } /** - * - * *
    * Output only. Represents the SAA enrollment response of the given workload.
    * SAA enrollment response is queried during GetWorkload call.
    * In failure cases, user friendly error message is shown in SAA details page.
    * 
* - * - * .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The saaEnrollmentResponse. */ @java.lang.Override - public com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse - getSaaEnrollmentResponse() { - return saaEnrollmentResponse_ == null - ? com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.getDefaultInstance() - : saaEnrollmentResponse_; + public com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse getSaaEnrollmentResponse() { + return saaEnrollmentResponse_ == null ? com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.getDefaultInstance() : saaEnrollmentResponse_; } /** - * - * *
    * Output only. Represents the SAA enrollment response of the given workload.
    * SAA enrollment response is queried during GetWorkload call.
    * In failure cases, user friendly error message is shown in SAA details page.
    * 
* - * - * .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponseOrBuilder - getSaaEnrollmentResponseOrBuilder() { + public com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponseOrBuilder getSaaEnrollmentResponseOrBuilder() { return getSaaEnrollmentResponse(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -6508,7 +5531,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_); } @@ -6518,10 +5542,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < resources_.size(); i++) { output.writeMessage(3, resources_.get(i)); } - if (complianceRegime_ - != com.google.cloud.assuredworkloads.v1.Workload.ComplianceRegime - .COMPLIANCE_REGIME_UNSPECIFIED - .getNumber()) { + if (complianceRegime_ != com.google.cloud.assuredworkloads.v1.Workload.ComplianceRegime.COMPLIANCE_REGIME_UNSPECIFIED.getNumber()) { output.writeEnum(4, complianceRegime_); } if (createTime_ != null) { @@ -6533,8 +5554,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, etag_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 10); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 10); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(provisionedResourcesParent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 13, provisionedResourcesParent_); } @@ -6544,10 +5569,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < resourceSettings_.size(); i++) { output.writeMessage(15, resourceSettings_.get(i)); } - if (kajEnrollmentState_ - != com.google.cloud.assuredworkloads.v1.Workload.KajEnrollmentState - .KAJ_ENROLLMENT_STATE_UNSPECIFIED - .getNumber()) { + if (kajEnrollmentState_ != com.google.cloud.assuredworkloads.v1.Workload.KajEnrollmentState.KAJ_ENROLLMENT_STATE_UNSPECIFIED.getNumber()) { output.writeEnum(17, kajEnrollmentState_); } if (enableSovereignControls_ != false) { @@ -6572,16 +5594,16 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); } for (int i = 0; i < resources_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, resources_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, resources_.get(i)); } - if (complianceRegime_ - != com.google.cloud.assuredworkloads.v1.Workload.ComplianceRegime - .COMPLIANCE_REGIME_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, complianceRegime_); + if (complianceRegime_ != com.google.cloud.assuredworkloads.v1.Workload.ComplianceRegime.COMPLIANCE_REGIME_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, complianceRegime_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getCreateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(billingAccount_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, billingAccount_); @@ -6589,39 +5611,38 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, etag_); } - for (java.util.Map.Entry entry : - internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry labels__ = - LabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, labels__); + for (java.util.Map.Entry entry + : internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, labels__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(provisionedResourcesParent_)) { - size += - com.google.protobuf.GeneratedMessageV3.computeStringSize(13, provisionedResourcesParent_); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, provisionedResourcesParent_); } if (kmsSettings_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getKmsSettings()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(14, getKmsSettings()); } for (int i = 0; i < resourceSettings_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(15, resourceSettings_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(15, resourceSettings_.get(i)); } - if (kajEnrollmentState_ - != com.google.cloud.assuredworkloads.v1.Workload.KajEnrollmentState - .KAJ_ENROLLMENT_STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(17, kajEnrollmentState_); + if (kajEnrollmentState_ != com.google.cloud.assuredworkloads.v1.Workload.KajEnrollmentState.KAJ_ENROLLMENT_STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(17, kajEnrollmentState_); } if (enableSovereignControls_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(18, enableSovereignControls_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(18, enableSovereignControls_); } if (saaEnrollmentResponse_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(20, getSaaEnrollmentResponse()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(20, getSaaEnrollmentResponse()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -6631,37 +5652,47 @@ 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.assuredworkloads.v1.Workload)) { return super.equals(obj); } - com.google.cloud.assuredworkloads.v1.Workload other = - (com.google.cloud.assuredworkloads.v1.Workload) obj; + com.google.cloud.assuredworkloads.v1.Workload other = (com.google.cloud.assuredworkloads.v1.Workload) obj; - if (!getName().equals(other.getName())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (!getResourcesList().equals(other.getResourcesList())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; + if (!getResourcesList() + .equals(other.getResourcesList())) return false; if (complianceRegime_ != other.complianceRegime_) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; - } - if (!getBillingAccount().equals(other.getBillingAccount())) return false; - if (!getEtag().equals(other.getEtag())) return false; - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (!getProvisionedResourcesParent().equals(other.getProvisionedResourcesParent())) - return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; + } + if (!getBillingAccount() + .equals(other.getBillingAccount())) return false; + if (!getEtag() + .equals(other.getEtag())) return false; + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; + if (!getProvisionedResourcesParent() + .equals(other.getProvisionedResourcesParent())) return false; if (hasKmsSettings() != other.hasKmsSettings()) return false; if (hasKmsSettings()) { - if (!getKmsSettings().equals(other.getKmsSettings())) return false; + if (!getKmsSettings() + .equals(other.getKmsSettings())) return false; } - if (!getResourceSettingsList().equals(other.getResourceSettingsList())) return false; + if (!getResourceSettingsList() + .equals(other.getResourceSettingsList())) return false; if (kajEnrollmentState_ != other.kajEnrollmentState_) return false; - if (getEnableSovereignControls() != other.getEnableSovereignControls()) return false; + if (getEnableSovereignControls() + != other.getEnableSovereignControls()) return false; if (hasSaaEnrollmentResponse() != other.hasSaaEnrollmentResponse()) return false; if (hasSaaEnrollmentResponse()) { - if (!getSaaEnrollmentResponse().equals(other.getSaaEnrollmentResponse())) return false; + if (!getSaaEnrollmentResponse() + .equals(other.getSaaEnrollmentResponse())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -6709,7 +5740,8 @@ public int hashCode() { hash = (37 * hash) + KAJ_ENROLLMENT_STATE_FIELD_NUMBER; hash = (53 * hash) + kajEnrollmentState_; hash = (37 * hash) + ENABLE_SOVEREIGN_CONTROLS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableSovereignControls()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnableSovereignControls()); if (hasSaaEnrollmentResponse()) { hash = (37 * hash) + SAA_ENROLLMENT_RESPONSE_FIELD_NUMBER; hash = (53 * hash) + getSaaEnrollmentResponse().hashCode(); @@ -6719,104 +5751,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.assuredworkloads.v1.Workload parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.assuredworkloads.v1.Workload parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.assuredworkloads.v1.Workload 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.assuredworkloads.v1.Workload parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.assuredworkloads.v1.Workload 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.assuredworkloads.v1.Workload parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.assuredworkloads.v1.Workload 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.assuredworkloads.v1.Workload parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.assuredworkloads.v1.Workload 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.assuredworkloads.v1.Workload parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.assuredworkloads.v1.Workload parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.assuredworkloads.v1.Workload 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.assuredworkloads.v1.Workload 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.assuredworkloads.v1.Workload 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.assuredworkloads.v1.Workload prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * An Workload object for managing highly regulated workloads of cloud
    * customers.
@@ -6824,43 +5849,43 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.assuredworkloads.v1.Workload}
    */
-  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.assuredworkloads.v1.Workload)
       com.google.cloud.assuredworkloads.v1.WorkloadOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto
-          .internal_static_google_cloud_assuredworkloads_v1_Workload_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_Workload_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 10:
           return internalGetLabels();
         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 10:
           return internalGetMutableLabels();
         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.assuredworkloads.v1.AssuredworkloadsProto
-          .internal_static_google_cloud_assuredworkloads_v1_Workload_fieldAccessorTable
+      return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_Workload_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.assuredworkloads.v1.Workload.class,
-              com.google.cloud.assuredworkloads.v1.Workload.Builder.class);
+              com.google.cloud.assuredworkloads.v1.Workload.class, com.google.cloud.assuredworkloads.v1.Workload.Builder.class);
     }
 
     // Construct using com.google.cloud.assuredworkloads.v1.Workload.newBuilder()
@@ -6868,18 +5893,18 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getResourcesFieldBuilder();
         getResourceSettingsFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -6934,9 +5959,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto
-          .internal_static_google_cloud_assuredworkloads_v1_Workload_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_Workload_descriptor;
     }
 
     @java.lang.Override
@@ -6955,8 +5980,7 @@ public com.google.cloud.assuredworkloads.v1.Workload build() {
 
     @java.lang.Override
     public com.google.cloud.assuredworkloads.v1.Workload buildPartial() {
-      com.google.cloud.assuredworkloads.v1.Workload result =
-          new com.google.cloud.assuredworkloads.v1.Workload(this);
+      com.google.cloud.assuredworkloads.v1.Workload result = new com.google.cloud.assuredworkloads.v1.Workload(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       result.displayName_ = displayName_;
@@ -7009,39 +6033,38 @@ public com.google.cloud.assuredworkloads.v1.Workload buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.assuredworkloads.v1.Workload) {
-        return mergeFrom((com.google.cloud.assuredworkloads.v1.Workload) other);
+        return mergeFrom((com.google.cloud.assuredworkloads.v1.Workload)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -7076,10 +6099,9 @@ public Builder mergeFrom(com.google.cloud.assuredworkloads.v1.Workload other) {
             resourcesBuilder_ = null;
             resources_ = other.resources_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            resourcesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getResourcesFieldBuilder()
-                    : null;
+            resourcesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getResourcesFieldBuilder() : null;
           } else {
             resourcesBuilder_.addAllMessages(other.resources_);
           }
@@ -7099,7 +6121,8 @@ public Builder mergeFrom(com.google.cloud.assuredworkloads.v1.Workload other) {
         etag_ = other.etag_;
         onChanged();
       }
-      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(
+          other.internalGetLabels());
       if (!other.getProvisionedResourcesParent().isEmpty()) {
         provisionedResourcesParent_ = other.provisionedResourcesParent_;
         onChanged();
@@ -7125,10 +6148,9 @@ public Builder mergeFrom(com.google.cloud.assuredworkloads.v1.Workload other) {
             resourceSettingsBuilder_ = null;
             resourceSettings_ = other.resourceSettings_;
             bitField0_ = (bitField0_ & ~0x00000004);
-            resourceSettingsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getResourceSettingsFieldBuilder()
-                    : null;
+            resourceSettingsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getResourceSettingsFieldBuilder() : null;
           } else {
             resourceSettingsBuilder_.addAllMessages(other.resourceSettings_);
           }
@@ -7171,13 +6193,10 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Optional. The resource name of the workload.
      * Format:
@@ -7186,13 +6205,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; @@ -7201,8 +6220,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Optional. The resource name of the workload.
      * Format:
@@ -7211,14 +6228,15 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -7226,8 +6244,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Optional. The resource name of the workload.
      * Format:
@@ -7236,22 +6252,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The resource name of the workload.
      * Format:
@@ -7260,18 +6274,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Optional. The resource name of the workload.
      * Format:
@@ -7280,16 +6291,16 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -7297,8 +6308,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object displayName_ = ""; /** - * - * *
      * Required. The user-assigned display name of the Workload.
      * When present it must be between 4 to 30 characters.
@@ -7308,13 +6317,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; 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(); displayName_ = s; return s; @@ -7323,8 +6332,6 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * Required. The user-assigned display name of the Workload.
      * When present it must be between 4 to 30 characters.
@@ -7334,14 +6341,15 @@ public java.lang.String getDisplayName() {
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; 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); displayName_ = b; return b; } else { @@ -7349,8 +6357,6 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * Required. The user-assigned display name of the Workload.
      * When present it must be between 4 to 30 characters.
@@ -7360,22 +6366,20 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { + public Builder setDisplayName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** - * - * *
      * Required. The user-assigned display name of the Workload.
      * When present it must be between 4 to 30 characters.
@@ -7385,18 +6389,15 @@ public Builder setDisplayName(java.lang.String value) {
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** - * - * *
      * Required. The user-assigned display name of the Workload.
      * When present it must be between 4 to 30 characters.
@@ -7406,42 +6407,34 @@ public Builder clearDisplayName() {
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; } private java.util.List resources_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureResourcesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - resources_ = - new java.util.ArrayList( - resources_); + resources_ = new java.util.ArrayList(resources_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo, - com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.Builder, - com.google.cloud.assuredworkloads.v1.Workload.ResourceInfoOrBuilder> - resourcesBuilder_; + com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo, com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.Builder, com.google.cloud.assuredworkloads.v1.Workload.ResourceInfoOrBuilder> resourcesBuilder_; /** - * - * *
      * Output only. The resources associated with this workload.
      * These resources will be created when creating the workload.
@@ -7449,12 +6442,9 @@ private void ensureResourcesIsMutable() {
      * Always read only.
      * 
* - * - * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List - getResourcesList() { + public java.util.List getResourcesList() { if (resourcesBuilder_ == null) { return java.util.Collections.unmodifiableList(resources_); } else { @@ -7462,8 +6452,6 @@ private void ensureResourcesIsMutable() { } } /** - * - * *
      * Output only. The resources associated with this workload.
      * These resources will be created when creating the workload.
@@ -7471,9 +6459,7 @@ private void ensureResourcesIsMutable() {
      * Always read only.
      * 
* - * - * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public int getResourcesCount() { if (resourcesBuilder_ == null) { @@ -7483,8 +6469,6 @@ public int getResourcesCount() { } } /** - * - * *
      * Output only. The resources associated with this workload.
      * These resources will be created when creating the workload.
@@ -7492,9 +6476,7 @@ public int getResourcesCount() {
      * Always read only.
      * 
* - * - * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo getResources(int index) { if (resourcesBuilder_ == null) { @@ -7504,8 +6486,6 @@ public com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo getResources(i } } /** - * - * *
      * Output only. The resources associated with this workload.
      * These resources will be created when creating the workload.
@@ -7513,9 +6493,7 @@ public com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo getResources(i
      * Always read only.
      * 
* - * - * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setResources( int index, com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo value) { @@ -7532,8 +6510,6 @@ public Builder setResources( return this; } /** - * - * *
      * Output only. The resources associated with this workload.
      * These resources will be created when creating the workload.
@@ -7541,13 +6517,10 @@ public Builder setResources(
      * Always read only.
      * 
* - * - * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setResources( - int index, - com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.Builder builderForValue) { + int index, com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.Builder builderForValue) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); resources_.set(index, builderForValue.build()); @@ -7558,8 +6531,6 @@ public Builder setResources( return this; } /** - * - * *
      * Output only. The resources associated with this workload.
      * These resources will be created when creating the workload.
@@ -7567,9 +6538,7 @@ public Builder setResources(
      * Always read only.
      * 
* - * - * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addResources(com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo value) { if (resourcesBuilder_ == null) { @@ -7585,8 +6554,6 @@ public Builder addResources(com.google.cloud.assuredworkloads.v1.Workload.Resour return this; } /** - * - * *
      * Output only. The resources associated with this workload.
      * These resources will be created when creating the workload.
@@ -7594,9 +6561,7 @@ public Builder addResources(com.google.cloud.assuredworkloads.v1.Workload.Resour
      * Always read only.
      * 
* - * - * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addResources( int index, com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo value) { @@ -7613,8 +6578,6 @@ public Builder addResources( return this; } /** - * - * *
      * Output only. The resources associated with this workload.
      * These resources will be created when creating the workload.
@@ -7622,9 +6585,7 @@ public Builder addResources(
      * Always read only.
      * 
* - * - * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addResources( com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.Builder builderForValue) { @@ -7638,8 +6599,6 @@ public Builder addResources( return this; } /** - * - * *
      * Output only. The resources associated with this workload.
      * These resources will be created when creating the workload.
@@ -7647,13 +6606,10 @@ public Builder addResources(
      * Always read only.
      * 
* - * - * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addResources( - int index, - com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.Builder builderForValue) { + int index, com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.Builder builderForValue) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); resources_.add(index, builderForValue.build()); @@ -7664,8 +6620,6 @@ public Builder addResources( return this; } /** - * - * *
      * Output only. The resources associated with this workload.
      * These resources will be created when creating the workload.
@@ -7673,16 +6627,14 @@ public Builder addResources(
      * Always read only.
      * 
* - * - * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addAllResources( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, resources_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, resources_); onChanged(); } else { resourcesBuilder_.addAllMessages(values); @@ -7690,8 +6642,6 @@ public Builder addAllResources( return this; } /** - * - * *
      * Output only. The resources associated with this workload.
      * These resources will be created when creating the workload.
@@ -7699,9 +6649,7 @@ public Builder addAllResources(
      * Always read only.
      * 
* - * - * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearResources() { if (resourcesBuilder_ == null) { @@ -7714,8 +6662,6 @@ public Builder clearResources() { return this; } /** - * - * *
      * Output only. The resources associated with this workload.
      * These resources will be created when creating the workload.
@@ -7723,9 +6669,7 @@ public Builder clearResources() {
      * Always read only.
      * 
* - * - * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder removeResources(int index) { if (resourcesBuilder_ == null) { @@ -7738,8 +6682,6 @@ public Builder removeResources(int index) { return this; } /** - * - * *
      * Output only. The resources associated with this workload.
      * These resources will be created when creating the workload.
@@ -7747,17 +6689,13 @@ public Builder removeResources(int index) {
      * Always read only.
      * 
* - * - * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.Builder getResourcesBuilder( int index) { return getResourcesFieldBuilder().getBuilder(index); } /** - * - * *
      * Output only. The resources associated with this workload.
      * These resources will be created when creating the workload.
@@ -7765,21 +6703,16 @@ public com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.Builder getRes
      * Always read only.
      * 
* - * - * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.assuredworkloads.v1.Workload.ResourceInfoOrBuilder - getResourcesOrBuilder(int index) { + public com.google.cloud.assuredworkloads.v1.Workload.ResourceInfoOrBuilder getResourcesOrBuilder( + int index) { if (resourcesBuilder_ == null) { - return resources_.get(index); - } else { + return resources_.get(index); } else { return resourcesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Output only. The resources associated with this workload.
      * These resources will be created when creating the workload.
@@ -7787,13 +6720,10 @@ public com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.Builder getRes
      * Always read only.
      * 
* - * - * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List< - ? extends com.google.cloud.assuredworkloads.v1.Workload.ResourceInfoOrBuilder> - getResourcesOrBuilderList() { + public java.util.List + getResourcesOrBuilderList() { if (resourcesBuilder_ != null) { return resourcesBuilder_.getMessageOrBuilderList(); } else { @@ -7801,8 +6731,6 @@ public com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.Builder getRes } } /** - * - * *
      * Output only. The resources associated with this workload.
      * These resources will be created when creating the workload.
@@ -7810,19 +6738,13 @@ public com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.Builder getRes
      * Always read only.
      * 
* - * - * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.Builder - addResourcesBuilder() { - return getResourcesFieldBuilder() - .addBuilder( - com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.getDefaultInstance()); + public com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.Builder addResourcesBuilder() { + return getResourcesFieldBuilder().addBuilder( + com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.getDefaultInstance()); } /** - * - * *
      * Output only. The resources associated with this workload.
      * These resources will be created when creating the workload.
@@ -7830,20 +6752,14 @@ public com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.Builder getRes
      * Always read only.
      * 
* - * - * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.Builder addResourcesBuilder( int index) { - return getResourcesFieldBuilder() - .addBuilder( - index, - com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.getDefaultInstance()); + return getResourcesFieldBuilder().addBuilder( + index, com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.getDefaultInstance()); } /** - * - * *
      * Output only. The resources associated with this workload.
      * These resources will be created when creating the workload.
@@ -7851,27 +6767,22 @@ public com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.Builder addRes
      * Always read only.
      * 
* - * - * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List - getResourcesBuilderList() { + public java.util.List + getResourcesBuilderList() { return getResourcesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo, - com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.Builder, - com.google.cloud.assuredworkloads.v1.Workload.ResourceInfoOrBuilder> + com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo, com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.Builder, com.google.cloud.assuredworkloads.v1.Workload.ResourceInfoOrBuilder> getResourcesFieldBuilder() { if (resourcesBuilder_ == null) { - resourcesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo, - com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.Builder, - com.google.cloud.assuredworkloads.v1.Workload.ResourceInfoOrBuilder>( - resources_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + resourcesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo, com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.Builder, com.google.cloud.assuredworkloads.v1.Workload.ResourceInfoOrBuilder>( + resources_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); resources_ = null; } return resourcesBuilder_; @@ -7879,103 +6790,73 @@ public com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.Builder addRes private int complianceRegime_ = 0; /** - * - * *
      * Required. Immutable. Compliance Regime associated with this workload.
      * 
* - * - * .google.cloud.assuredworkloads.v1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.assuredworkloads.v1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return The enum numeric value on the wire for complianceRegime. */ - @java.lang.Override - public int getComplianceRegimeValue() { + @java.lang.Override public int getComplianceRegimeValue() { return complianceRegime_; } /** - * - * *
      * Required. Immutable. Compliance Regime associated with this workload.
      * 
* - * - * .google.cloud.assuredworkloads.v1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.assuredworkloads.v1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @param value The enum numeric value on the wire for complianceRegime to set. * @return This builder for chaining. */ public Builder setComplianceRegimeValue(int value) { - + complianceRegime_ = value; onChanged(); return this; } /** - * - * *
      * Required. Immutable. Compliance Regime associated with this workload.
      * 
* - * - * .google.cloud.assuredworkloads.v1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.assuredworkloads.v1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return The complianceRegime. */ @java.lang.Override public com.google.cloud.assuredworkloads.v1.Workload.ComplianceRegime getComplianceRegime() { @SuppressWarnings("deprecation") - com.google.cloud.assuredworkloads.v1.Workload.ComplianceRegime result = - com.google.cloud.assuredworkloads.v1.Workload.ComplianceRegime.valueOf(complianceRegime_); - return result == null - ? com.google.cloud.assuredworkloads.v1.Workload.ComplianceRegime.UNRECOGNIZED - : result; + com.google.cloud.assuredworkloads.v1.Workload.ComplianceRegime result = com.google.cloud.assuredworkloads.v1.Workload.ComplianceRegime.valueOf(complianceRegime_); + return result == null ? com.google.cloud.assuredworkloads.v1.Workload.ComplianceRegime.UNRECOGNIZED : result; } /** - * - * *
      * Required. Immutable. Compliance Regime associated with this workload.
      * 
* - * - * .google.cloud.assuredworkloads.v1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.assuredworkloads.v1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @param value The complianceRegime to set. * @return This builder for chaining. */ - public Builder setComplianceRegime( - com.google.cloud.assuredworkloads.v1.Workload.ComplianceRegime value) { + public Builder setComplianceRegime(com.google.cloud.assuredworkloads.v1.Workload.ComplianceRegime value) { if (value == null) { throw new NullPointerException(); } - + complianceRegime_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Required. Immutable. Compliance Regime associated with this workload.
      * 
* - * - * .google.cloud.assuredworkloads.v1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.assuredworkloads.v1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return This builder for chaining. */ public Builder clearComplianceRegime() { - + complianceRegime_ = 0; onChanged(); return this; @@ -7983,58 +6864,39 @@ public Builder clearComplianceRegime() { 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. Immutable. The Workload creation timestamp.
      * 
* - * - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
      * Output only. Immutable. The Workload creation timestamp.
      * 
* - * - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; * @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. Immutable. The Workload creation timestamp.
      * 
* - * - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -8050,17 +6912,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Immutable. The Workload creation timestamp.
      * 
* - * - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -8071,21 +6930,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. Immutable. The Workload creation timestamp.
      * 
* - * - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -8096,16 +6951,12 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } - /** - * - * + /** *
      * Output only. Immutable. The Workload creation timestamp.
      * 
* - * - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -8119,64 +6970,48 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. Immutable. The Workload creation timestamp.
      * 
* - * - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Immutable. The Workload creation timestamp.
      * 
* - * - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ 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. Immutable. The Workload creation timestamp.
      * 
* - * - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ 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_; @@ -8184,8 +7019,6 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private java.lang.Object billingAccount_ = ""; /** - * - * *
      * Required. Input only. The billing account used for the resources which are
      * direct children of workload. This billing account is initially associated
@@ -8197,16 +7030,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
      * `billingAccounts/012345-567890-ABCDEF`.
      * 
* - * - * string billing_account = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string billing_account = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @return The billingAccount. */ public java.lang.String getBillingAccount() { java.lang.Object ref = billingAccount_; 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(); billingAccount_ = s; return s; @@ -8215,8 +7046,6 @@ public java.lang.String getBillingAccount() { } } /** - * - * *
      * Required. Input only. The billing account used for the resources which are
      * direct children of workload. This billing account is initially associated
@@ -8228,17 +7057,16 @@ public java.lang.String getBillingAccount() {
      * `billingAccounts/012345-567890-ABCDEF`.
      * 
* - * - * string billing_account = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string billing_account = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @return The bytes for billingAccount. */ - public com.google.protobuf.ByteString getBillingAccountBytes() { + public com.google.protobuf.ByteString + getBillingAccountBytes() { java.lang.Object ref = billingAccount_; 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); billingAccount_ = b; return b; } else { @@ -8246,8 +7074,6 @@ public com.google.protobuf.ByteString getBillingAccountBytes() { } } /** - * - * *
      * Required. Input only. The billing account used for the resources which are
      * direct children of workload. This billing account is initially associated
@@ -8259,25 +7085,21 @@ public com.google.protobuf.ByteString getBillingAccountBytes() {
      * `billingAccounts/012345-567890-ABCDEF`.
      * 
* - * - * string billing_account = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string billing_account = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @param value The billingAccount to set. * @return This builder for chaining. */ - public Builder setBillingAccount(java.lang.String value) { + public Builder setBillingAccount( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + billingAccount_ = value; onChanged(); return this; } /** - * - * *
      * Required. Input only. The billing account used for the resources which are
      * direct children of workload. This billing account is initially associated
@@ -8289,21 +7111,16 @@ public Builder setBillingAccount(java.lang.String value) {
      * `billingAccounts/012345-567890-ABCDEF`.
      * 
* - * - * string billing_account = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string billing_account = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @return This builder for chaining. */ public Builder clearBillingAccount() { - + billingAccount_ = getDefaultInstance().getBillingAccount(); onChanged(); return this; } /** - * - * *
      * Required. Input only. The billing account used for the resources which are
      * direct children of workload. This billing account is initially associated
@@ -8315,19 +7132,17 @@ public Builder clearBillingAccount() {
      * `billingAccounts/012345-567890-ABCDEF`.
      * 
* - * - * string billing_account = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string billing_account = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @param value The bytes for billingAccount to set. * @return This builder for chaining. */ - public Builder setBillingAccountBytes(com.google.protobuf.ByteString value) { + public Builder setBillingAccountBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + billingAccount_ = value; onChanged(); return this; @@ -8335,21 +7150,19 @@ public Builder setBillingAccountBytes(com.google.protobuf.ByteString value) { private java.lang.Object etag_ = ""; /** - * - * *
      * Optional. ETag of the workload, it is calculated on the basis
      * of the Workload contents. It will be used in Update & Delete operations.
      * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; 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(); etag_ = s; return s; @@ -8358,22 +7171,21 @@ public java.lang.String getEtag() { } } /** - * - * *
      * Optional. ETag of the workload, it is calculated on the basis
      * of the Workload contents. It will be used in Update & Delete operations.
      * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for etag. */ - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -8381,84 +7193,78 @@ public com.google.protobuf.ByteString getEtagBytes() { } } /** - * - * *
      * Optional. ETag of the workload, it is calculated on the basis
      * of the Workload contents. It will be used in Update & Delete operations.
      * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag(java.lang.String value) { + public Builder setEtag( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + etag_ = value; onChanged(); return this; } /** - * - * *
      * Optional. ETag of the workload, it is calculated on the basis
      * of the Workload contents. It will be used in Update & Delete operations.
      * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearEtag() { - + etag_ = getDefaultInstance().getEtag(); onChanged(); return this; } /** - * - * *
      * Optional. ETag of the workload, it is calculated on the basis
      * of the Workload contents. It will be used in Update & Delete operations.
      * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; onChanged(); return this; } - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged(); - ; + internalGetMutableLabels() { + onChanged();; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -8470,30 +7276,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Optional. Labels applied to the workload.
      * 
* * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; */ + @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } - /** Use {@link #getLabelsMap()} instead. */ + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** - * - * *
      * Optional. Labels applied to the workload.
      * 
@@ -8501,12 +7305,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
      * Optional. Labels applied to the workload.
      * 
@@ -8514,17 +7317,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Optional. Labels applied to the workload.
      * 
@@ -8532,11 +7334,12 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -8544,68 +7347,69 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap().clear(); + internalGetMutableLabels().getMutableMap() + .clear(); return this; } /** - * - * *
      * Optional. Labels applied to the workload.
      * 
* * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder removeLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableLabels().getMutableMap().remove(key); + + public Builder removeLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableLabels().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableLabels() { + public java.util.Map + getMutableLabels() { return internalGetMutableLabels().getMutableMap(); } /** - * - * *
      * Optional. Labels applied to the workload.
      * 
* * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder putLabels(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } + public Builder putLabels( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } if (value == null) { - throw new NullPointerException("map value"); - } + throw new NullPointerException("map value"); +} - internalGetMutableLabels().getMutableMap().put(key, value); + internalGetMutableLabels().getMutableMap() + .put(key, value); return this; } /** - * - * *
      * Optional. Labels applied to the workload.
      * 
* * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); + + public Builder putAllLabels( + java.util.Map values) { + internalGetMutableLabels().getMutableMap() + .putAll(values); return this; } private java.lang.Object provisionedResourcesParent_ = ""; /** - * - * *
      * Input only. The parent resource for the resources managed by this Assured
      * Workload. May be either empty or a folder resource which is a child of the
@@ -8615,15 +7419,14 @@ public Builder putAllLabels(java.util.Map va
      * folders/{folder_id}
      * 
* - * string provisioned_resources_parent = 13 [(.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string provisioned_resources_parent = 13 [(.google.api.field_behavior) = INPUT_ONLY]; * @return The provisionedResourcesParent. */ public java.lang.String getProvisionedResourcesParent() { java.lang.Object ref = provisionedResourcesParent_; 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(); provisionedResourcesParent_ = s; return s; @@ -8632,8 +7435,6 @@ public java.lang.String getProvisionedResourcesParent() { } } /** - * - * *
      * Input only. The parent resource for the resources managed by this Assured
      * Workload. May be either empty or a folder resource which is a child of the
@@ -8643,16 +7444,16 @@ public java.lang.String getProvisionedResourcesParent() {
      * folders/{folder_id}
      * 
* - * string provisioned_resources_parent = 13 [(.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string provisioned_resources_parent = 13 [(.google.api.field_behavior) = INPUT_ONLY]; * @return The bytes for provisionedResourcesParent. */ - public com.google.protobuf.ByteString getProvisionedResourcesParentBytes() { + public com.google.protobuf.ByteString + getProvisionedResourcesParentBytes() { java.lang.Object ref = provisionedResourcesParent_; 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); provisionedResourcesParent_ = b; return b; } else { @@ -8660,8 +7461,6 @@ public com.google.protobuf.ByteString getProvisionedResourcesParentBytes() { } } /** - * - * *
      * Input only. The parent resource for the resources managed by this Assured
      * Workload. May be either empty or a folder resource which is a child of the
@@ -8671,24 +7470,21 @@ public com.google.protobuf.ByteString getProvisionedResourcesParentBytes() {
      * folders/{folder_id}
      * 
* - * string provisioned_resources_parent = 13 [(.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string provisioned_resources_parent = 13 [(.google.api.field_behavior) = INPUT_ONLY]; * @param value The provisionedResourcesParent to set. * @return This builder for chaining. */ - public Builder setProvisionedResourcesParent(java.lang.String value) { + public Builder setProvisionedResourcesParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + provisionedResourcesParent_ = value; onChanged(); return this; } /** - * - * *
      * Input only. The parent resource for the resources managed by this Assured
      * Workload. May be either empty or a folder resource which is a child of the
@@ -8698,20 +7494,16 @@ public Builder setProvisionedResourcesParent(java.lang.String value) {
      * folders/{folder_id}
      * 
* - * string provisioned_resources_parent = 13 [(.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string provisioned_resources_parent = 13 [(.google.api.field_behavior) = INPUT_ONLY]; * @return This builder for chaining. */ public Builder clearProvisionedResourcesParent() { - + provisionedResourcesParent_ = getDefaultInstance().getProvisionedResourcesParent(); onChanged(); return this; } /** - * - * *
      * Input only. The parent resource for the resources managed by this Assured
      * Workload. May be either empty or a folder resource which is a child of the
@@ -8721,18 +7513,17 @@ public Builder clearProvisionedResourcesParent() {
      * folders/{folder_id}
      * 
* - * string provisioned_resources_parent = 13 [(.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string provisioned_resources_parent = 13 [(.google.api.field_behavior) = INPUT_ONLY]; * @param value The bytes for provisionedResourcesParent to set. * @return This builder for chaining. */ - public Builder setProvisionedResourcesParentBytes(com.google.protobuf.ByteString value) { + public Builder setProvisionedResourcesParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + provisionedResourcesParent_ = value; onChanged(); return this; @@ -8740,64 +7531,45 @@ public Builder setProvisionedResourcesParentBytes(com.google.protobuf.ByteString private com.google.cloud.assuredworkloads.v1.Workload.KMSSettings kmsSettings_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.assuredworkloads.v1.Workload.KMSSettings, - com.google.cloud.assuredworkloads.v1.Workload.KMSSettings.Builder, - com.google.cloud.assuredworkloads.v1.Workload.KMSSettingsOrBuilder> - kmsSettingsBuilder_; + com.google.cloud.assuredworkloads.v1.Workload.KMSSettings, com.google.cloud.assuredworkloads.v1.Workload.KMSSettings.Builder, com.google.cloud.assuredworkloads.v1.Workload.KMSSettingsOrBuilder> kmsSettingsBuilder_; /** - * - * *
      * Input only. Settings used to create a CMEK crypto key. When set a project
      * with a KMS CMEK key is provisioned. This field is mandatory for a subset of
      * Compliance Regimes.
      * 
* - * - * .google.cloud.assuredworkloads.v1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; - * - * + * .google.cloud.assuredworkloads.v1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; * @return Whether the kmsSettings field is set. */ public boolean hasKmsSettings() { return kmsSettingsBuilder_ != null || kmsSettings_ != null; } /** - * - * *
      * Input only. Settings used to create a CMEK crypto key. When set a project
      * with a KMS CMEK key is provisioned. This field is mandatory for a subset of
      * Compliance Regimes.
      * 
* - * - * .google.cloud.assuredworkloads.v1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; - * - * + * .google.cloud.assuredworkloads.v1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; * @return The kmsSettings. */ public com.google.cloud.assuredworkloads.v1.Workload.KMSSettings getKmsSettings() { if (kmsSettingsBuilder_ == null) { - return kmsSettings_ == null - ? com.google.cloud.assuredworkloads.v1.Workload.KMSSettings.getDefaultInstance() - : kmsSettings_; + return kmsSettings_ == null ? com.google.cloud.assuredworkloads.v1.Workload.KMSSettings.getDefaultInstance() : kmsSettings_; } else { return kmsSettingsBuilder_.getMessage(); } } /** - * - * *
      * Input only. Settings used to create a CMEK crypto key. When set a project
      * with a KMS CMEK key is provisioned. This field is mandatory for a subset of
      * Compliance Regimes.
      * 
* - * - * .google.cloud.assuredworkloads.v1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; - * + * .google.cloud.assuredworkloads.v1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; */ public Builder setKmsSettings(com.google.cloud.assuredworkloads.v1.Workload.KMSSettings value) { if (kmsSettingsBuilder_ == null) { @@ -8813,17 +7585,13 @@ public Builder setKmsSettings(com.google.cloud.assuredworkloads.v1.Workload.KMSS return this; } /** - * - * *
      * Input only. Settings used to create a CMEK crypto key. When set a project
      * with a KMS CMEK key is provisioned. This field is mandatory for a subset of
      * Compliance Regimes.
      * 
* - * - * .google.cloud.assuredworkloads.v1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; - * + * .google.cloud.assuredworkloads.v1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; */ public Builder setKmsSettings( com.google.cloud.assuredworkloads.v1.Workload.KMSSettings.Builder builderForValue) { @@ -8837,26 +7605,19 @@ public Builder setKmsSettings( return this; } /** - * - * *
      * Input only. Settings used to create a CMEK crypto key. When set a project
      * with a KMS CMEK key is provisioned. This field is mandatory for a subset of
      * Compliance Regimes.
      * 
* - * - * .google.cloud.assuredworkloads.v1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; - * + * .google.cloud.assuredworkloads.v1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; */ - public Builder mergeKmsSettings( - com.google.cloud.assuredworkloads.v1.Workload.KMSSettings value) { + public Builder mergeKmsSettings(com.google.cloud.assuredworkloads.v1.Workload.KMSSettings value) { if (kmsSettingsBuilder_ == null) { if (kmsSettings_ != null) { kmsSettings_ = - com.google.cloud.assuredworkloads.v1.Workload.KMSSettings.newBuilder(kmsSettings_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.assuredworkloads.v1.Workload.KMSSettings.newBuilder(kmsSettings_).mergeFrom(value).buildPartial(); } else { kmsSettings_ = value; } @@ -8868,17 +7629,13 @@ public Builder mergeKmsSettings( return this; } /** - * - * *
      * Input only. Settings used to create a CMEK crypto key. When set a project
      * with a KMS CMEK key is provisioned. This field is mandatory for a subset of
      * Compliance Regimes.
      * 
* - * - * .google.cloud.assuredworkloads.v1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; - * + * .google.cloud.assuredworkloads.v1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; */ public Builder clearKmsSettings() { if (kmsSettingsBuilder_ == null) { @@ -8892,110 +7649,81 @@ public Builder clearKmsSettings() { return this; } /** - * - * *
      * Input only. Settings used to create a CMEK crypto key. When set a project
      * with a KMS CMEK key is provisioned. This field is mandatory for a subset of
      * Compliance Regimes.
      * 
* - * - * .google.cloud.assuredworkloads.v1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; - * + * .google.cloud.assuredworkloads.v1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; */ - public com.google.cloud.assuredworkloads.v1.Workload.KMSSettings.Builder - getKmsSettingsBuilder() { - + public com.google.cloud.assuredworkloads.v1.Workload.KMSSettings.Builder getKmsSettingsBuilder() { + onChanged(); return getKmsSettingsFieldBuilder().getBuilder(); } /** - * - * *
      * Input only. Settings used to create a CMEK crypto key. When set a project
      * with a KMS CMEK key is provisioned. This field is mandatory for a subset of
      * Compliance Regimes.
      * 
* - * - * .google.cloud.assuredworkloads.v1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; - * + * .google.cloud.assuredworkloads.v1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; */ - public com.google.cloud.assuredworkloads.v1.Workload.KMSSettingsOrBuilder - getKmsSettingsOrBuilder() { + public com.google.cloud.assuredworkloads.v1.Workload.KMSSettingsOrBuilder getKmsSettingsOrBuilder() { if (kmsSettingsBuilder_ != null) { return kmsSettingsBuilder_.getMessageOrBuilder(); } else { - return kmsSettings_ == null - ? com.google.cloud.assuredworkloads.v1.Workload.KMSSettings.getDefaultInstance() - : kmsSettings_; + return kmsSettings_ == null ? + com.google.cloud.assuredworkloads.v1.Workload.KMSSettings.getDefaultInstance() : kmsSettings_; } } /** - * - * *
      * Input only. Settings used to create a CMEK crypto key. When set a project
      * with a KMS CMEK key is provisioned. This field is mandatory for a subset of
      * Compliance Regimes.
      * 
* - * - * .google.cloud.assuredworkloads.v1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; - * + * .google.cloud.assuredworkloads.v1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.assuredworkloads.v1.Workload.KMSSettings, - com.google.cloud.assuredworkloads.v1.Workload.KMSSettings.Builder, - com.google.cloud.assuredworkloads.v1.Workload.KMSSettingsOrBuilder> + com.google.cloud.assuredworkloads.v1.Workload.KMSSettings, com.google.cloud.assuredworkloads.v1.Workload.KMSSettings.Builder, com.google.cloud.assuredworkloads.v1.Workload.KMSSettingsOrBuilder> getKmsSettingsFieldBuilder() { if (kmsSettingsBuilder_ == null) { - kmsSettingsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.assuredworkloads.v1.Workload.KMSSettings, - com.google.cloud.assuredworkloads.v1.Workload.KMSSettings.Builder, - com.google.cloud.assuredworkloads.v1.Workload.KMSSettingsOrBuilder>( - getKmsSettings(), getParentForChildren(), isClean()); + kmsSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.assuredworkloads.v1.Workload.KMSSettings, com.google.cloud.assuredworkloads.v1.Workload.KMSSettings.Builder, com.google.cloud.assuredworkloads.v1.Workload.KMSSettingsOrBuilder>( + getKmsSettings(), + getParentForChildren(), + isClean()); kmsSettings_ = null; } return kmsSettingsBuilder_; } - private java.util.List - resourceSettings_ = java.util.Collections.emptyList(); - + private java.util.List resourceSettings_ = + java.util.Collections.emptyList(); private void ensureResourceSettingsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - resourceSettings_ = - new java.util.ArrayList( - resourceSettings_); + resourceSettings_ = new java.util.ArrayList(resourceSettings_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings, - com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings.Builder, - com.google.cloud.assuredworkloads.v1.Workload.ResourceSettingsOrBuilder> - resourceSettingsBuilder_; + com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings, com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings.Builder, com.google.cloud.assuredworkloads.v1.Workload.ResourceSettingsOrBuilder> resourceSettingsBuilder_; /** - * - * *
      * Input only. Resource properties that are used to customize workload
      * resources. These properties (such as custom project id) will be used to
      * create workload resources if possible. This field is optional.
      * 
* - * - * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; */ - public java.util.List - getResourceSettingsList() { + public java.util.List getResourceSettingsList() { if (resourceSettingsBuilder_ == null) { return java.util.Collections.unmodifiableList(resourceSettings_); } else { @@ -9003,17 +7731,13 @@ private void ensureResourceSettingsIsMutable() { } } /** - * - * *
      * Input only. Resource properties that are used to customize workload
      * resources. These properties (such as custom project id) will be used to
      * create workload resources if possible. This field is optional.
      * 
* - * - * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; */ public int getResourceSettingsCount() { if (resourceSettingsBuilder_ == null) { @@ -9023,20 +7747,15 @@ public int getResourceSettingsCount() { } } /** - * - * *
      * Input only. Resource properties that are used to customize workload
      * resources. These properties (such as custom project id) will be used to
      * create workload resources if possible. This field is optional.
      * 
* - * - * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; */ - public com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings getResourceSettings( - int index) { + public com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings getResourceSettings(int index) { if (resourceSettingsBuilder_ == null) { return resourceSettings_.get(index); } else { @@ -9044,17 +7763,13 @@ public com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings getResourc } } /** - * - * *
      * Input only. Resource properties that are used to customize workload
      * resources. These properties (such as custom project id) will be used to
      * create workload resources if possible. This field is optional.
      * 
* - * - * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; */ public Builder setResourceSettings( int index, com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings value) { @@ -9071,21 +7786,16 @@ public Builder setResourceSettings( return this; } /** - * - * *
      * Input only. Resource properties that are used to customize workload
      * resources. These properties (such as custom project id) will be used to
      * create workload resources if possible. This field is optional.
      * 
* - * - * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; */ public Builder setResourceSettings( - int index, - com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings.Builder builderForValue) { + int index, com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings.Builder builderForValue) { if (resourceSettingsBuilder_ == null) { ensureResourceSettingsIsMutable(); resourceSettings_.set(index, builderForValue.build()); @@ -9096,20 +7806,15 @@ public Builder setResourceSettings( return this; } /** - * - * *
      * Input only. Resource properties that are used to customize workload
      * resources. These properties (such as custom project id) will be used to
      * create workload resources if possible. This field is optional.
      * 
* - * - * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; */ - public Builder addResourceSettings( - com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings value) { + public Builder addResourceSettings(com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings value) { if (resourceSettingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -9123,17 +7828,13 @@ public Builder addResourceSettings( return this; } /** - * - * *
      * Input only. Resource properties that are used to customize workload
      * resources. These properties (such as custom project id) will be used to
      * create workload resources if possible. This field is optional.
      * 
* - * - * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; */ public Builder addResourceSettings( int index, com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings value) { @@ -9150,17 +7851,13 @@ public Builder addResourceSettings( return this; } /** - * - * *
      * Input only. Resource properties that are used to customize workload
      * resources. These properties (such as custom project id) will be used to
      * create workload resources if possible. This field is optional.
      * 
* - * - * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; */ public Builder addResourceSettings( com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings.Builder builderForValue) { @@ -9174,21 +7871,16 @@ public Builder addResourceSettings( return this; } /** - * - * *
      * Input only. Resource properties that are used to customize workload
      * resources. These properties (such as custom project id) will be used to
      * create workload resources if possible. This field is optional.
      * 
* - * - * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; */ public Builder addResourceSettings( - int index, - com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings.Builder builderForValue) { + int index, com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings.Builder builderForValue) { if (resourceSettingsBuilder_ == null) { ensureResourceSettingsIsMutable(); resourceSettings_.add(index, builderForValue.build()); @@ -9199,24 +7891,20 @@ public Builder addResourceSettings( return this; } /** - * - * *
      * Input only. Resource properties that are used to customize workload
      * resources. These properties (such as custom project id) will be used to
      * create workload resources if possible. This field is optional.
      * 
* - * - * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; */ public Builder addAllResourceSettings( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (resourceSettingsBuilder_ == null) { ensureResourceSettingsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, resourceSettings_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, resourceSettings_); onChanged(); } else { resourceSettingsBuilder_.addAllMessages(values); @@ -9224,17 +7912,13 @@ public Builder addAllResourceSettings( return this; } /** - * - * *
      * Input only. Resource properties that are used to customize workload
      * resources. These properties (such as custom project id) will be used to
      * create workload resources if possible. This field is optional.
      * 
* - * - * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; */ public Builder clearResourceSettings() { if (resourceSettingsBuilder_ == null) { @@ -9247,17 +7931,13 @@ public Builder clearResourceSettings() { return this; } /** - * - * *
      * Input only. Resource properties that are used to customize workload
      * resources. These properties (such as custom project id) will be used to
      * create workload resources if possible. This field is optional.
      * 
* - * - * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; */ public Builder removeResourceSettings(int index) { if (resourceSettingsBuilder_ == null) { @@ -9270,59 +7950,45 @@ public Builder removeResourceSettings(int index) { return this; } /** - * - * *
      * Input only. Resource properties that are used to customize workload
      * resources. These properties (such as custom project id) will be used to
      * create workload resources if possible. This field is optional.
      * 
* - * - * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; */ - public com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings.Builder - getResourceSettingsBuilder(int index) { + public com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings.Builder getResourceSettingsBuilder( + int index) { return getResourceSettingsFieldBuilder().getBuilder(index); } /** - * - * *
      * Input only. Resource properties that are used to customize workload
      * resources. These properties (such as custom project id) will be used to
      * create workload resources if possible. This field is optional.
      * 
* - * - * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; */ - public com.google.cloud.assuredworkloads.v1.Workload.ResourceSettingsOrBuilder - getResourceSettingsOrBuilder(int index) { + public com.google.cloud.assuredworkloads.v1.Workload.ResourceSettingsOrBuilder getResourceSettingsOrBuilder( + int index) { if (resourceSettingsBuilder_ == null) { - return resourceSettings_.get(index); - } else { + return resourceSettings_.get(index); } else { return resourceSettingsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Input only. Resource properties that are used to customize workload
      * resources. These properties (such as custom project id) will be used to
      * create workload resources if possible. This field is optional.
      * 
* - * - * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; */ - public java.util.List< - ? extends com.google.cloud.assuredworkloads.v1.Workload.ResourceSettingsOrBuilder> - getResourceSettingsOrBuilderList() { + public java.util.List + getResourceSettingsOrBuilderList() { if (resourceSettingsBuilder_ != null) { return resourceSettingsBuilder_.getMessageOrBuilderList(); } else { @@ -9330,73 +7996,51 @@ public Builder removeResourceSettings(int index) { } } /** - * - * *
      * Input only. Resource properties that are used to customize workload
      * resources. These properties (such as custom project id) will be used to
      * create workload resources if possible. This field is optional.
      * 
* - * - * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; */ - public com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings.Builder - addResourceSettingsBuilder() { - return getResourceSettingsFieldBuilder() - .addBuilder( - com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings.getDefaultInstance()); + public com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings.Builder addResourceSettingsBuilder() { + return getResourceSettingsFieldBuilder().addBuilder( + com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings.getDefaultInstance()); } /** - * - * *
      * Input only. Resource properties that are used to customize workload
      * resources. These properties (such as custom project id) will be used to
      * create workload resources if possible. This field is optional.
      * 
* - * - * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; */ - public com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings.Builder - addResourceSettingsBuilder(int index) { - return getResourceSettingsFieldBuilder() - .addBuilder( - index, - com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings.getDefaultInstance()); + public com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings.Builder addResourceSettingsBuilder( + int index) { + return getResourceSettingsFieldBuilder().addBuilder( + index, com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings.getDefaultInstance()); } /** - * - * *
      * Input only. Resource properties that are used to customize workload
      * resources. These properties (such as custom project id) will be used to
      * create workload resources if possible. This field is optional.
      * 
* - * - * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; */ - public java.util.List - getResourceSettingsBuilderList() { + public java.util.List + getResourceSettingsBuilderList() { return getResourceSettingsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings, - com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings.Builder, - com.google.cloud.assuredworkloads.v1.Workload.ResourceSettingsOrBuilder> + com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings, com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings.Builder, com.google.cloud.assuredworkloads.v1.Workload.ResourceSettingsOrBuilder> getResourceSettingsFieldBuilder() { if (resourceSettingsBuilder_ == null) { - resourceSettingsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings, - com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings.Builder, - com.google.cloud.assuredworkloads.v1.Workload.ResourceSettingsOrBuilder>( + resourceSettingsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings, com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings.Builder, com.google.cloud.assuredworkloads.v1.Workload.ResourceSettingsOrBuilder>( resourceSettings_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), @@ -9408,121 +8052,86 @@ public Builder removeResourceSettings(int index) { private int kajEnrollmentState_ = 0; /** - * - * *
      * Output only. Represents the KAJ enrollment state of the given workload.
      * 
* - * - * .google.cloud.assuredworkloads.v1.Workload.KajEnrollmentState kaj_enrollment_state = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.assuredworkloads.v1.Workload.KajEnrollmentState kaj_enrollment_state = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for kajEnrollmentState. */ - @java.lang.Override - public int getKajEnrollmentStateValue() { + @java.lang.Override public int getKajEnrollmentStateValue() { return kajEnrollmentState_; } /** - * - * *
      * Output only. Represents the KAJ enrollment state of the given workload.
      * 
* - * - * .google.cloud.assuredworkloads.v1.Workload.KajEnrollmentState kaj_enrollment_state = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.assuredworkloads.v1.Workload.KajEnrollmentState kaj_enrollment_state = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for kajEnrollmentState to set. * @return This builder for chaining. */ public Builder setKajEnrollmentStateValue(int value) { - + kajEnrollmentState_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Represents the KAJ enrollment state of the given workload.
      * 
* - * - * .google.cloud.assuredworkloads.v1.Workload.KajEnrollmentState kaj_enrollment_state = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.assuredworkloads.v1.Workload.KajEnrollmentState kaj_enrollment_state = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The kajEnrollmentState. */ @java.lang.Override - public com.google.cloud.assuredworkloads.v1.Workload.KajEnrollmentState - getKajEnrollmentState() { + public com.google.cloud.assuredworkloads.v1.Workload.KajEnrollmentState getKajEnrollmentState() { @SuppressWarnings("deprecation") - com.google.cloud.assuredworkloads.v1.Workload.KajEnrollmentState result = - com.google.cloud.assuredworkloads.v1.Workload.KajEnrollmentState.valueOf( - kajEnrollmentState_); - return result == null - ? com.google.cloud.assuredworkloads.v1.Workload.KajEnrollmentState.UNRECOGNIZED - : result; + com.google.cloud.assuredworkloads.v1.Workload.KajEnrollmentState result = com.google.cloud.assuredworkloads.v1.Workload.KajEnrollmentState.valueOf(kajEnrollmentState_); + return result == null ? com.google.cloud.assuredworkloads.v1.Workload.KajEnrollmentState.UNRECOGNIZED : result; } /** - * - * *
      * Output only. Represents the KAJ enrollment state of the given workload.
      * 
* - * - * .google.cloud.assuredworkloads.v1.Workload.KajEnrollmentState kaj_enrollment_state = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.assuredworkloads.v1.Workload.KajEnrollmentState kaj_enrollment_state = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The kajEnrollmentState to set. * @return This builder for chaining. */ - public Builder setKajEnrollmentState( - com.google.cloud.assuredworkloads.v1.Workload.KajEnrollmentState value) { + public Builder setKajEnrollmentState(com.google.cloud.assuredworkloads.v1.Workload.KajEnrollmentState value) { if (value == null) { throw new NullPointerException(); } - + kajEnrollmentState_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Output only. Represents the KAJ enrollment state of the given workload.
      * 
* - * - * .google.cloud.assuredworkloads.v1.Workload.KajEnrollmentState kaj_enrollment_state = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.assuredworkloads.v1.Workload.KajEnrollmentState kaj_enrollment_state = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearKajEnrollmentState() { - + kajEnrollmentState_ = 0; onChanged(); return this; } - private boolean enableSovereignControls_; + private boolean enableSovereignControls_ ; /** - * - * *
      * Optional. Indicates the sovereignty status of the given workload.
      * Currently meant to be used by Europe/Canada customers.
      * 
* * bool enable_sovereign_controls = 18 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The enableSovereignControls. */ @java.lang.Override @@ -9530,109 +8139,80 @@ public boolean getEnableSovereignControls() { return enableSovereignControls_; } /** - * - * *
      * Optional. Indicates the sovereignty status of the given workload.
      * Currently meant to be used by Europe/Canada customers.
      * 
* * bool enable_sovereign_controls = 18 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The enableSovereignControls to set. * @return This builder for chaining. */ public Builder setEnableSovereignControls(boolean value) { - + enableSovereignControls_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Indicates the sovereignty status of the given workload.
      * Currently meant to be used by Europe/Canada customers.
      * 
* * bool enable_sovereign_controls = 18 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearEnableSovereignControls() { - + enableSovereignControls_ = false; onChanged(); return this; } - private com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse - saaEnrollmentResponse_; + private com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse saaEnrollmentResponse_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse, - com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.Builder, - com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponseOrBuilder> - saaEnrollmentResponseBuilder_; + com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse, com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.Builder, com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponseOrBuilder> saaEnrollmentResponseBuilder_; /** - * - * *
      * Output only. Represents the SAA enrollment response of the given workload.
      * SAA enrollment response is queried during GetWorkload call.
      * In failure cases, user friendly error message is shown in SAA details page.
      * 
* - * - * .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the saaEnrollmentResponse field is set. */ public boolean hasSaaEnrollmentResponse() { return saaEnrollmentResponseBuilder_ != null || saaEnrollmentResponse_ != null; } /** - * - * *
      * Output only. Represents the SAA enrollment response of the given workload.
      * SAA enrollment response is queried during GetWorkload call.
      * In failure cases, user friendly error message is shown in SAA details page.
      * 
* - * - * .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The saaEnrollmentResponse. */ - public com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse - getSaaEnrollmentResponse() { + public com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse getSaaEnrollmentResponse() { if (saaEnrollmentResponseBuilder_ == null) { - return saaEnrollmentResponse_ == null - ? com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse - .getDefaultInstance() - : saaEnrollmentResponse_; + return saaEnrollmentResponse_ == null ? com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.getDefaultInstance() : saaEnrollmentResponse_; } else { return saaEnrollmentResponseBuilder_.getMessage(); } } /** - * - * *
      * Output only. Represents the SAA enrollment response of the given workload.
      * SAA enrollment response is queried during GetWorkload call.
      * In failure cases, user friendly error message is shown in SAA details page.
      * 
* - * - * .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setSaaEnrollmentResponse( - com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse value) { + public Builder setSaaEnrollmentResponse(com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse value) { if (saaEnrollmentResponseBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -9646,21 +8226,16 @@ public Builder setSaaEnrollmentResponse( return this; } /** - * - * *
      * Output only. Represents the SAA enrollment response of the given workload.
      * SAA enrollment response is queried during GetWorkload call.
      * In failure cases, user friendly error message is shown in SAA details page.
      * 
* - * - * .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setSaaEnrollmentResponse( - com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.Builder - builderForValue) { + com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.Builder builderForValue) { if (saaEnrollmentResponseBuilder_ == null) { saaEnrollmentResponse_ = builderForValue.build(); onChanged(); @@ -9671,27 +8246,19 @@ public Builder setSaaEnrollmentResponse( return this; } /** - * - * *
      * Output only. Represents the SAA enrollment response of the given workload.
      * SAA enrollment response is queried during GetWorkload call.
      * In failure cases, user friendly error message is shown in SAA details page.
      * 
* - * - * .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder mergeSaaEnrollmentResponse( - com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse value) { + public Builder mergeSaaEnrollmentResponse(com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse value) { if (saaEnrollmentResponseBuilder_ == null) { if (saaEnrollmentResponse_ != null) { saaEnrollmentResponse_ = - com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.newBuilder( - saaEnrollmentResponse_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.newBuilder(saaEnrollmentResponse_).mergeFrom(value).buildPartial(); } else { saaEnrollmentResponse_ = value; } @@ -9703,17 +8270,13 @@ public Builder mergeSaaEnrollmentResponse( return this; } /** - * - * *
      * Output only. Represents the SAA enrollment response of the given workload.
      * SAA enrollment response is queried during GetWorkload call.
      * In failure cases, user friendly error message is shown in SAA details page.
      * 
* - * - * .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearSaaEnrollmentResponse() { if (saaEnrollmentResponseBuilder_ == null) { @@ -9727,80 +8290,61 @@ public Builder clearSaaEnrollmentResponse() { return this; } /** - * - * *
      * Output only. Represents the SAA enrollment response of the given workload.
      * SAA enrollment response is queried during GetWorkload call.
      * In failure cases, user friendly error message is shown in SAA details page.
      * 
* - * - * .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.Builder - getSaaEnrollmentResponseBuilder() { - + public com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.Builder getSaaEnrollmentResponseBuilder() { + onChanged(); return getSaaEnrollmentResponseFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Represents the SAA enrollment response of the given workload.
      * SAA enrollment response is queried during GetWorkload call.
      * In failure cases, user friendly error message is shown in SAA details page.
      * 
* - * - * .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponseOrBuilder - getSaaEnrollmentResponseOrBuilder() { + public com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponseOrBuilder getSaaEnrollmentResponseOrBuilder() { if (saaEnrollmentResponseBuilder_ != null) { return saaEnrollmentResponseBuilder_.getMessageOrBuilder(); } else { - return saaEnrollmentResponse_ == null - ? com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse - .getDefaultInstance() - : saaEnrollmentResponse_; + return saaEnrollmentResponse_ == null ? + com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.getDefaultInstance() : saaEnrollmentResponse_; } } /** - * - * *
      * Output only. Represents the SAA enrollment response of the given workload.
      * SAA enrollment response is queried during GetWorkload call.
      * In failure cases, user friendly error message is shown in SAA details page.
      * 
* - * - * .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse, - com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.Builder, - com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponseOrBuilder> + com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse, com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.Builder, com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponseOrBuilder> getSaaEnrollmentResponseFieldBuilder() { if (saaEnrollmentResponseBuilder_ == null) { - saaEnrollmentResponseBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse, - com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.Builder, - com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponseOrBuilder>( - getSaaEnrollmentResponse(), getParentForChildren(), isClean()); + saaEnrollmentResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse, com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.Builder, com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponseOrBuilder>( + getSaaEnrollmentResponse(), + getParentForChildren(), + isClean()); saaEnrollmentResponse_ = null; } return saaEnrollmentResponseBuilder_; } - @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); } @@ -9810,12 +8354,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.assuredworkloads.v1.Workload) } // @@protoc_insertion_point(class_scope:google.cloud.assuredworkloads.v1.Workload) private static final com.google.cloud.assuredworkloads.v1.Workload DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.assuredworkloads.v1.Workload(); } @@ -9824,16 +8368,16 @@ public static com.google.cloud.assuredworkloads.v1.Workload getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Workload parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Workload(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Workload parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Workload(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -9848,4 +8392,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.assuredworkloads.v1.Workload getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/WorkloadName.java b/owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/WorkloadName.java similarity index 100% rename from proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/WorkloadName.java rename to owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/WorkloadName.java diff --git a/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/WorkloadOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/WorkloadOrBuilder.java similarity index 67% rename from proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/WorkloadOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/WorkloadOrBuilder.java index 64b611f9..2d13a77c 100644 --- a/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/WorkloadOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/WorkloadOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/assuredworkloads/v1/assuredworkloads.proto package com.google.cloud.assuredworkloads.v1; -public interface WorkloadOrBuilder - extends +public interface WorkloadOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.assuredworkloads.v1.Workload) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Optional. The resource name of the workload.
    * Format:
@@ -34,13 +16,10 @@ public interface WorkloadOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Optional. The resource name of the workload.
    * Format:
@@ -49,14 +28,12 @@ public interface WorkloadOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Required. The user-assigned display name of the Workload.
    * When present it must be between 4 to 30 characters.
@@ -66,13 +43,10 @@ public interface WorkloadOrBuilder
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * Required. The user-assigned display name of the Workload.
    * When present it must be between 4 to 30 characters.
@@ -82,14 +56,12 @@ public interface WorkloadOrBuilder
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
    * Output only. The resources associated with this workload.
    * These resources will be created when creating the workload.
@@ -97,14 +69,11 @@ public interface WorkloadOrBuilder
    * Always read only.
    * 
* - * - * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List getResourcesList(); + java.util.List + getResourcesList(); /** - * - * *
    * Output only. The resources associated with this workload.
    * These resources will be created when creating the workload.
@@ -112,14 +81,10 @@ public interface WorkloadOrBuilder
    * Always read only.
    * 
* - * - * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo getResources(int index); /** - * - * *
    * Output only. The resources associated with this workload.
    * These resources will be created when creating the workload.
@@ -127,14 +92,10 @@ public interface WorkloadOrBuilder
    * Always read only.
    * 
* - * - * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ int getResourcesCount(); /** - * - * *
    * Output only. The resources associated with this workload.
    * These resources will be created when creating the workload.
@@ -142,15 +103,11 @@ public interface WorkloadOrBuilder
    * Always read only.
    * 
* - * - * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List + java.util.List getResourcesOrBuilderList(); /** - * - * *
    * Output only. The resources associated with this workload.
    * These resources will be created when creating the workload.
@@ -158,86 +115,58 @@ public interface WorkloadOrBuilder
    * Always read only.
    * 
* - * - * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.assuredworkloads.v1.Workload.ResourceInfoOrBuilder getResourcesOrBuilder( int index); /** - * - * *
    * Required. Immutable. Compliance Regime associated with this workload.
    * 
* - * - * .google.cloud.assuredworkloads.v1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.assuredworkloads.v1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return The enum numeric value on the wire for complianceRegime. */ int getComplianceRegimeValue(); /** - * - * *
    * Required. Immutable. Compliance Regime associated with this workload.
    * 
* - * - * .google.cloud.assuredworkloads.v1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.assuredworkloads.v1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return The complianceRegime. */ com.google.cloud.assuredworkloads.v1.Workload.ComplianceRegime getComplianceRegime(); /** - * - * *
    * Output only. Immutable. The Workload creation timestamp.
    * 
* - * - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. Immutable. The Workload creation timestamp.
    * 
* - * - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. Immutable. The Workload creation timestamp.
    * 
* - * - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Required. Input only. The billing account used for the resources which are
    * direct children of workload. This billing account is initially associated
@@ -249,16 +178,11 @@ com.google.cloud.assuredworkloads.v1.Workload.ResourceInfoOrBuilder getResources
    * `billingAccounts/012345-567890-ABCDEF`.
    * 
* - * - * string billing_account = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string billing_account = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @return The billingAccount. */ java.lang.String getBillingAccount(); /** - * - * *
    * Required. Input only. The billing account used for the resources which are
    * direct children of workload. This billing account is initially associated
@@ -270,44 +194,35 @@ com.google.cloud.assuredworkloads.v1.Workload.ResourceInfoOrBuilder getResources
    * `billingAccounts/012345-567890-ABCDEF`.
    * 
* - * - * string billing_account = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string billing_account = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @return The bytes for billingAccount. */ - com.google.protobuf.ByteString getBillingAccountBytes(); + com.google.protobuf.ByteString + getBillingAccountBytes(); /** - * - * *
    * Optional. ETag of the workload, it is calculated on the basis
    * of the Workload contents. It will be used in Update & Delete operations.
    * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The etag. */ java.lang.String getEtag(); /** - * - * *
    * Optional. ETag of the workload, it is calculated on the basis
    * of the Workload contents. It will be used in Update & Delete operations.
    * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for etag. */ - com.google.protobuf.ByteString getEtagBytes(); + com.google.protobuf.ByteString + getEtagBytes(); /** - * - * *
    * Optional. Labels applied to the workload.
    * 
@@ -316,31 +231,30 @@ com.google.cloud.assuredworkloads.v1.Workload.ResourceInfoOrBuilder getResources */ int getLabelsCount(); /** - * - * *
    * Optional. Labels applied to the workload.
    * 
* * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; */ - boolean containsLabels(java.lang.String key); - /** Use {@link #getLabelsMap()} instead. */ + boolean containsLabels( + java.lang.String key); + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Deprecated - java.util.Map getLabels(); + java.util.Map + getLabels(); /** - * - * *
    * Optional. Labels applied to the workload.
    * 
* * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.Map getLabelsMap(); + java.util.Map + getLabelsMap(); /** - * - * *
    * Optional. Labels applied to the workload.
    * 
@@ -349,24 +263,22 @@ com.google.cloud.assuredworkloads.v1.Workload.ResourceInfoOrBuilder getResources */ /* nullable */ - java.lang.String getLabelsOrDefault( +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * Optional. Labels applied to the workload.
    * 
* * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; */ - java.lang.String getLabelsOrThrow(java.lang.String key); + + java.lang.String getLabelsOrThrow( + java.lang.String key); /** - * - * *
    * Input only. The parent resource for the resources managed by this Assured
    * Workload. May be either empty or a folder resource which is a child of the
@@ -376,15 +288,11 @@ java.lang.String getLabelsOrDefault(
    * folders/{folder_id}
    * 
* - * string provisioned_resources_parent = 13 [(.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string provisioned_resources_parent = 13 [(.google.api.field_behavior) = INPUT_ONLY]; * @return The provisionedResourcesParent. */ java.lang.String getProvisionedResourcesParent(); /** - * - * *
    * Input only. The parent resource for the resources managed by this Assured
    * Workload. May be either empty or a folder resource which is a child of the
@@ -394,222 +302,159 @@ java.lang.String getLabelsOrDefault(
    * folders/{folder_id}
    * 
* - * string provisioned_resources_parent = 13 [(.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string provisioned_resources_parent = 13 [(.google.api.field_behavior) = INPUT_ONLY]; * @return The bytes for provisionedResourcesParent. */ - com.google.protobuf.ByteString getProvisionedResourcesParentBytes(); + com.google.protobuf.ByteString + getProvisionedResourcesParentBytes(); /** - * - * *
    * Input only. Settings used to create a CMEK crypto key. When set a project
    * with a KMS CMEK key is provisioned. This field is mandatory for a subset of
    * Compliance Regimes.
    * 
* - * - * .google.cloud.assuredworkloads.v1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; - * - * + * .google.cloud.assuredworkloads.v1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; * @return Whether the kmsSettings field is set. */ boolean hasKmsSettings(); /** - * - * *
    * Input only. Settings used to create a CMEK crypto key. When set a project
    * with a KMS CMEK key is provisioned. This field is mandatory for a subset of
    * Compliance Regimes.
    * 
* - * - * .google.cloud.assuredworkloads.v1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; - * - * + * .google.cloud.assuredworkloads.v1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; * @return The kmsSettings. */ com.google.cloud.assuredworkloads.v1.Workload.KMSSettings getKmsSettings(); /** - * - * *
    * Input only. Settings used to create a CMEK crypto key. When set a project
    * with a KMS CMEK key is provisioned. This field is mandatory for a subset of
    * Compliance Regimes.
    * 
* - * - * .google.cloud.assuredworkloads.v1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; - * + * .google.cloud.assuredworkloads.v1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; */ com.google.cloud.assuredworkloads.v1.Workload.KMSSettingsOrBuilder getKmsSettingsOrBuilder(); /** - * - * *
    * Input only. Resource properties that are used to customize workload
    * resources. These properties (such as custom project id) will be used to
    * create workload resources if possible. This field is optional.
    * 
* - * - * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; */ - java.util.List + java.util.List getResourceSettingsList(); /** - * - * *
    * Input only. Resource properties that are used to customize workload
    * resources. These properties (such as custom project id) will be used to
    * create workload resources if possible. This field is optional.
    * 
* - * - * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; */ com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings getResourceSettings(int index); /** - * - * *
    * Input only. Resource properties that are used to customize workload
    * resources. These properties (such as custom project id) will be used to
    * create workload resources if possible. This field is optional.
    * 
* - * - * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; */ int getResourceSettingsCount(); /** - * - * *
    * Input only. Resource properties that are used to customize workload
    * resources. These properties (such as custom project id) will be used to
    * create workload resources if possible. This field is optional.
    * 
* - * - * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; */ - java.util.List + java.util.List getResourceSettingsOrBuilderList(); /** - * - * *
    * Input only. Resource properties that are used to customize workload
    * resources. These properties (such as custom project id) will be used to
    * create workload resources if possible. This field is optional.
    * 
* - * - * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; */ - com.google.cloud.assuredworkloads.v1.Workload.ResourceSettingsOrBuilder - getResourceSettingsOrBuilder(int index); + com.google.cloud.assuredworkloads.v1.Workload.ResourceSettingsOrBuilder getResourceSettingsOrBuilder( + int index); /** - * - * *
    * Output only. Represents the KAJ enrollment state of the given workload.
    * 
* - * - * .google.cloud.assuredworkloads.v1.Workload.KajEnrollmentState kaj_enrollment_state = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.assuredworkloads.v1.Workload.KajEnrollmentState kaj_enrollment_state = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for kajEnrollmentState. */ int getKajEnrollmentStateValue(); /** - * - * *
    * Output only. Represents the KAJ enrollment state of the given workload.
    * 
* - * - * .google.cloud.assuredworkloads.v1.Workload.KajEnrollmentState kaj_enrollment_state = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.assuredworkloads.v1.Workload.KajEnrollmentState kaj_enrollment_state = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The kajEnrollmentState. */ com.google.cloud.assuredworkloads.v1.Workload.KajEnrollmentState getKajEnrollmentState(); /** - * - * *
    * Optional. Indicates the sovereignty status of the given workload.
    * Currently meant to be used by Europe/Canada customers.
    * 
* * bool enable_sovereign_controls = 18 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The enableSovereignControls. */ boolean getEnableSovereignControls(); /** - * - * *
    * Output only. Represents the SAA enrollment response of the given workload.
    * SAA enrollment response is queried during GetWorkload call.
    * In failure cases, user friendly error message is shown in SAA details page.
    * 
* - * - * .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the saaEnrollmentResponse field is set. */ boolean hasSaaEnrollmentResponse(); /** - * - * *
    * Output only. Represents the SAA enrollment response of the given workload.
    * SAA enrollment response is queried during GetWorkload call.
    * In failure cases, user friendly error message is shown in SAA details page.
    * 
* - * - * .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The saaEnrollmentResponse. */ com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse getSaaEnrollmentResponse(); /** - * - * *
    * Output only. Represents the SAA enrollment response of the given workload.
    * SAA enrollment response is queried during GetWorkload call.
    * In failure cases, user friendly error message is shown in SAA details page.
    * 
* - * - * .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponseOrBuilder - getSaaEnrollmentResponseOrBuilder(); + com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponseOrBuilder getSaaEnrollmentResponseOrBuilder(); } diff --git a/proto-google-cloud-assured-workloads-v1/src/main/proto/google/cloud/assuredworkloads/v1/assuredworkloads.proto b/owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/proto/google/cloud/assuredworkloads/v1/assuredworkloads.proto similarity index 100% rename from proto-google-cloud-assured-workloads-v1/src/main/proto/google/cloud/assuredworkloads/v1/assuredworkloads.proto rename to owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/proto/google/cloud/assuredworkloads/v1/assuredworkloads.proto diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 00000000..360a69ce --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,42 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.assuredworkloads.v1.samples; + +// [START assuredworkloads_v1_generated_assuredworkloadsserviceclient_create_setcredentialsprovider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.assuredworkloads.v1.AssuredWorkloadsServiceClient; +import com.google.cloud.assuredworkloads.v1.AssuredWorkloadsServiceSettings; +import com.google.cloud.assuredworkloads.v1.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + AssuredWorkloadsServiceSettings assuredWorkloadsServiceSettings = + AssuredWorkloadsServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + AssuredWorkloadsServiceClient assuredWorkloadsServiceClient = + AssuredWorkloadsServiceClient.create(assuredWorkloadsServiceSettings); + } +} +// [END assuredworkloads_v1_generated_assuredworkloadsserviceclient_create_setcredentialsprovider_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/create/SyncCreateSetCredentialsProvider1.java new file mode 100644 index 00000000..36a9c4e3 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/create/SyncCreateSetCredentialsProvider1.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.assuredworkloads.v1.samples; + +// [START assuredworkloads_v1_generated_assuredworkloadsserviceclient_create_setcredentialsprovider1_sync] +import com.google.cloud.assuredworkloads.v1.AssuredWorkloadsServiceClient; +import com.google.cloud.assuredworkloads.v1.AssuredWorkloadsServiceSettings; + +public class SyncCreateSetCredentialsProvider1 { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider1(); + } + + public static void syncCreateSetCredentialsProvider1() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + AssuredWorkloadsServiceSettings assuredWorkloadsServiceSettings = + AssuredWorkloadsServiceSettings.newBuilder() + .setTransportChannelProvider( + AssuredWorkloadsServiceSettings.defaultHttpJsonTransportProviderBuilder().build()) + .build(); + AssuredWorkloadsServiceClient assuredWorkloadsServiceClient = + AssuredWorkloadsServiceClient.create(assuredWorkloadsServiceSettings); + } +} +// [END assuredworkloads_v1_generated_assuredworkloadsserviceclient_create_setcredentialsprovider1_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/create/SyncCreateSetEndpoint.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/create/SyncCreateSetEndpoint.java new file mode 100644 index 00000000..1ff0e1c9 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/create/SyncCreateSetEndpoint.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.assuredworkloads.v1.samples; + +// [START assuredworkloads_v1_generated_assuredworkloadsserviceclient_create_setendpoint_sync] +import com.google.cloud.assuredworkloads.v1.AssuredWorkloadsServiceClient; +import com.google.cloud.assuredworkloads.v1.AssuredWorkloadsServiceSettings; +import com.google.cloud.assuredworkloads.v1.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + AssuredWorkloadsServiceSettings assuredWorkloadsServiceSettings = + AssuredWorkloadsServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + AssuredWorkloadsServiceClient assuredWorkloadsServiceClient = + AssuredWorkloadsServiceClient.create(assuredWorkloadsServiceSettings); + } +} +// [END assuredworkloads_v1_generated_assuredworkloadsserviceclient_create_setendpoint_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/createworkload/AsyncCreateWorkload.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/createworkload/AsyncCreateWorkload.java new file mode 100644 index 00000000..67365c6f --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/createworkload/AsyncCreateWorkload.java @@ -0,0 +1,51 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.assuredworkloads.v1.samples; + +// [START assuredworkloads_v1_generated_assuredworkloadsserviceclient_createworkload_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.assuredworkloads.v1.AssuredWorkloadsServiceClient; +import com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest; +import com.google.cloud.assuredworkloads.v1.LocationName; +import com.google.cloud.assuredworkloads.v1.Workload; +import com.google.longrunning.Operation; + +public class AsyncCreateWorkload { + + public static void main(String[] args) throws Exception { + asyncCreateWorkload(); + } + + public static void asyncCreateWorkload() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AssuredWorkloadsServiceClient assuredWorkloadsServiceClient = + AssuredWorkloadsServiceClient.create()) { + CreateWorkloadRequest request = + CreateWorkloadRequest.newBuilder() + .setParent(LocationName.of("[ORGANIZATION]", "[LOCATION]").toString()) + .setWorkload(Workload.newBuilder().build()) + .setExternalId("externalId-1699764666") + .build(); + ApiFuture future = + assuredWorkloadsServiceClient.createWorkloadCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END assuredworkloads_v1_generated_assuredworkloadsserviceclient_createworkload_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/createworkload/AsyncCreateWorkloadLRO.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/createworkload/AsyncCreateWorkloadLRO.java new file mode 100644 index 00000000..b485dd19 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/createworkload/AsyncCreateWorkloadLRO.java @@ -0,0 +1,51 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.assuredworkloads.v1.samples; + +// [START assuredworkloads_v1_generated_assuredworkloadsserviceclient_createworkload_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.assuredworkloads.v1.AssuredWorkloadsServiceClient; +import com.google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata; +import com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest; +import com.google.cloud.assuredworkloads.v1.LocationName; +import com.google.cloud.assuredworkloads.v1.Workload; + +public class AsyncCreateWorkloadLRO { + + public static void main(String[] args) throws Exception { + asyncCreateWorkloadLRO(); + } + + public static void asyncCreateWorkloadLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AssuredWorkloadsServiceClient assuredWorkloadsServiceClient = + AssuredWorkloadsServiceClient.create()) { + CreateWorkloadRequest request = + CreateWorkloadRequest.newBuilder() + .setParent(LocationName.of("[ORGANIZATION]", "[LOCATION]").toString()) + .setWorkload(Workload.newBuilder().build()) + .setExternalId("externalId-1699764666") + .build(); + OperationFuture future = + assuredWorkloadsServiceClient.createWorkloadOperationCallable().futureCall(request); + // Do something. + Workload response = future.get(); + } + } +} +// [END assuredworkloads_v1_generated_assuredworkloadsserviceclient_createworkload_lro_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/createworkload/SyncCreateWorkload.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/createworkload/SyncCreateWorkload.java new file mode 100644 index 00000000..35d43de4 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/createworkload/SyncCreateWorkload.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.assuredworkloads.v1.samples; + +// [START assuredworkloads_v1_generated_assuredworkloadsserviceclient_createworkload_sync] +import com.google.cloud.assuredworkloads.v1.AssuredWorkloadsServiceClient; +import com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest; +import com.google.cloud.assuredworkloads.v1.LocationName; +import com.google.cloud.assuredworkloads.v1.Workload; + +public class SyncCreateWorkload { + + public static void main(String[] args) throws Exception { + syncCreateWorkload(); + } + + public static void syncCreateWorkload() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AssuredWorkloadsServiceClient assuredWorkloadsServiceClient = + AssuredWorkloadsServiceClient.create()) { + CreateWorkloadRequest request = + CreateWorkloadRequest.newBuilder() + .setParent(LocationName.of("[ORGANIZATION]", "[LOCATION]").toString()) + .setWorkload(Workload.newBuilder().build()) + .setExternalId("externalId-1699764666") + .build(); + Workload response = assuredWorkloadsServiceClient.createWorkloadAsync(request).get(); + } + } +} +// [END assuredworkloads_v1_generated_assuredworkloadsserviceclient_createworkload_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/createworkload/SyncCreateWorkloadLocationnameWorkload.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/createworkload/SyncCreateWorkloadLocationnameWorkload.java new file mode 100644 index 00000000..00a426a7 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/createworkload/SyncCreateWorkloadLocationnameWorkload.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.assuredworkloads.v1.samples; + +// [START assuredworkloads_v1_generated_assuredworkloadsserviceclient_createworkload_locationnameworkload_sync] +import com.google.cloud.assuredworkloads.v1.AssuredWorkloadsServiceClient; +import com.google.cloud.assuredworkloads.v1.LocationName; +import com.google.cloud.assuredworkloads.v1.Workload; + +public class SyncCreateWorkloadLocationnameWorkload { + + public static void main(String[] args) throws Exception { + syncCreateWorkloadLocationnameWorkload(); + } + + public static void syncCreateWorkloadLocationnameWorkload() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AssuredWorkloadsServiceClient assuredWorkloadsServiceClient = + AssuredWorkloadsServiceClient.create()) { + LocationName parent = LocationName.of("[ORGANIZATION]", "[LOCATION]"); + Workload workload = Workload.newBuilder().build(); + Workload response = assuredWorkloadsServiceClient.createWorkloadAsync(parent, workload).get(); + } + } +} +// [END assuredworkloads_v1_generated_assuredworkloadsserviceclient_createworkload_locationnameworkload_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/createworkload/SyncCreateWorkloadStringWorkload.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/createworkload/SyncCreateWorkloadStringWorkload.java new file mode 100644 index 00000000..162dad0b --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/createworkload/SyncCreateWorkloadStringWorkload.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.assuredworkloads.v1.samples; + +// [START assuredworkloads_v1_generated_assuredworkloadsserviceclient_createworkload_stringworkload_sync] +import com.google.cloud.assuredworkloads.v1.AssuredWorkloadsServiceClient; +import com.google.cloud.assuredworkloads.v1.LocationName; +import com.google.cloud.assuredworkloads.v1.Workload; + +public class SyncCreateWorkloadStringWorkload { + + public static void main(String[] args) throws Exception { + syncCreateWorkloadStringWorkload(); + } + + public static void syncCreateWorkloadStringWorkload() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AssuredWorkloadsServiceClient assuredWorkloadsServiceClient = + AssuredWorkloadsServiceClient.create()) { + String parent = LocationName.of("[ORGANIZATION]", "[LOCATION]").toString(); + Workload workload = Workload.newBuilder().build(); + Workload response = assuredWorkloadsServiceClient.createWorkloadAsync(parent, workload).get(); + } + } +} +// [END assuredworkloads_v1_generated_assuredworkloadsserviceclient_createworkload_stringworkload_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/deleteworkload/AsyncDeleteWorkload.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/deleteworkload/AsyncDeleteWorkload.java new file mode 100644 index 00000000..33b8c3df --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/deleteworkload/AsyncDeleteWorkload.java @@ -0,0 +1,49 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.assuredworkloads.v1.samples; + +// [START assuredworkloads_v1_generated_assuredworkloadsserviceclient_deleteworkload_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.assuredworkloads.v1.AssuredWorkloadsServiceClient; +import com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest; +import com.google.cloud.assuredworkloads.v1.WorkloadName; +import com.google.protobuf.Empty; + +public class AsyncDeleteWorkload { + + public static void main(String[] args) throws Exception { + asyncDeleteWorkload(); + } + + public static void asyncDeleteWorkload() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AssuredWorkloadsServiceClient assuredWorkloadsServiceClient = + AssuredWorkloadsServiceClient.create()) { + DeleteWorkloadRequest request = + DeleteWorkloadRequest.newBuilder() + .setName(WorkloadName.of("[ORGANIZATION]", "[LOCATION]", "[WORKLOAD]").toString()) + .setEtag("etag3123477") + .build(); + ApiFuture future = + assuredWorkloadsServiceClient.deleteWorkloadCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END assuredworkloads_v1_generated_assuredworkloadsserviceclient_deleteworkload_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/deleteworkload/SyncDeleteWorkload.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/deleteworkload/SyncDeleteWorkload.java new file mode 100644 index 00000000..c902ca42 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/deleteworkload/SyncDeleteWorkload.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.assuredworkloads.v1.samples; + +// [START assuredworkloads_v1_generated_assuredworkloadsserviceclient_deleteworkload_sync] +import com.google.cloud.assuredworkloads.v1.AssuredWorkloadsServiceClient; +import com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest; +import com.google.cloud.assuredworkloads.v1.WorkloadName; +import com.google.protobuf.Empty; + +public class SyncDeleteWorkload { + + public static void main(String[] args) throws Exception { + syncDeleteWorkload(); + } + + public static void syncDeleteWorkload() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AssuredWorkloadsServiceClient assuredWorkloadsServiceClient = + AssuredWorkloadsServiceClient.create()) { + DeleteWorkloadRequest request = + DeleteWorkloadRequest.newBuilder() + .setName(WorkloadName.of("[ORGANIZATION]", "[LOCATION]", "[WORKLOAD]").toString()) + .setEtag("etag3123477") + .build(); + assuredWorkloadsServiceClient.deleteWorkload(request); + } + } +} +// [END assuredworkloads_v1_generated_assuredworkloadsserviceclient_deleteworkload_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/deleteworkload/SyncDeleteWorkloadString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/deleteworkload/SyncDeleteWorkloadString.java new file mode 100644 index 00000000..20a7f943 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/deleteworkload/SyncDeleteWorkloadString.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.assuredworkloads.v1.samples; + +// [START assuredworkloads_v1_generated_assuredworkloadsserviceclient_deleteworkload_string_sync] +import com.google.cloud.assuredworkloads.v1.AssuredWorkloadsServiceClient; +import com.google.cloud.assuredworkloads.v1.WorkloadName; +import com.google.protobuf.Empty; + +public class SyncDeleteWorkloadString { + + public static void main(String[] args) throws Exception { + syncDeleteWorkloadString(); + } + + public static void syncDeleteWorkloadString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AssuredWorkloadsServiceClient assuredWorkloadsServiceClient = + AssuredWorkloadsServiceClient.create()) { + String name = WorkloadName.of("[ORGANIZATION]", "[LOCATION]", "[WORKLOAD]").toString(); + assuredWorkloadsServiceClient.deleteWorkload(name); + } + } +} +// [END assuredworkloads_v1_generated_assuredworkloadsserviceclient_deleteworkload_string_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/deleteworkload/SyncDeleteWorkloadWorkloadname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/deleteworkload/SyncDeleteWorkloadWorkloadname.java new file mode 100644 index 00000000..b9b3bd0d --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/deleteworkload/SyncDeleteWorkloadWorkloadname.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.assuredworkloads.v1.samples; + +// [START assuredworkloads_v1_generated_assuredworkloadsserviceclient_deleteworkload_workloadname_sync] +import com.google.cloud.assuredworkloads.v1.AssuredWorkloadsServiceClient; +import com.google.cloud.assuredworkloads.v1.WorkloadName; +import com.google.protobuf.Empty; + +public class SyncDeleteWorkloadWorkloadname { + + public static void main(String[] args) throws Exception { + syncDeleteWorkloadWorkloadname(); + } + + public static void syncDeleteWorkloadWorkloadname() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AssuredWorkloadsServiceClient assuredWorkloadsServiceClient = + AssuredWorkloadsServiceClient.create()) { + WorkloadName name = WorkloadName.of("[ORGANIZATION]", "[LOCATION]", "[WORKLOAD]"); + assuredWorkloadsServiceClient.deleteWorkload(name); + } + } +} +// [END assuredworkloads_v1_generated_assuredworkloadsserviceclient_deleteworkload_workloadname_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/getworkload/AsyncGetWorkload.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/getworkload/AsyncGetWorkload.java new file mode 100644 index 00000000..85b4562b --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/getworkload/AsyncGetWorkload.java @@ -0,0 +1,48 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.assuredworkloads.v1.samples; + +// [START assuredworkloads_v1_generated_assuredworkloadsserviceclient_getworkload_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.assuredworkloads.v1.AssuredWorkloadsServiceClient; +import com.google.cloud.assuredworkloads.v1.GetWorkloadRequest; +import com.google.cloud.assuredworkloads.v1.Workload; +import com.google.cloud.assuredworkloads.v1.WorkloadName; + +public class AsyncGetWorkload { + + public static void main(String[] args) throws Exception { + asyncGetWorkload(); + } + + public static void asyncGetWorkload() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AssuredWorkloadsServiceClient assuredWorkloadsServiceClient = + AssuredWorkloadsServiceClient.create()) { + GetWorkloadRequest request = + GetWorkloadRequest.newBuilder() + .setName(WorkloadName.of("[ORGANIZATION]", "[LOCATION]", "[WORKLOAD]").toString()) + .build(); + ApiFuture future = + assuredWorkloadsServiceClient.getWorkloadCallable().futureCall(request); + // Do something. + Workload response = future.get(); + } + } +} +// [END assuredworkloads_v1_generated_assuredworkloadsserviceclient_getworkload_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/getworkload/SyncGetWorkload.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/getworkload/SyncGetWorkload.java new file mode 100644 index 00000000..fbf42f69 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/getworkload/SyncGetWorkload.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.assuredworkloads.v1.samples; + +// [START assuredworkloads_v1_generated_assuredworkloadsserviceclient_getworkload_sync] +import com.google.cloud.assuredworkloads.v1.AssuredWorkloadsServiceClient; +import com.google.cloud.assuredworkloads.v1.GetWorkloadRequest; +import com.google.cloud.assuredworkloads.v1.Workload; +import com.google.cloud.assuredworkloads.v1.WorkloadName; + +public class SyncGetWorkload { + + public static void main(String[] args) throws Exception { + syncGetWorkload(); + } + + public static void syncGetWorkload() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AssuredWorkloadsServiceClient assuredWorkloadsServiceClient = + AssuredWorkloadsServiceClient.create()) { + GetWorkloadRequest request = + GetWorkloadRequest.newBuilder() + .setName(WorkloadName.of("[ORGANIZATION]", "[LOCATION]", "[WORKLOAD]").toString()) + .build(); + Workload response = assuredWorkloadsServiceClient.getWorkload(request); + } + } +} +// [END assuredworkloads_v1_generated_assuredworkloadsserviceclient_getworkload_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/getworkload/SyncGetWorkloadString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/getworkload/SyncGetWorkloadString.java new file mode 100644 index 00000000..940488b7 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/getworkload/SyncGetWorkloadString.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.assuredworkloads.v1.samples; + +// [START assuredworkloads_v1_generated_assuredworkloadsserviceclient_getworkload_string_sync] +import com.google.cloud.assuredworkloads.v1.AssuredWorkloadsServiceClient; +import com.google.cloud.assuredworkloads.v1.Workload; +import com.google.cloud.assuredworkloads.v1.WorkloadName; + +public class SyncGetWorkloadString { + + public static void main(String[] args) throws Exception { + syncGetWorkloadString(); + } + + public static void syncGetWorkloadString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AssuredWorkloadsServiceClient assuredWorkloadsServiceClient = + AssuredWorkloadsServiceClient.create()) { + String name = WorkloadName.of("[ORGANIZATION]", "[LOCATION]", "[WORKLOAD]").toString(); + Workload response = assuredWorkloadsServiceClient.getWorkload(name); + } + } +} +// [END assuredworkloads_v1_generated_assuredworkloadsserviceclient_getworkload_string_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/getworkload/SyncGetWorkloadWorkloadname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/getworkload/SyncGetWorkloadWorkloadname.java new file mode 100644 index 00000000..80c6006d --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/getworkload/SyncGetWorkloadWorkloadname.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.assuredworkloads.v1.samples; + +// [START assuredworkloads_v1_generated_assuredworkloadsserviceclient_getworkload_workloadname_sync] +import com.google.cloud.assuredworkloads.v1.AssuredWorkloadsServiceClient; +import com.google.cloud.assuredworkloads.v1.Workload; +import com.google.cloud.assuredworkloads.v1.WorkloadName; + +public class SyncGetWorkloadWorkloadname { + + public static void main(String[] args) throws Exception { + syncGetWorkloadWorkloadname(); + } + + public static void syncGetWorkloadWorkloadname() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AssuredWorkloadsServiceClient assuredWorkloadsServiceClient = + AssuredWorkloadsServiceClient.create()) { + WorkloadName name = WorkloadName.of("[ORGANIZATION]", "[LOCATION]", "[WORKLOAD]"); + Workload response = assuredWorkloadsServiceClient.getWorkload(name); + } + } +} +// [END assuredworkloads_v1_generated_assuredworkloadsserviceclient_getworkload_workloadname_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/listworkloads/AsyncListWorkloads.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/listworkloads/AsyncListWorkloads.java new file mode 100644 index 00000000..46ca4402 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/listworkloads/AsyncListWorkloads.java @@ -0,0 +1,53 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.assuredworkloads.v1.samples; + +// [START assuredworkloads_v1_generated_assuredworkloadsserviceclient_listworkloads_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.assuredworkloads.v1.AssuredWorkloadsServiceClient; +import com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest; +import com.google.cloud.assuredworkloads.v1.LocationName; +import com.google.cloud.assuredworkloads.v1.Workload; + +public class AsyncListWorkloads { + + public static void main(String[] args) throws Exception { + asyncListWorkloads(); + } + + public static void asyncListWorkloads() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AssuredWorkloadsServiceClient assuredWorkloadsServiceClient = + AssuredWorkloadsServiceClient.create()) { + ListWorkloadsRequest request = + ListWorkloadsRequest.newBuilder() + .setParent(LocationName.of("[ORGANIZATION]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + ApiFuture future = + assuredWorkloadsServiceClient.listWorkloadsPagedCallable().futureCall(request); + // Do something. + for (Workload element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END assuredworkloads_v1_generated_assuredworkloadsserviceclient_listworkloads_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/listworkloads/AsyncListWorkloadsPaged.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/listworkloads/AsyncListWorkloadsPaged.java new file mode 100644 index 00000000..434fa100 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/listworkloads/AsyncListWorkloadsPaged.java @@ -0,0 +1,61 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.assuredworkloads.v1.samples; + +// [START assuredworkloads_v1_generated_assuredworkloadsserviceclient_listworkloads_paged_async] +import com.google.cloud.assuredworkloads.v1.AssuredWorkloadsServiceClient; +import com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest; +import com.google.cloud.assuredworkloads.v1.ListWorkloadsResponse; +import com.google.cloud.assuredworkloads.v1.LocationName; +import com.google.cloud.assuredworkloads.v1.Workload; +import com.google.common.base.Strings; + +public class AsyncListWorkloadsPaged { + + public static void main(String[] args) throws Exception { + asyncListWorkloadsPaged(); + } + + public static void asyncListWorkloadsPaged() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AssuredWorkloadsServiceClient assuredWorkloadsServiceClient = + AssuredWorkloadsServiceClient.create()) { + ListWorkloadsRequest request = + ListWorkloadsRequest.newBuilder() + .setParent(LocationName.of("[ORGANIZATION]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + while (true) { + ListWorkloadsResponse response = + assuredWorkloadsServiceClient.listWorkloadsCallable().call(request); + for (Workload element : response.getWorkloadsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END assuredworkloads_v1_generated_assuredworkloadsserviceclient_listworkloads_paged_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/listworkloads/SyncListWorkloads.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/listworkloads/SyncListWorkloads.java new file mode 100644 index 00000000..77602039 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/listworkloads/SyncListWorkloads.java @@ -0,0 +1,49 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.assuredworkloads.v1.samples; + +// [START assuredworkloads_v1_generated_assuredworkloadsserviceclient_listworkloads_sync] +import com.google.cloud.assuredworkloads.v1.AssuredWorkloadsServiceClient; +import com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest; +import com.google.cloud.assuredworkloads.v1.LocationName; +import com.google.cloud.assuredworkloads.v1.Workload; + +public class SyncListWorkloads { + + public static void main(String[] args) throws Exception { + syncListWorkloads(); + } + + public static void syncListWorkloads() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AssuredWorkloadsServiceClient assuredWorkloadsServiceClient = + AssuredWorkloadsServiceClient.create()) { + ListWorkloadsRequest request = + ListWorkloadsRequest.newBuilder() + .setParent(LocationName.of("[ORGANIZATION]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + for (Workload element : assuredWorkloadsServiceClient.listWorkloads(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END assuredworkloads_v1_generated_assuredworkloadsserviceclient_listworkloads_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/listworkloads/SyncListWorkloadsLocationname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/listworkloads/SyncListWorkloadsLocationname.java new file mode 100644 index 00000000..812e8463 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/listworkloads/SyncListWorkloadsLocationname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.assuredworkloads.v1.samples; + +// [START assuredworkloads_v1_generated_assuredworkloadsserviceclient_listworkloads_locationname_sync] +import com.google.cloud.assuredworkloads.v1.AssuredWorkloadsServiceClient; +import com.google.cloud.assuredworkloads.v1.LocationName; +import com.google.cloud.assuredworkloads.v1.Workload; + +public class SyncListWorkloadsLocationname { + + public static void main(String[] args) throws Exception { + syncListWorkloadsLocationname(); + } + + public static void syncListWorkloadsLocationname() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AssuredWorkloadsServiceClient assuredWorkloadsServiceClient = + AssuredWorkloadsServiceClient.create()) { + LocationName parent = LocationName.of("[ORGANIZATION]", "[LOCATION]"); + for (Workload element : assuredWorkloadsServiceClient.listWorkloads(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END assuredworkloads_v1_generated_assuredworkloadsserviceclient_listworkloads_locationname_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/listworkloads/SyncListWorkloadsString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/listworkloads/SyncListWorkloadsString.java new file mode 100644 index 00000000..b8b58627 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/listworkloads/SyncListWorkloadsString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.assuredworkloads.v1.samples; + +// [START assuredworkloads_v1_generated_assuredworkloadsserviceclient_listworkloads_string_sync] +import com.google.cloud.assuredworkloads.v1.AssuredWorkloadsServiceClient; +import com.google.cloud.assuredworkloads.v1.LocationName; +import com.google.cloud.assuredworkloads.v1.Workload; + +public class SyncListWorkloadsString { + + public static void main(String[] args) throws Exception { + syncListWorkloadsString(); + } + + public static void syncListWorkloadsString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AssuredWorkloadsServiceClient assuredWorkloadsServiceClient = + AssuredWorkloadsServiceClient.create()) { + String parent = LocationName.of("[ORGANIZATION]", "[LOCATION]").toString(); + for (Workload element : assuredWorkloadsServiceClient.listWorkloads(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END assuredworkloads_v1_generated_assuredworkloadsserviceclient_listworkloads_string_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/updateworkload/AsyncUpdateWorkload.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/updateworkload/AsyncUpdateWorkload.java new file mode 100644 index 00000000..9422234c --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/updateworkload/AsyncUpdateWorkload.java @@ -0,0 +1,49 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.assuredworkloads.v1.samples; + +// [START assuredworkloads_v1_generated_assuredworkloadsserviceclient_updateworkload_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.assuredworkloads.v1.AssuredWorkloadsServiceClient; +import com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest; +import com.google.cloud.assuredworkloads.v1.Workload; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateWorkload { + + public static void main(String[] args) throws Exception { + asyncUpdateWorkload(); + } + + public static void asyncUpdateWorkload() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AssuredWorkloadsServiceClient assuredWorkloadsServiceClient = + AssuredWorkloadsServiceClient.create()) { + UpdateWorkloadRequest request = + UpdateWorkloadRequest.newBuilder() + .setWorkload(Workload.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + assuredWorkloadsServiceClient.updateWorkloadCallable().futureCall(request); + // Do something. + Workload response = future.get(); + } + } +} +// [END assuredworkloads_v1_generated_assuredworkloadsserviceclient_updateworkload_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/updateworkload/SyncUpdateWorkload.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/updateworkload/SyncUpdateWorkload.java new file mode 100644 index 00000000..b69e3b6c --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/updateworkload/SyncUpdateWorkload.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.assuredworkloads.v1.samples; + +// [START assuredworkloads_v1_generated_assuredworkloadsserviceclient_updateworkload_sync] +import com.google.cloud.assuredworkloads.v1.AssuredWorkloadsServiceClient; +import com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest; +import com.google.cloud.assuredworkloads.v1.Workload; +import com.google.protobuf.FieldMask; + +public class SyncUpdateWorkload { + + public static void main(String[] args) throws Exception { + syncUpdateWorkload(); + } + + public static void syncUpdateWorkload() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AssuredWorkloadsServiceClient assuredWorkloadsServiceClient = + AssuredWorkloadsServiceClient.create()) { + UpdateWorkloadRequest request = + UpdateWorkloadRequest.newBuilder() + .setWorkload(Workload.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + Workload response = assuredWorkloadsServiceClient.updateWorkload(request); + } + } +} +// [END assuredworkloads_v1_generated_assuredworkloadsserviceclient_updateworkload_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/updateworkload/SyncUpdateWorkloadWorkloadFieldmask.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/updateworkload/SyncUpdateWorkloadWorkloadFieldmask.java new file mode 100644 index 00000000..752236cf --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/updateworkload/SyncUpdateWorkloadWorkloadFieldmask.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.assuredworkloads.v1.samples; + +// [START assuredworkloads_v1_generated_assuredworkloadsserviceclient_updateworkload_workloadfieldmask_sync] +import com.google.cloud.assuredworkloads.v1.AssuredWorkloadsServiceClient; +import com.google.cloud.assuredworkloads.v1.Workload; +import com.google.protobuf.FieldMask; + +public class SyncUpdateWorkloadWorkloadFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateWorkloadWorkloadFieldmask(); + } + + public static void syncUpdateWorkloadWorkloadFieldmask() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AssuredWorkloadsServiceClient assuredWorkloadsServiceClient = + AssuredWorkloadsServiceClient.create()) { + Workload workload = Workload.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + Workload response = assuredWorkloadsServiceClient.updateWorkload(workload, updateMask); + } + } +} +// [END assuredworkloads_v1_generated_assuredworkloadsserviceclient_updateworkload_workloadfieldmask_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsservicesettings/updateworkload/SyncUpdateWorkload.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsservicesettings/updateworkload/SyncUpdateWorkload.java new file mode 100644 index 00000000..afa9fe9e --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsservicesettings/updateworkload/SyncUpdateWorkload.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.assuredworkloads.v1.samples; + +// [START assuredworkloads_v1_generated_assuredworkloadsservicesettings_updateworkload_sync] +import com.google.cloud.assuredworkloads.v1.AssuredWorkloadsServiceSettings; +import java.time.Duration; + +public class SyncUpdateWorkload { + + public static void main(String[] args) throws Exception { + syncUpdateWorkload(); + } + + public static void syncUpdateWorkload() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + AssuredWorkloadsServiceSettings.Builder assuredWorkloadsServiceSettingsBuilder = + AssuredWorkloadsServiceSettings.newBuilder(); + assuredWorkloadsServiceSettingsBuilder + .updateWorkloadSettings() + .setRetrySettings( + assuredWorkloadsServiceSettingsBuilder + .updateWorkloadSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + AssuredWorkloadsServiceSettings assuredWorkloadsServiceSettings = + assuredWorkloadsServiceSettingsBuilder.build(); + } +} +// [END assuredworkloads_v1_generated_assuredworkloadsservicesettings_updateworkload_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/stub/assuredworkloadsservicestubsettings/updateworkload/SyncUpdateWorkload.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/stub/assuredworkloadsservicestubsettings/updateworkload/SyncUpdateWorkload.java new file mode 100644 index 00000000..d2ac4c54 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/stub/assuredworkloadsservicestubsettings/updateworkload/SyncUpdateWorkload.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.assuredworkloads.v1.stub.samples; + +// [START assuredworkloads_v1_generated_assuredworkloadsservicestubsettings_updateworkload_sync] +import com.google.cloud.assuredworkloads.v1.stub.AssuredWorkloadsServiceStubSettings; +import java.time.Duration; + +public class SyncUpdateWorkload { + + public static void main(String[] args) throws Exception { + syncUpdateWorkload(); + } + + public static void syncUpdateWorkload() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + AssuredWorkloadsServiceStubSettings.Builder assuredWorkloadsServiceSettingsBuilder = + AssuredWorkloadsServiceStubSettings.newBuilder(); + assuredWorkloadsServiceSettingsBuilder + .updateWorkloadSettings() + .setRetrySettings( + assuredWorkloadsServiceSettingsBuilder + .updateWorkloadSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + AssuredWorkloadsServiceStubSettings assuredWorkloadsServiceSettings = + assuredWorkloadsServiceSettingsBuilder.build(); + } +} +// [END assuredworkloads_v1_generated_assuredworkloadsservicestubsettings_updateworkload_sync] diff --git a/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AssuredWorkloadsServiceClient.java b/owl-bot-staging/v1beta1/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AssuredWorkloadsServiceClient.java similarity index 94% rename from google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AssuredWorkloadsServiceClient.java rename to owl-bot-staging/v1beta1/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AssuredWorkloadsServiceClient.java index bd7b423d..12fb724f 100644 --- a/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AssuredWorkloadsServiceClient.java +++ b/owl-bot-staging/v1beta1/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AssuredWorkloadsServiceClient.java @@ -20,6 +20,7 @@ import com.google.api.core.ApiFutures; import com.google.api.core.BetaApi; import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.longrunning.OperationsClient; import com.google.api.gax.longrunning.OperationFuture; import com.google.api.gax.paging.AbstractFixedSizeCollection; import com.google.api.gax.paging.AbstractPage; @@ -31,7 +32,6 @@ import com.google.cloud.assuredworkloads.v1beta1.stub.AssuredWorkloadsServiceStubSettings; import com.google.common.util.concurrent.MoreExecutors; import com.google.longrunning.Operation; -import com.google.longrunning.OperationsClient; import com.google.protobuf.Empty; import com.google.protobuf.FieldMask; import java.io.IOException; @@ -65,13 +65,13 @@ * methods: * *
    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* @@ -108,6 +108,21 @@ * AssuredWorkloadsServiceClient.create(assuredWorkloadsServiceSettings); * }
* + *

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

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

Please refer to the GitHub repository's samples for more quickstart code snippets. */ @BetaApi @@ -115,7 +130,8 @@ public class AssuredWorkloadsServiceClient implements BackgroundResource { private final AssuredWorkloadsServiceSettings settings; private final AssuredWorkloadsServiceStub stub; - private final OperationsClient operationsClient; + private final OperationsClient httpJsonOperationsClient; + private final com.google.longrunning.OperationsClient operationsClient; /** Constructs an instance of AssuredWorkloadsServiceClient with default settings. */ public static final AssuredWorkloadsServiceClient create() throws IOException { @@ -148,13 +164,17 @@ protected AssuredWorkloadsServiceClient(AssuredWorkloadsServiceSettings settings throws IOException { this.settings = settings; this.stub = ((AssuredWorkloadsServiceStubSettings) settings.getStubSettings()).createStub(); - this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } protected AssuredWorkloadsServiceClient(AssuredWorkloadsServiceStub stub) { this.settings = null; this.stub = stub; - this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } public final AssuredWorkloadsServiceSettings getSettings() { @@ -169,10 +189,18 @@ public AssuredWorkloadsServiceStub getStub() { * Returns the OperationsClient that can be used to query the status of a long-running operation * returned by another API method call. */ - public final OperationsClient getOperationsClient() { + public final com.google.longrunning.OperationsClient getOperationsClient() { return operationsClient; } + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + public final OperationsClient getHttpJsonOperationsClient() { + return httpJsonOperationsClient; + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates Assured Workload. @@ -815,10 +843,7 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListWorkloadsPagedResponse extends AbstractPagedListResponse< - ListWorkloadsRequest, - ListWorkloadsResponse, - Workload, - ListWorkloadsPage, + ListWorkloadsRequest, ListWorkloadsResponse, Workload, ListWorkloadsPage, ListWorkloadsFixedSizeCollection> { public static ApiFuture createAsync( @@ -868,10 +893,7 @@ public ApiFuture createPageAsync( public static class ListWorkloadsFixedSizeCollection extends AbstractFixedSizeCollection< - ListWorkloadsRequest, - ListWorkloadsResponse, - Workload, - ListWorkloadsPage, + ListWorkloadsRequest, ListWorkloadsResponse, Workload, ListWorkloadsPage, ListWorkloadsFixedSizeCollection> { private ListWorkloadsFixedSizeCollection(List pages, int collectionSize) { diff --git a/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AssuredWorkloadsServiceSettings.java b/owl-bot-staging/v1beta1/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AssuredWorkloadsServiceSettings.java similarity index 89% rename from google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AssuredWorkloadsServiceSettings.java rename to owl-bot-staging/v1beta1/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AssuredWorkloadsServiceSettings.java index b3b65ae4..e4875aa1 100644 --- a/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AssuredWorkloadsServiceSettings.java +++ b/owl-bot-staging/v1beta1/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AssuredWorkloadsServiceSettings.java @@ -23,11 +23,13 @@ import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; 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.assuredworkloads.v1beta1.stub.AssuredWorkloadsServiceStubSettings; @@ -44,10 +46,10 @@ *

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

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

The builder of this class is recursive, so contained classes are themselves builders. When @@ -136,11 +138,18 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde return AssuredWorkloadsServiceStubSettings.defaultCredentialsProviderBuilder(); } - /** Returns a builder for the default ChannelProvider for this service. */ + /** Returns a builder for the default gRPC ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { return AssuredWorkloadsServiceStubSettings.defaultGrpcTransportProviderBuilder(); } + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return AssuredWorkloadsServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + public static TransportChannelProvider defaultTransportChannelProvider() { return AssuredWorkloadsServiceStubSettings.defaultTransportChannelProvider(); } @@ -150,11 +159,17 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil return AssuredWorkloadsServiceStubSettings.defaultApiClientHeaderProviderBuilder(); } - /** Returns a new builder for this class. */ + /** Returns a new gRPC builder for this class. */ public static Builder newBuilder() { return Builder.createDefault(); } + /** Returns a new REST builder for this class. */ + @BetaApi + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + /** Returns a new builder for this class. */ public static Builder newBuilder(ClientContext clientContext) { return new Builder(clientContext); @@ -193,6 +208,11 @@ private static Builder createDefault() { return new Builder(AssuredWorkloadsServiceStubSettings.newBuilder()); } + @BetaApi + private static Builder createHttpJsonDefault() { + return new Builder(AssuredWorkloadsServiceStubSettings.newHttpJsonBuilder()); + } + public AssuredWorkloadsServiceStubSettings.Builder getStubSettingsBuilder() { return ((AssuredWorkloadsServiceStubSettings.Builder) getStubSettings()); } diff --git a/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/gapic_metadata.json b/owl-bot-staging/v1beta1/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/gapic_metadata.json similarity index 100% rename from google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/gapic_metadata.json rename to owl-bot-staging/v1beta1/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/gapic_metadata.json diff --git a/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/package-info.java b/owl-bot-staging/v1beta1/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/package-info.java similarity index 100% rename from google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/package-info.java rename to owl-bot-staging/v1beta1/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/package-info.java diff --git a/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/stub/AssuredWorkloadsServiceStub.java b/owl-bot-staging/v1beta1/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/stub/AssuredWorkloadsServiceStub.java similarity index 96% rename from google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/stub/AssuredWorkloadsServiceStub.java rename to owl-bot-staging/v1beta1/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/stub/AssuredWorkloadsServiceStub.java index 9d220ccb..1360d608 100644 --- a/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/stub/AssuredWorkloadsServiceStub.java +++ b/owl-bot-staging/v1beta1/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/stub/AssuredWorkloadsServiceStub.java @@ -46,7 +46,11 @@ public abstract class AssuredWorkloadsServiceStub implements BackgroundResource { public OperationsStub getOperationsStub() { - throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); + return null; + } + + public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + return null; } public OperationCallable diff --git a/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/stub/AssuredWorkloadsServiceStubSettings.java b/owl-bot-staging/v1beta1/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/stub/AssuredWorkloadsServiceStubSettings.java similarity index 89% rename from google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/stub/AssuredWorkloadsServiceStubSettings.java rename to owl-bot-staging/v1beta1/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/stub/AssuredWorkloadsServiceStubSettings.java index 50806cfc..467e98a7 100644 --- a/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/stub/AssuredWorkloadsServiceStubSettings.java +++ b/owl-bot-staging/v1beta1/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/stub/AssuredWorkloadsServiceStubSettings.java @@ -28,6 +28,9 @@ import com.google.api.gax.grpc.GrpcTransportChannel; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; import com.google.api.gax.grpc.ProtoOperationTransformers; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; import com.google.api.gax.retrying.RetrySettings; @@ -70,10 +73,10 @@ *

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

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

The builder of this class is recursive, so contained classes are themselves builders. When @@ -209,6 +212,11 @@ public AssuredWorkloadsServiceStub createStub() throws IOException { .equals(GrpcTransportChannel.getGrpcTransportName())) { return GrpcAssuredWorkloadsServiceStub.create(this); } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonAssuredWorkloadsServiceStub.create(this); + } throw new UnsupportedOperationException( String.format( "Transport not supported: %s", getTransportChannelProvider().getTransportName())); @@ -241,18 +249,25 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde .setUseJwtAccessWithScope(true); } - /** Returns a builder for the default ChannelProvider for this service. */ + /** Returns a builder for the default gRPC ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { return InstantiatingGrpcChannelProvider.newBuilder() .setMaxInboundMessageSize(Integer.MAX_VALUE); } + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + public static TransportChannelProvider defaultTransportChannelProvider() { return defaultGrpcTransportProviderBuilder().build(); } @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken( "gapic", GaxProperties.getLibraryVersion(AssuredWorkloadsServiceStubSettings.class)) @@ -260,11 +275,30 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); } - /** Returns a new builder for this class. */ + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(AssuredWorkloadsServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return AssuredWorkloadsServiceStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ public static Builder newBuilder() { return Builder.createDefault(); } + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + /** Returns a new builder for this class. */ public static Builder newBuilder(ClientContext clientContext) { return new Builder(clientContext); @@ -398,6 +432,19 @@ private static Builder createDefault() { return initDefaults(builder); } + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + private static Builder initDefaults(Builder builder) { builder .createWorkloadSettings() diff --git a/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/stub/GrpcAssuredWorkloadsServiceCallableFactory.java b/owl-bot-staging/v1beta1/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/stub/GrpcAssuredWorkloadsServiceCallableFactory.java similarity index 100% rename from google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/stub/GrpcAssuredWorkloadsServiceCallableFactory.java rename to owl-bot-staging/v1beta1/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/stub/GrpcAssuredWorkloadsServiceCallableFactory.java diff --git a/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/stub/GrpcAssuredWorkloadsServiceStub.java b/owl-bot-staging/v1beta1/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/stub/GrpcAssuredWorkloadsServiceStub.java similarity index 99% rename from google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/stub/GrpcAssuredWorkloadsServiceStub.java rename to owl-bot-staging/v1beta1/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/stub/GrpcAssuredWorkloadsServiceStub.java index 25ae8248..1591ad5b 100644 --- a/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/stub/GrpcAssuredWorkloadsServiceStub.java +++ b/owl-bot-staging/v1beta1/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/stub/GrpcAssuredWorkloadsServiceStub.java @@ -41,6 +41,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/v1beta1/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/stub/HttpJsonAssuredWorkloadsServiceCallableFactory.java b/owl-bot-staging/v1beta1/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/stub/HttpJsonAssuredWorkloadsServiceCallableFactory.java new file mode 100644 index 00000000..70ab5a3b --- /dev/null +++ b/owl-bot-staging/v1beta1/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/stub/HttpJsonAssuredWorkloadsServiceCallableFactory.java @@ -0,0 +1,105 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.assuredworkloads.v1beta1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the AssuredWorkloadsService service API. + * + *

This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonAssuredWorkloadsServiceCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/owl-bot-staging/v1beta1/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/stub/HttpJsonAssuredWorkloadsServiceStub.java b/owl-bot-staging/v1beta1/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/stub/HttpJsonAssuredWorkloadsServiceStub.java new file mode 100644 index 00000000..3438d28f --- /dev/null +++ b/owl-bot-staging/v1beta1/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/stub/HttpJsonAssuredWorkloadsServiceStub.java @@ -0,0 +1,458 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.assuredworkloads.v1beta1.stub; + +import static com.google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsServiceClient.ListWorkloadsPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshot; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata; +import com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest; +import com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest; +import com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest; +import com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest; +import com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse; +import com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest; +import com.google.cloud.assuredworkloads.v1beta1.Workload; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the AssuredWorkloadsService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonAssuredWorkloadsServiceStub extends AssuredWorkloadsServiceStub { + private static final TypeRegistry typeRegistry = + TypeRegistry.newBuilder() + .add(CreateWorkloadOperationMetadata.getDescriptor()) + .add(Workload.getDescriptor()) + .build(); + + private static final ApiMethodDescriptor + createWorkloadMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsService/CreateWorkload") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{parent=organizations/*/locations/*}/workloads", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "externalId", request.getExternalId()); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("workload", request.getWorkload())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (CreateWorkloadRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + updateWorkloadMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsService/UpdateWorkload") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{workload.name=organizations/*/locations/*/workloads/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "workload.name", request.getWorkload().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("workload", request.getWorkload())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Workload.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteWorkloadMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsService/DeleteWorkload") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{name=organizations/*/locations/*/workloads/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "etag", request.getEtag()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getWorkloadMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsService/GetWorkload") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{name=organizations/*/locations/*/workloads/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Workload.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listWorkloadsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsService/ListWorkloads") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{parent=organizations/*/locations/*}/workloads", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListWorkloadsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable createWorkloadCallable; + private final OperationCallable + createWorkloadOperationCallable; + private final UnaryCallable updateWorkloadCallable; + private final UnaryCallable deleteWorkloadCallable; + private final UnaryCallable getWorkloadCallable; + private final UnaryCallable listWorkloadsCallable; + private final UnaryCallable + listWorkloadsPagedCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonOperationsStub httpJsonOperationsStub; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonAssuredWorkloadsServiceStub create( + AssuredWorkloadsServiceStubSettings settings) throws IOException { + return new HttpJsonAssuredWorkloadsServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonAssuredWorkloadsServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonAssuredWorkloadsServiceStub( + AssuredWorkloadsServiceStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonAssuredWorkloadsServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonAssuredWorkloadsServiceStub( + AssuredWorkloadsServiceStubSettings.newHttpJsonBuilder().build(), + clientContext, + callableFactory); + } + + /** + * Constructs an instance of HttpJsonAssuredWorkloadsServiceStub, using the given settings. This + * is protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonAssuredWorkloadsServiceStub( + AssuredWorkloadsServiceStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new HttpJsonAssuredWorkloadsServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonAssuredWorkloadsServiceStub, using the given settings. This + * is protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonAssuredWorkloadsServiceStub( + AssuredWorkloadsServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.httpJsonOperationsStub = + HttpJsonOperationsStub.create(clientContext, callableFactory, typeRegistry); + + HttpJsonCallSettings createWorkloadTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createWorkloadMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings updateWorkloadTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateWorkloadMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings deleteWorkloadTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteWorkloadMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings getWorkloadTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getWorkloadMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + listWorkloadsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listWorkloadsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + + this.createWorkloadCallable = + callableFactory.createUnaryCallable( + createWorkloadTransportSettings, settings.createWorkloadSettings(), clientContext); + this.createWorkloadOperationCallable = + callableFactory.createOperationCallable( + createWorkloadTransportSettings, + settings.createWorkloadOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.updateWorkloadCallable = + callableFactory.createUnaryCallable( + updateWorkloadTransportSettings, settings.updateWorkloadSettings(), clientContext); + this.deleteWorkloadCallable = + callableFactory.createUnaryCallable( + deleteWorkloadTransportSettings, settings.deleteWorkloadSettings(), clientContext); + this.getWorkloadCallable = + callableFactory.createUnaryCallable( + getWorkloadTransportSettings, settings.getWorkloadSettings(), clientContext); + this.listWorkloadsCallable = + callableFactory.createUnaryCallable( + listWorkloadsTransportSettings, settings.listWorkloadsSettings(), clientContext); + this.listWorkloadsPagedCallable = + callableFactory.createPagedCallable( + listWorkloadsTransportSettings, settings.listWorkloadsSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(createWorkloadMethodDescriptor); + methodDescriptors.add(updateWorkloadMethodDescriptor); + methodDescriptors.add(deleteWorkloadMethodDescriptor); + methodDescriptors.add(getWorkloadMethodDescriptor); + methodDescriptors.add(listWorkloadsMethodDescriptor); + return methodDescriptors; + } + + public HttpJsonOperationsStub getHttpJsonOperationsStub() { + return httpJsonOperationsStub; + } + + @Override + public UnaryCallable createWorkloadCallable() { + return createWorkloadCallable; + } + + @Override + public OperationCallable + createWorkloadOperationCallable() { + return createWorkloadOperationCallable; + } + + @Override + public UnaryCallable updateWorkloadCallable() { + return updateWorkloadCallable; + } + + @Override + public UnaryCallable deleteWorkloadCallable() { + return deleteWorkloadCallable; + } + + @Override + public UnaryCallable getWorkloadCallable() { + return getWorkloadCallable; + } + + @Override + public UnaryCallable listWorkloadsCallable() { + return listWorkloadsCallable; + } + + @Override + public UnaryCallable + listWorkloadsPagedCallable() { + return listWorkloadsPagedCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/owl-bot-staging/v1beta1/google-cloud-assured-workloads/src/test/java/com/google/cloud/assuredworkloads/v1beta1/AssuredWorkloadsServiceClientHttpJsonTest.java b/owl-bot-staging/v1beta1/google-cloud-assured-workloads/src/test/java/com/google/cloud/assuredworkloads/v1beta1/AssuredWorkloadsServiceClientHttpJsonTest.java new file mode 100644 index 00000000..dc8c992c --- /dev/null +++ b/owl-bot-staging/v1beta1/google-cloud-assured-workloads/src/test/java/com/google/cloud/assuredworkloads/v1beta1/AssuredWorkloadsServiceClientHttpJsonTest.java @@ -0,0 +1,586 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.assuredworkloads.v1beta1; + +import static com.google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsServiceClient.ListWorkloadsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.assuredworkloads.v1beta1.stub.HttpJsonAssuredWorkloadsServiceStub; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import com.google.protobuf.Any; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class AssuredWorkloadsServiceClientHttpJsonTest { + private static MockHttpService mockService; + private static AssuredWorkloadsServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonAssuredWorkloadsServiceStub.getMethodDescriptors(), + AssuredWorkloadsServiceSettings.getDefaultEndpoint()); + AssuredWorkloadsServiceSettings settings = + AssuredWorkloadsServiceSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + AssuredWorkloadsServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = AssuredWorkloadsServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void createWorkloadTest() throws Exception { + Workload expectedResponse = + Workload.newBuilder() + .setName(WorkloadName.of("[ORGANIZATION]", "[LOCATION]", "[WORKLOAD]").toString()) + .setDisplayName("displayName1714148973") + .addAllResources(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setBillingAccount("billingAccount708726578") + .setEtag("etag3123477") + .putAllLabels(new HashMap()) + .setProvisionedResourcesParent("provisionedResourcesParent1733249115") + .setKmsSettings(Workload.KMSSettings.newBuilder().build()) + .addAllResourceSettings(new ArrayList()) + .setEnableSovereignControls(true) + .setSaaEnrollmentResponse(Workload.SaaEnrollmentResponse.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createWorkloadTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[ORGANIZATION]", "[LOCATION]"); + Workload workload = Workload.newBuilder().build(); + + Workload actualResponse = client.createWorkloadAsync(parent, workload).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createWorkloadExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[ORGANIZATION]", "[LOCATION]"); + Workload workload = Workload.newBuilder().build(); + client.createWorkloadAsync(parent, workload).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createWorkloadTest2() throws Exception { + Workload expectedResponse = + Workload.newBuilder() + .setName(WorkloadName.of("[ORGANIZATION]", "[LOCATION]", "[WORKLOAD]").toString()) + .setDisplayName("displayName1714148973") + .addAllResources(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setBillingAccount("billingAccount708726578") + .setEtag("etag3123477") + .putAllLabels(new HashMap()) + .setProvisionedResourcesParent("provisionedResourcesParent1733249115") + .setKmsSettings(Workload.KMSSettings.newBuilder().build()) + .addAllResourceSettings(new ArrayList()) + .setEnableSovereignControls(true) + .setSaaEnrollmentResponse(Workload.SaaEnrollmentResponse.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createWorkloadTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "organizations/organization-9365/locations/location-9365"; + Workload workload = Workload.newBuilder().build(); + + Workload actualResponse = client.createWorkloadAsync(parent, workload).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createWorkloadExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "organizations/organization-9365/locations/location-9365"; + Workload workload = Workload.newBuilder().build(); + client.createWorkloadAsync(parent, workload).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void updateWorkloadTest() throws Exception { + Workload expectedResponse = + Workload.newBuilder() + .setName(WorkloadName.of("[ORGANIZATION]", "[LOCATION]", "[WORKLOAD]").toString()) + .setDisplayName("displayName1714148973") + .addAllResources(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setBillingAccount("billingAccount708726578") + .setEtag("etag3123477") + .putAllLabels(new HashMap()) + .setProvisionedResourcesParent("provisionedResourcesParent1733249115") + .setKmsSettings(Workload.KMSSettings.newBuilder().build()) + .addAllResourceSettings(new ArrayList()) + .setEnableSovereignControls(true) + .setSaaEnrollmentResponse(Workload.SaaEnrollmentResponse.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + Workload workload = + Workload.newBuilder() + .setName(WorkloadName.of("[ORGANIZATION]", "[LOCATION]", "[WORKLOAD]").toString()) + .setDisplayName("displayName1714148973") + .addAllResources(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setBillingAccount("billingAccount708726578") + .setEtag("etag3123477") + .putAllLabels(new HashMap()) + .setProvisionedResourcesParent("provisionedResourcesParent1733249115") + .setKmsSettings(Workload.KMSSettings.newBuilder().build()) + .addAllResourceSettings(new ArrayList()) + .setEnableSovereignControls(true) + .setSaaEnrollmentResponse(Workload.SaaEnrollmentResponse.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Workload actualResponse = client.updateWorkload(workload, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateWorkloadExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + Workload workload = + Workload.newBuilder() + .setName(WorkloadName.of("[ORGANIZATION]", "[LOCATION]", "[WORKLOAD]").toString()) + .setDisplayName("displayName1714148973") + .addAllResources(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setBillingAccount("billingAccount708726578") + .setEtag("etag3123477") + .putAllLabels(new HashMap()) + .setProvisionedResourcesParent("provisionedResourcesParent1733249115") + .setKmsSettings(Workload.KMSSettings.newBuilder().build()) + .addAllResourceSettings(new ArrayList()) + .setEnableSovereignControls(true) + .setSaaEnrollmentResponse(Workload.SaaEnrollmentResponse.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateWorkload(workload, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteWorkloadTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + WorkloadName name = WorkloadName.of("[ORGANIZATION]", "[LOCATION]", "[WORKLOAD]"); + + client.deleteWorkload(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteWorkloadExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + WorkloadName name = WorkloadName.of("[ORGANIZATION]", "[LOCATION]", "[WORKLOAD]"); + client.deleteWorkload(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteWorkloadTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = "organizations/organization-4962/locations/location-4962/workloads/workload-4962"; + + client.deleteWorkload(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteWorkloadExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "organizations/organization-4962/locations/location-4962/workloads/workload-4962"; + client.deleteWorkload(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getWorkloadTest() throws Exception { + Workload expectedResponse = + Workload.newBuilder() + .setName(WorkloadName.of("[ORGANIZATION]", "[LOCATION]", "[WORKLOAD]").toString()) + .setDisplayName("displayName1714148973") + .addAllResources(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setBillingAccount("billingAccount708726578") + .setEtag("etag3123477") + .putAllLabels(new HashMap()) + .setProvisionedResourcesParent("provisionedResourcesParent1733249115") + .setKmsSettings(Workload.KMSSettings.newBuilder().build()) + .addAllResourceSettings(new ArrayList()) + .setEnableSovereignControls(true) + .setSaaEnrollmentResponse(Workload.SaaEnrollmentResponse.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + WorkloadName name = WorkloadName.of("[ORGANIZATION]", "[LOCATION]", "[WORKLOAD]"); + + Workload actualResponse = client.getWorkload(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getWorkloadExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + WorkloadName name = WorkloadName.of("[ORGANIZATION]", "[LOCATION]", "[WORKLOAD]"); + client.getWorkload(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getWorkloadTest2() throws Exception { + Workload expectedResponse = + Workload.newBuilder() + .setName(WorkloadName.of("[ORGANIZATION]", "[LOCATION]", "[WORKLOAD]").toString()) + .setDisplayName("displayName1714148973") + .addAllResources(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setBillingAccount("billingAccount708726578") + .setEtag("etag3123477") + .putAllLabels(new HashMap()) + .setProvisionedResourcesParent("provisionedResourcesParent1733249115") + .setKmsSettings(Workload.KMSSettings.newBuilder().build()) + .addAllResourceSettings(new ArrayList()) + .setEnableSovereignControls(true) + .setSaaEnrollmentResponse(Workload.SaaEnrollmentResponse.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "organizations/organization-4962/locations/location-4962/workloads/workload-4962"; + + Workload actualResponse = client.getWorkload(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getWorkloadExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "organizations/organization-4962/locations/location-4962/workloads/workload-4962"; + client.getWorkload(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listWorkloadsTest() throws Exception { + Workload responsesElement = Workload.newBuilder().build(); + ListWorkloadsResponse expectedResponse = + ListWorkloadsResponse.newBuilder() + .setNextPageToken("") + .addAllWorkloads(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[ORGANIZATION]", "[LOCATION]"); + + ListWorkloadsPagedResponse pagedListResponse = client.listWorkloads(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getWorkloadsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listWorkloadsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[ORGANIZATION]", "[LOCATION]"); + client.listWorkloads(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listWorkloadsTest2() throws Exception { + Workload responsesElement = Workload.newBuilder().build(); + ListWorkloadsResponse expectedResponse = + ListWorkloadsResponse.newBuilder() + .setNextPageToken("") + .addAllWorkloads(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "organizations/organization-9365/locations/location-9365"; + + ListWorkloadsPagedResponse pagedListResponse = client.listWorkloads(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getWorkloadsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listWorkloadsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "organizations/organization-9365/locations/location-9365"; + client.listWorkloads(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/google-cloud-assured-workloads/src/test/java/com/google/cloud/assuredworkloads/v1beta1/AssuredWorkloadsServiceClientTest.java b/owl-bot-staging/v1beta1/google-cloud-assured-workloads/src/test/java/com/google/cloud/assuredworkloads/v1beta1/AssuredWorkloadsServiceClientTest.java similarity index 100% rename from google-cloud-assured-workloads/src/test/java/com/google/cloud/assuredworkloads/v1beta1/AssuredWorkloadsServiceClientTest.java rename to owl-bot-staging/v1beta1/google-cloud-assured-workloads/src/test/java/com/google/cloud/assuredworkloads/v1beta1/AssuredWorkloadsServiceClientTest.java diff --git a/google-cloud-assured-workloads/src/test/java/com/google/cloud/assuredworkloads/v1beta1/MockAssuredWorkloadsService.java b/owl-bot-staging/v1beta1/google-cloud-assured-workloads/src/test/java/com/google/cloud/assuredworkloads/v1beta1/MockAssuredWorkloadsService.java similarity index 100% rename from google-cloud-assured-workloads/src/test/java/com/google/cloud/assuredworkloads/v1beta1/MockAssuredWorkloadsService.java rename to owl-bot-staging/v1beta1/google-cloud-assured-workloads/src/test/java/com/google/cloud/assuredworkloads/v1beta1/MockAssuredWorkloadsService.java diff --git a/google-cloud-assured-workloads/src/test/java/com/google/cloud/assuredworkloads/v1beta1/MockAssuredWorkloadsServiceImpl.java b/owl-bot-staging/v1beta1/google-cloud-assured-workloads/src/test/java/com/google/cloud/assuredworkloads/v1beta1/MockAssuredWorkloadsServiceImpl.java similarity index 100% rename from google-cloud-assured-workloads/src/test/java/com/google/cloud/assuredworkloads/v1beta1/MockAssuredWorkloadsServiceImpl.java rename to owl-bot-staging/v1beta1/google-cloud-assured-workloads/src/test/java/com/google/cloud/assuredworkloads/v1beta1/MockAssuredWorkloadsServiceImpl.java diff --git a/owl-bot-staging/v1beta1/grpc-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AssuredWorkloadsServiceGrpc.java b/owl-bot-staging/v1beta1/grpc-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AssuredWorkloadsServiceGrpc.java new file mode 100644 index 00000000..b804f532 --- /dev/null +++ b/owl-bot-staging/v1beta1/grpc-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AssuredWorkloadsServiceGrpc.java @@ -0,0 +1,667 @@ +package com.google.cloud.assuredworkloads.v1beta1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *

+ * Service to manage AssuredWorkloads.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class AssuredWorkloadsServiceGrpc { + + private AssuredWorkloadsServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getCreateWorkloadMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateWorkload", + requestType = com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateWorkloadMethod() { + io.grpc.MethodDescriptor getCreateWorkloadMethod; + if ((getCreateWorkloadMethod = AssuredWorkloadsServiceGrpc.getCreateWorkloadMethod) == null) { + synchronized (AssuredWorkloadsServiceGrpc.class) { + if ((getCreateWorkloadMethod = AssuredWorkloadsServiceGrpc.getCreateWorkloadMethod) == null) { + AssuredWorkloadsServiceGrpc.getCreateWorkloadMethod = getCreateWorkloadMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateWorkload")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new AssuredWorkloadsServiceMethodDescriptorSupplier("CreateWorkload")) + .build(); + } + } + } + return getCreateWorkloadMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateWorkloadMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateWorkload", + requestType = com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest.class, + responseType = com.google.cloud.assuredworkloads.v1beta1.Workload.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateWorkloadMethod() { + io.grpc.MethodDescriptor getUpdateWorkloadMethod; + if ((getUpdateWorkloadMethod = AssuredWorkloadsServiceGrpc.getUpdateWorkloadMethod) == null) { + synchronized (AssuredWorkloadsServiceGrpc.class) { + if ((getUpdateWorkloadMethod = AssuredWorkloadsServiceGrpc.getUpdateWorkloadMethod) == null) { + AssuredWorkloadsServiceGrpc.getUpdateWorkloadMethod = getUpdateWorkloadMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateWorkload")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.assuredworkloads.v1beta1.Workload.getDefaultInstance())) + .setSchemaDescriptor(new AssuredWorkloadsServiceMethodDescriptorSupplier("UpdateWorkload")) + .build(); + } + } + } + return getUpdateWorkloadMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteWorkloadMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteWorkload", + requestType = com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteWorkloadMethod() { + io.grpc.MethodDescriptor getDeleteWorkloadMethod; + if ((getDeleteWorkloadMethod = AssuredWorkloadsServiceGrpc.getDeleteWorkloadMethod) == null) { + synchronized (AssuredWorkloadsServiceGrpc.class) { + if ((getDeleteWorkloadMethod = AssuredWorkloadsServiceGrpc.getDeleteWorkloadMethod) == null) { + AssuredWorkloadsServiceGrpc.getDeleteWorkloadMethod = getDeleteWorkloadMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteWorkload")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new AssuredWorkloadsServiceMethodDescriptorSupplier("DeleteWorkload")) + .build(); + } + } + } + return getDeleteWorkloadMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetWorkloadMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetWorkload", + requestType = com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest.class, + responseType = com.google.cloud.assuredworkloads.v1beta1.Workload.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetWorkloadMethod() { + io.grpc.MethodDescriptor getGetWorkloadMethod; + if ((getGetWorkloadMethod = AssuredWorkloadsServiceGrpc.getGetWorkloadMethod) == null) { + synchronized (AssuredWorkloadsServiceGrpc.class) { + if ((getGetWorkloadMethod = AssuredWorkloadsServiceGrpc.getGetWorkloadMethod) == null) { + AssuredWorkloadsServiceGrpc.getGetWorkloadMethod = getGetWorkloadMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetWorkload")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.assuredworkloads.v1beta1.Workload.getDefaultInstance())) + .setSchemaDescriptor(new AssuredWorkloadsServiceMethodDescriptorSupplier("GetWorkload")) + .build(); + } + } + } + return getGetWorkloadMethod; + } + + private static volatile io.grpc.MethodDescriptor getListWorkloadsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListWorkloads", + requestType = com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest.class, + responseType = com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListWorkloadsMethod() { + io.grpc.MethodDescriptor getListWorkloadsMethod; + if ((getListWorkloadsMethod = AssuredWorkloadsServiceGrpc.getListWorkloadsMethod) == null) { + synchronized (AssuredWorkloadsServiceGrpc.class) { + if ((getListWorkloadsMethod = AssuredWorkloadsServiceGrpc.getListWorkloadsMethod) == null) { + AssuredWorkloadsServiceGrpc.getListWorkloadsMethod = getListWorkloadsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListWorkloads")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse.getDefaultInstance())) + .setSchemaDescriptor(new AssuredWorkloadsServiceMethodDescriptorSupplier("ListWorkloads")) + .build(); + } + } + } + return getListWorkloadsMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static AssuredWorkloadsServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AssuredWorkloadsServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AssuredWorkloadsServiceStub(channel, callOptions); + } + }; + return AssuredWorkloadsServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static AssuredWorkloadsServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AssuredWorkloadsServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AssuredWorkloadsServiceBlockingStub(channel, callOptions); + } + }; + return AssuredWorkloadsServiceBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static AssuredWorkloadsServiceFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AssuredWorkloadsServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AssuredWorkloadsServiceFutureStub(channel, callOptions); + } + }; + return AssuredWorkloadsServiceFutureStub.newStub(factory, channel); + } + + /** + *
+   * Service to manage AssuredWorkloads.
+   * 
+ */ + public static abstract class AssuredWorkloadsServiceImplBase implements io.grpc.BindableService { + + /** + *
+     * Creates Assured Workload.
+     * 
+ */ + public void createWorkload(com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateWorkloadMethod(), responseObserver); + } + + /** + *
+     * Updates an existing workload.
+     * Currently allows updating of workload display_name and labels.
+     * For force updates don't set etag field in the Workload.
+     * Only one update operation per workload can be in progress.
+     * 
+ */ + public void updateWorkload(com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateWorkloadMethod(), responseObserver); + } + + /** + *
+     * Deletes the workload. Make sure that workload's direct children are already
+     * in a deleted state, otherwise the request will fail with a
+     * FAILED_PRECONDITION error.
+     * 
+ */ + public void deleteWorkload(com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteWorkloadMethod(), responseObserver); + } + + /** + *
+     * Gets Assured Workload associated with a CRM Node
+     * 
+ */ + public void getWorkload(com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetWorkloadMethod(), responseObserver); + } + + /** + *
+     * Lists Assured Workloads under a CRM Node.
+     * 
+ */ + public void listWorkloads(com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListWorkloadsMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateWorkloadMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest, + com.google.longrunning.Operation>( + this, METHODID_CREATE_WORKLOAD))) + .addMethod( + getUpdateWorkloadMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest, + com.google.cloud.assuredworkloads.v1beta1.Workload>( + this, METHODID_UPDATE_WORKLOAD))) + .addMethod( + getDeleteWorkloadMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest, + com.google.protobuf.Empty>( + this, METHODID_DELETE_WORKLOAD))) + .addMethod( + getGetWorkloadMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest, + com.google.cloud.assuredworkloads.v1beta1.Workload>( + this, METHODID_GET_WORKLOAD))) + .addMethod( + getListWorkloadsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest, + com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse>( + this, METHODID_LIST_WORKLOADS))) + .build(); + } + } + + /** + *
+   * Service to manage AssuredWorkloads.
+   * 
+ */ + public static final class AssuredWorkloadsServiceStub extends io.grpc.stub.AbstractAsyncStub { + private AssuredWorkloadsServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AssuredWorkloadsServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AssuredWorkloadsServiceStub(channel, callOptions); + } + + /** + *
+     * Creates Assured Workload.
+     * 
+ */ + public void createWorkload(com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateWorkloadMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates an existing workload.
+     * Currently allows updating of workload display_name and labels.
+     * For force updates don't set etag field in the Workload.
+     * Only one update operation per workload can be in progress.
+     * 
+ */ + public void updateWorkload(com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateWorkloadMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes the workload. Make sure that workload's direct children are already
+     * in a deleted state, otherwise the request will fail with a
+     * FAILED_PRECONDITION error.
+     * 
+ */ + public void deleteWorkload(com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteWorkloadMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets Assured Workload associated with a CRM Node
+     * 
+ */ + public void getWorkload(com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetWorkloadMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists Assured Workloads under a CRM Node.
+     * 
+ */ + public void listWorkloads(com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListWorkloadsMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * Service to manage AssuredWorkloads.
+   * 
+ */ + public static final class AssuredWorkloadsServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private AssuredWorkloadsServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AssuredWorkloadsServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AssuredWorkloadsServiceBlockingStub(channel, callOptions); + } + + /** + *
+     * Creates Assured Workload.
+     * 
+ */ + public com.google.longrunning.Operation createWorkload(com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateWorkloadMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates an existing workload.
+     * Currently allows updating of workload display_name and labels.
+     * For force updates don't set etag field in the Workload.
+     * Only one update operation per workload can be in progress.
+     * 
+ */ + public com.google.cloud.assuredworkloads.v1beta1.Workload updateWorkload(com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateWorkloadMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes the workload. Make sure that workload's direct children are already
+     * in a deleted state, otherwise the request will fail with a
+     * FAILED_PRECONDITION error.
+     * 
+ */ + public com.google.protobuf.Empty deleteWorkload(com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteWorkloadMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets Assured Workload associated with a CRM Node
+     * 
+ */ + public com.google.cloud.assuredworkloads.v1beta1.Workload getWorkload(com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetWorkloadMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists Assured Workloads under a CRM Node.
+     * 
+ */ + public com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse listWorkloads(com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListWorkloadsMethod(), getCallOptions(), request); + } + } + + /** + *
+   * Service to manage AssuredWorkloads.
+   * 
+ */ + public static final class AssuredWorkloadsServiceFutureStub extends io.grpc.stub.AbstractFutureStub { + private AssuredWorkloadsServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AssuredWorkloadsServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AssuredWorkloadsServiceFutureStub(channel, callOptions); + } + + /** + *
+     * Creates Assured Workload.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createWorkload( + com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateWorkloadMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates an existing workload.
+     * Currently allows updating of workload display_name and labels.
+     * For force updates don't set etag field in the Workload.
+     * Only one update operation per workload can be in progress.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateWorkload( + com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateWorkloadMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes the workload. Make sure that workload's direct children are already
+     * in a deleted state, otherwise the request will fail with a
+     * FAILED_PRECONDITION error.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteWorkload( + com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteWorkloadMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets Assured Workload associated with a CRM Node
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getWorkload( + com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetWorkloadMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists Assured Workloads under a CRM Node.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listWorkloads( + com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListWorkloadsMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_WORKLOAD = 0; + private static final int METHODID_UPDATE_WORKLOAD = 1; + private static final int METHODID_DELETE_WORKLOAD = 2; + private static final int METHODID_GET_WORKLOAD = 3; + private static final int METHODID_LIST_WORKLOADS = 4; + + 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 AssuredWorkloadsServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(AssuredWorkloadsServiceImplBase 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_WORKLOAD: + serviceImpl.createWorkload((com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_WORKLOAD: + serviceImpl.updateWorkload((com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_WORKLOAD: + serviceImpl.deleteWorkload((com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_WORKLOAD: + serviceImpl.getWorkload((com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_WORKLOADS: + serviceImpl.listWorkloads((com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private static abstract class AssuredWorkloadsServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + AssuredWorkloadsServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("AssuredWorkloadsService"); + } + } + + private static final class AssuredWorkloadsServiceFileDescriptorSupplier + extends AssuredWorkloadsServiceBaseDescriptorSupplier { + AssuredWorkloadsServiceFileDescriptorSupplier() {} + } + + private static final class AssuredWorkloadsServiceMethodDescriptorSupplier + extends AssuredWorkloadsServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + AssuredWorkloadsServiceMethodDescriptorSupplier(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 (AssuredWorkloadsServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new AssuredWorkloadsServiceFileDescriptorSupplier()) + .addMethod(getCreateWorkloadMethod()) + .addMethod(getUpdateWorkloadMethod()) + .addMethod(getDeleteWorkloadMethod()) + .addMethod(getGetWorkloadMethod()) + .addMethod(getListWorkloadsMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AssuredworkloadsProto.java b/owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AssuredworkloadsProto.java new file mode 100644 index 00000000..932aa9ba --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AssuredworkloadsProto.java @@ -0,0 +1,416 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto + +package com.google.cloud.assuredworkloads.v1beta1; + +public final class AssuredworkloadsProto { + private AssuredworkloadsProto() {} + 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_assuredworkloads_v1beta1_CreateWorkloadRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_assuredworkloads_v1beta1_CreateWorkloadRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_assuredworkloads_v1beta1_UpdateWorkloadRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_assuredworkloads_v1beta1_UpdateWorkloadRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_assuredworkloads_v1beta1_DeleteWorkloadRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_assuredworkloads_v1beta1_DeleteWorkloadRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_assuredworkloads_v1beta1_GetWorkloadRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_assuredworkloads_v1beta1_GetWorkloadRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_assuredworkloads_v1beta1_ListWorkloadsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_assuredworkloads_v1beta1_ListWorkloadsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_assuredworkloads_v1beta1_ListWorkloadsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_assuredworkloads_v1beta1_ListWorkloadsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_ResourceInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_ResourceInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_KMSSettings_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_KMSSettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_IL4Settings_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_IL4Settings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_CJISSettings_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_CJISSettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_FedrampHighSettings_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_FedrampHighSettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_FedrampModerateSettings_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_FedrampModerateSettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_ResourceSettings_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_ResourceSettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_SaaEnrollmentResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_SaaEnrollmentResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_assuredworkloads_v1beta1_CreateWorkloadOperationMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_assuredworkloads_v1beta1_CreateWorkloadOperationMetadata_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\n\004name\030\001 \001" + + "(\tB0\340A\002\372A*\n(assuredworkloads.googleapis." + + "com/Workload\022\021\n\004etag\030\002 \001(\tB\003\340A\001\"T\n\022GetWo" + + "rkloadRequest\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n(ass" + + "uredworkloads.googleapis.com/Workload\"\217\001" + + "\n\024ListWorkloadsRequest\022@\n\006parent\030\001 \001(\tB0" + + "\340A\002\372A*\022(assuredworkloads.googleapis.com/" + + "Workload\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_toke" + + "n\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\"t\n\025ListWorkloads" + + "Response\022B\n\tworkloads\030\001 \003(\0132/.google.clo" + + "ud.assuredworkloads.v1beta1.Workload\022\027\n\017" + + "next_page_token\030\002 \001(\t\"\213\033\n\010Workload\022\021\n\004na" + + "me\030\001 \001(\tB\003\340A\001\022\031\n\014display_name\030\002 \001(\tB\003\340A\002" + + "\022T\n\tresources\030\003 \003(\0132<.google.cloud.assur" + + "edworkloads.v1beta1.Workload.ResourceInf" + + "oB\003\340A\003\022c\n\021compliance_regime\030\004 \001(\0162@.goog" + + "le.cloud.assuredworkloads.v1beta1.Worklo" + + "ad.ComplianceRegimeB\006\340A\002\340A\005\0227\n\013create_ti" + + "me\030\005 \001(\0132\032.google.protobuf.TimestampB\006\340A" + + "\003\340A\005\022\034\n\017billing_account\030\006 \001(\tB\003\340A\004\022`\n\014il" + + "4_settings\030\007 \001(\0132;.google.cloud.assuredw" + + "orkloads.v1beta1.Workload.IL4SettingsB\013\030" + + "\001\340A\002\340A\004\340A\005H\000\022b\n\rcjis_settings\030\010 \001(\0132<.go" + + "ogle.cloud.assuredworkloads.v1beta1.Work" + + "load.CJISSettingsB\013\030\001\340A\002\340A\004\340A\005H\000\022q\n\025fedr" + + "amp_high_settings\030\013 \001(\0132C.google.cloud.a" + + "ssuredworkloads.v1beta1.Workload.Fedramp" + + "HighSettingsB\013\030\001\340A\002\340A\004\340A\005H\000\022y\n\031fedramp_m" + + "oderate_settings\030\014 \001(\0132G.google.cloud.as" + + "suredworkloads.v1beta1.Workload.FedrampM" + + "oderateSettingsB\013\030\001\340A\002\340A\004\340A\005H\000\022\021\n\004etag\030\t" + + " \001(\tB\003\340A\001\022P\n\006labels\030\n \003(\0132;.google.cloud" + + ".assuredworkloads.v1beta1.Workload.Label" + + "sEntryB\003\340A\001\022)\n\034provisioned_resources_par" + + "ent\030\r \001(\tB\003\340A\004\022V\n\014kms_settings\030\016 \001(\0132;.g" + + "oogle.cloud.assuredworkloads.v1beta1.Wor" + + "kload.KMSSettingsB\003\340A\004\022`\n\021resource_setti" + + "ngs\030\017 \003(\0132@.google.cloud.assuredworkload" + + "s.v1beta1.Workload.ResourceSettingsB\003\340A\004" + + "\022e\n\024kaj_enrollment_state\030\021 \001(\0162B.google." + + "cloud.assuredworkloads.v1beta1.Workload." + + "KajEnrollmentStateB\003\340A\003\022&\n\031enable_sovere" + + "ign_controls\030\022 \001(\010B\003\340A\001\022k\n\027saa_enrollmen" + + "t_response\030\024 \001(\0132E.google.cloud.assuredw" + + "orkloads.v1beta1.Workload.SaaEnrollmentR" + + "esponseB\003\340A\003\032\216\002\n\014ResourceInfo\022\023\n\013resourc" + + "e_id\030\001 \001(\003\022`\n\rresource_type\030\002 \001(\0162I.goog" + + "le.cloud.assuredworkloads.v1beta1.Worklo" + + "ad.ResourceInfo.ResourceType\"\206\001\n\014Resourc" + + "eType\022\035\n\031RESOURCE_TYPE_UNSPECIFIED\020\000\022\030\n\020" + + "CONSUMER_PROJECT\020\001\032\002\010\001\022\023\n\017CONSUMER_FOLDE" + + "R\020\004\022\033\n\027ENCRYPTION_KEYS_PROJECT\020\002\022\013\n\007KEYR" + + "ING\020\003\032\217\001\n\013KMSSettings\022A\n\022next_rotation_t" + + "ime\030\001 \001(\0132\032.google.protobuf.TimestampB\t\340" + + "A\002\340A\004\340A\005\022=\n\017rotation_period\030\002 \001(\0132\031.goog" + + "le.protobuf.DurationB\t\340A\002\340A\004\340A\005\032o\n\013IL4Se" + + "ttings\022\\\n\014kms_settings\030\001 \001(\0132;.google.cl" + + "oud.assuredworkloads.v1beta1.Workload.KM" + + "SSettingsB\t\340A\002\340A\004\340A\005:\002\030\001\032p\n\014CJISSettings" + + "\022\\\n\014kms_settings\030\001 \001(\0132;.google.cloud.as" + + "suredworkloads.v1beta1.Workload.KMSSetti" + + "ngsB\t\340A\002\340A\004\340A\005:\002\030\001\032w\n\023FedrampHighSetting" + + "s\022\\\n\014kms_settings\030\001 \001(\0132;.google.cloud.a" + + "ssuredworkloads.v1beta1.Workload.KMSSett" + + "ingsB\t\340A\002\340A\004\340A\005:\002\030\001\032{\n\027FedrampModerateSe" + + "ttings\022\\\n\014kms_settings\030\001 \001(\0132;.google.cl" + + "oud.assuredworkloads.v1beta1.Workload.KM" + + "SSettingsB\t\340A\002\340A\004\340A\005:\002\030\001\032\237\001\n\020ResourceSet" + + "tings\022\023\n\013resource_id\030\001 \001(\t\022`\n\rresource_t" + + "ype\030\002 \001(\0162I.google.cloud.assuredworkload" + + "s.v1beta1.Workload.ResourceInfo.Resource" + + "Type\022\024\n\014display_name\030\003 \001(\t\032\206\004\n\025SaaEnroll" + + "mentResponse\022k\n\014setup_status\030\001 \001(\0162P.goo" + + "gle.cloud.assuredworkloads.v1beta1.Workl" + + "oad.SaaEnrollmentResponse.SetupStateH\000\210\001" + + "\001\022f\n\014setup_errors\030\002 \003(\0162P.google.cloud.a" + + "ssuredworkloads.v1beta1.Workload.SaaEnro" + + "llmentResponse.SetupError\"R\n\nSetupState\022" + + "\033\n\027SETUP_STATE_UNSPECIFIED\020\000\022\022\n\016STATUS_P" + + "ENDING\020\001\022\023\n\017STATUS_COMPLETE\020\002\"\262\001\n\nSetupE" + + "rror\022\033\n\027SETUP_ERROR_UNSPECIFIED\020\000\022\034\n\030ERR" + + "OR_INVALID_BASE_SETUP\020\001\022&\n\"ERROR_MISSING" + + "_EXTERNAL_SIGNING_KEY\020\002\022#\n\037ERROR_NOT_ALL" + + "_SERVICES_ENROLLED\020\003\022\034\n\030ERROR_SETUP_CHEC" + + "K_FAILED\020\004B\017\n\r_setup_status\032-\n\013LabelsEnt" + + "ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\330\001\n\020C" + + "omplianceRegime\022!\n\035COMPLIANCE_REGIME_UNS" + + "PECIFIED\020\000\022\007\n\003IL4\020\001\022\010\n\004CJIS\020\002\022\020\n\014FEDRAMP" + + "_HIGH\020\003\022\024\n\020FEDRAMP_MODERATE\020\004\022\026\n\022US_REGI" + + "ONAL_ACCESS\020\005\022\t\n\005HIPAA\020\006\022\013\n\007HITRUST\020\007\022\032\n" + + "\026EU_REGIONS_AND_SUPPORT\020\010\022\032\n\026CA_REGIONS_" + + "AND_SUPPORT\020\t\"\177\n\022KajEnrollmentState\022$\n K" + + "AJ_ENROLLMENT_STATE_UNSPECIFIED\020\000\022 \n\034KAJ" + + "_ENROLLMENT_STATE_PENDING\020\001\022!\n\035KAJ_ENROL" + + "LMENT_STATE_COMPLETE\020\002:u\352Ar\n(assuredwork" + + "loads.googleapis.com/Workload\022Forganizat" + + "ions/{organization}/locations/{location}" + + "/workloads/{workload}B\034\n\032compliance_regi" + + "me_settings\"\313\002\n\037CreateWorkloadOperationM" + + "etadata\0224\n\013create_time\030\001 \001(\0132\032.google.pr" + + "otobuf.TimestampB\003\340A\001\022\031\n\014display_name\030\002 " + + "\001(\tB\003\340A\001\022\023\n\006parent\030\003 \001(\tB\003\340A\001\022`\n\021complia" + + "nce_regime\030\004 \001(\0162@.google.cloud.assuredw" + + "orkloads.v1beta1.Workload.ComplianceRegi" + + "meB\003\340A\001\022`\n\021resource_settings\030\005 \003(\0132@.goo" + + "gle.cloud.assuredworkloads.v1beta1.Workl" + + "oad.ResourceSettingsB\003\340A\0012\243\t\n\027AssuredWor" + + "kloadsService\022\371\001\n\016CreateWorkload\022<.googl" + + "e.cloud.assuredworkloads.v1beta1.CreateW" + + "orkloadRequest\032\035.google.longrunning.Oper" + + "ation\"\211\001\202\323\344\223\002C\"7/v1beta1/{parent=organiz" + + "ations/*/locations/*}/workloads:\010workloa" + + "d\332A\017parent,workload\312A+\n\010Workload\022\037Create" + + "WorkloadOperationMetadata\022\352\001\n\016UpdateWork" + + "load\022<.google.cloud.assuredworkloads.v1b" + + "eta1.UpdateWorkloadRequest\032/.google.clou" + + "d.assuredworkloads.v1beta1.Workload\"i\202\323\344" + + "\223\002L2@/v1beta1/{workload.name=organizatio" + + "ns/*/locations/*/workloads/*}:\010workload\332" + + "A\024workload,update_mask\022\256\001\n\016DeleteWorkloa" + + "d\022<.google.cloud.assuredworkloads.v1beta" + + "1.DeleteWorkloadRequest\032\026.google.protobu" + + "f.Empty\"F\202\323\344\223\0029*7/v1beta1/{name=organiza" + + "tions/*/locations/*/workloads/*}\332A\004name\022" + + "\301\001\n\013GetWorkload\0229.google.cloud.assuredwo" + + "rkloads.v1beta1.GetWorkloadRequest\032/.goo" + + "gle.cloud.assuredworkloads.v1beta1.Workl" + + "oad\"F\202\323\344\223\0029\0227/v1beta1/{name=organization" + + "s/*/locations/*/workloads/*}\332A\004name\022\324\001\n\r" + + "ListWorkloads\022;.google.cloud.assuredwork" + + "loads.v1beta1.ListWorkloadsRequest\032<.goo" + + "gle.cloud.assuredworkloads.v1beta1.ListW" + + "orkloadsResponse\"H\202\323\344\223\0029\0227/v1beta1/{pare" + + "nt=organizations/*/locations/*}/workload" + + "s\332A\006parent\032S\312A\037assuredworkloads.googleap" + + "is.com\322A.https://www.googleapis.com/auth" + + "/cloud-platformB\366\002\n)com.google.cloud.ass" + + "uredworkloads.v1beta1B\025AssuredworkloadsP" + + "rotoP\001ZUgoogle.golang.org/genproto/googl" + + "eapis/cloud/assuredworkloads/v1beta1;ass" + + "uredworkloads\252\002%Google.Cloud.AssuredWork" + + "loads.V1Beta1\312\002%Google\\Cloud\\AssuredWork" + + "loads\\V1beta1\352\002(Google::Cloud::AssuredWo" + + "rkloads::V1beta1\352A]\n(assuredworkloads.go" + + "ogleapis.com/Location\0221organizations/{or" + + "ganization}/locations/{location}b\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.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_assuredworkloads_v1beta1_CreateWorkloadRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_assuredworkloads_v1beta1_CreateWorkloadRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_assuredworkloads_v1beta1_CreateWorkloadRequest_descriptor, + new java.lang.String[] { "Parent", "Workload", "ExternalId", }); + internal_static_google_cloud_assuredworkloads_v1beta1_UpdateWorkloadRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_assuredworkloads_v1beta1_UpdateWorkloadRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_assuredworkloads_v1beta1_UpdateWorkloadRequest_descriptor, + new java.lang.String[] { "Workload", "UpdateMask", }); + internal_static_google_cloud_assuredworkloads_v1beta1_DeleteWorkloadRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_assuredworkloads_v1beta1_DeleteWorkloadRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_assuredworkloads_v1beta1_DeleteWorkloadRequest_descriptor, + new java.lang.String[] { "Name", "Etag", }); + internal_static_google_cloud_assuredworkloads_v1beta1_GetWorkloadRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_assuredworkloads_v1beta1_GetWorkloadRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_assuredworkloads_v1beta1_GetWorkloadRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_assuredworkloads_v1beta1_ListWorkloadsRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_assuredworkloads_v1beta1_ListWorkloadsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_assuredworkloads_v1beta1_ListWorkloadsRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", }); + internal_static_google_cloud_assuredworkloads_v1beta1_ListWorkloadsResponse_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_assuredworkloads_v1beta1_ListWorkloadsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_assuredworkloads_v1beta1_ListWorkloadsResponse_descriptor, + new java.lang.String[] { "Workloads", "NextPageToken", }); + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_descriptor, + new java.lang.String[] { "Name", "DisplayName", "Resources", "ComplianceRegime", "CreateTime", "BillingAccount", "Il4Settings", "CjisSettings", "FedrampHighSettings", "FedrampModerateSettings", "Etag", "Labels", "ProvisionedResourcesParent", "KmsSettings", "ResourceSettings", "KajEnrollmentState", "EnableSovereignControls", "SaaEnrollmentResponse", "ComplianceRegimeSettings", }); + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_ResourceInfo_descriptor = + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_ResourceInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_ResourceInfo_descriptor, + new java.lang.String[] { "ResourceId", "ResourceType", }); + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_KMSSettings_descriptor = + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_KMSSettings_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_KMSSettings_descriptor, + new java.lang.String[] { "NextRotationTime", "RotationPeriod", }); + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_IL4Settings_descriptor = + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_IL4Settings_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_IL4Settings_descriptor, + new java.lang.String[] { "KmsSettings", }); + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_CJISSettings_descriptor = + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_descriptor.getNestedTypes().get(3); + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_CJISSettings_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_CJISSettings_descriptor, + new java.lang.String[] { "KmsSettings", }); + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_FedrampHighSettings_descriptor = + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_descriptor.getNestedTypes().get(4); + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_FedrampHighSettings_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_FedrampHighSettings_descriptor, + new java.lang.String[] { "KmsSettings", }); + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_FedrampModerateSettings_descriptor = + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_descriptor.getNestedTypes().get(5); + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_FedrampModerateSettings_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_FedrampModerateSettings_descriptor, + new java.lang.String[] { "KmsSettings", }); + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_ResourceSettings_descriptor = + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_descriptor.getNestedTypes().get(6); + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_ResourceSettings_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_ResourceSettings_descriptor, + new java.lang.String[] { "ResourceId", "ResourceType", "DisplayName", }); + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_SaaEnrollmentResponse_descriptor = + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_descriptor.getNestedTypes().get(7); + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_SaaEnrollmentResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_SaaEnrollmentResponse_descriptor, + new java.lang.String[] { "SetupStatus", "SetupErrors", "SetupStatus", }); + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_LabelsEntry_descriptor = + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_descriptor.getNestedTypes().get(8); + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_assuredworkloads_v1beta1_CreateWorkloadOperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_assuredworkloads_v1beta1_CreateWorkloadOperationMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_assuredworkloads_v1beta1_CreateWorkloadOperationMetadata_descriptor, + new java.lang.String[] { "CreateTime", "DisplayName", "Parent", "ComplianceRegime", "ResourceSettings", }); + 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.resourceDefinition); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + 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.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/CreateWorkloadOperationMetadata.java b/owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/CreateWorkloadOperationMetadata.java similarity index 62% rename from proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/CreateWorkloadOperationMetadata.java rename to owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/CreateWorkloadOperationMetadata.java index 8708651e..e48960f3 100644 --- a/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/CreateWorkloadOperationMetadata.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/CreateWorkloadOperationMetadata.java @@ -1,43 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto package com.google.cloud.assuredworkloads.v1beta1; /** - * - * *
  * Operation metadata to give request details of CreateWorkload.
  * 
* * Protobuf type {@code google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata} */ -public final class CreateWorkloadOperationMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateWorkloadOperationMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata) CreateWorkloadOperationMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateWorkloadOperationMetadata.newBuilder() to construct. - private CreateWorkloadOperationMetadata( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private CreateWorkloadOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateWorkloadOperationMetadata() { displayName_ = ""; parent_ = ""; @@ -47,15 +28,16 @@ private CreateWorkloadOperationMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateWorkloadOperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CreateWorkloadOperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -75,63 +57,53 @@ private CreateWorkloadOperationMetadata( case 0: done = true; break; - case 10: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); - } - createTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - displayName_ = s; - break; + createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 32: - { - int rawValue = input.readEnum(); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - complianceRegime_ = rawValue; - break; - } - case 42: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - resourceSettings_ = - new java.util.ArrayList< - com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings>(); - mutable_bitField0_ |= 0x00000001; - } - resourceSettings_.add( - input.readMessage( - com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.parser(), - extensionRegistry)); - break; + displayName_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 32: { + int rawValue = input.readEnum(); + + complianceRegime_ = rawValue; + break; + } + case 42: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + resourceSettings_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + resourceSettings_.add( + input.readMessage(com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -139,7 +111,8 @@ private CreateWorkloadOperationMetadata( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { resourceSettings_ = java.util.Collections.unmodifiableList(resourceSettings_); @@ -148,35 +121,27 @@ private CreateWorkloadOperationMetadata( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1beta1_CreateWorkloadOperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_CreateWorkloadOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1beta1_CreateWorkloadOperationMetadata_fieldAccessorTable + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_CreateWorkloadOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata.class, - com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata.Builder - .class); + com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata.class, com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata.Builder.class); } public static final int CREATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Optional. Time when the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -184,15 +149,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Optional. Time when the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The createTime. */ @java.lang.Override @@ -200,14 +161,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Optional. Time when the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -217,14 +175,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int DISPLAY_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object displayName_; /** - * - * *
    * Optional. The display name of the workload.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The displayName. */ @java.lang.Override @@ -233,29 +188,29 @@ public java.lang.String getDisplayName() { 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(); displayName_ = s; return s; } } /** - * - * *
    * Optional. The display name of the workload.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; 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); displayName_ = b; return b; } else { @@ -266,14 +221,11 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { public static final int PARENT_FIELD_NUMBER = 3; private volatile java.lang.Object parent_; /** - * - * *
    * Optional. The parent of the workload.
    * 
* * string parent = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The parent. */ @java.lang.Override @@ -282,29 +234,29 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Optional. The parent of the workload.
    * 
* * string parent = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -315,139 +267,98 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int COMPLIANCE_REGIME_FIELD_NUMBER = 4; private int complianceRegime_; /** - * - * *
    * Optional. Compliance controls that should be applied to the resources
    * managed by the workload.
    * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for complianceRegime. */ - @java.lang.Override - public int getComplianceRegimeValue() { + @java.lang.Override public int getComplianceRegimeValue() { return complianceRegime_; } /** - * - * *
    * Optional. Compliance controls that should be applied to the resources
    * managed by the workload.
    * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The complianceRegime. */ - @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime getComplianceRegime() { + @java.lang.Override public com.google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime getComplianceRegime() { @SuppressWarnings("deprecation") - com.google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime result = - com.google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime.valueOf( - complianceRegime_); - return result == null - ? com.google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime.UNRECOGNIZED - : result; + com.google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime result = com.google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime.valueOf(complianceRegime_); + return result == null ? com.google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime.UNRECOGNIZED : result; } public static final int RESOURCE_SETTINGS_FIELD_NUMBER = 5; - private java.util.List - resourceSettings_; + private java.util.List resourceSettings_; /** - * - * *
    * Optional. Resource properties in the input that are used for
    * creating/customizing workload resources.
    * 
* - * - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.List - getResourceSettingsList() { + public java.util.List getResourceSettingsList() { return resourceSettings_; } /** - * - * *
    * Optional. Resource properties in the input that are used for
    * creating/customizing workload resources.
    * 
* - * - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettingsOrBuilder> + public java.util.List getResourceSettingsOrBuilderList() { return resourceSettings_; } /** - * - * *
    * Optional. Resource properties in the input that are used for
    * creating/customizing workload resources.
    * 
* - * - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public int getResourceSettingsCount() { return resourceSettings_.size(); } /** - * - * *
    * Optional. Resource properties in the input that are used for
    * creating/customizing workload resources.
    * 
* - * - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings getResourceSettings( - int index) { + public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings getResourceSettings(int index) { return resourceSettings_.get(index); } /** - * - * *
    * Optional. Resource properties in the input that are used for
    * creating/customizing workload resources.
    * 
* - * - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettingsOrBuilder - getResourceSettingsOrBuilder(int index) { + public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettingsOrBuilder getResourceSettingsOrBuilder( + int index) { return resourceSettings_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -459,7 +370,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 (createTime_ != null) { output.writeMessage(1, getCreateTime()); } @@ -469,10 +381,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, parent_); } - if (complianceRegime_ - != com.google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime - .COMPLIANCE_REGIME_UNSPECIFIED - .getNumber()) { + if (complianceRegime_ != com.google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime.COMPLIANCE_REGIME_UNSPECIFIED.getNumber()) { output.writeEnum(4, complianceRegime_); } for (int i = 0; i < resourceSettings_.size(); i++) { @@ -488,7 +397,8 @@ public int getSerializedSize() { size = 0; if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCreateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); @@ -496,14 +406,13 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, parent_); } - if (complianceRegime_ - != com.google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime - .COMPLIANCE_REGIME_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, complianceRegime_); + if (complianceRegime_ != com.google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime.COMPLIANCE_REGIME_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, complianceRegime_); } for (int i = 0; i < resourceSettings_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, resourceSettings_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, resourceSettings_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -513,23 +422,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.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata)) { + if (!(obj instanceof com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata)) { return super.equals(obj); } - com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata other = - (com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata) obj; + com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata other = (com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata) obj; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (!getParent().equals(other.getParent())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (complianceRegime_ != other.complianceRegime_) return false; - if (!getResourceSettingsList().equals(other.getResourceSettingsList())) return false; + if (!getResourceSettingsList() + .equals(other.getResourceSettingsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -561,148 +472,135 @@ public int hashCode() { } public static com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata 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.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata 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.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata 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.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata 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.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata 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.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata - parseDelimitedFrom( - java.io.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.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata parseDelimitedFrom( + java.io.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.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata 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.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata 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.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata prototype) { + public static Builder newBuilder(com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata 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; } /** - * - * *
    * Operation metadata to give request details of CreateWorkload.
    * 
* * Protobuf type {@code google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata} */ - 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.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata) com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1beta1_CreateWorkloadOperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_CreateWorkloadOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1beta1_CreateWorkloadOperationMetadata_fieldAccessorTable + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_CreateWorkloadOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata.class, - com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata.Builder - .class); + com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata.class, com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata.Builder.class); } - // Construct using - // com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata.newBuilder() + // Construct using com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getResourceSettingsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -728,22 +626,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1beta1_CreateWorkloadOperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_CreateWorkloadOperationMetadata_descriptor; } @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata - getDefaultInstanceForType() { - return com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata - .getDefaultInstance(); + public com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata getDefaultInstanceForType() { + return com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata.getDefaultInstance(); } @java.lang.Override public com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata build() { - com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata result = - buildPartial(); + com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -751,10 +646,8 @@ public com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata } @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata - buildPartial() { - com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata result = - new com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata(this); + public com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata buildPartial() { + com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata result = new com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata(this); int from_bitField0_ = bitField0_; if (createTimeBuilder_ == null) { result.createTime_ = createTime_; @@ -781,52 +674,46 @@ public com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata 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.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata) { - return mergeFrom( - (com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata) other); + if (other instanceof com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata) { + return mergeFrom((com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata other) { - if (other - == com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata other) { + if (other == com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata.getDefaultInstance()) return this; if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } @@ -859,10 +746,9 @@ public Builder mergeFrom( resourceSettingsBuilder_ = null; resourceSettings_ = other.resourceSettings_; bitField0_ = (bitField0_ & ~0x00000001); - resourceSettingsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getResourceSettingsFieldBuilder() - : null; + resourceSettingsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getResourceSettingsFieldBuilder() : null; } else { resourceSettingsBuilder_.addAllMessages(other.resourceSettings_); } @@ -883,14 +769,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata parsedMessage = - null; + com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -899,60 +782,43 @@ public Builder mergeFrom( } return this; } - private int bitField0_; 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_; /** - * - * *
      * Optional. Time when the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
      * Optional. Time when the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; * @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(); } } /** - * - * *
      * Optional. Time when the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -968,16 +834,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Optional. Time when the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -988,20 +852,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Optional. Time when the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -1013,14 +874,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Optional. Time when the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -1034,61 +892,48 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Optional. Time when the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Time when the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; */ 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_; } } /** - * - * *
      * Optional. Time when the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; */ 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_; @@ -1096,20 +941,18 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private java.lang.Object displayName_ = ""; /** - * - * *
      * Optional. The display name of the workload.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; 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(); displayName_ = s; return s; @@ -1118,21 +961,20 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * Optional. The display name of the workload.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; 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); displayName_ = b; return b; } else { @@ -1140,61 +982,54 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * Optional. The display name of the workload.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { + public Builder setDisplayName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The display name of the workload.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** - * - * *
      * Optional. The display name of the workload.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; @@ -1202,20 +1037,18 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object parent_ = ""; /** - * - * *
      * Optional. The parent of the workload.
      * 
* * string parent = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; @@ -1224,21 +1057,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Optional. The parent of the workload.
      * 
* * string parent = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -1246,61 +1078,54 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Optional. The parent of the workload.
      * 
* * string parent = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The parent of the workload.
      * 
* * string parent = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Optional. The parent of the workload.
      * 
* * string parent = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -1308,148 +1133,104 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private int complianceRegime_ = 0; /** - * - * *
      * Optional. Compliance controls that should be applied to the resources
      * managed by the workload.
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for complianceRegime. */ - @java.lang.Override - public int getComplianceRegimeValue() { + @java.lang.Override public int getComplianceRegimeValue() { return complianceRegime_; } /** - * - * *
      * Optional. Compliance controls that should be applied to the resources
      * managed by the workload.
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param value The enum numeric value on the wire for complianceRegime to set. * @return This builder for chaining. */ public Builder setComplianceRegimeValue(int value) { - + complianceRegime_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Compliance controls that should be applied to the resources
      * managed by the workload.
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The complianceRegime. */ @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime - getComplianceRegime() { + public com.google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime getComplianceRegime() { @SuppressWarnings("deprecation") - com.google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime result = - com.google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime.valueOf( - complianceRegime_); - return result == null - ? com.google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime.UNRECOGNIZED - : result; + com.google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime result = com.google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime.valueOf(complianceRegime_); + return result == null ? com.google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime.UNRECOGNIZED : result; } /** - * - * *
      * Optional. Compliance controls that should be applied to the resources
      * managed by the workload.
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param value The complianceRegime to set. * @return This builder for chaining. */ - public Builder setComplianceRegime( - com.google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime value) { + public Builder setComplianceRegime(com.google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime value) { if (value == null) { throw new NullPointerException(); } - + complianceRegime_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Optional. Compliance controls that should be applied to the resources
      * managed by the workload.
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearComplianceRegime() { - + complianceRegime_ = 0; onChanged(); return this; } - private java.util.List - resourceSettings_ = java.util.Collections.emptyList(); - + private java.util.List resourceSettings_ = + java.util.Collections.emptyList(); private void ensureResourceSettingsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - resourceSettings_ = - new java.util.ArrayList< - com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings>( - resourceSettings_); + resourceSettings_ = new java.util.ArrayList(resourceSettings_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings, - com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.Builder, - com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettingsOrBuilder> - resourceSettingsBuilder_; + com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings, com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.Builder, com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettingsOrBuilder> resourceSettingsBuilder_; /** - * - * *
      * Optional. Resource properties in the input that are used for
      * creating/customizing workload resources.
      * 
* - * - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List - getResourceSettingsList() { + public java.util.List getResourceSettingsList() { if (resourceSettingsBuilder_ == null) { return java.util.Collections.unmodifiableList(resourceSettings_); } else { @@ -1457,16 +1238,12 @@ private void ensureResourceSettingsIsMutable() { } } /** - * - * *
      * Optional. Resource properties in the input that are used for
      * creating/customizing workload resources.
      * 
* - * - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public int getResourceSettingsCount() { if (resourceSettingsBuilder_ == null) { @@ -1476,19 +1253,14 @@ public int getResourceSettingsCount() { } } /** - * - * *
      * Optional. Resource properties in the input that are used for
      * creating/customizing workload resources.
      * 
* - * - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings getResourceSettings( - int index) { + public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings getResourceSettings(int index) { if (resourceSettingsBuilder_ == null) { return resourceSettings_.get(index); } else { @@ -1496,16 +1268,12 @@ public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings getRe } } /** - * - * *
      * Optional. Resource properties in the input that are used for
      * creating/customizing workload resources.
      * 
* - * - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setResourceSettings( int index, com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings value) { @@ -1522,21 +1290,15 @@ public Builder setResourceSettings( return this; } /** - * - * *
      * Optional. Resource properties in the input that are used for
      * creating/customizing workload resources.
      * 
* - * - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setResourceSettings( - int index, - com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.Builder - builderForValue) { + int index, com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.Builder builderForValue) { if (resourceSettingsBuilder_ == null) { ensureResourceSettingsIsMutable(); resourceSettings_.set(index, builderForValue.build()); @@ -1547,19 +1309,14 @@ public Builder setResourceSettings( return this; } /** - * - * *
      * Optional. Resource properties in the input that are used for
      * creating/customizing workload resources.
      * 
* - * - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder addResourceSettings( - com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings value) { + public Builder addResourceSettings(com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings value) { if (resourceSettingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1573,16 +1330,12 @@ public Builder addResourceSettings( return this; } /** - * - * *
      * Optional. Resource properties in the input that are used for
      * creating/customizing workload resources.
      * 
* - * - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addResourceSettings( int index, com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings value) { @@ -1599,20 +1352,15 @@ public Builder addResourceSettings( return this; } /** - * - * *
      * Optional. Resource properties in the input that are used for
      * creating/customizing workload resources.
      * 
* - * - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addResourceSettings( - com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.Builder - builderForValue) { + com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.Builder builderForValue) { if (resourceSettingsBuilder_ == null) { ensureResourceSettingsIsMutable(); resourceSettings_.add(builderForValue.build()); @@ -1623,21 +1371,15 @@ public Builder addResourceSettings( return this; } /** - * - * *
      * Optional. Resource properties in the input that are used for
      * creating/customizing workload resources.
      * 
* - * - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addResourceSettings( - int index, - com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.Builder - builderForValue) { + int index, com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.Builder builderForValue) { if (resourceSettingsBuilder_ == null) { ensureResourceSettingsIsMutable(); resourceSettings_.add(index, builderForValue.build()); @@ -1648,24 +1390,19 @@ public Builder addResourceSettings( return this; } /** - * - * *
      * Optional. Resource properties in the input that are used for
      * creating/customizing workload resources.
      * 
* - * - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addAllResourceSettings( - java.lang.Iterable< - ? extends com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings> - values) { + java.lang.Iterable values) { if (resourceSettingsBuilder_ == null) { ensureResourceSettingsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, resourceSettings_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, resourceSettings_); onChanged(); } else { resourceSettingsBuilder_.addAllMessages(values); @@ -1673,16 +1410,12 @@ public Builder addAllResourceSettings( return this; } /** - * - * *
      * Optional. Resource properties in the input that are used for
      * creating/customizing workload resources.
      * 
* - * - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearResourceSettings() { if (resourceSettingsBuilder_ == null) { @@ -1695,16 +1428,12 @@ public Builder clearResourceSettings() { return this; } /** - * - * *
      * Optional. Resource properties in the input that are used for
      * creating/customizing workload resources.
      * 
* - * - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder removeResourceSettings(int index) { if (resourceSettingsBuilder_ == null) { @@ -1717,56 +1446,42 @@ public Builder removeResourceSettings(int index) { return this; } /** - * - * *
      * Optional. Resource properties in the input that are used for
      * creating/customizing workload resources.
      * 
* - * - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.Builder - getResourceSettingsBuilder(int index) { + public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.Builder getResourceSettingsBuilder( + int index) { return getResourceSettingsFieldBuilder().getBuilder(index); } /** - * - * *
      * Optional. Resource properties in the input that are used for
      * creating/customizing workload resources.
      * 
* - * - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettingsOrBuilder - getResourceSettingsOrBuilder(int index) { + public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettingsOrBuilder getResourceSettingsOrBuilder( + int index) { if (resourceSettingsBuilder_ == null) { - return resourceSettings_.get(index); - } else { + return resourceSettings_.get(index); } else { return resourceSettingsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Optional. Resource properties in the input that are used for
      * creating/customizing workload resources.
      * 
* - * - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List< - ? extends com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettingsOrBuilder> - getResourceSettingsOrBuilderList() { + public java.util.List + getResourceSettingsOrBuilderList() { if (resourceSettingsBuilder_ != null) { return resourceSettingsBuilder_.getMessageOrBuilderList(); } else { @@ -1774,73 +1489,48 @@ public Builder removeResourceSettings(int index) { } } /** - * - * *
      * Optional. Resource properties in the input that are used for
      * creating/customizing workload resources.
      * 
* - * - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.Builder - addResourceSettingsBuilder() { - return getResourceSettingsFieldBuilder() - .addBuilder( - com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings - .getDefaultInstance()); + public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.Builder addResourceSettingsBuilder() { + return getResourceSettingsFieldBuilder().addBuilder( + com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.getDefaultInstance()); } /** - * - * *
      * Optional. Resource properties in the input that are used for
      * creating/customizing workload resources.
      * 
* - * - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.Builder - addResourceSettingsBuilder(int index) { - return getResourceSettingsFieldBuilder() - .addBuilder( - index, - com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings - .getDefaultInstance()); + public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.Builder addResourceSettingsBuilder( + int index) { + return getResourceSettingsFieldBuilder().addBuilder( + index, com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.getDefaultInstance()); } /** - * - * *
      * Optional. Resource properties in the input that are used for
      * creating/customizing workload resources.
      * 
* - * - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List< - com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.Builder> - getResourceSettingsBuilderList() { + public java.util.List + getResourceSettingsBuilderList() { return getResourceSettingsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings, - com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.Builder, - com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettingsOrBuilder> + com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings, com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.Builder, com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettingsOrBuilder> getResourceSettingsFieldBuilder() { if (resourceSettingsBuilder_ == null) { - resourceSettingsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings, - com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.Builder, - com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettingsOrBuilder>( + resourceSettingsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings, com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.Builder, com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettingsOrBuilder>( resourceSettings_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1849,9 +1539,9 @@ public Builder removeResourceSettings(int index) { } return resourceSettingsBuilder_; } - @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); } @@ -1861,33 +1551,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata) - private static final com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata - DEFAULT_INSTANCE; - + private static final com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata(); + DEFAULT_INSTANCE = new com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata(); } - public static com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata - getDefaultInstance() { + public static com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateWorkloadOperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateWorkloadOperationMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateWorkloadOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateWorkloadOperationMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1899,8 +1586,9 @@ public com.google.protobuf.Parser getParserForT } @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata - getDefaultInstanceForType() { + public com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/CreateWorkloadOperationMetadataOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/CreateWorkloadOperationMetadataOrBuilder.java similarity index 58% rename from proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/CreateWorkloadOperationMetadataOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/CreateWorkloadOperationMetadataOrBuilder.java index bcfe9418..f840077d 100644 --- a/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/CreateWorkloadOperationMetadataOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/CreateWorkloadOperationMetadataOrBuilder.java @@ -1,215 +1,146 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto package com.google.cloud.assuredworkloads.v1beta1; -public interface CreateWorkloadOperationMetadataOrBuilder - extends +public interface CreateWorkloadOperationMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Optional. Time when the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Optional. Time when the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Optional. Time when the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Optional. The display name of the workload.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * Optional. The display name of the workload.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
    * Optional. The parent of the workload.
    * 
* * string parent = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Optional. The parent of the workload.
    * 
* * string parent = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Optional. Compliance controls that should be applied to the resources
    * managed by the workload.
    * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for complianceRegime. */ int getComplianceRegimeValue(); /** - * - * *
    * Optional. Compliance controls that should be applied to the resources
    * managed by the workload.
    * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The complianceRegime. */ com.google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime getComplianceRegime(); /** - * - * *
    * Optional. Resource properties in the input that are used for
    * creating/customizing workload resources.
    * 
* - * - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List + java.util.List getResourceSettingsList(); /** - * - * *
    * Optional. Resource properties in the input that are used for
    * creating/customizing workload resources.
    * 
* - * - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings getResourceSettings( - int index); + com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings getResourceSettings(int index); /** - * - * *
    * Optional. Resource properties in the input that are used for
    * creating/customizing workload resources.
    * 
* - * - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; */ int getResourceSettingsCount(); /** - * - * *
    * Optional. Resource properties in the input that are used for
    * creating/customizing workload resources.
    * 
* - * - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List< - ? extends com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettingsOrBuilder> + java.util.List getResourceSettingsOrBuilderList(); /** - * - * *
    * Optional. Resource properties in the input that are used for
    * creating/customizing workload resources.
    * 
* - * - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettingsOrBuilder - getResourceSettingsOrBuilder(int index); + com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettingsOrBuilder getResourceSettingsOrBuilder( + int index); } diff --git a/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/CreateWorkloadRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/CreateWorkloadRequest.java similarity index 65% rename from proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/CreateWorkloadRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/CreateWorkloadRequest.java index fc1a8f1e..0d65d8f4 100644 --- a/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/CreateWorkloadRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/CreateWorkloadRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto package com.google.cloud.assuredworkloads.v1beta1; /** - * - * *
  * Request for creating a workload.
  * 
* * Protobuf type {@code google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest} */ -public final class CreateWorkloadRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateWorkloadRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest) CreateWorkloadRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateWorkloadRequest.newBuilder() to construct. private CreateWorkloadRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateWorkloadRequest() { parent_ = ""; externalId_ = ""; @@ -44,15 +26,16 @@ private CreateWorkloadRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateWorkloadRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CreateWorkloadRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,44 +54,38 @@ private CreateWorkloadRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; + parent_ = s; + break; + } + case 18: { + com.google.cloud.assuredworkloads.v1beta1.Workload.Builder subBuilder = null; + if (workload_ != null) { + subBuilder = workload_.toBuilder(); } - case 18: - { - com.google.cloud.assuredworkloads.v1beta1.Workload.Builder subBuilder = null; - if (workload_ != null) { - subBuilder = workload_.toBuilder(); - } - workload_ = - input.readMessage( - com.google.cloud.assuredworkloads.v1beta1.Workload.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(workload_); - workload_ = subBuilder.buildPartial(); - } - - break; + workload_ = input.readMessage(com.google.cloud.assuredworkloads.v1beta1.Workload.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(workload_); + workload_ = subBuilder.buildPartial(); } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - externalId_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + externalId_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -116,42 +93,35 @@ private CreateWorkloadRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1beta1_CreateWorkloadRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_CreateWorkloadRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1beta1_CreateWorkloadRequest_fieldAccessorTable + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_CreateWorkloadRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest.class, - com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest.Builder.class); + com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest.class, com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The resource name of the new Workload's parent.
    * Must be of the form `organizations/{org_id}/locations/{location_id}`.
    * 
* - * - * 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 @@ -160,32 +130,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 new Workload's parent.
    * Must be of the form `organizations/{org_id}/locations/{location_id}`.
    * 
* - * - * 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 { @@ -196,16 +164,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int WORKLOAD_FIELD_NUMBER = 2; private com.google.cloud.assuredworkloads.v1beta1.Workload workload_; /** - * - * *
    * Required. Assured Workload to create
    * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.assuredworkloads.v1beta1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the workload field is set. */ @java.lang.Override @@ -213,34 +176,23 @@ public boolean hasWorkload() { return workload_ != null; } /** - * - * *
    * Required. Assured Workload to create
    * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.assuredworkloads.v1beta1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The workload. */ @java.lang.Override public com.google.cloud.assuredworkloads.v1beta1.Workload getWorkload() { - return workload_ == null - ? com.google.cloud.assuredworkloads.v1beta1.Workload.getDefaultInstance() - : workload_; + return workload_ == null ? com.google.cloud.assuredworkloads.v1beta1.Workload.getDefaultInstance() : workload_; } /** - * - * *
    * Required. Assured Workload to create
    * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.assuredworkloads.v1beta1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.assuredworkloads.v1beta1.WorkloadOrBuilder getWorkloadOrBuilder() { @@ -250,8 +202,6 @@ public com.google.cloud.assuredworkloads.v1beta1.WorkloadOrBuilder getWorkloadOr public static final int EXTERNAL_ID_FIELD_NUMBER = 3; private volatile java.lang.Object externalId_; /** - * - * *
    * Optional. A identifier associated with the workload and underlying projects
    * which allows for the break down of billing costs for a workload. The value
@@ -260,7 +210,6 @@ public com.google.cloud.assuredworkloads.v1beta1.WorkloadOrBuilder getWorkloadOr
    * 
* * string external_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The externalId. */ @java.lang.Override @@ -269,15 +218,14 @@ public java.lang.String getExternalId() { 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(); externalId_ = s; return s; } } /** - * - * *
    * Optional. A identifier associated with the workload and underlying projects
    * which allows for the break down of billing costs for a workload. The value
@@ -286,15 +234,16 @@ public java.lang.String getExternalId() {
    * 
* * string external_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for externalId. */ @java.lang.Override - public com.google.protobuf.ByteString getExternalIdBytes() { + public com.google.protobuf.ByteString + getExternalIdBytes() { java.lang.Object ref = externalId_; 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); externalId_ = b; return b; } else { @@ -303,7 +252,6 @@ public com.google.protobuf.ByteString getExternalIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -315,7 +263,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_); } @@ -338,7 +287,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (workload_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getWorkload()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getWorkload()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(externalId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, externalId_); @@ -351,20 +301,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest)) { return super.equals(obj); } - com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest other = - (com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest) obj; + com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest other = (com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasWorkload() != other.hasWorkload()) return false; if (hasWorkload()) { - if (!getWorkload().equals(other.getWorkload())) return false; + if (!getWorkload() + .equals(other.getWorkload())) return false; } - if (!getExternalId().equals(other.getExternalId())) return false; + if (!getExternalId() + .equals(other.getExternalId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -390,127 +342,117 @@ public int hashCode() { } public static com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest 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.assuredworkloads.v1beta1.CreateWorkloadRequest 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.assuredworkloads.v1beta1.CreateWorkloadRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest 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.assuredworkloads.v1beta1.CreateWorkloadRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest 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.assuredworkloads.v1beta1.CreateWorkloadRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest 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.assuredworkloads.v1beta1.CreateWorkloadRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest 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.assuredworkloads.v1beta1.CreateWorkloadRequest 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.assuredworkloads.v1beta1.CreateWorkloadRequest 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.assuredworkloads.v1beta1.CreateWorkloadRequest prototype) { + public static Builder newBuilder(com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for creating a workload.
    * 
* * Protobuf type {@code google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest} */ - 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.assuredworkloads.v1beta1.CreateWorkloadRequest) com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1beta1_CreateWorkloadRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_CreateWorkloadRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1beta1_CreateWorkloadRequest_fieldAccessorTable + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_CreateWorkloadRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest.class, - com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest.Builder.class); + com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest.class, com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest.Builder.class); } // Construct using com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest.newBuilder() @@ -518,15 +460,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -544,14 +487,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1beta1_CreateWorkloadRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_CreateWorkloadRequest_descriptor; } @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest - getDefaultInstanceForType() { + public com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest getDefaultInstanceForType() { return com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest.getDefaultInstance(); } @@ -566,8 +508,7 @@ public com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest build() { @java.lang.Override public com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest buildPartial() { - com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest result = - new com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest(this); + com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest result = new com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest(this); result.parent_ = parent_; if (workloadBuilder_ == null) { result.workload_ = workload_; @@ -583,50 +524,46 @@ public com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest buildPart public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest) { - return mergeFrom((com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest) other); + return mergeFrom((com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest other) { - if (other - == com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest other) { + if (other == com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -657,9 +594,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -671,23 +606,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The resource name of the new Workload's parent.
      * Must be of the form `organizations/{org_id}/locations/{location_id}`.
      * 
* - * - * 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; @@ -696,24 +627,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The resource name of the new Workload's parent.
      * Must be of the form `organizations/{org_id}/locations/{location_id}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -721,70 +649,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The resource name of the new Workload's parent.
      * Must be of the form `organizations/{org_id}/locations/{location_id}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the new Workload's parent.
      * Must be of the form `organizations/{org_id}/locations/{location_id}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The resource name of the new Workload's parent.
      * Must be of the form `organizations/{org_id}/locations/{location_id}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -792,58 +707,39 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.assuredworkloads.v1beta1.Workload workload_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.assuredworkloads.v1beta1.Workload, - com.google.cloud.assuredworkloads.v1beta1.Workload.Builder, - com.google.cloud.assuredworkloads.v1beta1.WorkloadOrBuilder> - workloadBuilder_; + com.google.cloud.assuredworkloads.v1beta1.Workload, com.google.cloud.assuredworkloads.v1beta1.Workload.Builder, com.google.cloud.assuredworkloads.v1beta1.WorkloadOrBuilder> workloadBuilder_; /** - * - * *
      * Required. Assured Workload to create
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.assuredworkloads.v1beta1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the workload field is set. */ public boolean hasWorkload() { return workloadBuilder_ != null || workload_ != null; } /** - * - * *
      * Required. Assured Workload to create
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.assuredworkloads.v1beta1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The workload. */ public com.google.cloud.assuredworkloads.v1beta1.Workload getWorkload() { if (workloadBuilder_ == null) { - return workload_ == null - ? com.google.cloud.assuredworkloads.v1beta1.Workload.getDefaultInstance() - : workload_; + return workload_ == null ? com.google.cloud.assuredworkloads.v1beta1.Workload.getDefaultInstance() : workload_; } else { return workloadBuilder_.getMessage(); } } /** - * - * *
      * Required. Assured Workload to create
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.assuredworkloads.v1beta1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setWorkload(com.google.cloud.assuredworkloads.v1beta1.Workload value) { if (workloadBuilder_ == null) { @@ -859,15 +755,11 @@ public Builder setWorkload(com.google.cloud.assuredworkloads.v1beta1.Workload va return this; } /** - * - * *
      * Required. Assured Workload to create
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.assuredworkloads.v1beta1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setWorkload( com.google.cloud.assuredworkloads.v1beta1.Workload.Builder builderForValue) { @@ -881,23 +773,17 @@ public Builder setWorkload( return this; } /** - * - * *
      * Required. Assured Workload to create
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.assuredworkloads.v1beta1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeWorkload(com.google.cloud.assuredworkloads.v1beta1.Workload value) { if (workloadBuilder_ == null) { if (workload_ != null) { workload_ = - com.google.cloud.assuredworkloads.v1beta1.Workload.newBuilder(workload_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.assuredworkloads.v1beta1.Workload.newBuilder(workload_).mergeFrom(value).buildPartial(); } else { workload_ = value; } @@ -909,15 +795,11 @@ public Builder mergeWorkload(com.google.cloud.assuredworkloads.v1beta1.Workload return this; } /** - * - * *
      * Required. Assured Workload to create
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.assuredworkloads.v1beta1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearWorkload() { if (workloadBuilder_ == null) { @@ -931,64 +813,48 @@ public Builder clearWorkload() { return this; } /** - * - * *
      * Required. Assured Workload to create
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.assuredworkloads.v1beta1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.assuredworkloads.v1beta1.Workload.Builder getWorkloadBuilder() { - + onChanged(); return getWorkloadFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Assured Workload to create
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.assuredworkloads.v1beta1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.assuredworkloads.v1beta1.WorkloadOrBuilder getWorkloadOrBuilder() { if (workloadBuilder_ != null) { return workloadBuilder_.getMessageOrBuilder(); } else { - return workload_ == null - ? com.google.cloud.assuredworkloads.v1beta1.Workload.getDefaultInstance() - : workload_; + return workload_ == null ? + com.google.cloud.assuredworkloads.v1beta1.Workload.getDefaultInstance() : workload_; } } /** - * - * *
      * Required. Assured Workload to create
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.assuredworkloads.v1beta1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.assuredworkloads.v1beta1.Workload, - com.google.cloud.assuredworkloads.v1beta1.Workload.Builder, - com.google.cloud.assuredworkloads.v1beta1.WorkloadOrBuilder> + com.google.cloud.assuredworkloads.v1beta1.Workload, com.google.cloud.assuredworkloads.v1beta1.Workload.Builder, com.google.cloud.assuredworkloads.v1beta1.WorkloadOrBuilder> getWorkloadFieldBuilder() { if (workloadBuilder_ == null) { - workloadBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.assuredworkloads.v1beta1.Workload, - com.google.cloud.assuredworkloads.v1beta1.Workload.Builder, - com.google.cloud.assuredworkloads.v1beta1.WorkloadOrBuilder>( - getWorkload(), getParentForChildren(), isClean()); + workloadBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.assuredworkloads.v1beta1.Workload, com.google.cloud.assuredworkloads.v1beta1.Workload.Builder, com.google.cloud.assuredworkloads.v1beta1.WorkloadOrBuilder>( + getWorkload(), + getParentForChildren(), + isClean()); workload_ = null; } return workloadBuilder_; @@ -996,8 +862,6 @@ public com.google.cloud.assuredworkloads.v1beta1.WorkloadOrBuilder getWorkloadOr private java.lang.Object externalId_ = ""; /** - * - * *
      * Optional. A identifier associated with the workload and underlying projects
      * which allows for the break down of billing costs for a workload. The value
@@ -1006,13 +870,13 @@ public com.google.cloud.assuredworkloads.v1beta1.WorkloadOrBuilder getWorkloadOr
      * 
* * string external_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The externalId. */ public java.lang.String getExternalId() { java.lang.Object ref = externalId_; 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(); externalId_ = s; return s; @@ -1021,8 +885,6 @@ public java.lang.String getExternalId() { } } /** - * - * *
      * Optional. A identifier associated with the workload and underlying projects
      * which allows for the break down of billing costs for a workload. The value
@@ -1031,14 +893,15 @@ public java.lang.String getExternalId() {
      * 
* * string external_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for externalId. */ - public com.google.protobuf.ByteString getExternalIdBytes() { + public com.google.protobuf.ByteString + getExternalIdBytes() { java.lang.Object ref = externalId_; 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); externalId_ = b; return b; } else { @@ -1046,8 +909,6 @@ public com.google.protobuf.ByteString getExternalIdBytes() { } } /** - * - * *
      * Optional. A identifier associated with the workload and underlying projects
      * which allows for the break down of billing costs for a workload. The value
@@ -1056,22 +917,20 @@ public com.google.protobuf.ByteString getExternalIdBytes() {
      * 
* * string external_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The externalId to set. * @return This builder for chaining. */ - public Builder setExternalId(java.lang.String value) { + public Builder setExternalId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + externalId_ = value; onChanged(); return this; } /** - * - * *
      * Optional. A identifier associated with the workload and underlying projects
      * which allows for the break down of billing costs for a workload. The value
@@ -1080,18 +939,15 @@ public Builder setExternalId(java.lang.String value) {
      * 
* * string external_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearExternalId() { - + externalId_ = getDefaultInstance().getExternalId(); onChanged(); return this; } /** - * - * *
      * Optional. A identifier associated with the workload and underlying projects
      * which allows for the break down of billing costs for a workload. The value
@@ -1100,23 +956,23 @@ public Builder clearExternalId() {
      * 
* * string external_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for externalId to set. * @return This builder for chaining. */ - public Builder setExternalIdBytes(com.google.protobuf.ByteString value) { + public Builder setExternalIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + externalId_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1126,32 +982,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest) } // @@protoc_insertion_point(class_scope:google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest) - private static final com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest(); } - public static com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest - getDefaultInstance() { + public static com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateWorkloadRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateWorkloadRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateWorkloadRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateWorkloadRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1163,8 +1017,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest - getDefaultInstanceForType() { + public com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/CreateWorkloadRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/CreateWorkloadRequestOrBuilder.java similarity index 59% rename from proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/CreateWorkloadRequestOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/CreateWorkloadRequestOrBuilder.java index 1c6fdac2..f3a28f86 100644 --- a/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/CreateWorkloadRequestOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/CreateWorkloadRequestOrBuilder.java @@ -1,103 +1,62 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto package com.google.cloud.assuredworkloads.v1beta1; -public interface CreateWorkloadRequestOrBuilder - extends +public interface CreateWorkloadRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name of the new Workload's parent.
    * Must be of the form `organizations/{org_id}/locations/{location_id}`.
    * 
* - * - * 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 new Workload's parent.
    * Must be of the form `organizations/{org_id}/locations/{location_id}`.
    * 
* - * - * 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. Assured Workload to create
    * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.assuredworkloads.v1beta1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the workload field is set. */ boolean hasWorkload(); /** - * - * *
    * Required. Assured Workload to create
    * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.assuredworkloads.v1beta1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The workload. */ com.google.cloud.assuredworkloads.v1beta1.Workload getWorkload(); /** - * - * *
    * Required. Assured Workload to create
    * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.assuredworkloads.v1beta1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.assuredworkloads.v1beta1.WorkloadOrBuilder getWorkloadOrBuilder(); /** - * - * *
    * Optional. A identifier associated with the workload and underlying projects
    * which allows for the break down of billing costs for a workload. The value
@@ -106,13 +65,10 @@ public interface CreateWorkloadRequestOrBuilder
    * 
* * string external_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The externalId. */ java.lang.String getExternalId(); /** - * - * *
    * Optional. A identifier associated with the workload and underlying projects
    * which allows for the break down of billing costs for a workload. The value
@@ -121,8 +77,8 @@ public interface CreateWorkloadRequestOrBuilder
    * 
* * string external_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for externalId. */ - com.google.protobuf.ByteString getExternalIdBytes(); + com.google.protobuf.ByteString + getExternalIdBytes(); } diff --git a/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/DeleteWorkloadRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/DeleteWorkloadRequest.java similarity index 67% rename from proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/DeleteWorkloadRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/DeleteWorkloadRequest.java index ea7ce0c3..7d36418d 100644 --- a/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/DeleteWorkloadRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/DeleteWorkloadRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto package com.google.cloud.assuredworkloads.v1beta1; /** - * - * *
  * Request for deleting a Workload.
  * 
* * Protobuf type {@code google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest} */ -public final class DeleteWorkloadRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteWorkloadRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest) DeleteWorkloadRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteWorkloadRequest.newBuilder() to construct. private DeleteWorkloadRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteWorkloadRequest() { name_ = ""; etag_ = ""; @@ -44,15 +26,16 @@ private DeleteWorkloadRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteWorkloadRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeleteWorkloadRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,27 +54,25 @@ private DeleteWorkloadRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - etag_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + etag_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,43 +80,36 @@ private DeleteWorkloadRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1beta1_DeleteWorkloadRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_DeleteWorkloadRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1beta1_DeleteWorkloadRequest_fieldAccessorTable + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_DeleteWorkloadRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest.class, - com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest.Builder.class); + com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest.class, com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The `name` field is used to identify the workload.
    * Format:
    * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -144,33 +118,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The `name` field is used to identify the workload.
    * Format:
    * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -181,15 +153,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int ETAG_FIELD_NUMBER = 2; private volatile java.lang.Object etag_; /** - * - * *
    * Optional. The etag of the workload.
    * If this is provided, it must match the server's etag.
    * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The etag. */ @java.lang.Override @@ -198,30 +167,30 @@ public java.lang.String getEtag() { 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(); etag_ = s; return s; } } /** - * - * *
    * Optional. The etag of the workload.
    * If this is provided, it must match the server's etag.
    * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -230,7 +199,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -242,7 +210,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_); } @@ -272,16 +241,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.assuredworkloads.v1beta1.DeleteWorkloadRequest)) { return super.equals(obj); } - com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest other = - (com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest) obj; + com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest other = (com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!getEtag().equals(other.getEtag())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getEtag() + .equals(other.getEtag())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -303,127 +273,117 @@ public int hashCode() { } public static com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest 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.assuredworkloads.v1beta1.DeleteWorkloadRequest 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.assuredworkloads.v1beta1.DeleteWorkloadRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest 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.assuredworkloads.v1beta1.DeleteWorkloadRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest 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.assuredworkloads.v1beta1.DeleteWorkloadRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest 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.assuredworkloads.v1beta1.DeleteWorkloadRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest 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.assuredworkloads.v1beta1.DeleteWorkloadRequest 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.assuredworkloads.v1beta1.DeleteWorkloadRequest 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.assuredworkloads.v1beta1.DeleteWorkloadRequest prototype) { + public static Builder newBuilder(com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for deleting a Workload.
    * 
* * Protobuf type {@code google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest} */ - 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.assuredworkloads.v1beta1.DeleteWorkloadRequest) com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1beta1_DeleteWorkloadRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_DeleteWorkloadRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1beta1_DeleteWorkloadRequest_fieldAccessorTable + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_DeleteWorkloadRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest.class, - com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest.Builder.class); + com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest.class, com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest.Builder.class); } // Construct using com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest.newBuilder() @@ -431,15 +391,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -451,14 +412,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1beta1_DeleteWorkloadRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_DeleteWorkloadRequest_descriptor; } @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest - getDefaultInstanceForType() { + public com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest getDefaultInstanceForType() { return com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest.getDefaultInstance(); } @@ -473,8 +433,7 @@ public com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest build() { @java.lang.Override public com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest buildPartial() { - com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest result = - new com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest(this); + com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest result = new com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest(this); result.name_ = name_; result.etag_ = etag_; onBuilt(); @@ -485,50 +444,46 @@ public com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest buildPart public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest) { - return mergeFrom((com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest) other); + return mergeFrom((com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest other) { - if (other - == com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest other) { + if (other == com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -556,9 +511,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -570,24 +523,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The `name` field is used to identify the workload.
      * Format:
      * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -596,25 +545,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The `name` field is used to identify the workload.
      * Format:
      * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -622,73 +568,60 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The `name` field is used to identify the workload.
      * Format:
      * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The `name` field is used to identify the workload.
      * Format:
      * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The `name` field is used to identify the workload.
      * Format:
      * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -696,21 +629,19 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object etag_ = ""; /** - * - * *
      * Optional. The etag of the workload.
      * If this is provided, it must match the server's etag.
      * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; 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(); etag_ = s; return s; @@ -719,22 +650,21 @@ public java.lang.String getEtag() { } } /** - * - * *
      * Optional. The etag of the workload.
      * If this is provided, it must match the server's etag.
      * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for etag. */ - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -742,71 +672,64 @@ public com.google.protobuf.ByteString getEtagBytes() { } } /** - * - * *
      * Optional. The etag of the workload.
      * If this is provided, it must match the server's etag.
      * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag(java.lang.String value) { + public Builder setEtag( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + etag_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The etag of the workload.
      * If this is provided, it must match the server's etag.
      * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearEtag() { - + etag_ = getDefaultInstance().getEtag(); onChanged(); return this; } /** - * - * *
      * Optional. The etag of the workload.
      * If this is provided, it must match the server's etag.
      * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -816,32 +739,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest) } // @@protoc_insertion_point(class_scope:google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest) - private static final com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest(); } - public static com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest - getDefaultInstance() { + public static com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteWorkloadRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteWorkloadRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteWorkloadRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteWorkloadRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -853,8 +774,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest - getDefaultInstanceForType() { + public com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/DeleteWorkloadRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/DeleteWorkloadRequestOrBuilder.java similarity index 55% rename from proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/DeleteWorkloadRequestOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/DeleteWorkloadRequestOrBuilder.java index 08dcd620..89a26b3b 100644 --- a/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/DeleteWorkloadRequestOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/DeleteWorkloadRequestOrBuilder.java @@ -1,85 +1,55 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto package com.google.cloud.assuredworkloads.v1beta1; -public interface DeleteWorkloadRequestOrBuilder - extends +public interface DeleteWorkloadRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The `name` field is used to identify the workload.
    * Format:
    * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The `name` field is used to identify the workload.
    * Format:
    * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Optional. The etag of the workload.
    * If this is provided, it must match the server's etag.
    * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The etag. */ java.lang.String getEtag(); /** - * - * *
    * Optional. The etag of the workload.
    * If this is provided, it must match the server's etag.
    * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for etag. */ - com.google.protobuf.ByteString getEtagBytes(); + com.google.protobuf.ByteString + getEtagBytes(); } diff --git a/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/GetWorkloadRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/GetWorkloadRequest.java similarity index 67% rename from proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/GetWorkloadRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/GetWorkloadRequest.java index c59da5e3..05ef4c8b 100644 --- a/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/GetWorkloadRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/GetWorkloadRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto package com.google.cloud.assuredworkloads.v1beta1; /** - * - * *
  * Request for fetching a workload.
  * 
* * Protobuf type {@code google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest} */ -public final class GetWorkloadRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetWorkloadRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest) GetWorkloadRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetWorkloadRequest.newBuilder() to construct. private GetWorkloadRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetWorkloadRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetWorkloadRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetWorkloadRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GetWorkloadRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,33 +73,29 @@ private GetWorkloadRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1beta1_GetWorkloadRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_GetWorkloadRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1beta1_GetWorkloadRequest_fieldAccessorTable + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_GetWorkloadRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest.class, - com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest.Builder.class); + com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest.class, com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The resource name of the Workload to fetch. This is the
    * workloads's relative path in the API, formatted as
@@ -126,10 +104,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * "organizations/123/locations/us-east1/workloads/assured-workload-1".
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -138,15 +113,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The resource name of the Workload to fetch. This is the
    * workloads's relative path in the API, formatted as
@@ -155,18 +129,17 @@ public java.lang.String getName() {
    * "organizations/123/locations/us-east1/workloads/assured-workload-1".
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -175,7 +148,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -187,7 +159,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_); } @@ -211,15 +184,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.assuredworkloads.v1beta1.GetWorkloadRequest)) { return super.equals(obj); } - com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest other = - (com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest) obj; + com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest other = (com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -239,127 +212,117 @@ public int hashCode() { } public static com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest 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.assuredworkloads.v1beta1.GetWorkloadRequest 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.assuredworkloads.v1beta1.GetWorkloadRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest 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.assuredworkloads.v1beta1.GetWorkloadRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest 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.assuredworkloads.v1beta1.GetWorkloadRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest 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.assuredworkloads.v1beta1.GetWorkloadRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest 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.assuredworkloads.v1beta1.GetWorkloadRequest 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.assuredworkloads.v1beta1.GetWorkloadRequest 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.assuredworkloads.v1beta1.GetWorkloadRequest prototype) { + public static Builder newBuilder(com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for fetching a workload.
    * 
* * Protobuf type {@code google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest} */ - 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.assuredworkloads.v1beta1.GetWorkloadRequest) com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1beta1_GetWorkloadRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_GetWorkloadRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1beta1_GetWorkloadRequest_fieldAccessorTable + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_GetWorkloadRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest.class, - com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest.Builder.class); + com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest.class, com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest.Builder.class); } // Construct using com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest.newBuilder() @@ -367,15 +330,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -385,14 +349,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1beta1_GetWorkloadRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_GetWorkloadRequest_descriptor; } @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest - getDefaultInstanceForType() { + public com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest getDefaultInstanceForType() { return com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest.getDefaultInstance(); } @@ -407,8 +370,7 @@ public com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest build() { @java.lang.Override public com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest buildPartial() { - com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest result = - new com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest(this); + com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest result = new com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest(this); result.name_ = name_; onBuilt(); return result; @@ -418,39 +380,38 @@ public com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest buildPartial public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest) { - return mergeFrom((com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest) other); + return mergeFrom((com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest)other); } else { super.mergeFrom(other); return this; @@ -458,9 +419,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest other) { - if (other - == com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -484,8 +443,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -497,8 +455,6 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name of the Workload to fetch. This is the
      * workloads's relative path in the API, formatted as
@@ -507,16 +463,14 @@ public Builder mergeFrom(
      * "organizations/123/locations/us-east1/workloads/assured-workload-1".
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -525,8 +479,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the Workload to fetch. This is the
      * workloads's relative path in the API, formatted as
@@ -535,17 +487,16 @@ public java.lang.String getName() {
      * "organizations/123/locations/us-east1/workloads/assured-workload-1".
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -553,8 +504,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the Workload to fetch. This is the
      * workloads's relative path in the API, formatted as
@@ -563,25 +512,21 @@ public com.google.protobuf.ByteString getNameBytes() {
      * "organizations/123/locations/us-east1/workloads/assured-workload-1".
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the Workload to fetch. This is the
      * workloads's relative path in the API, formatted as
@@ -590,21 +535,16 @@ public Builder setName(java.lang.String value) {
      * "organizations/123/locations/us-east1/workloads/assured-workload-1".
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The resource name of the Workload to fetch. This is the
      * workloads's relative path in the API, formatted as
@@ -613,26 +553,24 @@ public Builder clearName() {
      * "organizations/123/locations/us-east1/workloads/assured-workload-1".
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -642,13 +580,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest) } // @@protoc_insertion_point(class_scope:google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest) - private static final com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest(); } @@ -657,16 +594,16 @@ public static com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetWorkloadRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetWorkloadRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetWorkloadRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetWorkloadRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -681,4 +618,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/GetWorkloadRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/GetWorkloadRequestOrBuilder.java similarity index 52% rename from proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/GetWorkloadRequestOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/GetWorkloadRequestOrBuilder.java index 91f4d12c..94a3945c 100644 --- a/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/GetWorkloadRequestOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/GetWorkloadRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto package com.google.cloud.assuredworkloads.v1beta1; -public interface GetWorkloadRequestOrBuilder - extends +public interface GetWorkloadRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name of the Workload to fetch. This is the
    * workloads's relative path in the API, formatted as
@@ -34,16 +16,11 @@ public interface GetWorkloadRequestOrBuilder
    * "organizations/123/locations/us-east1/workloads/assured-workload-1".
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The resource name of the Workload to fetch. This is the
    * workloads's relative path in the API, formatted as
@@ -52,11 +29,9 @@ public interface GetWorkloadRequestOrBuilder
    * "organizations/123/locations/us-east1/workloads/assured-workload-1".
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); } diff --git a/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/ListWorkloadsRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/ListWorkloadsRequest.java similarity index 69% rename from proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/ListWorkloadsRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/ListWorkloadsRequest.java index 2b09c8ea..9e8d769a 100644 --- a/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/ListWorkloadsRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/ListWorkloadsRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto package com.google.cloud.assuredworkloads.v1beta1; /** - * - * *
  * Request for fetching workloads in an organization.
  * 
* * Protobuf type {@code google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest} */ -public final class ListWorkloadsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListWorkloadsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest) ListWorkloadsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListWorkloadsRequest.newBuilder() to construct. private ListWorkloadsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListWorkloadsRequest() { parent_ = ""; pageToken_ = ""; @@ -45,15 +27,16 @@ private ListWorkloadsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListWorkloadsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListWorkloadsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,39 +55,36 @@ private ListWorkloadsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: { - pageToken_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + pageSize_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageToken_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + filter_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -112,42 +92,35 @@ private ListWorkloadsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1beta1_ListWorkloadsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_ListWorkloadsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1beta1_ListWorkloadsRequest_fieldAccessorTable + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_ListWorkloadsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest.class, - com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest.Builder.class); + com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest.class, com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. Parent Resource to list workloads from.
    * Must be of the form `organizations/{org_id}/locations/{location}`.
    * 
* - * - * 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 @@ -156,32 +129,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. Parent Resource to list workloads from.
    * Must be of the form `organizations/{org_id}/locations/{location}`.
    * 
* - * - * 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 { @@ -192,14 +163,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * Page size.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -210,8 +178,6 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * Page token returned from previous request. Page token contains context from
    * previous request. Page token needs to be passed in the second and following
@@ -219,7 +185,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -228,15 +193,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * Page token returned from previous request. Page token contains context from
    * previous request. Page token needs to be passed in the second and following
@@ -244,15 +208,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -263,15 +228,12 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int FILTER_FIELD_NUMBER = 4; private volatile java.lang.Object filter_; /** - * - * *
    * A custom filter for filtering by properties of a workload. At this time,
    * only filtering by labels is supported.
    * 
* * string filter = 4; - * * @return The filter. */ @java.lang.Override @@ -280,30 +242,30 @@ public java.lang.String getFilter() { 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(); filter_ = s; return s; } } /** - * - * *
    * A custom filter for filtering by properties of a workload. At this time,
    * only filtering by labels is supported.
    * 
* * string filter = 4; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; 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); filter_ = b; return b; } else { @@ -312,7 +274,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -324,7 +285,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_); } @@ -350,7 +312,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -366,18 +329,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.assuredworkloads.v1beta1.ListWorkloadsRequest)) { return super.equals(obj); } - com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest other = - (com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getFilter().equals(other.getFilter())) return false; + com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest other = (com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -403,127 +369,117 @@ public int hashCode() { } public static com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest 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.assuredworkloads.v1beta1.ListWorkloadsRequest 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.assuredworkloads.v1beta1.ListWorkloadsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest 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.assuredworkloads.v1beta1.ListWorkloadsRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest 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.assuredworkloads.v1beta1.ListWorkloadsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest 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.assuredworkloads.v1beta1.ListWorkloadsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest 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.assuredworkloads.v1beta1.ListWorkloadsRequest 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.assuredworkloads.v1beta1.ListWorkloadsRequest 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.assuredworkloads.v1beta1.ListWorkloadsRequest prototype) { + public static Builder newBuilder(com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for fetching workloads in an organization.
    * 
* * Protobuf type {@code google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest} */ - 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.assuredworkloads.v1beta1.ListWorkloadsRequest) com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1beta1_ListWorkloadsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_ListWorkloadsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1beta1_ListWorkloadsRequest_fieldAccessorTable + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_ListWorkloadsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest.class, - com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest.Builder.class); + com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest.class, com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest.Builder.class); } // Construct using com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest.newBuilder() @@ -531,15 +487,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -555,14 +512,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1beta1_ListWorkloadsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_ListWorkloadsRequest_descriptor; } @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest - getDefaultInstanceForType() { + public com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest getDefaultInstanceForType() { return com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest.getDefaultInstance(); } @@ -577,8 +533,7 @@ public com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest build() { @java.lang.Override public com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest buildPartial() { - com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest result = - new com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest(this); + com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest result = new com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -591,39 +546,38 @@ public com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest buildParti public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest) { - return mergeFrom((com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest) other); + return mergeFrom((com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest)other); } else { super.mergeFrom(other); return this; @@ -631,9 +585,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest other) { - if (other - == com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -668,9 +620,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -682,23 +632,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Parent Resource to list workloads from.
      * Must be of the form `organizations/{org_id}/locations/{location}`.
      * 
* - * - * 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; @@ -707,24 +653,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Parent Resource to list workloads from.
      * Must be of the form `organizations/{org_id}/locations/{location}`.
      * 
* - * - * 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 { @@ -732,85 +675,69 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Parent Resource to list workloads from.
      * Must be of the form `organizations/{org_id}/locations/{location}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. Parent Resource to list workloads from.
      * Must be of the form `organizations/{org_id}/locations/{location}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. Parent Resource to list workloads from.
      * Must be of the form `organizations/{org_id}/locations/{location}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Page size.
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -818,36 +745,30 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Page size.
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * Page size.
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -855,8 +776,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Page token returned from previous request. Page token contains context from
      * previous request. Page token needs to be passed in the second and following
@@ -864,13 +783,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -879,8 +798,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Page token returned from previous request. Page token contains context from
      * previous request. Page token needs to be passed in the second and following
@@ -888,14 +805,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -903,8 +821,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Page token returned from previous request. Page token contains context from
      * previous request. Page token needs to be passed in the second and following
@@ -912,22 +828,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * Page token returned from previous request. Page token contains context from
      * previous request. Page token needs to be passed in the second and following
@@ -935,18 +849,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * Page token returned from previous request. Page token contains context from
      * previous request. Page token needs to be passed in the second and following
@@ -954,16 +865,16 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; @@ -971,21 +882,19 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * A custom filter for filtering by properties of a workload. At this time,
      * only filtering by labels is supported.
      * 
* * string filter = 4; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; 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(); filter_ = s; return s; @@ -994,22 +903,21 @@ public java.lang.String getFilter() { } } /** - * - * *
      * A custom filter for filtering by properties of a workload. At this time,
      * only filtering by labels is supported.
      * 
* * string filter = 4; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; 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); filter_ = b; return b; } else { @@ -1017,71 +925,64 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * A custom filter for filtering by properties of a workload. At this time,
      * only filtering by labels is supported.
      * 
* * string filter = 4; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { + public Builder setFilter( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** - * - * *
      * A custom filter for filtering by properties of a workload. At this time,
      * only filtering by labels is supported.
      * 
* * string filter = 4; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
      * A custom filter for filtering by properties of a workload. At this time,
      * only filtering by labels is supported.
      * 
* * string filter = 4; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1091,32 +992,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest) - private static final com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest(); } - public static com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest - getDefaultInstance() { + public static com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListWorkloadsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListWorkloadsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListWorkloadsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListWorkloadsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1128,8 +1027,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest - getDefaultInstanceForType() { + public com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/ListWorkloadsRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/ListWorkloadsRequestOrBuilder.java similarity index 63% rename from proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/ListWorkloadsRequestOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/ListWorkloadsRequestOrBuilder.java index 14ced5a9..ea8648ef 100644 --- a/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/ListWorkloadsRequestOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/ListWorkloadsRequestOrBuilder.java @@ -1,75 +1,45 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto package com.google.cloud.assuredworkloads.v1beta1; -public interface ListWorkloadsRequestOrBuilder - extends +public interface ListWorkloadsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Parent Resource to list workloads from.
    * Must be of the form `organizations/{org_id}/locations/{location}`.
    * 
* - * - * 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. Parent Resource to list workloads from.
    * Must be of the form `organizations/{org_id}/locations/{location}`.
    * 
* - * - * 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(); /** - * - * *
    * Page size.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * Page token returned from previous request. Page token contains context from
    * previous request. Page token needs to be passed in the second and following
@@ -77,13 +47,10 @@ public interface ListWorkloadsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Page token returned from previous request. Page token contains context from
    * previous request. Page token needs to be passed in the second and following
@@ -91,35 +58,30 @@ public interface ListWorkloadsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * A custom filter for filtering by properties of a workload. At this time,
    * only filtering by labels is supported.
    * 
* * string filter = 4; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * A custom filter for filtering by properties of a workload. At this time,
    * only filtering by labels is supported.
    * 
* * string filter = 4; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); } diff --git a/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/ListWorkloadsResponse.java b/owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/ListWorkloadsResponse.java similarity index 73% rename from proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/ListWorkloadsResponse.java rename to owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/ListWorkloadsResponse.java index 40737ded..03ab73f7 100644 --- a/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/ListWorkloadsResponse.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/ListWorkloadsResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto package com.google.cloud.assuredworkloads.v1beta1; /** - * - * *
  * Response of ListWorkloads endpoint.
  * 
* * Protobuf type {@code google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse} */ -public final class ListWorkloadsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListWorkloadsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse) ListWorkloadsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListWorkloadsResponse.newBuilder() to construct. private ListWorkloadsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListWorkloadsResponse() { workloads_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,15 +26,16 @@ private ListWorkloadsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListWorkloadsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListWorkloadsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,33 +55,28 @@ private ListWorkloadsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - workloads_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - workloads_.add( - input.readMessage( - com.google.cloud.assuredworkloads.v1beta1.Workload.parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + workloads_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + workloads_.add( + input.readMessage(com.google.cloud.assuredworkloads.v1beta1.Workload.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -106,7 +84,8 @@ private ListWorkloadsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { workloads_ = java.util.Collections.unmodifiableList(workloads_); @@ -115,27 +94,22 @@ private ListWorkloadsResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1beta1_ListWorkloadsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_ListWorkloadsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1beta1_ListWorkloadsResponse_fieldAccessorTable + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_ListWorkloadsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse.class, - com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse.Builder.class); + com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse.class, com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse.Builder.class); } public static final int WORKLOADS_FIELD_NUMBER = 1; private java.util.List workloads_; /** - * - * *
    * List of Workloads under a given parent.
    * 
@@ -147,8 +121,6 @@ public java.util.List getWor return workloads_; } /** - * - * *
    * List of Workloads under a given parent.
    * 
@@ -156,13 +128,11 @@ public java.util.List getWor * repeated .google.cloud.assuredworkloads.v1beta1.Workload workloads = 1; */ @java.lang.Override - public java.util.List + public java.util.List getWorkloadsOrBuilderList() { return workloads_; } /** - * - * *
    * List of Workloads under a given parent.
    * 
@@ -174,8 +144,6 @@ public int getWorkloadsCount() { return workloads_.size(); } /** - * - * *
    * List of Workloads under a given parent.
    * 
@@ -187,8 +155,6 @@ public com.google.cloud.assuredworkloads.v1beta1.Workload getWorkloads(int index return workloads_.get(index); } /** - * - * *
    * List of Workloads under a given parent.
    * 
@@ -204,14 +170,11 @@ public com.google.cloud.assuredworkloads.v1beta1.WorkloadOrBuilder getWorkloadsO public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * The next page token. Return empty if reached the last page.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -220,29 +183,29 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * The next page token. Return empty if reached the last page.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -251,7 +214,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -263,7 +225,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 < workloads_.size(); i++) { output.writeMessage(1, workloads_.get(i)); } @@ -280,7 +243,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < workloads_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, workloads_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, workloads_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -293,16 +257,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.assuredworkloads.v1beta1.ListWorkloadsResponse)) { return super.equals(obj); } - com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse other = - (com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse) obj; + com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse other = (com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse) obj; - if (!getWorkloadsList().equals(other.getWorkloadsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getWorkloadsList() + .equals(other.getWorkloadsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -326,127 +291,117 @@ public int hashCode() { } public static com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse 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.assuredworkloads.v1beta1.ListWorkloadsResponse 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.assuredworkloads.v1beta1.ListWorkloadsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse 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.assuredworkloads.v1beta1.ListWorkloadsResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse 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.assuredworkloads.v1beta1.ListWorkloadsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse 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.assuredworkloads.v1beta1.ListWorkloadsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse 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.assuredworkloads.v1beta1.ListWorkloadsResponse 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.assuredworkloads.v1beta1.ListWorkloadsResponse 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.assuredworkloads.v1beta1.ListWorkloadsResponse prototype) { + public static Builder newBuilder(com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response of ListWorkloads endpoint.
    * 
* * Protobuf type {@code google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse} */ - 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.assuredworkloads.v1beta1.ListWorkloadsResponse) com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1beta1_ListWorkloadsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_ListWorkloadsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1beta1_ListWorkloadsResponse_fieldAccessorTable + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_ListWorkloadsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse.class, - com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse.Builder.class); + com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse.class, com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse.Builder.class); } // Construct using com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse.newBuilder() @@ -454,17 +409,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getWorkloadsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -480,14 +435,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1beta1_ListWorkloadsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_ListWorkloadsResponse_descriptor; } @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse - getDefaultInstanceForType() { + public com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse getDefaultInstanceForType() { return com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse.getDefaultInstance(); } @@ -502,8 +456,7 @@ public com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse build() { @java.lang.Override public com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse buildPartial() { - com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse result = - new com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse(this); + com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse result = new com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse(this); int from_bitField0_ = bitField0_; if (workloadsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -523,50 +476,46 @@ public com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse buildPart public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse) { - return mergeFrom((com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse) other); + return mergeFrom((com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse other) { - if (other - == com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse other) { + if (other == com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse.getDefaultInstance()) return this; if (workloadsBuilder_ == null) { if (!other.workloads_.isEmpty()) { if (workloads_.isEmpty()) { @@ -585,10 +534,9 @@ public Builder mergeFrom( workloadsBuilder_ = null; workloads_ = other.workloads_; bitField0_ = (bitField0_ & ~0x00000001); - workloadsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getWorkloadsFieldBuilder() - : null; + workloadsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getWorkloadsFieldBuilder() : null; } else { workloadsBuilder_.addAllMessages(other.workloads_); } @@ -617,9 +565,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -628,29 +574,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List workloads_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureWorkloadsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - workloads_ = - new java.util.ArrayList(workloads_); + workloads_ = new java.util.ArrayList(workloads_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.assuredworkloads.v1beta1.Workload, - com.google.cloud.assuredworkloads.v1beta1.Workload.Builder, - com.google.cloud.assuredworkloads.v1beta1.WorkloadOrBuilder> - workloadsBuilder_; + com.google.cloud.assuredworkloads.v1beta1.Workload, com.google.cloud.assuredworkloads.v1beta1.Workload.Builder, com.google.cloud.assuredworkloads.v1beta1.WorkloadOrBuilder> workloadsBuilder_; /** - * - * *
      * List of Workloads under a given parent.
      * 
@@ -665,8 +603,6 @@ public java.util.List getWor } } /** - * - * *
      * List of Workloads under a given parent.
      * 
@@ -681,8 +617,6 @@ public int getWorkloadsCount() { } } /** - * - * *
      * List of Workloads under a given parent.
      * 
@@ -697,8 +631,6 @@ public com.google.cloud.assuredworkloads.v1beta1.Workload getWorkloads(int index } } /** - * - * *
      * List of Workloads under a given parent.
      * 
@@ -720,8 +652,6 @@ public Builder setWorkloads( return this; } /** - * - * *
      * List of Workloads under a given parent.
      * 
@@ -740,8 +670,6 @@ public Builder setWorkloads( return this; } /** - * - * *
      * List of Workloads under a given parent.
      * 
@@ -762,8 +690,6 @@ public Builder addWorkloads(com.google.cloud.assuredworkloads.v1beta1.Workload v return this; } /** - * - * *
      * List of Workloads under a given parent.
      * 
@@ -785,8 +711,6 @@ public Builder addWorkloads( return this; } /** - * - * *
      * List of Workloads under a given parent.
      * 
@@ -805,8 +729,6 @@ public Builder addWorkloads( return this; } /** - * - * *
      * List of Workloads under a given parent.
      * 
@@ -825,8 +747,6 @@ public Builder addWorkloads( return this; } /** - * - * *
      * List of Workloads under a given parent.
      * 
@@ -837,7 +757,8 @@ public Builder addAllWorkloads( java.lang.Iterable values) { if (workloadsBuilder_ == null) { ensureWorkloadsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, workloads_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, workloads_); onChanged(); } else { workloadsBuilder_.addAllMessages(values); @@ -845,8 +766,6 @@ public Builder addAllWorkloads( return this; } /** - * - * *
      * List of Workloads under a given parent.
      * 
@@ -864,8 +783,6 @@ public Builder clearWorkloads() { return this; } /** - * - * *
      * List of Workloads under a given parent.
      * 
@@ -883,8 +800,6 @@ public Builder removeWorkloads(int index) { return this; } /** - * - * *
      * List of Workloads under a given parent.
      * 
@@ -896,8 +811,6 @@ public com.google.cloud.assuredworkloads.v1beta1.Workload.Builder getWorkloadsBu return getWorkloadsFieldBuilder().getBuilder(index); } /** - * - * *
      * List of Workloads under a given parent.
      * 
@@ -907,22 +820,19 @@ public com.google.cloud.assuredworkloads.v1beta1.Workload.Builder getWorkloadsBu public com.google.cloud.assuredworkloads.v1beta1.WorkloadOrBuilder getWorkloadsOrBuilder( int index) { if (workloadsBuilder_ == null) { - return workloads_.get(index); - } else { + return workloads_.get(index); } else { return workloadsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * List of Workloads under a given parent.
      * 
* * repeated .google.cloud.assuredworkloads.v1beta1.Workload workloads = 1; */ - public java.util.List - getWorkloadsOrBuilderList() { + public java.util.List + getWorkloadsOrBuilderList() { if (workloadsBuilder_ != null) { return workloadsBuilder_.getMessageOrBuilderList(); } else { @@ -930,8 +840,6 @@ public com.google.cloud.assuredworkloads.v1beta1.WorkloadOrBuilder getWorkloadsO } } /** - * - * *
      * List of Workloads under a given parent.
      * 
@@ -939,12 +847,10 @@ public com.google.cloud.assuredworkloads.v1beta1.WorkloadOrBuilder getWorkloadsO * repeated .google.cloud.assuredworkloads.v1beta1.Workload workloads = 1; */ public com.google.cloud.assuredworkloads.v1beta1.Workload.Builder addWorkloadsBuilder() { - return getWorkloadsFieldBuilder() - .addBuilder(com.google.cloud.assuredworkloads.v1beta1.Workload.getDefaultInstance()); + return getWorkloadsFieldBuilder().addBuilder( + com.google.cloud.assuredworkloads.v1beta1.Workload.getDefaultInstance()); } /** - * - * *
      * List of Workloads under a given parent.
      * 
@@ -953,36 +859,30 @@ public com.google.cloud.assuredworkloads.v1beta1.Workload.Builder addWorkloadsBu */ public com.google.cloud.assuredworkloads.v1beta1.Workload.Builder addWorkloadsBuilder( int index) { - return getWorkloadsFieldBuilder() - .addBuilder( - index, com.google.cloud.assuredworkloads.v1beta1.Workload.getDefaultInstance()); + return getWorkloadsFieldBuilder().addBuilder( + index, com.google.cloud.assuredworkloads.v1beta1.Workload.getDefaultInstance()); } /** - * - * *
      * List of Workloads under a given parent.
      * 
* * repeated .google.cloud.assuredworkloads.v1beta1.Workload workloads = 1; */ - public java.util.List - getWorkloadsBuilderList() { + public java.util.List + getWorkloadsBuilderList() { return getWorkloadsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.assuredworkloads.v1beta1.Workload, - com.google.cloud.assuredworkloads.v1beta1.Workload.Builder, - com.google.cloud.assuredworkloads.v1beta1.WorkloadOrBuilder> + com.google.cloud.assuredworkloads.v1beta1.Workload, com.google.cloud.assuredworkloads.v1beta1.Workload.Builder, com.google.cloud.assuredworkloads.v1beta1.WorkloadOrBuilder> getWorkloadsFieldBuilder() { if (workloadsBuilder_ == null) { - workloadsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.assuredworkloads.v1beta1.Workload, - com.google.cloud.assuredworkloads.v1beta1.Workload.Builder, - com.google.cloud.assuredworkloads.v1beta1.WorkloadOrBuilder>( - workloads_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + workloadsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.assuredworkloads.v1beta1.Workload, com.google.cloud.assuredworkloads.v1beta1.Workload.Builder, com.google.cloud.assuredworkloads.v1beta1.WorkloadOrBuilder>( + workloads_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); workloads_ = null; } return workloadsBuilder_; @@ -990,20 +890,18 @@ public com.google.cloud.assuredworkloads.v1beta1.Workload.Builder addWorkloadsBu private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * The next page token. Return empty if reached the last page.
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1012,21 +910,20 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * The next page token. Return empty if reached the last page.
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1034,68 +931,61 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * The next page token. Return empty if reached the last page.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * The next page token. Return empty if reached the last page.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * The next page token. Return empty if reached the last page.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1105,32 +995,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse) - private static final com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse(); } - public static com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse - getDefaultInstance() { + public static com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListWorkloadsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListWorkloadsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListWorkloadsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListWorkloadsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1142,8 +1030,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse - getDefaultInstanceForType() { + public com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/ListWorkloadsResponseOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/ListWorkloadsResponseOrBuilder.java similarity index 69% rename from proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/ListWorkloadsResponseOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/ListWorkloadsResponseOrBuilder.java index 047a178e..044893ba 100644 --- a/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/ListWorkloadsResponseOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/ListWorkloadsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto package com.google.cloud.assuredworkloads.v1beta1; -public interface ListWorkloadsResponseOrBuilder - extends +public interface ListWorkloadsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * List of Workloads under a given parent.
    * 
* * repeated .google.cloud.assuredworkloads.v1beta1.Workload workloads = 1; */ - java.util.List getWorkloadsList(); + java.util.List + getWorkloadsList(); /** - * - * *
    * List of Workloads under a given parent.
    * 
@@ -44,8 +25,6 @@ public interface ListWorkloadsResponseOrBuilder */ com.google.cloud.assuredworkloads.v1beta1.Workload getWorkloads(int index); /** - * - * *
    * List of Workloads under a given parent.
    * 
@@ -54,49 +33,41 @@ public interface ListWorkloadsResponseOrBuilder */ int getWorkloadsCount(); /** - * - * *
    * List of Workloads under a given parent.
    * 
* * repeated .google.cloud.assuredworkloads.v1beta1.Workload workloads = 1; */ - java.util.List + java.util.List getWorkloadsOrBuilderList(); /** - * - * *
    * List of Workloads under a given parent.
    * 
* * repeated .google.cloud.assuredworkloads.v1beta1.Workload workloads = 1; */ - com.google.cloud.assuredworkloads.v1beta1.WorkloadOrBuilder getWorkloadsOrBuilder(int index); + com.google.cloud.assuredworkloads.v1beta1.WorkloadOrBuilder getWorkloadsOrBuilder( + int index); /** - * - * *
    * The next page token. Return empty if reached the last page.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * The next page token. Return empty if reached the last page.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/LocationName.java b/owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/LocationName.java similarity index 100% rename from proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/LocationName.java rename to owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/LocationName.java diff --git a/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/UpdateWorkloadRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/UpdateWorkloadRequest.java similarity index 65% rename from proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/UpdateWorkloadRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/UpdateWorkloadRequest.java index cb251925..5cf17b2a 100644 --- a/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/UpdateWorkloadRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/UpdateWorkloadRequest.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto package com.google.cloud.assuredworkloads.v1beta1; /** - * - * *
  * Request for Updating a workload.
  * 
* * Protobuf type {@code google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest} */ -public final class UpdateWorkloadRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateWorkloadRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest) UpdateWorkloadRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateWorkloadRequest.newBuilder() to construct. private UpdateWorkloadRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateWorkloadRequest() {} + private UpdateWorkloadRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateWorkloadRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdateWorkloadRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,45 +52,39 @@ private UpdateWorkloadRequest( case 0: done = true; break; - case 10: - { - com.google.cloud.assuredworkloads.v1beta1.Workload.Builder subBuilder = null; - if (workload_ != null) { - subBuilder = workload_.toBuilder(); - } - workload_ = - input.readMessage( - com.google.cloud.assuredworkloads.v1beta1.Workload.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(workload_); - workload_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.assuredworkloads.v1beta1.Workload.Builder subBuilder = null; + if (workload_ != null) { + subBuilder = workload_.toBuilder(); + } + workload_ = input.readMessage(com.google.cloud.assuredworkloads.v1beta1.Workload.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(workload_); + workload_ = subBuilder.buildPartial(); } - case 18: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - break; + break; + } + case 18: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -114,33 +92,29 @@ private UpdateWorkloadRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1beta1_UpdateWorkloadRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_UpdateWorkloadRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1beta1_UpdateWorkloadRequest_fieldAccessorTable + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_UpdateWorkloadRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest.class, - com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest.Builder.class); + com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest.class, com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest.Builder.class); } public static final int WORKLOAD_FIELD_NUMBER = 1; private com.google.cloud.assuredworkloads.v1beta1.Workload workload_; /** - * - * *
    * Required. The workload to update.
    * The workload’s `name` field is used to identify the workload to be updated.
@@ -148,10 +122,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
    * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.assuredworkloads.v1beta1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the workload field is set. */ @java.lang.Override @@ -159,8 +130,6 @@ public boolean hasWorkload() { return workload_ != null; } /** - * - * *
    * Required. The workload to update.
    * The workload’s `name` field is used to identify the workload to be updated.
@@ -168,21 +137,14 @@ public boolean hasWorkload() {
    * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
    * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.assuredworkloads.v1beta1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The workload. */ @java.lang.Override public com.google.cloud.assuredworkloads.v1beta1.Workload getWorkload() { - return workload_ == null - ? com.google.cloud.assuredworkloads.v1beta1.Workload.getDefaultInstance() - : workload_; + return workload_ == null ? com.google.cloud.assuredworkloads.v1beta1.Workload.getDefaultInstance() : workload_; } /** - * - * *
    * Required. The workload to update.
    * The workload’s `name` field is used to identify the workload to be updated.
@@ -190,9 +152,7 @@ public com.google.cloud.assuredworkloads.v1beta1.Workload getWorkload() {
    * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
    * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.assuredworkloads.v1beta1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.assuredworkloads.v1beta1.WorkloadOrBuilder getWorkloadOrBuilder() { @@ -202,15 +162,11 @@ public com.google.cloud.assuredworkloads.v1beta1.WorkloadOrBuilder getWorkloadOr public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Required. The list of fields to be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ @java.lang.Override @@ -218,15 +174,11 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Required. The list of fields to be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ @java.lang.Override @@ -234,14 +186,11 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Required. The list of fields to be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -249,7 +198,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -261,7 +209,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 (workload_ != null) { output.writeMessage(1, getWorkload()); } @@ -278,10 +227,12 @@ public int getSerializedSize() { size = 0; if (workload_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getWorkload()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getWorkload()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateMask()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -291,21 +242,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest)) { return super.equals(obj); } - com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest other = - (com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest) obj; + com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest other = (com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest) obj; if (hasWorkload() != other.hasWorkload()) return false; if (hasWorkload()) { - if (!getWorkload().equals(other.getWorkload())) return false; + if (!getWorkload() + .equals(other.getWorkload())) return false; } if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -332,127 +284,117 @@ public int hashCode() { } public static com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest 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.assuredworkloads.v1beta1.UpdateWorkloadRequest 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.assuredworkloads.v1beta1.UpdateWorkloadRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest 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.assuredworkloads.v1beta1.UpdateWorkloadRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest 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.assuredworkloads.v1beta1.UpdateWorkloadRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest 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.assuredworkloads.v1beta1.UpdateWorkloadRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest 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.assuredworkloads.v1beta1.UpdateWorkloadRequest 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.assuredworkloads.v1beta1.UpdateWorkloadRequest 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.assuredworkloads.v1beta1.UpdateWorkloadRequest prototype) { + public static Builder newBuilder(com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for Updating a workload.
    * 
* * Protobuf type {@code google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest} */ - 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.assuredworkloads.v1beta1.UpdateWorkloadRequest) com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1beta1_UpdateWorkloadRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_UpdateWorkloadRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1beta1_UpdateWorkloadRequest_fieldAccessorTable + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_UpdateWorkloadRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest.class, - com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest.Builder.class); + com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest.class, com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest.Builder.class); } // Construct using com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest.newBuilder() @@ -460,15 +402,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -488,14 +431,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1beta1_UpdateWorkloadRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_UpdateWorkloadRequest_descriptor; } @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest - getDefaultInstanceForType() { + public com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest getDefaultInstanceForType() { return com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest.getDefaultInstance(); } @@ -510,8 +452,7 @@ public com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest build() { @java.lang.Override public com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest buildPartial() { - com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest result = - new com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest(this); + com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest result = new com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest(this); if (workloadBuilder_ == null) { result.workload_ = workload_; } else { @@ -530,50 +471,46 @@ public com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest buildPart public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest) { - return mergeFrom((com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest) other); + return mergeFrom((com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest other) { - if (other - == com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest other) { + if (other == com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest.getDefaultInstance()) return this; if (other.hasWorkload()) { mergeWorkload(other.getWorkload()); } @@ -599,9 +536,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -613,13 +548,8 @@ public Builder mergeFrom( private com.google.cloud.assuredworkloads.v1beta1.Workload workload_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.assuredworkloads.v1beta1.Workload, - com.google.cloud.assuredworkloads.v1beta1.Workload.Builder, - com.google.cloud.assuredworkloads.v1beta1.WorkloadOrBuilder> - workloadBuilder_; + com.google.cloud.assuredworkloads.v1beta1.Workload, com.google.cloud.assuredworkloads.v1beta1.Workload.Builder, com.google.cloud.assuredworkloads.v1beta1.WorkloadOrBuilder> workloadBuilder_; /** - * - * *
      * Required. The workload to update.
      * The workload’s `name` field is used to identify the workload to be updated.
@@ -627,18 +557,13 @@ public Builder mergeFrom(
      * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.assuredworkloads.v1beta1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the workload field is set. */ public boolean hasWorkload() { return workloadBuilder_ != null || workload_ != null; } /** - * - * *
      * Required. The workload to update.
      * The workload’s `name` field is used to identify the workload to be updated.
@@ -646,24 +571,17 @@ public boolean hasWorkload() {
      * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.assuredworkloads.v1beta1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The workload. */ public com.google.cloud.assuredworkloads.v1beta1.Workload getWorkload() { if (workloadBuilder_ == null) { - return workload_ == null - ? com.google.cloud.assuredworkloads.v1beta1.Workload.getDefaultInstance() - : workload_; + return workload_ == null ? com.google.cloud.assuredworkloads.v1beta1.Workload.getDefaultInstance() : workload_; } else { return workloadBuilder_.getMessage(); } } /** - * - * *
      * Required. The workload to update.
      * The workload’s `name` field is used to identify the workload to be updated.
@@ -671,9 +589,7 @@ public com.google.cloud.assuredworkloads.v1beta1.Workload getWorkload() {
      * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.assuredworkloads.v1beta1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setWorkload(com.google.cloud.assuredworkloads.v1beta1.Workload value) { if (workloadBuilder_ == null) { @@ -689,8 +605,6 @@ public Builder setWorkload(com.google.cloud.assuredworkloads.v1beta1.Workload va return this; } /** - * - * *
      * Required. The workload to update.
      * The workload’s `name` field is used to identify the workload to be updated.
@@ -698,9 +612,7 @@ public Builder setWorkload(com.google.cloud.assuredworkloads.v1beta1.Workload va
      * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.assuredworkloads.v1beta1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setWorkload( com.google.cloud.assuredworkloads.v1beta1.Workload.Builder builderForValue) { @@ -714,8 +626,6 @@ public Builder setWorkload( return this; } /** - * - * *
      * Required. The workload to update.
      * The workload’s `name` field is used to identify the workload to be updated.
@@ -723,17 +633,13 @@ public Builder setWorkload(
      * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.assuredworkloads.v1beta1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeWorkload(com.google.cloud.assuredworkloads.v1beta1.Workload value) { if (workloadBuilder_ == null) { if (workload_ != null) { workload_ = - com.google.cloud.assuredworkloads.v1beta1.Workload.newBuilder(workload_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.assuredworkloads.v1beta1.Workload.newBuilder(workload_).mergeFrom(value).buildPartial(); } else { workload_ = value; } @@ -745,8 +651,6 @@ public Builder mergeWorkload(com.google.cloud.assuredworkloads.v1beta1.Workload return this; } /** - * - * *
      * Required. The workload to update.
      * The workload’s `name` field is used to identify the workload to be updated.
@@ -754,9 +658,7 @@ public Builder mergeWorkload(com.google.cloud.assuredworkloads.v1beta1.Workload
      * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.assuredworkloads.v1beta1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearWorkload() { if (workloadBuilder_ == null) { @@ -770,8 +672,6 @@ public Builder clearWorkload() { return this; } /** - * - * *
      * Required. The workload to update.
      * The workload’s `name` field is used to identify the workload to be updated.
@@ -779,18 +679,14 @@ public Builder clearWorkload() {
      * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.assuredworkloads.v1beta1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.assuredworkloads.v1beta1.Workload.Builder getWorkloadBuilder() { - + onChanged(); return getWorkloadFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The workload to update.
      * The workload’s `name` field is used to identify the workload to be updated.
@@ -798,22 +694,17 @@ public com.google.cloud.assuredworkloads.v1beta1.Workload.Builder getWorkloadBui
      * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.assuredworkloads.v1beta1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.assuredworkloads.v1beta1.WorkloadOrBuilder getWorkloadOrBuilder() { if (workloadBuilder_ != null) { return workloadBuilder_.getMessageOrBuilder(); } else { - return workload_ == null - ? com.google.cloud.assuredworkloads.v1beta1.Workload.getDefaultInstance() - : workload_; + return workload_ == null ? + com.google.cloud.assuredworkloads.v1beta1.Workload.getDefaultInstance() : workload_; } } /** - * - * *
      * Required. The workload to update.
      * The workload’s `name` field is used to identify the workload to be updated.
@@ -821,22 +712,17 @@ public com.google.cloud.assuredworkloads.v1beta1.WorkloadOrBuilder getWorkloadOr
      * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.assuredworkloads.v1beta1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.assuredworkloads.v1beta1.Workload, - com.google.cloud.assuredworkloads.v1beta1.Workload.Builder, - com.google.cloud.assuredworkloads.v1beta1.WorkloadOrBuilder> + com.google.cloud.assuredworkloads.v1beta1.Workload, com.google.cloud.assuredworkloads.v1beta1.Workload.Builder, com.google.cloud.assuredworkloads.v1beta1.WorkloadOrBuilder> getWorkloadFieldBuilder() { if (workloadBuilder_ == null) { - workloadBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.assuredworkloads.v1beta1.Workload, - com.google.cloud.assuredworkloads.v1beta1.Workload.Builder, - com.google.cloud.assuredworkloads.v1beta1.WorkloadOrBuilder>( - getWorkload(), getParentForChildren(), isClean()); + workloadBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.assuredworkloads.v1beta1.Workload, com.google.cloud.assuredworkloads.v1beta1.Workload.Builder, com.google.cloud.assuredworkloads.v1beta1.WorkloadOrBuilder>( + getWorkload(), + getParentForChildren(), + isClean()); workload_ = null; } return workloadBuilder_; @@ -844,55 +730,39 @@ public com.google.cloud.assuredworkloads.v1beta1.WorkloadOrBuilder getWorkloadOr private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
      * Required. The list of fields to be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
      * Required. The list of fields to be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * Required. The list of fields to be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -908,16 +778,14 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. The list of fields to be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); @@ -928,20 +796,17 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * Required. The list of fields to be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -953,14 +818,11 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. The list of fields to be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearUpdateMask() { if (updateMaskBuilder_ == null) { @@ -974,68 +836,55 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * Required. The list of fields to be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The list of fields to be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } } /** - * - * *
      * Required. The list of fields to be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); + updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), + getParentForChildren(), + isClean()); updateMask_ = null; } return updateMaskBuilder_; } - @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); } @@ -1045,32 +894,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest) } // @@protoc_insertion_point(class_scope:google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest) - private static final com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest(); } - public static com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest - getDefaultInstance() { + public static com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateWorkloadRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateWorkloadRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateWorkloadRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateWorkloadRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1082,8 +929,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest - getDefaultInstanceForType() { + public com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/UpdateWorkloadRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/UpdateWorkloadRequestOrBuilder.java similarity index 61% rename from proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/UpdateWorkloadRequestOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/UpdateWorkloadRequestOrBuilder.java index 6b6c0921..a21f9393 100644 --- a/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/UpdateWorkloadRequestOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/UpdateWorkloadRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto package com.google.cloud.assuredworkloads.v1beta1; -public interface UpdateWorkloadRequestOrBuilder - extends +public interface UpdateWorkloadRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The workload to update.
    * The workload’s `name` field is used to identify the workload to be updated.
@@ -33,16 +15,11 @@ public interface UpdateWorkloadRequestOrBuilder
    * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
    * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.assuredworkloads.v1beta1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the workload field is set. */ boolean hasWorkload(); /** - * - * *
    * Required. The workload to update.
    * The workload’s `name` field is used to identify the workload to be updated.
@@ -50,16 +27,11 @@ public interface UpdateWorkloadRequestOrBuilder
    * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
    * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.assuredworkloads.v1beta1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The workload. */ com.google.cloud.assuredworkloads.v1beta1.Workload getWorkload(); /** - * - * *
    * Required. The workload to update.
    * The workload’s `name` field is used to identify the workload to be updated.
@@ -67,47 +39,34 @@ public interface UpdateWorkloadRequestOrBuilder
    * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
    * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.assuredworkloads.v1beta1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.assuredworkloads.v1beta1.WorkloadOrBuilder getWorkloadOrBuilder(); /** - * - * *
    * Required. The list of fields to be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * Required. The list of fields to be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * Required. The list of fields to be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); } diff --git a/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/Workload.java b/owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/Workload.java similarity index 62% rename from proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/Workload.java rename to owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/Workload.java index d588da1e..4402f4c1 100644 --- a/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/Workload.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/Workload.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto package com.google.cloud.assuredworkloads.v1beta1; /** - * - * *
  * An Workload object for managing highly regulated workloads of cloud
  * customers.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.assuredworkloads.v1beta1.Workload}
  */
-public final class Workload extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Workload extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.assuredworkloads.v1beta1.Workload)
     WorkloadOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Workload.newBuilder() to construct.
   private Workload(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private Workload() {
     name_ = "";
     displayName_ = "";
@@ -52,15 +34,16 @@ private Workload() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Workload();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private Workload(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -80,254 +63,186 @@ private Workload(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
+            name_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            displayName_ = s;
+            break;
+          }
+          case 26: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              resources_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            resources_.add(
+                input.readMessage(com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.parser(), extensionRegistry));
+            break;
+          }
+          case 32: {
+            int rawValue = input.readEnum();
 
-              displayName_ = s;
-              break;
+            complianceRegime_ = rawValue;
+            break;
+          }
+          case 42: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (createTime_ != null) {
+              subBuilder = createTime_.toBuilder();
             }
-          case 26:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                resources_ =
-                    new java.util.ArrayList<
-                        com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo>();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              resources_.add(
-                  input.readMessage(
-                      com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.parser(),
-                      extensionRegistry));
-              break;
+            createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(createTime_);
+              createTime_ = subBuilder.buildPartial();
             }
-          case 32:
-            {
-              int rawValue = input.readEnum();
 
-              complianceRegime_ = rawValue;
-              break;
-            }
-          case 42:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (createTime_ != null) {
-                subBuilder = createTime_.toBuilder();
-              }
-              createTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(createTime_);
-                createTime_ = subBuilder.buildPartial();
-              }
+            break;
+          }
+          case 50: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              break;
+            billingAccount_ = s;
+            break;
+          }
+          case 58: {
+            com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings.Builder subBuilder = null;
+            if (complianceRegimeSettingsCase_ == 7) {
+              subBuilder = ((com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings) complianceRegimeSettings_).toBuilder();
             }
-          case 50:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
-
-              billingAccount_ = s;
-              break;
+            complianceRegimeSettings_ =
+                input.readMessage(com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom((com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings) complianceRegimeSettings_);
+              complianceRegimeSettings_ = subBuilder.buildPartial();
             }
-          case 58:
-            {
-              com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings.Builder subBuilder =
-                  null;
-              if (complianceRegimeSettingsCase_ == 7) {
-                subBuilder =
-                    ((com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings)
-                            complianceRegimeSettings_)
-                        .toBuilder();
-              }
-              complianceRegimeSettings_ =
-                  input.readMessage(
-                      com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(
-                    (com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings)
-                        complianceRegimeSettings_);
-                complianceRegimeSettings_ = subBuilder.buildPartial();
-              }
-              complianceRegimeSettingsCase_ = 7;
-              break;
+            complianceRegimeSettingsCase_ = 7;
+            break;
+          }
+          case 66: {
+            com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings.Builder subBuilder = null;
+            if (complianceRegimeSettingsCase_ == 8) {
+              subBuilder = ((com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings) complianceRegimeSettings_).toBuilder();
             }
-          case 66:
-            {
-              com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings.Builder subBuilder =
-                  null;
-              if (complianceRegimeSettingsCase_ == 8) {
-                subBuilder =
-                    ((com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings)
-                            complianceRegimeSettings_)
-                        .toBuilder();
-              }
-              complianceRegimeSettings_ =
-                  input.readMessage(
-                      com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(
-                    (com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings)
-                        complianceRegimeSettings_);
-                complianceRegimeSettings_ = subBuilder.buildPartial();
-              }
-              complianceRegimeSettingsCase_ = 8;
-              break;
+            complianceRegimeSettings_ =
+                input.readMessage(com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom((com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings) complianceRegimeSettings_);
+              complianceRegimeSettings_ = subBuilder.buildPartial();
             }
-          case 74:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            complianceRegimeSettingsCase_ = 8;
+            break;
+          }
+          case 74: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              etag_ = s;
-              break;
+            etag_ = s;
+            break;
+          }
+          case 82: {
+            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+              labels_ = com.google.protobuf.MapField.newMapField(
+                  LabelsDefaultEntryHolder.defaultEntry);
+              mutable_bitField0_ |= 0x00000002;
             }
-          case 82:
-            {
-              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-                labels_ =
-                    com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
-                mutable_bitField0_ |= 0x00000002;
-              }
-              com.google.protobuf.MapEntry labels__ =
-                  input.readMessage(
-                      LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              labels_.getMutableMap().put(labels__.getKey(), labels__.getValue());
-              break;
+            com.google.protobuf.MapEntry
+            labels__ = input.readMessage(
+                LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+            labels_.getMutableMap().put(
+                labels__.getKey(), labels__.getValue());
+            break;
+          }
+          case 90: {
+            com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings.Builder subBuilder = null;
+            if (complianceRegimeSettingsCase_ == 11) {
+              subBuilder = ((com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings) complianceRegimeSettings_).toBuilder();
             }
-          case 90:
-            {
-              com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings.Builder
-                  subBuilder = null;
-              if (complianceRegimeSettingsCase_ == 11) {
-                subBuilder =
-                    ((com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings)
-                            complianceRegimeSettings_)
-                        .toBuilder();
-              }
-              complianceRegimeSettings_ =
-                  input.readMessage(
-                      com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings
-                          .parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(
-                    (com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings)
-                        complianceRegimeSettings_);
-                complianceRegimeSettings_ = subBuilder.buildPartial();
-              }
-              complianceRegimeSettingsCase_ = 11;
-              break;
+            complianceRegimeSettings_ =
+                input.readMessage(com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom((com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings) complianceRegimeSettings_);
+              complianceRegimeSettings_ = subBuilder.buildPartial();
             }
-          case 98:
-            {
-              com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings.Builder
-                  subBuilder = null;
-              if (complianceRegimeSettingsCase_ == 12) {
-                subBuilder =
-                    ((com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings)
-                            complianceRegimeSettings_)
-                        .toBuilder();
-              }
-              complianceRegimeSettings_ =
-                  input.readMessage(
-                      com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings
-                          .parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(
-                    (com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings)
-                        complianceRegimeSettings_);
-                complianceRegimeSettings_ = subBuilder.buildPartial();
-              }
-              complianceRegimeSettingsCase_ = 12;
-              break;
+            complianceRegimeSettingsCase_ = 11;
+            break;
+          }
+          case 98: {
+            com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings.Builder subBuilder = null;
+            if (complianceRegimeSettingsCase_ == 12) {
+              subBuilder = ((com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings) complianceRegimeSettings_).toBuilder();
             }
-          case 106:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
-
-              provisionedResourcesParent_ = s;
-              break;
+            complianceRegimeSettings_ =
+                input.readMessage(com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom((com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings) complianceRegimeSettings_);
+              complianceRegimeSettings_ = subBuilder.buildPartial();
             }
-          case 114:
-            {
-              com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder subBuilder =
-                  null;
-              if (kmsSettings_ != null) {
-                subBuilder = kmsSettings_.toBuilder();
-              }
-              kmsSettings_ =
-                  input.readMessage(
-                      com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(kmsSettings_);
-                kmsSettings_ = subBuilder.buildPartial();
-              }
+            complianceRegimeSettingsCase_ = 12;
+            break;
+          }
+          case 106: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              break;
+            provisionedResourcesParent_ = s;
+            break;
+          }
+          case 114: {
+            com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder subBuilder = null;
+            if (kmsSettings_ != null) {
+              subBuilder = kmsSettings_.toBuilder();
             }
-          case 122:
-            {
-              if (!((mutable_bitField0_ & 0x00000004) != 0)) {
-                resourceSettings_ =
-                    new java.util.ArrayList<
-                        com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings>();
-                mutable_bitField0_ |= 0x00000004;
-              }
-              resourceSettings_.add(
-                  input.readMessage(
-                      com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.parser(),
-                      extensionRegistry));
-              break;
+            kmsSettings_ = input.readMessage(com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(kmsSettings_);
+              kmsSettings_ = subBuilder.buildPartial();
             }
-          case 136:
-            {
-              int rawValue = input.readEnum();
 
-              kajEnrollmentState_ = rawValue;
-              break;
-            }
-          case 144:
-            {
-              enableSovereignControls_ = input.readBool();
-              break;
+            break;
+          }
+          case 122: {
+            if (!((mutable_bitField0_ & 0x00000004) != 0)) {
+              resourceSettings_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000004;
             }
-          case 162:
-            {
-              com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.Builder
-                  subBuilder = null;
-              if (saaEnrollmentResponse_ != null) {
-                subBuilder = saaEnrollmentResponse_.toBuilder();
-              }
-              saaEnrollmentResponse_ =
-                  input.readMessage(
-                      com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse
-                          .parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(saaEnrollmentResponse_);
-                saaEnrollmentResponse_ = subBuilder.buildPartial();
-              }
+            resourceSettings_.add(
+                input.readMessage(com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.parser(), extensionRegistry));
+            break;
+          }
+          case 136: {
+            int rawValue = input.readEnum();
 
-              break;
+            kajEnrollmentState_ = rawValue;
+            break;
+          }
+          case 144: {
+
+            enableSovereignControls_ = input.readBool();
+            break;
+          }
+          case 162: {
+            com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.Builder subBuilder = null;
+            if (saaEnrollmentResponse_ != null) {
+              subBuilder = saaEnrollmentResponse_.toBuilder();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            saaEnrollmentResponse_ = input.readMessage(com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(saaEnrollmentResponse_);
+              saaEnrollmentResponse_ = subBuilder.buildPartial();
+            }
+
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -335,7 +250,8 @@ private Workload(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         resources_ = java.util.Collections.unmodifiableList(resources_);
@@ -347,46 +263,41 @@ private Workload(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto
-        .internal_static_google_cloud_assuredworkloads_v1beta1_Workload_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_Workload_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 10:
         return internalGetLabels();
       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.assuredworkloads.v1beta1.AssuredworkloadsProto
-        .internal_static_google_cloud_assuredworkloads_v1beta1_Workload_fieldAccessorTable
+    return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_Workload_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.assuredworkloads.v1beta1.Workload.class,
-            com.google.cloud.assuredworkloads.v1beta1.Workload.Builder.class);
+            com.google.cloud.assuredworkloads.v1beta1.Workload.class, com.google.cloud.assuredworkloads.v1beta1.Workload.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * Supported Compliance Regimes.
    * 
* * Protobuf enum {@code google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime} */ - public enum ComplianceRegime implements com.google.protobuf.ProtocolMessageEnum { + public enum ComplianceRegime + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Unknown compliance regime.
      * 
@@ -395,8 +306,6 @@ public enum ComplianceRegime implements com.google.protobuf.ProtocolMessageEnum */ COMPLIANCE_REGIME_UNSPECIFIED(0), /** - * - * *
      * Information protection as per DoD IL4 requirements.
      * 
@@ -405,8 +314,6 @@ public enum ComplianceRegime implements com.google.protobuf.ProtocolMessageEnum */ IL4(1), /** - * - * *
      * Criminal Justice Information Services (CJIS) Security policies.
      * 
@@ -415,8 +322,6 @@ public enum ComplianceRegime implements com.google.protobuf.ProtocolMessageEnum */ CJIS(2), /** - * - * *
      * FedRAMP High data protection controls
      * 
@@ -425,8 +330,6 @@ public enum ComplianceRegime implements com.google.protobuf.ProtocolMessageEnum */ FEDRAMP_HIGH(3), /** - * - * *
      * FedRAMP Moderate data protection controls
      * 
@@ -435,8 +338,6 @@ public enum ComplianceRegime implements com.google.protobuf.ProtocolMessageEnum */ FEDRAMP_MODERATE(4), /** - * - * *
      * Assured Workloads For US Regions data protection controls
      * 
@@ -445,8 +346,6 @@ public enum ComplianceRegime implements com.google.protobuf.ProtocolMessageEnum */ US_REGIONAL_ACCESS(5), /** - * - * *
      * Health Insurance Portability and Accountability Act controls
      * 
@@ -455,8 +354,6 @@ public enum ComplianceRegime implements com.google.protobuf.ProtocolMessageEnum */ HIPAA(6), /** - * - * *
      * Health Information Trust Alliance controls
      * 
@@ -465,8 +362,6 @@ public enum ComplianceRegime implements com.google.protobuf.ProtocolMessageEnum */ HITRUST(7), /** - * - * *
      * Assured Workloads For EU Regions and Support controls
      * 
@@ -475,8 +370,6 @@ public enum ComplianceRegime implements com.google.protobuf.ProtocolMessageEnum */ EU_REGIONS_AND_SUPPORT(8), /** - * - * *
      * Assured Workloads For Canada Regions and Support controls
      * 
@@ -488,8 +381,6 @@ public enum ComplianceRegime implements com.google.protobuf.ProtocolMessageEnum ; /** - * - * *
      * Unknown compliance regime.
      * 
@@ -498,8 +389,6 @@ public enum ComplianceRegime implements com.google.protobuf.ProtocolMessageEnum */ public static final int COMPLIANCE_REGIME_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Information protection as per DoD IL4 requirements.
      * 
@@ -508,8 +397,6 @@ public enum ComplianceRegime implements com.google.protobuf.ProtocolMessageEnum */ public static final int IL4_VALUE = 1; /** - * - * *
      * Criminal Justice Information Services (CJIS) Security policies.
      * 
@@ -518,8 +405,6 @@ public enum ComplianceRegime implements com.google.protobuf.ProtocolMessageEnum */ public static final int CJIS_VALUE = 2; /** - * - * *
      * FedRAMP High data protection controls
      * 
@@ -528,8 +413,6 @@ public enum ComplianceRegime implements com.google.protobuf.ProtocolMessageEnum */ public static final int FEDRAMP_HIGH_VALUE = 3; /** - * - * *
      * FedRAMP Moderate data protection controls
      * 
@@ -538,8 +421,6 @@ public enum ComplianceRegime implements com.google.protobuf.ProtocolMessageEnum */ public static final int FEDRAMP_MODERATE_VALUE = 4; /** - * - * *
      * Assured Workloads For US Regions data protection controls
      * 
@@ -548,8 +429,6 @@ public enum ComplianceRegime implements com.google.protobuf.ProtocolMessageEnum */ public static final int US_REGIONAL_ACCESS_VALUE = 5; /** - * - * *
      * Health Insurance Portability and Accountability Act controls
      * 
@@ -558,8 +437,6 @@ public enum ComplianceRegime implements com.google.protobuf.ProtocolMessageEnum */ public static final int HIPAA_VALUE = 6; /** - * - * *
      * Health Information Trust Alliance controls
      * 
@@ -568,8 +445,6 @@ public enum ComplianceRegime implements com.google.protobuf.ProtocolMessageEnum */ public static final int HITRUST_VALUE = 7; /** - * - * *
      * Assured Workloads For EU Regions and Support controls
      * 
@@ -578,8 +453,6 @@ public enum ComplianceRegime implements com.google.protobuf.ProtocolMessageEnum */ public static final int EU_REGIONS_AND_SUPPORT_VALUE = 8; /** - * - * *
      * Assured Workloads For Canada Regions and Support controls
      * 
@@ -588,6 +461,7 @@ public enum ComplianceRegime implements com.google.protobuf.ProtocolMessageEnum */ public static final int CA_REGIONS_AND_SUPPORT_VALUE = 9; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -612,59 +486,47 @@ public static ComplianceRegime valueOf(int value) { */ public static ComplianceRegime forNumber(int value) { switch (value) { - case 0: - return COMPLIANCE_REGIME_UNSPECIFIED; - case 1: - return IL4; - case 2: - return CJIS; - case 3: - return FEDRAMP_HIGH; - case 4: - return FEDRAMP_MODERATE; - case 5: - return US_REGIONAL_ACCESS; - case 6: - return HIPAA; - case 7: - return HITRUST; - case 8: - return EU_REGIONS_AND_SUPPORT; - case 9: - return CA_REGIONS_AND_SUPPORT; - default: - return null; + case 0: return COMPLIANCE_REGIME_UNSPECIFIED; + case 1: return IL4; + case 2: return CJIS; + case 3: return FEDRAMP_HIGH; + case 4: return FEDRAMP_MODERATE; + case 5: return US_REGIONAL_ACCESS; + case 6: return HIPAA; + case 7: return HITRUST; + case 8: return EU_REGIONS_AND_SUPPORT; + case 9: return CA_REGIONS_AND_SUPPORT; + 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< + ComplianceRegime> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ComplianceRegime findValueByNumber(int number) { + return ComplianceRegime.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ComplianceRegime findValueByNumber(int number) { - return ComplianceRegime.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.assuredworkloads.v1beta1.Workload.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.assuredworkloads.v1beta1.Workload.getDescriptor().getEnumTypes().get(0); } private static final ComplianceRegime[] VALUES = values(); @@ -672,7 +534,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor public static ComplianceRegime 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; @@ -690,18 +553,15 @@ private ComplianceRegime(int value) { } /** - * - * *
    * Key Access Justifications(KAJ) Enrollment State.
    * 
* * Protobuf enum {@code google.cloud.assuredworkloads.v1beta1.Workload.KajEnrollmentState} */ - public enum KajEnrollmentState implements com.google.protobuf.ProtocolMessageEnum { + public enum KajEnrollmentState + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Default State for KAJ Enrollment.
      * 
@@ -710,8 +570,6 @@ public enum KajEnrollmentState implements com.google.protobuf.ProtocolMessageEnu */ KAJ_ENROLLMENT_STATE_UNSPECIFIED(0), /** - * - * *
      * Pending State for KAJ Enrollment.
      * 
@@ -720,8 +578,6 @@ public enum KajEnrollmentState implements com.google.protobuf.ProtocolMessageEnu */ KAJ_ENROLLMENT_STATE_PENDING(1), /** - * - * *
      * Complete State for KAJ Enrollment.
      * 
@@ -733,8 +589,6 @@ public enum KajEnrollmentState implements com.google.protobuf.ProtocolMessageEnu ; /** - * - * *
      * Default State for KAJ Enrollment.
      * 
@@ -743,8 +597,6 @@ public enum KajEnrollmentState implements com.google.protobuf.ProtocolMessageEnu */ public static final int KAJ_ENROLLMENT_STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Pending State for KAJ Enrollment.
      * 
@@ -753,8 +605,6 @@ public enum KajEnrollmentState implements com.google.protobuf.ProtocolMessageEnu */ public static final int KAJ_ENROLLMENT_STATE_PENDING_VALUE = 1; /** - * - * *
      * Complete State for KAJ Enrollment.
      * 
@@ -763,6 +613,7 @@ public enum KajEnrollmentState implements com.google.protobuf.ProtocolMessageEnu */ public static final int KAJ_ENROLLMENT_STATE_COMPLETE_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -787,14 +638,10 @@ public static KajEnrollmentState valueOf(int value) { */ public static KajEnrollmentState forNumber(int value) { switch (value) { - case 0: - return KAJ_ENROLLMENT_STATE_UNSPECIFIED; - case 1: - return KAJ_ENROLLMENT_STATE_PENDING; - case 2: - return KAJ_ENROLLMENT_STATE_COMPLETE; - default: - return null; + case 0: return KAJ_ENROLLMENT_STATE_UNSPECIFIED; + case 1: return KAJ_ENROLLMENT_STATE_PENDING; + case 2: return KAJ_ENROLLMENT_STATE_COMPLETE; + default: return null; } } @@ -802,31 +649,29 @@ public static KajEnrollmentState forNumber(int value) { internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + KajEnrollmentState> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public KajEnrollmentState findValueByNumber(int number) { + return KajEnrollmentState.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public KajEnrollmentState findValueByNumber(int number) { - return KajEnrollmentState.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.assuredworkloads.v1beta1.Workload.getDescriptor() - .getEnumTypes() - .get(1); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.assuredworkloads.v1beta1.Workload.getDescriptor().getEnumTypes().get(1); } private static final KajEnrollmentState[] VALUES = values(); @@ -834,7 +679,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor public static KajEnrollmentState 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; @@ -851,88 +697,72 @@ private KajEnrollmentState(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.assuredworkloads.v1beta1.Workload.KajEnrollmentState) } - public interface ResourceInfoOrBuilder - extends + public interface ResourceInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Resource identifier.
      * For a project this represents project_number.
      * 
* * int64 resource_id = 1; - * * @return The resourceId. */ long getResourceId(); /** - * - * *
      * Indicates the type of resource.
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType resource_type = 2; - * - * + * .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType resource_type = 2; * @return The enum numeric value on the wire for resourceType. */ int getResourceTypeValue(); /** - * - * *
      * Indicates the type of resource.
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType resource_type = 2; - * - * + * .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType resource_type = 2; * @return The resourceType. */ com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType getResourceType(); } /** - * - * *
    * Represent the resources that are children of this Workload.
    * 
* * Protobuf type {@code google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo} */ - public static final class ResourceInfo extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class ResourceInfo extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo) ResourceInfoOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ResourceInfo.newBuilder() to construct. private ResourceInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ResourceInfo() { resourceType_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ResourceInfo(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ResourceInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -951,25 +781,24 @@ private ResourceInfo( case 0: done = true; break; - case 8: - { - resourceId_ = input.readInt64(); - break; - } - case 16: - { - int rawValue = input.readEnum(); + case 8: { - resourceType_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + resourceId_ = input.readInt64(); + break; + } + case 16: { + int rawValue = input.readEnum(); + + resourceType_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -977,42 +806,36 @@ private ResourceInfo( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1beta1_Workload_ResourceInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_Workload_ResourceInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1beta1_Workload_ResourceInfo_fieldAccessorTable + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_Workload_ResourceInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.class, - com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.Builder.class); + com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.class, com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.Builder.class); } /** - * - * *
      * The type of resource.
      * 
* - * Protobuf enum {@code - * google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType} + * Protobuf enum {@code google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType} */ - public enum ResourceType implements com.google.protobuf.ProtocolMessageEnum { + public enum ResourceType + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
        * Unknown resource type.
        * 
@@ -1021,8 +844,6 @@ public enum ResourceType implements com.google.protobuf.ProtocolMessageEnum { */ RESOURCE_TYPE_UNSPECIFIED(0), /** - * - * *
        * Deprecated. Existing workloads will continue to support this, but new
        * CreateWorkloadRequests should not specify this as an input value.
@@ -1033,8 +854,6 @@ public enum ResourceType implements com.google.protobuf.ProtocolMessageEnum {
       @java.lang.Deprecated
       CONSUMER_PROJECT(1),
       /**
-       *
-       *
        * 
        * Consumer Folder.
        * 
@@ -1043,8 +862,6 @@ public enum ResourceType implements com.google.protobuf.ProtocolMessageEnum { */ CONSUMER_FOLDER(4), /** - * - * *
        * Consumer project containing encryption keys.
        * 
@@ -1053,8 +870,6 @@ public enum ResourceType implements com.google.protobuf.ProtocolMessageEnum { */ ENCRYPTION_KEYS_PROJECT(2), /** - * - * *
        * Keyring resource that hosts encryption keys.
        * 
@@ -1066,8 +881,6 @@ public enum ResourceType implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
        * Unknown resource type.
        * 
@@ -1076,8 +889,6 @@ public enum ResourceType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RESOURCE_TYPE_UNSPECIFIED_VALUE = 0; /** - * - * *
        * Deprecated. Existing workloads will continue to support this, but new
        * CreateWorkloadRequests should not specify this as an input value.
@@ -1087,8 +898,6 @@ public enum ResourceType implements com.google.protobuf.ProtocolMessageEnum {
        */
       @java.lang.Deprecated public static final int CONSUMER_PROJECT_VALUE = 1;
       /**
-       *
-       *
        * 
        * Consumer Folder.
        * 
@@ -1097,8 +906,6 @@ public enum ResourceType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CONSUMER_FOLDER_VALUE = 4; /** - * - * *
        * Consumer project containing encryption keys.
        * 
@@ -1107,8 +914,6 @@ public enum ResourceType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ENCRYPTION_KEYS_PROJECT_VALUE = 2; /** - * - * *
        * Keyring resource that hosts encryption keys.
        * 
@@ -1117,6 +922,7 @@ public enum ResourceType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int KEYRING_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -1141,55 +947,51 @@ public static ResourceType valueOf(int value) { */ public static ResourceType forNumber(int value) { switch (value) { - case 0: - return RESOURCE_TYPE_UNSPECIFIED; - case 1: - return CONSUMER_PROJECT; - case 4: - return CONSUMER_FOLDER; - case 2: - return ENCRYPTION_KEYS_PROJECT; - case 3: - return KEYRING; - default: - return null; + case 0: return RESOURCE_TYPE_UNSPECIFIED; + case 1: return CONSUMER_PROJECT; + case 4: return CONSUMER_FOLDER; + case 2: return ENCRYPTION_KEYS_PROJECT; + case 3: return KEYRING; + 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< + ResourceType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ResourceType findValueByNumber(int number) { + return ResourceType.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ResourceType findValueByNumber(int number) { - return ResourceType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.getDescriptor().getEnumTypes().get(0); } private static final ResourceType[] VALUES = values(); - public static ResourceType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static ResourceType 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; @@ -1209,15 +1011,12 @@ private ResourceType(int value) { public static final int RESOURCE_ID_FIELD_NUMBER = 1; private long resourceId_; /** - * - * *
      * Resource identifier.
      * For a project this represents project_number.
      * 
* * int64 resource_id = 1; - * * @return The resourceId. */ @java.lang.Override @@ -1228,50 +1027,31 @@ public long getResourceId() { public static final int RESOURCE_TYPE_FIELD_NUMBER = 2; private int resourceType_; /** - * - * *
      * Indicates the type of resource.
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType resource_type = 2; - * - * + * .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType resource_type = 2; * @return The enum numeric value on the wire for resourceType. */ - @java.lang.Override - public int getResourceTypeValue() { + @java.lang.Override public int getResourceTypeValue() { return resourceType_; } /** - * - * *
      * Indicates the type of resource.
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType resource_type = 2; - * - * + * .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType resource_type = 2; * @return The resourceType. */ - @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType - getResourceType() { + @java.lang.Override public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType getResourceType() { @SuppressWarnings("deprecation") - com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType result = - com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType.valueOf( - resourceType_); - return result == null - ? com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType - .UNRECOGNIZED - : result; + com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType result = com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType.valueOf(resourceType_); + return result == null ? com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1283,14 +1063,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 (resourceId_ != 0L) { output.writeInt64(1, resourceId_); } - if (resourceType_ - != com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType - .RESOURCE_TYPE_UNSPECIFIED - .getNumber()) { + if (resourceType_ != com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType.RESOURCE_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(2, resourceType_); } unknownFields.writeTo(output); @@ -1303,13 +1081,12 @@ public int getSerializedSize() { size = 0; if (resourceId_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, resourceId_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, resourceId_); } - if (resourceType_ - != com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType - .RESOURCE_TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, resourceType_); + if (resourceType_ != com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType.RESOURCE_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, resourceType_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1319,15 +1096,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.assuredworkloads.v1beta1.Workload.ResourceInfo)) { return super.equals(obj); } - com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo other = - (com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo) obj; + com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo other = (com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo) obj; - if (getResourceId() != other.getResourceId()) return false; + if (getResourceId() + != other.getResourceId()) return false; if (resourceType_ != other.resourceType_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -1341,7 +1118,8 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + RESOURCE_ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getResourceId()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getResourceId()); hash = (37 * hash) + RESOURCE_TYPE_FIELD_NUMBER; hash = (53 * hash) + resourceType_; hash = (29 * hash) + unknownFields.hashCode(); @@ -1350,95 +1128,87 @@ public int hashCode() { } public static com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo 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.assuredworkloads.v1beta1.Workload.ResourceInfo 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.assuredworkloads.v1beta1.Workload.ResourceInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo 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.assuredworkloads.v1beta1.Workload.ResourceInfo parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo 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.assuredworkloads.v1beta1.Workload.ResourceInfo parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo 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.assuredworkloads.v1beta1.Workload.ResourceInfo - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo - parseDelimitedFrom( - java.io.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.assuredworkloads.v1beta1.Workload.ResourceInfo parseDelimitedFrom( + java.io.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.assuredworkloads.v1beta1.Workload.ResourceInfo 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.assuredworkloads.v1beta1.Workload.ResourceInfo 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.assuredworkloads.v1beta1.Workload.ResourceInfo prototype) { + public static Builder newBuilder(com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo 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 @@ -1448,49 +1218,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Represent the resources that are children of this Workload.
      * 
* * Protobuf type {@code google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo} */ - 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.assuredworkloads.v1beta1.Workload.ResourceInfo) com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1beta1_Workload_ResourceInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_Workload_ResourceInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1beta1_Workload_ResourceInfo_fieldAccessorTable + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_Workload_ResourceInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.class, - com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.Builder.class); + com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.class, com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.Builder.class); } - // Construct using - // com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.newBuilder() + // Construct using com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1502,14 +1267,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1beta1_Workload_ResourceInfo_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_Workload_ResourceInfo_descriptor; } @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo - getDefaultInstanceForType() { + public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo getDefaultInstanceForType() { return com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.getDefaultInstance(); } @@ -1524,8 +1288,7 @@ public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo build() { @java.lang.Override public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo buildPartial() { - com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo result = - new com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo(this); + com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo result = new com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo(this); result.resourceId_ = resourceId_; result.resourceType_ = resourceType_; onBuilt(); @@ -1536,52 +1299,46 @@ public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo buildPart public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + 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.assuredworkloads.v1beta1.Workload.ResourceInfo) { - return mergeFrom((com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo) other); + return mergeFrom((com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo other) { - if (other - == com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo other) { + if (other == com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.getDefaultInstance()) return this; if (other.getResourceId() != 0L) { setResourceId(other.getResourceId()); } @@ -1607,9 +1364,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1619,17 +1374,14 @@ public Builder mergeFrom( return this; } - private long resourceId_; + private long resourceId_ ; /** - * - * *
        * Resource identifier.
        * For a project this represents project_number.
        * 
* * int64 resource_id = 1; - * * @return The resourceId. */ @java.lang.Override @@ -1637,38 +1389,32 @@ public long getResourceId() { return resourceId_; } /** - * - * *
        * Resource identifier.
        * For a project this represents project_number.
        * 
* * int64 resource_id = 1; - * * @param value The resourceId to set. * @return This builder for chaining. */ public Builder setResourceId(long value) { - + resourceId_ = value; onChanged(); return this; } /** - * - * *
        * Resource identifier.
        * For a project this represents project_number.
        * 
* * int64 resource_id = 1; - * * @return This builder for chaining. */ public Builder clearResourceId() { - + resourceId_ = 0L; onChanged(); return this; @@ -1676,111 +1422,77 @@ public Builder clearResourceId() { private int resourceType_ = 0; /** - * - * *
        * Indicates the type of resource.
        * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType resource_type = 2; - * - * + * .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType resource_type = 2; * @return The enum numeric value on the wire for resourceType. */ - @java.lang.Override - public int getResourceTypeValue() { + @java.lang.Override public int getResourceTypeValue() { return resourceType_; } /** - * - * *
        * Indicates the type of resource.
        * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType resource_type = 2; - * - * + * .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType resource_type = 2; * @param value The enum numeric value on the wire for resourceType to set. * @return This builder for chaining. */ public Builder setResourceTypeValue(int value) { - + resourceType_ = value; onChanged(); return this; } /** - * - * *
        * Indicates the type of resource.
        * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType resource_type = 2; - * - * + * .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType resource_type = 2; * @return The resourceType. */ @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType - getResourceType() { + public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType getResourceType() { @SuppressWarnings("deprecation") - com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType result = - com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType.valueOf( - resourceType_); - return result == null - ? com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType - .UNRECOGNIZED - : result; + com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType result = com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType.valueOf(resourceType_); + return result == null ? com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType.UNRECOGNIZED : result; } /** - * - * *
        * Indicates the type of resource.
        * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType resource_type = 2; - * - * + * .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType resource_type = 2; * @param value The resourceType to set. * @return This builder for chaining. */ - public Builder setResourceType( - com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType value) { + public Builder setResourceType(com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType value) { if (value == null) { throw new NullPointerException(); } - + resourceType_ = value.getNumber(); onChanged(); return this; } /** - * - * *
        * Indicates the type of resource.
        * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType resource_type = 2; - * - * + * .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType resource_type = 2; * @return This builder for chaining. */ public Builder clearResourceType() { - + resourceType_ = 0; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1793,32 +1505,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo) } // @@protoc_insertion_point(class_scope:google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo) - private static final com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo - DEFAULT_INSTANCE; - + private static final com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo(); } - public static com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo - getDefaultInstance() { + public static com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ResourceInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ResourceInfo(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResourceInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ResourceInfo(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1830,143 +1540,113 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo - getDefaultInstanceForType() { + public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface KMSSettingsOrBuilder - extends + public interface KMSSettingsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Required. Input only. Immutable. The time at which the Key Management
      * Service will automatically create a new version of the crypto key and
      * mark it as the primary.
      * 
* - * - * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; * @return Whether the nextRotationTime field is set. */ boolean hasNextRotationTime(); /** - * - * *
      * Required. Input only. Immutable. The time at which the Key Management
      * Service will automatically create a new version of the crypto key and
      * mark it as the primary.
      * 
* - * - * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; * @return The nextRotationTime. */ com.google.protobuf.Timestamp getNextRotationTime(); /** - * - * *
      * Required. Input only. Immutable. The time at which the Key Management
      * Service will automatically create a new version of the crypto key and
      * mark it as the primary.
      * 
* - * - * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ com.google.protobuf.TimestampOrBuilder getNextRotationTimeOrBuilder(); /** - * - * *
      * Required. Input only. Immutable. [next_rotation_time] will be advanced by
      * this period when the Key Management Service automatically rotates a key.
      * Must be at least 24 hours and at most 876,000 hours.
      * 
* - * - * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; * @return Whether the rotationPeriod field is set. */ boolean hasRotationPeriod(); /** - * - * *
      * Required. Input only. Immutable. [next_rotation_time] will be advanced by
      * this period when the Key Management Service automatically rotates a key.
      * Must be at least 24 hours and at most 876,000 hours.
      * 
* - * - * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; * @return The rotationPeriod. */ com.google.protobuf.Duration getRotationPeriod(); /** - * - * *
      * Required. Input only. Immutable. [next_rotation_time] will be advanced by
      * this period when the Key Management Service automatically rotates a key.
      * Must be at least 24 hours and at most 876,000 hours.
      * 
* - * - * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ com.google.protobuf.DurationOrBuilder getRotationPeriodOrBuilder(); } /** - * - * *
    * Settings specific to the Key Management Service.
    * 
* * Protobuf type {@code google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings} */ - public static final class KMSSettings extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class KMSSettings extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings) KMSSettingsOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use KMSSettings.newBuilder() to construct. private KMSSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private KMSSettings() {} + private KMSSettings() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new KMSSettings(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private KMSSettings( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1985,43 +1665,39 @@ private KMSSettings( case 0: done = true; break; - case 10: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (nextRotationTime_ != null) { - subBuilder = nextRotationTime_.toBuilder(); - } - nextRotationTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(nextRotationTime_); - nextRotationTime_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (nextRotationTime_ != null) { + subBuilder = nextRotationTime_.toBuilder(); + } + nextRotationTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(nextRotationTime_); + nextRotationTime_ = subBuilder.buildPartial(); } - case 18: - { - com.google.protobuf.Duration.Builder subBuilder = null; - if (rotationPeriod_ != null) { - subBuilder = rotationPeriod_.toBuilder(); - } - rotationPeriod_ = - input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(rotationPeriod_); - rotationPeriod_ = subBuilder.buildPartial(); - } - break; + break; + } + case 18: { + com.google.protobuf.Duration.Builder subBuilder = null; + if (rotationPeriod_ != null) { + subBuilder = rotationPeriod_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + rotationPeriod_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(rotationPeriod_); + rotationPeriod_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2029,43 +1705,36 @@ private KMSSettings( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1beta1_Workload_KMSSettings_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_Workload_KMSSettings_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1beta1_Workload_KMSSettings_fieldAccessorTable + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_Workload_KMSSettings_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.class, - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder.class); + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.class, com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder.class); } public static final int NEXT_ROTATION_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp nextRotationTime_; /** - * - * *
      * Required. Input only. Immutable. The time at which the Key Management
      * Service will automatically create a new version of the crypto key and
      * mark it as the primary.
      * 
* - * - * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; * @return Whether the nextRotationTime field is set. */ @java.lang.Override @@ -2073,38 +1742,27 @@ public boolean hasNextRotationTime() { return nextRotationTime_ != null; } /** - * - * *
      * Required. Input only. Immutable. The time at which the Key Management
      * Service will automatically create a new version of the crypto key and
      * mark it as the primary.
      * 
* - * - * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; * @return The nextRotationTime. */ @java.lang.Override public com.google.protobuf.Timestamp getNextRotationTime() { - return nextRotationTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : nextRotationTime_; + return nextRotationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : nextRotationTime_; } /** - * - * *
      * Required. Input only. Immutable. The time at which the Key Management
      * Service will automatically create a new version of the crypto key and
      * mark it as the primary.
      * 
* - * - * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getNextRotationTimeOrBuilder() { @@ -2114,18 +1772,13 @@ public com.google.protobuf.TimestampOrBuilder getNextRotationTimeOrBuilder() { public static final int ROTATION_PERIOD_FIELD_NUMBER = 2; private com.google.protobuf.Duration rotationPeriod_; /** - * - * *
      * Required. Input only. Immutable. [next_rotation_time] will be advanced by
      * this period when the Key Management Service automatically rotates a key.
      * Must be at least 24 hours and at most 876,000 hours.
      * 
* - * - * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; * @return Whether the rotationPeriod field is set. */ @java.lang.Override @@ -2133,38 +1786,27 @@ public boolean hasRotationPeriod() { return rotationPeriod_ != null; } /** - * - * *
      * Required. Input only. Immutable. [next_rotation_time] will be advanced by
      * this period when the Key Management Service automatically rotates a key.
      * Must be at least 24 hours and at most 876,000 hours.
      * 
* - * - * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; * @return The rotationPeriod. */ @java.lang.Override public com.google.protobuf.Duration getRotationPeriod() { - return rotationPeriod_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : rotationPeriod_; + return rotationPeriod_ == null ? com.google.protobuf.Duration.getDefaultInstance() : rotationPeriod_; } /** - * - * *
      * Required. Input only. Immutable. [next_rotation_time] will be advanced by
      * this period when the Key Management Service automatically rotates a key.
      * Must be at least 24 hours and at most 876,000 hours.
      * 
* - * - * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getRotationPeriodOrBuilder() { @@ -2172,7 +1814,6 @@ public com.google.protobuf.DurationOrBuilder getRotationPeriodOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2184,7 +1825,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 (nextRotationTime_ != null) { output.writeMessage(1, getNextRotationTime()); } @@ -2201,10 +1843,12 @@ public int getSerializedSize() { size = 0; if (nextRotationTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getNextRotationTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getNextRotationTime()); } if (rotationPeriod_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRotationPeriod()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getRotationPeriod()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2214,21 +1858,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings)) { return super.equals(obj); } - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings other = - (com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings) obj; + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings other = (com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings) obj; if (hasNextRotationTime() != other.hasNextRotationTime()) return false; if (hasNextRotationTime()) { - if (!getNextRotationTime().equals(other.getNextRotationTime())) return false; + if (!getNextRotationTime() + .equals(other.getNextRotationTime())) return false; } if (hasRotationPeriod() != other.hasRotationPeriod()) return false; if (hasRotationPeriod()) { - if (!getRotationPeriod().equals(other.getRotationPeriod())) return false; + if (!getRotationPeriod() + .equals(other.getRotationPeriod())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -2255,94 +1900,87 @@ public int hashCode() { } public static com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings 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.assuredworkloads.v1beta1.Workload.KMSSettings 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.assuredworkloads.v1beta1.Workload.KMSSettings parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings 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.assuredworkloads.v1beta1.Workload.KMSSettings parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings 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.assuredworkloads.v1beta1.Workload.KMSSettings parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings 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.assuredworkloads.v1beta1.Workload.KMSSettings parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings 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.assuredworkloads.v1beta1.Workload.KMSSettings 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.assuredworkloads.v1beta1.Workload.KMSSettings 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.assuredworkloads.v1beta1.Workload.KMSSettings prototype) { + public static Builder newBuilder(com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings 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 @@ -2352,32 +1990,27 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Settings specific to the Key Management Service.
      * 
* * Protobuf type {@code google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings} */ - 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.assuredworkloads.v1beta1.Workload.KMSSettings) com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1beta1_Workload_KMSSettings_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_Workload_KMSSettings_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1beta1_Workload_KMSSettings_fieldAccessorTable + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_Workload_KMSSettings_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.class, - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder.class); + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.class, com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder.class); } // Construct using com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.newBuilder() @@ -2385,15 +2018,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -2413,14 +2047,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1beta1_Workload_KMSSettings_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_Workload_KMSSettings_descriptor; } @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings - getDefaultInstanceForType() { + public com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings getDefaultInstanceForType() { return com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.getDefaultInstance(); } @@ -2435,8 +2068,7 @@ public com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings build() { @java.lang.Override public com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings buildPartial() { - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings result = - new com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings(this); + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings result = new com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings(this); if (nextRotationTimeBuilder_ == null) { result.nextRotationTime_ = nextRotationTime_; } else { @@ -2455,52 +2087,46 @@ public com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings buildParti public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + 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.assuredworkloads.v1beta1.Workload.KMSSettings) { - return mergeFrom((com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings) other); + return mergeFrom((com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings other) { - if (other - == com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings other) { + if (other == com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.getDefaultInstance()) return this; if (other.hasNextRotationTime()) { mergeNextRotationTime(other.getNextRotationTime()); } @@ -2526,9 +2152,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -2540,64 +2164,45 @@ public Builder mergeFrom( private com.google.protobuf.Timestamp nextRotationTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - nextRotationTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> nextRotationTimeBuilder_; /** - * - * *
        * Required. Input only. Immutable. The time at which the Key Management
        * Service will automatically create a new version of the crypto key and
        * mark it as the primary.
        * 
* - * - * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; * @return Whether the nextRotationTime field is set. */ public boolean hasNextRotationTime() { return nextRotationTimeBuilder_ != null || nextRotationTime_ != null; } /** - * - * *
        * Required. Input only. Immutable. The time at which the Key Management
        * Service will automatically create a new version of the crypto key and
        * mark it as the primary.
        * 
* - * - * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; * @return The nextRotationTime. */ public com.google.protobuf.Timestamp getNextRotationTime() { if (nextRotationTimeBuilder_ == null) { - return nextRotationTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : nextRotationTime_; + return nextRotationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : nextRotationTime_; } else { return nextRotationTimeBuilder_.getMessage(); } } /** - * - * *
        * Required. Input only. Immutable. The time at which the Key Management
        * Service will automatically create a new version of the crypto key and
        * mark it as the primary.
        * 
* - * - * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ public Builder setNextRotationTime(com.google.protobuf.Timestamp value) { if (nextRotationTimeBuilder_ == null) { @@ -2613,19 +2218,16 @@ public Builder setNextRotationTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
        * Required. Input only. Immutable. The time at which the Key Management
        * Service will automatically create a new version of the crypto key and
        * mark it as the primary.
        * 
* - * - * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ - public Builder setNextRotationTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setNextRotationTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (nextRotationTimeBuilder_ == null) { nextRotationTime_ = builderForValue.build(); onChanged(); @@ -2636,25 +2238,19 @@ public Builder setNextRotationTime(com.google.protobuf.Timestamp.Builder builder return this; } /** - * - * *
        * Required. Input only. Immutable. The time at which the Key Management
        * Service will automatically create a new version of the crypto key and
        * mark it as the primary.
        * 
* - * - * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ public Builder mergeNextRotationTime(com.google.protobuf.Timestamp value) { if (nextRotationTimeBuilder_ == null) { if (nextRotationTime_ != null) { nextRotationTime_ = - com.google.protobuf.Timestamp.newBuilder(nextRotationTime_) - .mergeFrom(value) - .buildPartial(); + com.google.protobuf.Timestamp.newBuilder(nextRotationTime_).mergeFrom(value).buildPartial(); } else { nextRotationTime_ = value; } @@ -2666,17 +2262,13 @@ public Builder mergeNextRotationTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
        * Required. Input only. Immutable. The time at which the Key Management
        * Service will automatically create a new version of the crypto key and
        * mark it as the primary.
        * 
* - * - * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ public Builder clearNextRotationTime() { if (nextRotationTimeBuilder_ == null) { @@ -2690,70 +2282,54 @@ public Builder clearNextRotationTime() { return this; } /** - * - * *
        * Required. Input only. Immutable. The time at which the Key Management
        * Service will automatically create a new version of the crypto key and
        * mark it as the primary.
        * 
* - * - * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ public com.google.protobuf.Timestamp.Builder getNextRotationTimeBuilder() { - + onChanged(); return getNextRotationTimeFieldBuilder().getBuilder(); } /** - * - * *
        * Required. Input only. Immutable. The time at which the Key Management
        * Service will automatically create a new version of the crypto key and
        * mark it as the primary.
        * 
* - * - * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ public com.google.protobuf.TimestampOrBuilder getNextRotationTimeOrBuilder() { if (nextRotationTimeBuilder_ != null) { return nextRotationTimeBuilder_.getMessageOrBuilder(); } else { - return nextRotationTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : nextRotationTime_; + return nextRotationTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : nextRotationTime_; } } /** - * - * *
        * Required. Input only. Immutable. The time at which the Key Management
        * Service will automatically create a new version of the crypto key and
        * mark it as the primary.
        * 
* - * - * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ 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> getNextRotationTimeFieldBuilder() { if (nextRotationTimeBuilder_ == null) { - nextRotationTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getNextRotationTime(), getParentForChildren(), isClean()); + nextRotationTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getNextRotationTime(), + getParentForChildren(), + isClean()); nextRotationTime_ = null; } return nextRotationTimeBuilder_; @@ -2761,64 +2337,45 @@ public com.google.protobuf.TimestampOrBuilder getNextRotationTimeOrBuilder() { private com.google.protobuf.Duration rotationPeriod_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - rotationPeriodBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> rotationPeriodBuilder_; /** - * - * *
        * Required. Input only. Immutable. [next_rotation_time] will be advanced by
        * this period when the Key Management Service automatically rotates a key.
        * Must be at least 24 hours and at most 876,000 hours.
        * 
* - * - * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; * @return Whether the rotationPeriod field is set. */ public boolean hasRotationPeriod() { return rotationPeriodBuilder_ != null || rotationPeriod_ != null; } /** - * - * *
        * Required. Input only. Immutable. [next_rotation_time] will be advanced by
        * this period when the Key Management Service automatically rotates a key.
        * Must be at least 24 hours and at most 876,000 hours.
        * 
* - * - * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; * @return The rotationPeriod. */ public com.google.protobuf.Duration getRotationPeriod() { if (rotationPeriodBuilder_ == null) { - return rotationPeriod_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : rotationPeriod_; + return rotationPeriod_ == null ? com.google.protobuf.Duration.getDefaultInstance() : rotationPeriod_; } else { return rotationPeriodBuilder_.getMessage(); } } /** - * - * *
        * Required. Input only. Immutable. [next_rotation_time] will be advanced by
        * this period when the Key Management Service automatically rotates a key.
        * Must be at least 24 hours and at most 876,000 hours.
        * 
* - * - * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ public Builder setRotationPeriod(com.google.protobuf.Duration value) { if (rotationPeriodBuilder_ == null) { @@ -2834,19 +2391,16 @@ public Builder setRotationPeriod(com.google.protobuf.Duration value) { return this; } /** - * - * *
        * Required. Input only. Immutable. [next_rotation_time] will be advanced by
        * this period when the Key Management Service automatically rotates a key.
        * Must be at least 24 hours and at most 876,000 hours.
        * 
* - * - * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ - public Builder setRotationPeriod(com.google.protobuf.Duration.Builder builderForValue) { + public Builder setRotationPeriod( + com.google.protobuf.Duration.Builder builderForValue) { if (rotationPeriodBuilder_ == null) { rotationPeriod_ = builderForValue.build(); onChanged(); @@ -2857,25 +2411,19 @@ public Builder setRotationPeriod(com.google.protobuf.Duration.Builder builderFor return this; } /** - * - * *
        * Required. Input only. Immutable. [next_rotation_time] will be advanced by
        * this period when the Key Management Service automatically rotates a key.
        * Must be at least 24 hours and at most 876,000 hours.
        * 
* - * - * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ public Builder mergeRotationPeriod(com.google.protobuf.Duration value) { if (rotationPeriodBuilder_ == null) { if (rotationPeriod_ != null) { rotationPeriod_ = - com.google.protobuf.Duration.newBuilder(rotationPeriod_) - .mergeFrom(value) - .buildPartial(); + com.google.protobuf.Duration.newBuilder(rotationPeriod_).mergeFrom(value).buildPartial(); } else { rotationPeriod_ = value; } @@ -2887,17 +2435,13 @@ public Builder mergeRotationPeriod(com.google.protobuf.Duration value) { return this; } /** - * - * *
        * Required. Input only. Immutable. [next_rotation_time] will be advanced by
        * this period when the Key Management Service automatically rotates a key.
        * Must be at least 24 hours and at most 876,000 hours.
        * 
* - * - * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ public Builder clearRotationPeriod() { if (rotationPeriodBuilder_ == null) { @@ -2911,75 +2455,58 @@ public Builder clearRotationPeriod() { return this; } /** - * - * *
        * Required. Input only. Immutable. [next_rotation_time] will be advanced by
        * this period when the Key Management Service automatically rotates a key.
        * Must be at least 24 hours and at most 876,000 hours.
        * 
* - * - * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ public com.google.protobuf.Duration.Builder getRotationPeriodBuilder() { - + onChanged(); return getRotationPeriodFieldBuilder().getBuilder(); } /** - * - * *
        * Required. Input only. Immutable. [next_rotation_time] will be advanced by
        * this period when the Key Management Service automatically rotates a key.
        * Must be at least 24 hours and at most 876,000 hours.
        * 
* - * - * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ public com.google.protobuf.DurationOrBuilder getRotationPeriodOrBuilder() { if (rotationPeriodBuilder_ != null) { return rotationPeriodBuilder_.getMessageOrBuilder(); } else { - return rotationPeriod_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : rotationPeriod_; + return rotationPeriod_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : rotationPeriod_; } } /** - * - * *
        * Required. Input only. Immutable. [next_rotation_time] will be advanced by
        * this period when the Key Management Service automatically rotates a key.
        * Must be at least 24 hours and at most 876,000 hours.
        * 
* - * - * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getRotationPeriodFieldBuilder() { if (rotationPeriodBuilder_ == null) { - rotationPeriodBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getRotationPeriod(), getParentForChildren(), isClean()); + rotationPeriodBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getRotationPeriod(), + getParentForChildren(), + isClean()); rotationPeriod_ = null; } return rotationPeriodBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2992,32 +2519,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings) } // @@protoc_insertion_point(class_scope:google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings) - private static final com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings - DEFAULT_INSTANCE; - + private static final com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings(); } - public static com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings - getDefaultInstance() { + public static com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public KMSSettings parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new KMSSettings(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public KMSSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new KMSSettings(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3029,96 +2554,77 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings - getDefaultInstanceForType() { + public com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - @java.lang.Deprecated - public interface IL4SettingsOrBuilder - extends + @java.lang.Deprecated public interface IL4SettingsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Required. Input only. Immutable. Settings used to create a CMEK crypto
      * key.
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; * @return Whether the kmsSettings field is set. */ boolean hasKmsSettings(); /** - * - * *
      * Required. Input only. Immutable. Settings used to create a CMEK crypto
      * key.
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; * @return The kmsSettings. */ com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings getKmsSettings(); /** - * - * *
      * Required. Input only. Immutable. Settings used to create a CMEK crypto
      * key.
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder - getKmsSettingsOrBuilder(); + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder getKmsSettingsOrBuilder(); } /** - * - * *
    * Settings specific to resources needed for IL4.
    * 
* * Protobuf type {@code google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings} */ - @java.lang.Deprecated - public static final class IL4Settings extends com.google.protobuf.GeneratedMessageV3 - implements + @java.lang.Deprecated public static final class IL4Settings extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings) IL4SettingsOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use IL4Settings.newBuilder() to construct. private IL4Settings(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private IL4Settings() {} + private IL4Settings() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new IL4Settings(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private IL4Settings( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -3137,31 +2643,26 @@ private IL4Settings( case 0: done = true; break; - case 10: - { - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder subBuilder = - null; - if (kmsSettings_ != null) { - subBuilder = kmsSettings_.toBuilder(); - } - kmsSettings_ = - input.readMessage( - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(kmsSettings_); - kmsSettings_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder subBuilder = null; + if (kmsSettings_ != null) { + subBuilder = kmsSettings_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + kmsSettings_ = input.readMessage(com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(kmsSettings_); + kmsSettings_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -3169,42 +2670,35 @@ private IL4Settings( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1beta1_Workload_IL4Settings_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_Workload_IL4Settings_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1beta1_Workload_IL4Settings_fieldAccessorTable + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_Workload_IL4Settings_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings.class, - com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings.Builder.class); + com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings.class, com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings.Builder.class); } public static final int KMS_SETTINGS_FIELD_NUMBER = 1; private com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kmsSettings_; /** - * - * *
      * Required. Input only. Immutable. Settings used to create a CMEK crypto
      * key.
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; * @return Whether the kmsSettings field is set. */ @java.lang.Override @@ -3212,45 +2706,32 @@ public boolean hasKmsSettings() { return kmsSettings_ != null; } /** - * - * *
      * Required. Input only. Immutable. Settings used to create a CMEK crypto
      * key.
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; * @return The kmsSettings. */ @java.lang.Override public com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings getKmsSettings() { - return kmsSettings_ == null - ? com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.getDefaultInstance() - : kmsSettings_; + return kmsSettings_ == null ? com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.getDefaultInstance() : kmsSettings_; } /** - * - * *
      * Required. Input only. Immutable. Settings used to create a CMEK crypto
      * key.
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder - getKmsSettingsOrBuilder() { + public com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder getKmsSettingsOrBuilder() { return getKmsSettings(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3262,7 +2743,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 (kmsSettings_ != null) { output.writeMessage(1, getKmsSettings()); } @@ -3276,7 +2758,8 @@ public int getSerializedSize() { size = 0; if (kmsSettings_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getKmsSettings()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getKmsSettings()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -3286,17 +2769,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.assuredworkloads.v1beta1.Workload.IL4Settings)) { return super.equals(obj); } - com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings other = - (com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings) obj; + com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings other = (com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings) obj; if (hasKmsSettings() != other.hasKmsSettings()) return false; if (hasKmsSettings()) { - if (!getKmsSettings().equals(other.getKmsSettings())) return false; + if (!getKmsSettings() + .equals(other.getKmsSettings())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -3319,94 +2802,87 @@ public int hashCode() { } public static com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings 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.assuredworkloads.v1beta1.Workload.IL4Settings 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.assuredworkloads.v1beta1.Workload.IL4Settings parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings 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.assuredworkloads.v1beta1.Workload.IL4Settings parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings 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.assuredworkloads.v1beta1.Workload.IL4Settings parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings 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.assuredworkloads.v1beta1.Workload.IL4Settings parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings 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.assuredworkloads.v1beta1.Workload.IL4Settings 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.assuredworkloads.v1beta1.Workload.IL4Settings 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.assuredworkloads.v1beta1.Workload.IL4Settings prototype) { + public static Builder newBuilder(com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings 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 @@ -3416,32 +2892,27 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Settings specific to resources needed for IL4.
      * 
* * Protobuf type {@code google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings} */ - 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.assuredworkloads.v1beta1.Workload.IL4Settings) com.google.cloud.assuredworkloads.v1beta1.Workload.IL4SettingsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1beta1_Workload_IL4Settings_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_Workload_IL4Settings_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1beta1_Workload_IL4Settings_fieldAccessorTable + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_Workload_IL4Settings_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings.class, - com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings.Builder.class); + com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings.class, com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings.Builder.class); } // Construct using com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings.newBuilder() @@ -3449,15 +2920,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -3471,14 +2943,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1beta1_Workload_IL4Settings_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_Workload_IL4Settings_descriptor; } @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings - getDefaultInstanceForType() { + public com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings getDefaultInstanceForType() { return com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings.getDefaultInstance(); } @@ -3493,8 +2964,7 @@ public com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings build() { @java.lang.Override public com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings buildPartial() { - com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings result = - new com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings(this); + com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings result = new com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings(this); if (kmsSettingsBuilder_ == null) { result.kmsSettings_ = kmsSettings_; } else { @@ -3508,52 +2978,46 @@ public com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings buildParti public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + 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.assuredworkloads.v1beta1.Workload.IL4Settings) { - return mergeFrom((com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings) other); + return mergeFrom((com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings other) { - if (other - == com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings other) { + if (other == com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings.getDefaultInstance()) return this; if (other.hasKmsSettings()) { mergeKmsSettings(other.getKmsSettings()); } @@ -3576,9 +3040,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -3590,64 +3052,44 @@ public Builder mergeFrom( private com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kmsSettings_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings, - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder, - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder> - kmsSettingsBuilder_; + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings, com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder, com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder> kmsSettingsBuilder_; /** - * - * *
        * Required. Input only. Immutable. Settings used to create a CMEK crypto
        * key.
        * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; * @return Whether the kmsSettings field is set. */ public boolean hasKmsSettings() { return kmsSettingsBuilder_ != null || kmsSettings_ != null; } /** - * - * *
        * Required. Input only. Immutable. Settings used to create a CMEK crypto
        * key.
        * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; * @return The kmsSettings. */ public com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings getKmsSettings() { if (kmsSettingsBuilder_ == null) { - return kmsSettings_ == null - ? com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.getDefaultInstance() - : kmsSettings_; + return kmsSettings_ == null ? com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.getDefaultInstance() : kmsSettings_; } else { return kmsSettingsBuilder_.getMessage(); } } /** - * - * *
        * Required. Input only. Immutable. Settings used to create a CMEK crypto
        * key.
        * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ - public Builder setKmsSettings( - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings value) { + public Builder setKmsSettings(com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings value) { if (kmsSettingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3661,16 +3103,12 @@ public Builder setKmsSettings( return this; } /** - * - * *
        * Required. Input only. Immutable. Settings used to create a CMEK crypto
        * key.
        * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ public Builder setKmsSettings( com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder builderForValue) { @@ -3684,26 +3122,18 @@ public Builder setKmsSettings( return this; } /** - * - * *
        * Required. Input only. Immutable. Settings used to create a CMEK crypto
        * key.
        * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ - public Builder mergeKmsSettings( - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings value) { + public Builder mergeKmsSettings(com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings value) { if (kmsSettingsBuilder_ == null) { if (kmsSettings_ != null) { kmsSettings_ = - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.newBuilder( - kmsSettings_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.newBuilder(kmsSettings_).mergeFrom(value).buildPartial(); } else { kmsSettings_ = value; } @@ -3715,16 +3145,12 @@ public Builder mergeKmsSettings( return this; } /** - * - * *
        * Required. Input only. Immutable. Settings used to create a CMEK crypto
        * key.
        * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ public Builder clearKmsSettings() { if (kmsSettingsBuilder_ == null) { @@ -3738,74 +3164,55 @@ public Builder clearKmsSettings() { return this; } /** - * - * *
        * Required. Input only. Immutable. Settings used to create a CMEK crypto
        * key.
        * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ - public com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder - getKmsSettingsBuilder() { - + public com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder getKmsSettingsBuilder() { + onChanged(); return getKmsSettingsFieldBuilder().getBuilder(); } /** - * - * *
        * Required. Input only. Immutable. Settings used to create a CMEK crypto
        * key.
        * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ - public com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder - getKmsSettingsOrBuilder() { + public com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder getKmsSettingsOrBuilder() { if (kmsSettingsBuilder_ != null) { return kmsSettingsBuilder_.getMessageOrBuilder(); } else { - return kmsSettings_ == null - ? com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.getDefaultInstance() - : kmsSettings_; + return kmsSettings_ == null ? + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.getDefaultInstance() : kmsSettings_; } } /** - * - * *
        * Required. Input only. Immutable. Settings used to create a CMEK crypto
        * key.
        * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings, - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder, - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder> + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings, com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder, com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder> getKmsSettingsFieldBuilder() { if (kmsSettingsBuilder_ == null) { - kmsSettingsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings, - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder, - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder>( - getKmsSettings(), getParentForChildren(), isClean()); + kmsSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings, com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder, com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder>( + getKmsSettings(), + getParentForChildren(), + isClean()); kmsSettings_ = null; } return kmsSettingsBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3818,32 +3225,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings) } // @@protoc_insertion_point(class_scope:google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings) - private static final com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings - DEFAULT_INSTANCE; - + private static final com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings(); } - public static com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings - getDefaultInstance() { + public static com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IL4Settings parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new IL4Settings(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IL4Settings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new IL4Settings(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3855,96 +3260,77 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings - getDefaultInstanceForType() { + public com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - @java.lang.Deprecated - public interface CJISSettingsOrBuilder - extends + @java.lang.Deprecated public interface CJISSettingsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Required. Input only. Immutable. Settings used to create a CMEK crypto
      * key.
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; * @return Whether the kmsSettings field is set. */ boolean hasKmsSettings(); /** - * - * *
      * Required. Input only. Immutable. Settings used to create a CMEK crypto
      * key.
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; * @return The kmsSettings. */ com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings getKmsSettings(); /** - * - * *
      * Required. Input only. Immutable. Settings used to create a CMEK crypto
      * key.
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder - getKmsSettingsOrBuilder(); + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder getKmsSettingsOrBuilder(); } /** - * - * *
    * Settings specific to resources needed for CJIS.
    * 
* * Protobuf type {@code google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings} */ - @java.lang.Deprecated - public static final class CJISSettings extends com.google.protobuf.GeneratedMessageV3 - implements + @java.lang.Deprecated public static final class CJISSettings extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings) CJISSettingsOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CJISSettings.newBuilder() to construct. private CJISSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private CJISSettings() {} + private CJISSettings() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CJISSettings(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CJISSettings( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -3963,31 +3349,26 @@ private CJISSettings( case 0: done = true; break; - case 10: - { - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder subBuilder = - null; - if (kmsSettings_ != null) { - subBuilder = kmsSettings_.toBuilder(); - } - kmsSettings_ = - input.readMessage( - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(kmsSettings_); - kmsSettings_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder subBuilder = null; + if (kmsSettings_ != null) { + subBuilder = kmsSettings_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + kmsSettings_ = input.readMessage(com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(kmsSettings_); + kmsSettings_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -3995,42 +3376,35 @@ private CJISSettings( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1beta1_Workload_CJISSettings_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_Workload_CJISSettings_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1beta1_Workload_CJISSettings_fieldAccessorTable + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_Workload_CJISSettings_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings.class, - com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings.Builder.class); + com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings.class, com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings.Builder.class); } public static final int KMS_SETTINGS_FIELD_NUMBER = 1; private com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kmsSettings_; /** - * - * *
      * Required. Input only. Immutable. Settings used to create a CMEK crypto
      * key.
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; * @return Whether the kmsSettings field is set. */ @java.lang.Override @@ -4038,45 +3412,32 @@ public boolean hasKmsSettings() { return kmsSettings_ != null; } /** - * - * *
      * Required. Input only. Immutable. Settings used to create a CMEK crypto
      * key.
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; * @return The kmsSettings. */ @java.lang.Override public com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings getKmsSettings() { - return kmsSettings_ == null - ? com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.getDefaultInstance() - : kmsSettings_; + return kmsSettings_ == null ? com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.getDefaultInstance() : kmsSettings_; } /** - * - * *
      * Required. Input only. Immutable. Settings used to create a CMEK crypto
      * key.
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder - getKmsSettingsOrBuilder() { + public com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder getKmsSettingsOrBuilder() { return getKmsSettings(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -4088,7 +3449,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 (kmsSettings_ != null) { output.writeMessage(1, getKmsSettings()); } @@ -4102,7 +3464,8 @@ public int getSerializedSize() { size = 0; if (kmsSettings_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getKmsSettings()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getKmsSettings()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -4112,17 +3475,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.assuredworkloads.v1beta1.Workload.CJISSettings)) { return super.equals(obj); } - com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings other = - (com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings) obj; + com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings other = (com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings) obj; if (hasKmsSettings() != other.hasKmsSettings()) return false; if (hasKmsSettings()) { - if (!getKmsSettings().equals(other.getKmsSettings())) return false; + if (!getKmsSettings() + .equals(other.getKmsSettings())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -4145,95 +3508,87 @@ public int hashCode() { } public static com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings 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.assuredworkloads.v1beta1.Workload.CJISSettings 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.assuredworkloads.v1beta1.Workload.CJISSettings parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings 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.assuredworkloads.v1beta1.Workload.CJISSettings parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings 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.assuredworkloads.v1beta1.Workload.CJISSettings parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings 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.assuredworkloads.v1beta1.Workload.CJISSettings - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings - parseDelimitedFrom( - java.io.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.assuredworkloads.v1beta1.Workload.CJISSettings parseDelimitedFrom( + java.io.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.assuredworkloads.v1beta1.Workload.CJISSettings 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.assuredworkloads.v1beta1.Workload.CJISSettings 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.assuredworkloads.v1beta1.Workload.CJISSettings prototype) { + public static Builder newBuilder(com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings 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 @@ -4243,49 +3598,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Settings specific to resources needed for CJIS.
      * 
* * Protobuf type {@code google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings} */ - 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.assuredworkloads.v1beta1.Workload.CJISSettings) com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettingsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1beta1_Workload_CJISSettings_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_Workload_CJISSettings_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1beta1_Workload_CJISSettings_fieldAccessorTable + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_Workload_CJISSettings_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings.class, - com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings.Builder.class); + com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings.class, com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings.Builder.class); } - // Construct using - // com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings.newBuilder() + // Construct using com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -4299,14 +3649,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1beta1_Workload_CJISSettings_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_Workload_CJISSettings_descriptor; } @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings - getDefaultInstanceForType() { + public com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings getDefaultInstanceForType() { return com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings.getDefaultInstance(); } @@ -4321,8 +3670,7 @@ public com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings build() { @java.lang.Override public com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings buildPartial() { - com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings result = - new com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings(this); + com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings result = new com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings(this); if (kmsSettingsBuilder_ == null) { result.kmsSettings_ = kmsSettings_; } else { @@ -4336,52 +3684,46 @@ public com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings buildPart public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + 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.assuredworkloads.v1beta1.Workload.CJISSettings) { - return mergeFrom((com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings) other); + return mergeFrom((com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings other) { - if (other - == com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings other) { + if (other == com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings.getDefaultInstance()) return this; if (other.hasKmsSettings()) { mergeKmsSettings(other.getKmsSettings()); } @@ -4404,9 +3746,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -4418,64 +3758,44 @@ public Builder mergeFrom( private com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kmsSettings_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings, - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder, - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder> - kmsSettingsBuilder_; + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings, com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder, com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder> kmsSettingsBuilder_; /** - * - * *
        * Required. Input only. Immutable. Settings used to create a CMEK crypto
        * key.
        * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; * @return Whether the kmsSettings field is set. */ public boolean hasKmsSettings() { return kmsSettingsBuilder_ != null || kmsSettings_ != null; } /** - * - * *
        * Required. Input only. Immutable. Settings used to create a CMEK crypto
        * key.
        * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; * @return The kmsSettings. */ public com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings getKmsSettings() { if (kmsSettingsBuilder_ == null) { - return kmsSettings_ == null - ? com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.getDefaultInstance() - : kmsSettings_; + return kmsSettings_ == null ? com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.getDefaultInstance() : kmsSettings_; } else { return kmsSettingsBuilder_.getMessage(); } } /** - * - * *
        * Required. Input only. Immutable. Settings used to create a CMEK crypto
        * key.
        * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ - public Builder setKmsSettings( - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings value) { + public Builder setKmsSettings(com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings value) { if (kmsSettingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4489,16 +3809,12 @@ public Builder setKmsSettings( return this; } /** - * - * *
        * Required. Input only. Immutable. Settings used to create a CMEK crypto
        * key.
        * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ public Builder setKmsSettings( com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder builderForValue) { @@ -4512,26 +3828,18 @@ public Builder setKmsSettings( return this; } /** - * - * *
        * Required. Input only. Immutable. Settings used to create a CMEK crypto
        * key.
        * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ - public Builder mergeKmsSettings( - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings value) { + public Builder mergeKmsSettings(com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings value) { if (kmsSettingsBuilder_ == null) { if (kmsSettings_ != null) { kmsSettings_ = - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.newBuilder( - kmsSettings_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.newBuilder(kmsSettings_).mergeFrom(value).buildPartial(); } else { kmsSettings_ = value; } @@ -4543,16 +3851,12 @@ public Builder mergeKmsSettings( return this; } /** - * - * *
        * Required. Input only. Immutable. Settings used to create a CMEK crypto
        * key.
        * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ public Builder clearKmsSettings() { if (kmsSettingsBuilder_ == null) { @@ -4566,74 +3870,55 @@ public Builder clearKmsSettings() { return this; } /** - * - * *
        * Required. Input only. Immutable. Settings used to create a CMEK crypto
        * key.
        * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ - public com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder - getKmsSettingsBuilder() { - + public com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder getKmsSettingsBuilder() { + onChanged(); return getKmsSettingsFieldBuilder().getBuilder(); } /** - * - * *
        * Required. Input only. Immutable. Settings used to create a CMEK crypto
        * key.
        * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ - public com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder - getKmsSettingsOrBuilder() { + public com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder getKmsSettingsOrBuilder() { if (kmsSettingsBuilder_ != null) { return kmsSettingsBuilder_.getMessageOrBuilder(); } else { - return kmsSettings_ == null - ? com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.getDefaultInstance() - : kmsSettings_; + return kmsSettings_ == null ? + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.getDefaultInstance() : kmsSettings_; } } /** - * - * *
        * Required. Input only. Immutable. Settings used to create a CMEK crypto
        * key.
        * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings, - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder, - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder> + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings, com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder, com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder> getKmsSettingsFieldBuilder() { if (kmsSettingsBuilder_ == null) { - kmsSettingsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings, - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder, - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder>( - getKmsSettings(), getParentForChildren(), isClean()); + kmsSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings, com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder, com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder>( + getKmsSettings(), + getParentForChildren(), + isClean()); kmsSettings_ = null; } return kmsSettingsBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -4646,32 +3931,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings) } // @@protoc_insertion_point(class_scope:google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings) - private static final com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings - DEFAULT_INSTANCE; - + private static final com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings(); } - public static com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings - getDefaultInstance() { + public static com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CJISSettings parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CJISSettings(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CJISSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CJISSettings(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4683,96 +3966,77 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings - getDefaultInstanceForType() { + public com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - @java.lang.Deprecated - public interface FedrampHighSettingsOrBuilder - extends + @java.lang.Deprecated public interface FedrampHighSettingsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Required. Input only. Immutable. Settings used to create a CMEK crypto
      * key.
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; * @return Whether the kmsSettings field is set. */ boolean hasKmsSettings(); /** - * - * *
      * Required. Input only. Immutable. Settings used to create a CMEK crypto
      * key.
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; * @return The kmsSettings. */ com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings getKmsSettings(); /** - * - * *
      * Required. Input only. Immutable. Settings used to create a CMEK crypto
      * key.
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder - getKmsSettingsOrBuilder(); + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder getKmsSettingsOrBuilder(); } /** - * - * *
    * Settings specific to resources needed for FedRAMP High.
    * 
* * Protobuf type {@code google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings} */ - @java.lang.Deprecated - public static final class FedrampHighSettings extends com.google.protobuf.GeneratedMessageV3 - implements + @java.lang.Deprecated public static final class FedrampHighSettings extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings) FedrampHighSettingsOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use FedrampHighSettings.newBuilder() to construct. private FedrampHighSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private FedrampHighSettings() {} + private FedrampHighSettings() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new FedrampHighSettings(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private FedrampHighSettings( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -4791,31 +4055,26 @@ private FedrampHighSettings( case 0: done = true; break; - case 10: - { - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder subBuilder = - null; - if (kmsSettings_ != null) { - subBuilder = kmsSettings_.toBuilder(); - } - kmsSettings_ = - input.readMessage( - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(kmsSettings_); - kmsSettings_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder subBuilder = null; + if (kmsSettings_ != null) { + subBuilder = kmsSettings_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + kmsSettings_ = input.readMessage(com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(kmsSettings_); + kmsSettings_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -4823,42 +4082,35 @@ private FedrampHighSettings( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1beta1_Workload_FedrampHighSettings_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_Workload_FedrampHighSettings_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1beta1_Workload_FedrampHighSettings_fieldAccessorTable + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_Workload_FedrampHighSettings_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings.class, - com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings.Builder.class); + com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings.class, com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings.Builder.class); } public static final int KMS_SETTINGS_FIELD_NUMBER = 1; private com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kmsSettings_; /** - * - * *
      * Required. Input only. Immutable. Settings used to create a CMEK crypto
      * key.
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; * @return Whether the kmsSettings field is set. */ @java.lang.Override @@ -4866,45 +4118,32 @@ public boolean hasKmsSettings() { return kmsSettings_ != null; } /** - * - * *
      * Required. Input only. Immutable. Settings used to create a CMEK crypto
      * key.
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; * @return The kmsSettings. */ @java.lang.Override public com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings getKmsSettings() { - return kmsSettings_ == null - ? com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.getDefaultInstance() - : kmsSettings_; + return kmsSettings_ == null ? com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.getDefaultInstance() : kmsSettings_; } /** - * - * *
      * Required. Input only. Immutable. Settings used to create a CMEK crypto
      * key.
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder - getKmsSettingsOrBuilder() { + public com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder getKmsSettingsOrBuilder() { return getKmsSettings(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -4916,7 +4155,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 (kmsSettings_ != null) { output.writeMessage(1, getKmsSettings()); } @@ -4930,7 +4170,8 @@ public int getSerializedSize() { size = 0; if (kmsSettings_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getKmsSettings()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getKmsSettings()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -4940,18 +4181,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.assuredworkloads.v1beta1.Workload.FedrampHighSettings)) { + if (!(obj instanceof com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings)) { return super.equals(obj); } - com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings other = - (com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings) obj; + com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings other = (com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings) obj; if (hasKmsSettings() != other.hasKmsSettings()) return false; if (hasKmsSettings()) { - if (!getKmsSettings().equals(other.getKmsSettings())) return false; + if (!getKmsSettings() + .equals(other.getKmsSettings())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -4974,95 +4214,87 @@ public int hashCode() { } public static com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings 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.assuredworkloads.v1beta1.Workload.FedrampHighSettings 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.assuredworkloads.v1beta1.Workload.FedrampHighSettings parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings 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.assuredworkloads.v1beta1.Workload.FedrampHighSettings parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings 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.assuredworkloads.v1beta1.Workload.FedrampHighSettings parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings 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.assuredworkloads.v1beta1.Workload.FedrampHighSettings - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings - parseDelimitedFrom( - java.io.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.assuredworkloads.v1beta1.Workload.FedrampHighSettings parseDelimitedFrom( + java.io.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.assuredworkloads.v1beta1.Workload.FedrampHighSettings 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.assuredworkloads.v1beta1.Workload.FedrampHighSettings 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.assuredworkloads.v1beta1.Workload.FedrampHighSettings prototype) { + public static Builder newBuilder(com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings 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 @@ -5072,50 +4304,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Settings specific to resources needed for FedRAMP High.
      * 
* * Protobuf type {@code google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings} */ - 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.assuredworkloads.v1beta1.Workload.FedrampHighSettings) com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettingsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1beta1_Workload_FedrampHighSettings_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_Workload_FedrampHighSettings_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1beta1_Workload_FedrampHighSettings_fieldAccessorTable + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_Workload_FedrampHighSettings_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings.class, - com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings.Builder - .class); + com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings.class, com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings.Builder.class); } - // Construct using - // com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings.newBuilder() + // Construct using com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -5129,22 +4355,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1beta1_Workload_FedrampHighSettings_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_Workload_FedrampHighSettings_descriptor; } @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings - getDefaultInstanceForType() { - return com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings - .getDefaultInstance(); + public com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings getDefaultInstanceForType() { + return com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings.getDefaultInstance(); } @java.lang.Override public com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings build() { - com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings result = - buildPartial(); + com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -5153,8 +4376,7 @@ public com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings bu @java.lang.Override public com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings buildPartial() { - com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings result = - new com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings(this); + com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings result = new com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings(this); if (kmsSettingsBuilder_ == null) { result.kmsSettings_ = kmsSettings_; } else { @@ -5168,54 +4390,46 @@ public com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings bu public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings) { - return mergeFrom( - (com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings) other); + if (other instanceof com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings) { + return mergeFrom((com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings other) { - if (other - == com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings other) { + if (other == com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings.getDefaultInstance()) return this; if (other.hasKmsSettings()) { mergeKmsSettings(other.getKmsSettings()); } @@ -5238,9 +4452,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -5252,64 +4464,44 @@ public Builder mergeFrom( private com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kmsSettings_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings, - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder, - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder> - kmsSettingsBuilder_; + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings, com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder, com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder> kmsSettingsBuilder_; /** - * - * *
        * Required. Input only. Immutable. Settings used to create a CMEK crypto
        * key.
        * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; * @return Whether the kmsSettings field is set. */ public boolean hasKmsSettings() { return kmsSettingsBuilder_ != null || kmsSettings_ != null; } /** - * - * *
        * Required. Input only. Immutable. Settings used to create a CMEK crypto
        * key.
        * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; * @return The kmsSettings. */ public com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings getKmsSettings() { if (kmsSettingsBuilder_ == null) { - return kmsSettings_ == null - ? com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.getDefaultInstance() - : kmsSettings_; + return kmsSettings_ == null ? com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.getDefaultInstance() : kmsSettings_; } else { return kmsSettingsBuilder_.getMessage(); } } /** - * - * *
        * Required. Input only. Immutable. Settings used to create a CMEK crypto
        * key.
        * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ - public Builder setKmsSettings( - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings value) { + public Builder setKmsSettings(com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings value) { if (kmsSettingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5323,16 +4515,12 @@ public Builder setKmsSettings( return this; } /** - * - * *
        * Required. Input only. Immutable. Settings used to create a CMEK crypto
        * key.
        * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ public Builder setKmsSettings( com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder builderForValue) { @@ -5346,26 +4534,18 @@ public Builder setKmsSettings( return this; } /** - * - * *
        * Required. Input only. Immutable. Settings used to create a CMEK crypto
        * key.
        * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ - public Builder mergeKmsSettings( - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings value) { + public Builder mergeKmsSettings(com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings value) { if (kmsSettingsBuilder_ == null) { if (kmsSettings_ != null) { kmsSettings_ = - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.newBuilder( - kmsSettings_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.newBuilder(kmsSettings_).mergeFrom(value).buildPartial(); } else { kmsSettings_ = value; } @@ -5377,16 +4557,12 @@ public Builder mergeKmsSettings( return this; } /** - * - * *
        * Required. Input only. Immutable. Settings used to create a CMEK crypto
        * key.
        * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ public Builder clearKmsSettings() { if (kmsSettingsBuilder_ == null) { @@ -5400,74 +4576,55 @@ public Builder clearKmsSettings() { return this; } /** - * - * *
        * Required. Input only. Immutable. Settings used to create a CMEK crypto
        * key.
        * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ - public com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder - getKmsSettingsBuilder() { - + public com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder getKmsSettingsBuilder() { + onChanged(); return getKmsSettingsFieldBuilder().getBuilder(); } /** - * - * *
        * Required. Input only. Immutable. Settings used to create a CMEK crypto
        * key.
        * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ - public com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder - getKmsSettingsOrBuilder() { + public com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder getKmsSettingsOrBuilder() { if (kmsSettingsBuilder_ != null) { return kmsSettingsBuilder_.getMessageOrBuilder(); } else { - return kmsSettings_ == null - ? com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.getDefaultInstance() - : kmsSettings_; + return kmsSettings_ == null ? + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.getDefaultInstance() : kmsSettings_; } } /** - * - * *
        * Required. Input only. Immutable. Settings used to create a CMEK crypto
        * key.
        * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings, - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder, - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder> + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings, com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder, com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder> getKmsSettingsFieldBuilder() { if (kmsSettingsBuilder_ == null) { - kmsSettingsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings, - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder, - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder>( - getKmsSettings(), getParentForChildren(), isClean()); + kmsSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings, com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder, com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder>( + getKmsSettings(), + getParentForChildren(), + isClean()); kmsSettings_ = null; } return kmsSettingsBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -5480,33 +4637,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings) } // @@protoc_insertion_point(class_scope:google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings) - private static final com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings - DEFAULT_INSTANCE; - + private static final com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings(); + DEFAULT_INSTANCE = new com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings(); } - public static com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings - getDefaultInstance() { + public static com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FedrampHighSettings parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FedrampHighSettings(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FedrampHighSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FedrampHighSettings(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5518,96 +4672,77 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings - getDefaultInstanceForType() { + public com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - @java.lang.Deprecated - public interface FedrampModerateSettingsOrBuilder - extends + @java.lang.Deprecated public interface FedrampModerateSettingsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Required. Input only. Immutable. Settings used to create a CMEK crypto
      * key.
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; * @return Whether the kmsSettings field is set. */ boolean hasKmsSettings(); /** - * - * *
      * Required. Input only. Immutable. Settings used to create a CMEK crypto
      * key.
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; * @return The kmsSettings. */ com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings getKmsSettings(); /** - * - * *
      * Required. Input only. Immutable. Settings used to create a CMEK crypto
      * key.
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder - getKmsSettingsOrBuilder(); + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder getKmsSettingsOrBuilder(); } /** - * - * *
    * Settings specific to resources needed for FedRAMP Moderate.
    * 
* * Protobuf type {@code google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings} */ - @java.lang.Deprecated - public static final class FedrampModerateSettings extends com.google.protobuf.GeneratedMessageV3 - implements + @java.lang.Deprecated public static final class FedrampModerateSettings extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings) FedrampModerateSettingsOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use FedrampModerateSettings.newBuilder() to construct. private FedrampModerateSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private FedrampModerateSettings() {} + private FedrampModerateSettings() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new FedrampModerateSettings(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private FedrampModerateSettings( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -5626,31 +4761,26 @@ private FedrampModerateSettings( case 0: done = true; break; - case 10: - { - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder subBuilder = - null; - if (kmsSettings_ != null) { - subBuilder = kmsSettings_.toBuilder(); - } - kmsSettings_ = - input.readMessage( - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(kmsSettings_); - kmsSettings_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder subBuilder = null; + if (kmsSettings_ != null) { + subBuilder = kmsSettings_.toBuilder(); + } + kmsSettings_ = input.readMessage(com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(kmsSettings_); + kmsSettings_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -5658,43 +4788,35 @@ private FedrampModerateSettings( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1beta1_Workload_FedrampModerateSettings_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_Workload_FedrampModerateSettings_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1beta1_Workload_FedrampModerateSettings_fieldAccessorTable + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_Workload_FedrampModerateSettings_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings.class, - com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings.Builder - .class); + com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings.class, com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings.Builder.class); } public static final int KMS_SETTINGS_FIELD_NUMBER = 1; private com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kmsSettings_; /** - * - * *
      * Required. Input only. Immutable. Settings used to create a CMEK crypto
      * key.
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; * @return Whether the kmsSettings field is set. */ @java.lang.Override @@ -5702,45 +4824,32 @@ public boolean hasKmsSettings() { return kmsSettings_ != null; } /** - * - * *
      * Required. Input only. Immutable. Settings used to create a CMEK crypto
      * key.
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; * @return The kmsSettings. */ @java.lang.Override public com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings getKmsSettings() { - return kmsSettings_ == null - ? com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.getDefaultInstance() - : kmsSettings_; + return kmsSettings_ == null ? com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.getDefaultInstance() : kmsSettings_; } /** - * - * *
      * Required. Input only. Immutable. Settings used to create a CMEK crypto
      * key.
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder - getKmsSettingsOrBuilder() { + public com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder getKmsSettingsOrBuilder() { return getKmsSettings(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -5752,7 +4861,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 (kmsSettings_ != null) { output.writeMessage(1, getKmsSettings()); } @@ -5766,7 +4876,8 @@ public int getSerializedSize() { size = 0; if (kmsSettings_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getKmsSettings()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getKmsSettings()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -5776,18 +4887,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.assuredworkloads.v1beta1.Workload.FedrampModerateSettings)) { + if (!(obj instanceof com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings)) { return super.equals(obj); } - com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings other = - (com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings) obj; + com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings other = (com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings) obj; if (hasKmsSettings() != other.hasKmsSettings()) return false; if (hasKmsSettings()) { - if (!getKmsSettings().equals(other.getKmsSettings())) return false; + if (!getKmsSettings() + .equals(other.getKmsSettings())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -5809,101 +4919,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings 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.assuredworkloads.v1beta1.Workload.FedrampModerateSettings - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings 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.assuredworkloads.v1beta1.Workload.FedrampModerateSettings - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings - 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.assuredworkloads.v1beta1.Workload.FedrampModerateSettings 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.assuredworkloads.v1beta1.Workload.FedrampModerateSettings - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings - parseDelimitedFrom( - java.io.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.assuredworkloads.v1beta1.Workload.FedrampModerateSettings parseDelimitedFrom( + java.io.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.assuredworkloads.v1beta1.Workload.FedrampModerateSettings - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings prototype) { + public static Builder newBuilder(com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings 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 @@ -5913,50 +5010,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Settings specific to resources needed for FedRAMP Moderate.
      * 
* * Protobuf type {@code google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings} */ - 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.assuredworkloads.v1beta1.Workload.FedrampModerateSettings) com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettingsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1beta1_Workload_FedrampModerateSettings_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_Workload_FedrampModerateSettings_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1beta1_Workload_FedrampModerateSettings_fieldAccessorTable + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_Workload_FedrampModerateSettings_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings.class, - com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings.Builder - .class); + com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings.class, com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings.Builder.class); } - // Construct using - // com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings.newBuilder() + // Construct using com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -5970,22 +5061,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1beta1_Workload_FedrampModerateSettings_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_Workload_FedrampModerateSettings_descriptor; } @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings - getDefaultInstanceForType() { - return com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings - .getDefaultInstance(); + public com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings getDefaultInstanceForType() { + return com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings.getDefaultInstance(); } @java.lang.Override public com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings build() { - com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings result = - buildPartial(); + com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -5993,10 +5081,8 @@ public com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSetting } @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings - buildPartial() { - com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings result = - new com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings(this); + public com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings buildPartial() { + com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings result = new com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings(this); if (kmsSettingsBuilder_ == null) { result.kmsSettings_ = kmsSettings_; } else { @@ -6010,54 +5096,46 @@ public com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSetting 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.assuredworkloads.v1beta1.Workload.FedrampModerateSettings) { - return mergeFrom( - (com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings) other); + if (other instanceof com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings) { + return mergeFrom((com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings other) { - if (other - == com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings other) { + if (other == com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings.getDefaultInstance()) return this; if (other.hasKmsSettings()) { mergeKmsSettings(other.getKmsSettings()); } @@ -6076,14 +5154,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings parsedMessage = - null; + com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -6095,64 +5170,44 @@ public Builder mergeFrom( private com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kmsSettings_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings, - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder, - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder> - kmsSettingsBuilder_; + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings, com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder, com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder> kmsSettingsBuilder_; /** - * - * *
        * Required. Input only. Immutable. Settings used to create a CMEK crypto
        * key.
        * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; * @return Whether the kmsSettings field is set. */ public boolean hasKmsSettings() { return kmsSettingsBuilder_ != null || kmsSettings_ != null; } /** - * - * *
        * Required. Input only. Immutable. Settings used to create a CMEK crypto
        * key.
        * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; * @return The kmsSettings. */ public com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings getKmsSettings() { if (kmsSettingsBuilder_ == null) { - return kmsSettings_ == null - ? com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.getDefaultInstance() - : kmsSettings_; + return kmsSettings_ == null ? com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.getDefaultInstance() : kmsSettings_; } else { return kmsSettingsBuilder_.getMessage(); } } /** - * - * *
        * Required. Input only. Immutable. Settings used to create a CMEK crypto
        * key.
        * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ - public Builder setKmsSettings( - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings value) { + public Builder setKmsSettings(com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings value) { if (kmsSettingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6166,16 +5221,12 @@ public Builder setKmsSettings( return this; } /** - * - * *
        * Required. Input only. Immutable. Settings used to create a CMEK crypto
        * key.
        * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ public Builder setKmsSettings( com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder builderForValue) { @@ -6189,26 +5240,18 @@ public Builder setKmsSettings( return this; } /** - * - * *
        * Required. Input only. Immutable. Settings used to create a CMEK crypto
        * key.
        * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ - public Builder mergeKmsSettings( - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings value) { + public Builder mergeKmsSettings(com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings value) { if (kmsSettingsBuilder_ == null) { if (kmsSettings_ != null) { kmsSettings_ = - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.newBuilder( - kmsSettings_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.newBuilder(kmsSettings_).mergeFrom(value).buildPartial(); } else { kmsSettings_ = value; } @@ -6220,16 +5263,12 @@ public Builder mergeKmsSettings( return this; } /** - * - * *
        * Required. Input only. Immutable. Settings used to create a CMEK crypto
        * key.
        * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ public Builder clearKmsSettings() { if (kmsSettingsBuilder_ == null) { @@ -6243,74 +5282,55 @@ public Builder clearKmsSettings() { return this; } /** - * - * *
        * Required. Input only. Immutable. Settings used to create a CMEK crypto
        * key.
        * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ - public com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder - getKmsSettingsBuilder() { - + public com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder getKmsSettingsBuilder() { + onChanged(); return getKmsSettingsFieldBuilder().getBuilder(); } /** - * - * *
        * Required. Input only. Immutable. Settings used to create a CMEK crypto
        * key.
        * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ - public com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder - getKmsSettingsOrBuilder() { + public com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder getKmsSettingsOrBuilder() { if (kmsSettingsBuilder_ != null) { return kmsSettingsBuilder_.getMessageOrBuilder(); } else { - return kmsSettings_ == null - ? com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.getDefaultInstance() - : kmsSettings_; + return kmsSettings_ == null ? + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.getDefaultInstance() : kmsSettings_; } } /** - * - * *
        * Required. Input only. Immutable. Settings used to create a CMEK crypto
        * key.
        * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings, - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder, - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder> + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings, com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder, com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder> getKmsSettingsFieldBuilder() { if (kmsSettingsBuilder_ == null) { - kmsSettingsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings, - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder, - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder>( - getKmsSettings(), getParentForChildren(), isClean()); + kmsSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings, com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder, com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder>( + getKmsSettings(), + getParentForChildren(), + isClean()); kmsSettings_ = null; } return kmsSettingsBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -6323,33 +5343,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings) } // @@protoc_insertion_point(class_scope:google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings) - private static final com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings - DEFAULT_INSTANCE; - + private static final com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings(); + DEFAULT_INSTANCE = new com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings(); } - public static com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings - getDefaultInstance() { + public static com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FedrampModerateSettings parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FedrampModerateSettings(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FedrampModerateSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FedrampModerateSettings(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -6361,20 +5378,17 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings - getDefaultInstanceForType() { + public com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface ResourceSettingsOrBuilder - extends + public interface ResourceSettingsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Resource identifier.
      * For a project this represents project_id. If the project is already
@@ -6382,13 +5396,10 @@ public interface ResourceSettingsOrBuilder
      * 
* * string resource_id = 1; - * * @return The resourceId. */ java.lang.String getResourceId(); /** - * - * *
      * Resource identifier.
      * For a project this represents project_id. If the project is already
@@ -6396,47 +5407,35 @@ public interface ResourceSettingsOrBuilder
      * 
* * string resource_id = 1; - * * @return The bytes for resourceId. */ - com.google.protobuf.ByteString getResourceIdBytes(); + com.google.protobuf.ByteString + getResourceIdBytes(); /** - * - * *
      * Indicates the type of resource. This field should be specified to
      * correspond the id to the right project type (CONSUMER_PROJECT or
      * ENCRYPTION_KEYS_PROJECT)
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType resource_type = 2; - * - * + * .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType resource_type = 2; * @return The enum numeric value on the wire for resourceType. */ int getResourceTypeValue(); /** - * - * *
      * Indicates the type of resource. This field should be specified to
      * correspond the id to the right project type (CONSUMER_PROJECT or
      * ENCRYPTION_KEYS_PROJECT)
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType resource_type = 2; - * - * + * .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType resource_type = 2; * @return The resourceType. */ com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType getResourceType(); /** - * - * *
      * User-assigned resource display name.
      * If not empty it will be used to create a resource with the specified
@@ -6444,13 +5443,10 @@ public interface ResourceSettingsOrBuilder
      * 
* * string display_name = 3; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
      * User-assigned resource display name.
      * If not empty it will be used to create a resource with the specified
@@ -6458,30 +5454,27 @@ public interface ResourceSettingsOrBuilder
      * 
* * string display_name = 3; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); } /** - * - * *
    * Represent the custom settings for the resources to be created.
    * 
* * Protobuf type {@code google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings} */ - public static final class ResourceSettings extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class ResourceSettings extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings) ResourceSettingsOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ResourceSettings.newBuilder() to construct. private ResourceSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ResourceSettings() { resourceId_ = ""; resourceType_ = 0; @@ -6490,15 +5483,16 @@ private ResourceSettings() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ResourceSettings(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ResourceSettings( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -6517,34 +5511,31 @@ private ResourceSettings( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - resourceId_ = s; - break; - } - case 16: - { - int rawValue = input.readEnum(); + resourceId_ = s; + break; + } + case 16: { + int rawValue = input.readEnum(); - resourceType_ = rawValue; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + resourceType_ = rawValue; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - displayName_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + displayName_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -6552,33 +5543,29 @@ private ResourceSettings( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1beta1_Workload_ResourceSettings_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_Workload_ResourceSettings_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1beta1_Workload_ResourceSettings_fieldAccessorTable + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_Workload_ResourceSettings_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.class, - com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.Builder.class); + com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.class, com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.Builder.class); } public static final int RESOURCE_ID_FIELD_NUMBER = 1; private volatile java.lang.Object resourceId_; /** - * - * *
      * Resource identifier.
      * For a project this represents project_id. If the project is already
@@ -6586,7 +5573,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * 
* * string resource_id = 1; - * * @return The resourceId. */ @java.lang.Override @@ -6595,15 +5581,14 @@ public java.lang.String getResourceId() { 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(); resourceId_ = s; return s; } } /** - * - * *
      * Resource identifier.
      * For a project this represents project_id. If the project is already
@@ -6611,15 +5596,16 @@ public java.lang.String getResourceId() {
      * 
* * string resource_id = 1; - * * @return The bytes for resourceId. */ @java.lang.Override - public com.google.protobuf.ByteString getResourceIdBytes() { + public com.google.protobuf.ByteString + getResourceIdBytes() { java.lang.Object ref = resourceId_; 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); resourceId_ = b; return b; } else { @@ -6630,57 +5616,37 @@ public com.google.protobuf.ByteString getResourceIdBytes() { public static final int RESOURCE_TYPE_FIELD_NUMBER = 2; private int resourceType_; /** - * - * *
      * Indicates the type of resource. This field should be specified to
      * correspond the id to the right project type (CONSUMER_PROJECT or
      * ENCRYPTION_KEYS_PROJECT)
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType resource_type = 2; - * - * + * .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType resource_type = 2; * @return The enum numeric value on the wire for resourceType. */ - @java.lang.Override - public int getResourceTypeValue() { + @java.lang.Override public int getResourceTypeValue() { return resourceType_; } /** - * - * *
      * Indicates the type of resource. This field should be specified to
      * correspond the id to the right project type (CONSUMER_PROJECT or
      * ENCRYPTION_KEYS_PROJECT)
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType resource_type = 2; - * - * + * .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType resource_type = 2; * @return The resourceType. */ - @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType - getResourceType() { + @java.lang.Override public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType getResourceType() { @SuppressWarnings("deprecation") - com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType result = - com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType.valueOf( - resourceType_); - return result == null - ? com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType - .UNRECOGNIZED - : result; + com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType result = com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType.valueOf(resourceType_); + return result == null ? com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType.UNRECOGNIZED : result; } public static final int DISPLAY_NAME_FIELD_NUMBER = 3; private volatile java.lang.Object displayName_; /** - * - * *
      * User-assigned resource display name.
      * If not empty it will be used to create a resource with the specified
@@ -6688,7 +5654,6 @@ public int getResourceTypeValue() {
      * 
* * string display_name = 3; - * * @return The displayName. */ @java.lang.Override @@ -6697,15 +5662,14 @@ public java.lang.String getDisplayName() { 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(); displayName_ = s; return s; } } /** - * - * *
      * User-assigned resource display name.
      * If not empty it will be used to create a resource with the specified
@@ -6713,15 +5677,16 @@ public java.lang.String getDisplayName() {
      * 
* * string display_name = 3; - * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; 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); displayName_ = b; return b; } else { @@ -6730,7 +5695,6 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -6742,14 +5706,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceId_); } - if (resourceType_ - != com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType - .RESOURCE_TYPE_UNSPECIFIED - .getNumber()) { + if (resourceType_ != com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType.RESOURCE_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(2, resourceType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { @@ -6767,11 +5729,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resourceId_); } - if (resourceType_ - != com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType - .RESOURCE_TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, resourceType_); + if (resourceType_ != com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType.RESOURCE_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, resourceType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, displayName_); @@ -6784,17 +5744,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.assuredworkloads.v1beta1.Workload.ResourceSettings)) { return super.equals(obj); } - com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings other = - (com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings) obj; + com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings other = (com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings) obj; - if (!getResourceId().equals(other.getResourceId())) return false; + if (!getResourceId() + .equals(other.getResourceId())) return false; if (resourceType_ != other.resourceType_) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -6818,95 +5779,87 @@ public int hashCode() { } public static com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings 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.assuredworkloads.v1beta1.Workload.ResourceSettings 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.assuredworkloads.v1beta1.Workload.ResourceSettings parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings 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.assuredworkloads.v1beta1.Workload.ResourceSettings parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings 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.assuredworkloads.v1beta1.Workload.ResourceSettings parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings 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.assuredworkloads.v1beta1.Workload.ResourceSettings - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings - parseDelimitedFrom( - java.io.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.assuredworkloads.v1beta1.Workload.ResourceSettings parseDelimitedFrom( + java.io.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.assuredworkloads.v1beta1.Workload.ResourceSettings 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.assuredworkloads.v1beta1.Workload.ResourceSettings 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.assuredworkloads.v1beta1.Workload.ResourceSettings prototype) { + public static Builder newBuilder(com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings 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 @@ -6916,49 +5869,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Represent the custom settings for the resources to be created.
      * 
* * Protobuf type {@code google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings} */ - 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.assuredworkloads.v1beta1.Workload.ResourceSettings) com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettingsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1beta1_Workload_ResourceSettings_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_Workload_ResourceSettings_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1beta1_Workload_ResourceSettings_fieldAccessorTable + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_Workload_ResourceSettings_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.class, - com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.Builder.class); + com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.class, com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.Builder.class); } - // Construct using - // com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.newBuilder() + // Construct using com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -6972,16 +5920,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1beta1_Workload_ResourceSettings_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_Workload_ResourceSettings_descriptor; } @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings - getDefaultInstanceForType() { - return com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings - .getDefaultInstance(); + public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings getDefaultInstanceForType() { + return com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.getDefaultInstance(); } @java.lang.Override @@ -6995,8 +5941,7 @@ public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings build @java.lang.Override public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings buildPartial() { - com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings result = - new com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings(this); + com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings result = new com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings(this); result.resourceId_ = resourceId_; result.resourceType_ = resourceType_; result.displayName_ = displayName_; @@ -7008,53 +5953,46 @@ public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings build public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + 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.assuredworkloads.v1beta1.Workload.ResourceSettings) { - return mergeFrom( - (com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings) other); + return mergeFrom((com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings other) { - if (other - == com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings other) { + if (other == com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.getDefaultInstance()) return this; if (!other.getResourceId().isEmpty()) { resourceId_ = other.resourceId_; onChanged(); @@ -7085,9 +6023,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -7099,8 +6035,6 @@ public Builder mergeFrom( private java.lang.Object resourceId_ = ""; /** - * - * *
        * Resource identifier.
        * For a project this represents project_id. If the project is already
@@ -7108,13 +6042,13 @@ public Builder mergeFrom(
        * 
* * string resource_id = 1; - * * @return The resourceId. */ public java.lang.String getResourceId() { java.lang.Object ref = resourceId_; 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(); resourceId_ = s; return s; @@ -7123,8 +6057,6 @@ public java.lang.String getResourceId() { } } /** - * - * *
        * Resource identifier.
        * For a project this represents project_id. If the project is already
@@ -7132,14 +6064,15 @@ public java.lang.String getResourceId() {
        * 
* * string resource_id = 1; - * * @return The bytes for resourceId. */ - public com.google.protobuf.ByteString getResourceIdBytes() { + public com.google.protobuf.ByteString + getResourceIdBytes() { java.lang.Object ref = resourceId_; 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); resourceId_ = b; return b; } else { @@ -7147,8 +6080,6 @@ public com.google.protobuf.ByteString getResourceIdBytes() { } } /** - * - * *
        * Resource identifier.
        * For a project this represents project_id. If the project is already
@@ -7156,22 +6087,20 @@ public com.google.protobuf.ByteString getResourceIdBytes() {
        * 
* * string resource_id = 1; - * * @param value The resourceId to set. * @return This builder for chaining. */ - public Builder setResourceId(java.lang.String value) { + public Builder setResourceId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resourceId_ = value; onChanged(); return this; } /** - * - * *
        * Resource identifier.
        * For a project this represents project_id. If the project is already
@@ -7179,18 +6108,15 @@ public Builder setResourceId(java.lang.String value) {
        * 
* * string resource_id = 1; - * * @return This builder for chaining. */ public Builder clearResourceId() { - + resourceId_ = getDefaultInstance().getResourceId(); onChanged(); return this; } /** - * - * *
        * Resource identifier.
        * For a project this represents project_id. If the project is already
@@ -7198,16 +6124,16 @@ public Builder clearResourceId() {
        * 
* * string resource_id = 1; - * * @param value The bytes for resourceId to set. * @return This builder for chaining. */ - public Builder setResourceIdBytes(com.google.protobuf.ByteString value) { + public Builder setResourceIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceId_ = value; onChanged(); return this; @@ -7215,116 +6141,83 @@ public Builder setResourceIdBytes(com.google.protobuf.ByteString value) { private int resourceType_ = 0; /** - * - * *
        * Indicates the type of resource. This field should be specified to
        * correspond the id to the right project type (CONSUMER_PROJECT or
        * ENCRYPTION_KEYS_PROJECT)
        * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType resource_type = 2; - * - * + * .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType resource_type = 2; * @return The enum numeric value on the wire for resourceType. */ - @java.lang.Override - public int getResourceTypeValue() { + @java.lang.Override public int getResourceTypeValue() { return resourceType_; } /** - * - * *
        * Indicates the type of resource. This field should be specified to
        * correspond the id to the right project type (CONSUMER_PROJECT or
        * ENCRYPTION_KEYS_PROJECT)
        * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType resource_type = 2; - * - * + * .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType resource_type = 2; * @param value The enum numeric value on the wire for resourceType to set. * @return This builder for chaining. */ public Builder setResourceTypeValue(int value) { - + resourceType_ = value; onChanged(); return this; } /** - * - * *
        * Indicates the type of resource. This field should be specified to
        * correspond the id to the right project type (CONSUMER_PROJECT or
        * ENCRYPTION_KEYS_PROJECT)
        * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType resource_type = 2; - * - * + * .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType resource_type = 2; * @return The resourceType. */ @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType - getResourceType() { + public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType getResourceType() { @SuppressWarnings("deprecation") - com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType result = - com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType.valueOf( - resourceType_); - return result == null - ? com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType - .UNRECOGNIZED - : result; + com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType result = com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType.valueOf(resourceType_); + return result == null ? com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType.UNRECOGNIZED : result; } /** - * - * *
        * Indicates the type of resource. This field should be specified to
        * correspond the id to the right project type (CONSUMER_PROJECT or
        * ENCRYPTION_KEYS_PROJECT)
        * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType resource_type = 2; - * - * + * .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType resource_type = 2; * @param value The resourceType to set. * @return This builder for chaining. */ - public Builder setResourceType( - com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType value) { + public Builder setResourceType(com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType value) { if (value == null) { throw new NullPointerException(); } - + resourceType_ = value.getNumber(); onChanged(); return this; } /** - * - * *
        * Indicates the type of resource. This field should be specified to
        * correspond the id to the right project type (CONSUMER_PROJECT or
        * ENCRYPTION_KEYS_PROJECT)
        * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType resource_type = 2; - * - * + * .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType resource_type = 2; * @return This builder for chaining. */ public Builder clearResourceType() { - + resourceType_ = 0; onChanged(); return this; @@ -7332,8 +6225,6 @@ public Builder clearResourceType() { private java.lang.Object displayName_ = ""; /** - * - * *
        * User-assigned resource display name.
        * If not empty it will be used to create a resource with the specified
@@ -7341,13 +6232,13 @@ public Builder clearResourceType() {
        * 
* * string display_name = 3; - * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; 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(); displayName_ = s; return s; @@ -7356,8 +6247,6 @@ public java.lang.String getDisplayName() { } } /** - * - * *
        * User-assigned resource display name.
        * If not empty it will be used to create a resource with the specified
@@ -7365,14 +6254,15 @@ public java.lang.String getDisplayName() {
        * 
* * string display_name = 3; - * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; 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); displayName_ = b; return b; } else { @@ -7380,8 +6270,6 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
        * User-assigned resource display name.
        * If not empty it will be used to create a resource with the specified
@@ -7389,22 +6277,20 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
        * 
* * string display_name = 3; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { + public Builder setDisplayName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** - * - * *
        * User-assigned resource display name.
        * If not empty it will be used to create a resource with the specified
@@ -7412,18 +6298,15 @@ public Builder setDisplayName(java.lang.String value) {
        * 
* * string display_name = 3; - * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** - * - * *
        * User-assigned resource display name.
        * If not empty it will be used to create a resource with the specified
@@ -7431,21 +6314,20 @@ public Builder clearDisplayName() {
        * 
* * string display_name = 3; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -7458,32 +6340,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings) } // @@protoc_insertion_point(class_scope:google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings) - private static final com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings - DEFAULT_INSTANCE; - + private static final com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings(); } - public static com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings - getDefaultInstance() { + public static com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ResourceSettings parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ResourceSettings(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResourceSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ResourceSettings(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -7495,156 +6375,109 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings - getDefaultInstanceForType() { + public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface SaaEnrollmentResponseOrBuilder - extends + public interface SaaEnrollmentResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Indicates SAA enrollment status of a given workload.
      * 
* - * - * optional .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1; - * - * + * optional .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1; * @return Whether the setupStatus field is set. */ boolean hasSetupStatus(); /** - * - * *
      * Indicates SAA enrollment status of a given workload.
      * 
* - * - * optional .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1; - * - * + * optional .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1; * @return The enum numeric value on the wire for setupStatus. */ int getSetupStatusValue(); /** - * - * *
      * Indicates SAA enrollment status of a given workload.
      * 
* - * - * optional .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1; - * - * + * optional .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1; * @return The setupStatus. */ - com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupState - getSetupStatus(); + com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupState getSetupStatus(); /** - * - * *
      * Indicates SAA enrollment setup error if any.
      * 
* - * - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; - * - * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; * @return A list containing the setupErrors. */ - java.util.List< - com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError> - getSetupErrorsList(); + java.util.List getSetupErrorsList(); /** - * - * *
      * Indicates SAA enrollment setup error if any.
      * 
* - * - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; - * - * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; * @return The count of setupErrors. */ int getSetupErrorsCount(); /** - * - * *
      * Indicates SAA enrollment setup error if any.
      * 
* - * - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; - * - * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; * @param index The index of the element to return. * @return The setupErrors at the given index. */ - com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError - getSetupErrors(int index); + com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError getSetupErrors(int index); /** - * - * *
      * Indicates SAA enrollment setup error if any.
      * 
* - * - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; - * - * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; * @return A list containing the enum numeric values on the wire for setupErrors. */ - java.util.List getSetupErrorsValueList(); + java.util.List + getSetupErrorsValueList(); /** - * - * *
      * Indicates SAA enrollment setup error if any.
      * 
* - * - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; - * - * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; * @param index The index of the value to return. * @return The enum numeric value on the wire of setupErrors at the given index. */ int getSetupErrorsValue(int index); } /** - * - * *
    * Signed Access Approvals (SAA) enrollment response.
    * 
* * Protobuf type {@code google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse} */ - public static final class SaaEnrollmentResponse extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class SaaEnrollmentResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse) SaaEnrollmentResponseOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SaaEnrollmentResponse.newBuilder() to construct. private SaaEnrollmentResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SaaEnrollmentResponse() { setupStatus_ = 0; setupErrors_ = java.util.Collections.emptyList(); @@ -7652,15 +6485,16 @@ private SaaEnrollmentResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SaaEnrollmentResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private SaaEnrollmentResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -7680,45 +6514,42 @@ private SaaEnrollmentResponse( case 0: done = true; break; - case 8: - { - int rawValue = input.readEnum(); - bitField0_ |= 0x00000001; - setupStatus_ = rawValue; - break; + case 8: { + int rawValue = input.readEnum(); + bitField0_ |= 0x00000001; + setupStatus_ = rawValue; + break; + } + case 16: { + int rawValue = input.readEnum(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + setupErrors_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; } - case 16: - { + setupErrors_.add(rawValue); + break; + } + case 18: { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while(input.getBytesUntilLimit() > 0) { int rawValue = input.readEnum(); if (!((mutable_bitField0_ & 0x00000002) != 0)) { setupErrors_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } setupErrors_.add(rawValue); - break; - } - case 18: - { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while (input.getBytesUntilLimit() > 0) { - int rawValue = input.readEnum(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - setupErrors_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - setupErrors_.add(rawValue); - } - input.popLimit(oldLimit); - break; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + input.popLimit(oldLimit); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -7726,7 +6557,8 @@ private SaaEnrollmentResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) != 0)) { setupErrors_ = java.util.Collections.unmodifiableList(setupErrors_); @@ -7735,37 +6567,29 @@ private SaaEnrollmentResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1beta1_Workload_SaaEnrollmentResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_Workload_SaaEnrollmentResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1beta1_Workload_SaaEnrollmentResponse_fieldAccessorTable + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_Workload_SaaEnrollmentResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.class, - com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.Builder - .class); + com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.class, com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.Builder.class); } /** - * - * *
      * Setup state of SAA enrollment.
      * 
* - * Protobuf enum {@code - * google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupState} + * Protobuf enum {@code google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupState} */ - public enum SetupState implements com.google.protobuf.ProtocolMessageEnum { + public enum SetupState + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
        * Unspecified.
        * 
@@ -7774,8 +6598,6 @@ public enum SetupState implements com.google.protobuf.ProtocolMessageEnum { */ SETUP_STATE_UNSPECIFIED(0), /** - * - * *
        * SAA enrollment pending.
        * 
@@ -7784,8 +6606,6 @@ public enum SetupState implements com.google.protobuf.ProtocolMessageEnum { */ STATUS_PENDING(1), /** - * - * *
        * SAA enrollment comopleted.
        * 
@@ -7797,8 +6617,6 @@ public enum SetupState implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
        * Unspecified.
        * 
@@ -7807,8 +6625,6 @@ public enum SetupState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SETUP_STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
        * SAA enrollment pending.
        * 
@@ -7817,8 +6633,6 @@ public enum SetupState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATUS_PENDING_VALUE = 1; /** - * - * *
        * SAA enrollment comopleted.
        * 
@@ -7827,6 +6641,7 @@ public enum SetupState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATUS_COMPLETE_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -7851,52 +6666,49 @@ public static SetupState valueOf(int value) { */ public static SetupState forNumber(int value) { switch (value) { - case 0: - return SETUP_STATE_UNSPECIFIED; - case 1: - return STATUS_PENDING; - case 2: - return STATUS_COMPLETE; - default: - return null; + case 0: return SETUP_STATE_UNSPECIFIED; + case 1: return STATUS_PENDING; + case 2: return STATUS_COMPLETE; + 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< + SetupState> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SetupState findValueByNumber(int number) { + return SetupState.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public SetupState findValueByNumber(int number) { - return SetupState.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse - .getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.getDescriptor().getEnumTypes().get(0); } private static final SetupState[] VALUES = values(); - public static SetupState valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static SetupState 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; @@ -7914,19 +6726,15 @@ private SetupState(int value) { } /** - * - * *
      * Setup error of SAA enrollment.
      * 
* - * Protobuf enum {@code - * google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError} + * Protobuf enum {@code google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError} */ - public enum SetupError implements com.google.protobuf.ProtocolMessageEnum { + public enum SetupError + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
        * Unspecified.
        * 
@@ -7935,8 +6743,6 @@ public enum SetupError implements com.google.protobuf.ProtocolMessageEnum { */ SETUP_ERROR_UNSPECIFIED(0), /** - * - * *
        * Invalid states for all customers, to be redirected to AA UI for
        * additional details.
@@ -7946,8 +6752,6 @@ public enum SetupError implements com.google.protobuf.ProtocolMessageEnum {
        */
       ERROR_INVALID_BASE_SETUP(1),
       /**
-       *
-       *
        * 
        * Returned when there is not an EKM key configured.
        * 
@@ -7956,8 +6760,6 @@ public enum SetupError implements com.google.protobuf.ProtocolMessageEnum { */ ERROR_MISSING_EXTERNAL_SIGNING_KEY(2), /** - * - * *
        * Returned when there are no enrolled services or the customer is
        * enrolled in CAA only for a subset of services.
@@ -7967,8 +6769,6 @@ public enum SetupError implements com.google.protobuf.ProtocolMessageEnum {
        */
       ERROR_NOT_ALL_SERVICES_ENROLLED(3),
       /**
-       *
-       *
        * 
        * Returned when exception was encountered during evaluation of other
        * criteria.
@@ -7981,8 +6781,6 @@ public enum SetupError implements com.google.protobuf.ProtocolMessageEnum {
       ;
 
       /**
-       *
-       *
        * 
        * Unspecified.
        * 
@@ -7991,8 +6789,6 @@ public enum SetupError implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SETUP_ERROR_UNSPECIFIED_VALUE = 0; /** - * - * *
        * Invalid states for all customers, to be redirected to AA UI for
        * additional details.
@@ -8002,8 +6798,6 @@ public enum SetupError implements com.google.protobuf.ProtocolMessageEnum {
        */
       public static final int ERROR_INVALID_BASE_SETUP_VALUE = 1;
       /**
-       *
-       *
        * 
        * Returned when there is not an EKM key configured.
        * 
@@ -8012,8 +6806,6 @@ public enum SetupError implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ERROR_MISSING_EXTERNAL_SIGNING_KEY_VALUE = 2; /** - * - * *
        * Returned when there are no enrolled services or the customer is
        * enrolled in CAA only for a subset of services.
@@ -8023,8 +6815,6 @@ public enum SetupError implements com.google.protobuf.ProtocolMessageEnum {
        */
       public static final int ERROR_NOT_ALL_SERVICES_ENROLLED_VALUE = 3;
       /**
-       *
-       *
        * 
        * Returned when exception was encountered during evaluation of other
        * criteria.
@@ -8034,6 +6824,7 @@ public enum SetupError implements com.google.protobuf.ProtocolMessageEnum {
        */
       public static final int ERROR_SETUP_CHECK_FAILED_VALUE = 4;
 
+
       public final int getNumber() {
         if (this == UNRECOGNIZED) {
           throw new java.lang.IllegalArgumentException(
@@ -8058,56 +6849,51 @@ public static SetupError valueOf(int value) {
        */
       public static SetupError forNumber(int value) {
         switch (value) {
-          case 0:
-            return SETUP_ERROR_UNSPECIFIED;
-          case 1:
-            return ERROR_INVALID_BASE_SETUP;
-          case 2:
-            return ERROR_MISSING_EXTERNAL_SIGNING_KEY;
-          case 3:
-            return ERROR_NOT_ALL_SERVICES_ENROLLED;
-          case 4:
-            return ERROR_SETUP_CHECK_FAILED;
-          default:
-            return null;
+          case 0: return SETUP_ERROR_UNSPECIFIED;
+          case 1: return ERROR_INVALID_BASE_SETUP;
+          case 2: return ERROR_MISSING_EXTERNAL_SIGNING_KEY;
+          case 3: return ERROR_NOT_ALL_SERVICES_ENROLLED;
+          case 4: return ERROR_SETUP_CHECK_FAILED;
+          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<
+          SetupError> internalValueMap =
+            new com.google.protobuf.Internal.EnumLiteMap() {
+              public SetupError findValueByNumber(int number) {
+                return SetupError.forNumber(number);
+              }
+            };
 
-      private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public SetupError findValueByNumber(int number) {
-              return SetupError.forNumber(number);
-            }
-          };
-
-      public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+      public final com.google.protobuf.Descriptors.EnumValueDescriptor
+          getValueDescriptor() {
         if (this == UNRECOGNIZED) {
           throw new java.lang.IllegalStateException(
               "Can't get the descriptor of an unrecognized enum value.");
         }
         return getDescriptor().getValues().get(ordinal());
       }
-
-      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+      public final com.google.protobuf.Descriptors.EnumDescriptor
+          getDescriptorForType() {
         return getDescriptor();
       }
-
-      public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
-        return com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse
-            .getDescriptor()
-            .getEnumTypes()
-            .get(1);
+      public static final com.google.protobuf.Descriptors.EnumDescriptor
+          getDescriptor() {
+        return com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.getDescriptor().getEnumTypes().get(1);
       }
 
       private static final SetupError[] VALUES = values();
 
-      public static SetupError valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+      public static SetupError 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;
@@ -8128,122 +6914,72 @@ private SetupError(int value) {
     public static final int SETUP_STATUS_FIELD_NUMBER = 1;
     private int setupStatus_;
     /**
-     *
-     *
      * 
      * Indicates SAA enrollment status of a given workload.
      * 
* - * - * optional .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1; - * - * + * optional .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1; * @return Whether the setupStatus field is set. */ - @java.lang.Override - public boolean hasSetupStatus() { + @java.lang.Override public boolean hasSetupStatus() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Indicates SAA enrollment status of a given workload.
      * 
* - * - * optional .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1; - * - * + * optional .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1; * @return The enum numeric value on the wire for setupStatus. */ - @java.lang.Override - public int getSetupStatusValue() { + @java.lang.Override public int getSetupStatusValue() { return setupStatus_; } /** - * - * *
      * Indicates SAA enrollment status of a given workload.
      * 
* - * - * optional .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1; - * - * + * optional .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1; * @return The setupStatus. */ - @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupState - getSetupStatus() { + @java.lang.Override public com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupState getSetupStatus() { @SuppressWarnings("deprecation") - com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupState result = - com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupState - .valueOf(setupStatus_); - return result == null - ? com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupState - .UNRECOGNIZED - : result; + com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupState result = com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupState.valueOf(setupStatus_); + return result == null ? com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupState.UNRECOGNIZED : result; } public static final int SETUP_ERRORS_FIELD_NUMBER = 2; private java.util.List setupErrors_; private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, - com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError> - setupErrors_converter_ = + java.lang.Integer, com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError> setupErrors_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, - com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse - .SetupError>() { - public com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse - .SetupError - convert(java.lang.Integer from) { + java.lang.Integer, com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError>() { + public com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError convert(java.lang.Integer from) { @SuppressWarnings("deprecation") - com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError - result = - com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse - .SetupError.valueOf(from); - return result == null - ? com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse - .SetupError.UNRECOGNIZED - : result; + com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError result = com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError.valueOf(from); + return result == null ? com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError.UNRECOGNIZED : result; } }; /** - * - * *
      * Indicates SAA enrollment setup error if any.
      * 
* - * - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; - * - * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; * @return A list containing the setupErrors. */ @java.lang.Override - public java.util.List< - com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError> - getSetupErrorsList() { + public java.util.List getSetupErrorsList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, - com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError>( - setupErrors_, setupErrors_converter_); + java.lang.Integer, com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError>(setupErrors_, setupErrors_converter_); } /** - * - * *
      * Indicates SAA enrollment setup error if any.
      * 
* - * - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; - * - * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; * @return The count of setupErrors. */ @java.lang.Override @@ -8251,52 +6987,37 @@ public int getSetupErrorsCount() { return setupErrors_.size(); } /** - * - * *
      * Indicates SAA enrollment setup error if any.
      * 
* - * - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; - * - * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; * @param index The index of the element to return. * @return The setupErrors at the given index. */ @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError - getSetupErrors(int index) { + public com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError getSetupErrors(int index) { return setupErrors_converter_.convert(setupErrors_.get(index)); } /** - * - * *
      * Indicates SAA enrollment setup error if any.
      * 
* - * - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; - * - * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; * @return A list containing the enum numeric values on the wire for setupErrors. */ @java.lang.Override - public java.util.List getSetupErrorsValueList() { + public java.util.List + getSetupErrorsValueList() { return setupErrors_; } /** - * - * *
      * Indicates SAA enrollment setup error if any.
      * 
* - * - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; - * - * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; * @param index The index of the value to return. * @return The enum numeric value on the wire of setupErrors at the given index. */ @@ -8304,11 +7025,9 @@ public java.util.List getSetupErrorsValueList() { public int getSetupErrorsValue(int index) { return setupErrors_.get(index); } - private int setupErrorsMemoizedSerializedSize; private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -8320,7 +7039,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 { getSerializedSize(); if (((bitField0_ & 0x00000001) != 0)) { output.writeEnum(1, setupStatus_); @@ -8342,20 +7062,20 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, setupStatus_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, setupStatus_); } { int dataSize = 0; for (int i = 0; i < setupErrors_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(setupErrors_.get(i)); + dataSize += com.google.protobuf.CodedOutputStream + .computeEnumSizeNoTag(setupErrors_.get(i)); } size += dataSize; - if (!getSetupErrorsList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); - } - setupErrorsMemoizedSerializedSize = dataSize; + if (!getSetupErrorsList().isEmpty()) { size += 1; + size += com.google.protobuf.CodedOutputStream + .computeUInt32SizeNoTag(dataSize); + }setupErrorsMemoizedSerializedSize = dataSize; } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -8365,14 +7085,12 @@ 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.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse)) { + if (!(obj instanceof com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse)) { return super.equals(obj); } - com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse other = - (com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse) obj; + com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse other = (com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse) obj; if (hasSetupStatus() != other.hasSetupStatus()) return false; if (hasSetupStatus()) { @@ -8403,101 +7121,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse 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.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse 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.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse - 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.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse 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.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse - parseDelimitedFrom( - java.io.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.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse parseDelimitedFrom( + java.io.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.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse prototype) { + public static Builder newBuilder(com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse 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 @@ -8507,50 +7212,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Signed Access Approvals (SAA) enrollment response.
      * 
* * Protobuf type {@code google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse} */ - 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.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse) com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1beta1_Workload_SaaEnrollmentResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_Workload_SaaEnrollmentResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1beta1_Workload_SaaEnrollmentResponse_fieldAccessorTable + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_Workload_SaaEnrollmentResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.class, - com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.Builder - .class); + com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.class, com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.Builder.class); } - // Construct using - // com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.newBuilder() + // Construct using com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -8562,22 +7261,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1beta1_Workload_SaaEnrollmentResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_Workload_SaaEnrollmentResponse_descriptor; } @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse - getDefaultInstanceForType() { - return com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse - .getDefaultInstance(); + public com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse getDefaultInstanceForType() { + return com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.getDefaultInstance(); } @java.lang.Override public com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse build() { - com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse result = - buildPartial(); + com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -8585,10 +7281,8 @@ public com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse } @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse - buildPartial() { - com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse result = - new com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse(this); + public com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse buildPartial() { + com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse result = new com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { @@ -8609,54 +7303,46 @@ public com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse 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.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse) { - return mergeFrom( - (com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse) other); + if (other instanceof com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse) { + return mergeFrom((com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse other) { - if (other - == com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse other) { + if (other == com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.getDefaultInstance()) return this; if (other.hasSetupStatus()) { setSetupStatus(other.getSetupStatus()); } @@ -8685,14 +7371,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse parsedMessage = - null; + com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -8701,55 +7384,37 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private int setupStatus_ = 0; /** - * - * *
        * Indicates SAA enrollment status of a given workload.
        * 
* - * - * optional .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1; - * - * + * optional .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1; * @return Whether the setupStatus field is set. */ - @java.lang.Override - public boolean hasSetupStatus() { + @java.lang.Override public boolean hasSetupStatus() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
        * Indicates SAA enrollment status of a given workload.
        * 
* - * - * optional .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1; - * - * + * optional .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1; * @return The enum numeric value on the wire for setupStatus. */ - @java.lang.Override - public int getSetupStatusValue() { + @java.lang.Override public int getSetupStatusValue() { return setupStatus_; } /** - * - * *
        * Indicates SAA enrollment status of a given workload.
        * 
* - * - * optional .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1; - * - * + * optional .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1; * @param value The enum numeric value on the wire for setupStatus to set. * @return This builder for chaining. */ @@ -8760,47 +7425,29 @@ public Builder setSetupStatusValue(int value) { return this; } /** - * - * *
        * Indicates SAA enrollment status of a given workload.
        * 
* - * - * optional .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1; - * - * + * optional .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1; * @return The setupStatus. */ @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupState - getSetupStatus() { + public com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupState getSetupStatus() { @SuppressWarnings("deprecation") - com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupState result = - com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupState - .valueOf(setupStatus_); - return result == null - ? com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupState - .UNRECOGNIZED - : result; + com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupState result = com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupState.valueOf(setupStatus_); + return result == null ? com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupState.UNRECOGNIZED : result; } /** - * - * *
        * Indicates SAA enrollment status of a given workload.
        * 
* - * - * optional .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1; - * - * + * optional .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1; * @param value The setupStatus to set. * @return This builder for chaining. */ - public Builder setSetupStatus( - com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupState - value) { + public Builder setSetupStatus(com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupState value) { if (value == null) { throw new NullPointerException(); } @@ -8810,16 +7457,11 @@ public Builder setSetupStatus( return this; } /** - * - * *
        * Indicates SAA enrollment status of a given workload.
        * 
* - * - * optional .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1; - * - * + * optional .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1; * @return This builder for chaining. */ public Builder clearSetupStatus() { @@ -8829,8 +7471,8 @@ public Builder clearSetupStatus() { return this; } - private java.util.List setupErrors_ = java.util.Collections.emptyList(); - + private java.util.List setupErrors_ = + java.util.Collections.emptyList(); private void ensureSetupErrorsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { setupErrors_ = new java.util.ArrayList(setupErrors_); @@ -8838,79 +7480,52 @@ private void ensureSetupErrorsIsMutable() { } } /** - * - * *
        * Indicates SAA enrollment setup error if any.
        * 
* - * - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; - * - * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; * @return A list containing the setupErrors. */ - public java.util.List< - com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError> - getSetupErrorsList() { + public java.util.List getSetupErrorsList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, - com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError>( - setupErrors_, setupErrors_converter_); + java.lang.Integer, com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError>(setupErrors_, setupErrors_converter_); } /** - * - * *
        * Indicates SAA enrollment setup error if any.
        * 
* - * - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; - * - * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; * @return The count of setupErrors. */ public int getSetupErrorsCount() { return setupErrors_.size(); } /** - * - * *
        * Indicates SAA enrollment setup error if any.
        * 
* - * - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; - * - * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; * @param index The index of the element to return. * @return The setupErrors at the given index. */ - public com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError - getSetupErrors(int index) { + public com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError getSetupErrors(int index) { return setupErrors_converter_.convert(setupErrors_.get(index)); } /** - * - * *
        * Indicates SAA enrollment setup error if any.
        * 
* - * - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; - * - * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; * @param index The index to set the value at. * @param value The setupErrors to set. * @return This builder for chaining. */ public Builder setSetupErrors( - int index, - com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError - value) { + int index, com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError value) { if (value == null) { throw new NullPointerException(); } @@ -8920,22 +7535,15 @@ public Builder setSetupErrors( return this; } /** - * - * *
        * Indicates SAA enrollment setup error if any.
        * 
* - * - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; - * - * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; * @param value The setupErrors to add. * @return This builder for chaining. */ - public Builder addSetupErrors( - com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError - value) { + public Builder addSetupErrors(com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError value) { if (value == null) { throw new NullPointerException(); } @@ -8945,44 +7553,29 @@ public Builder addSetupErrors( return this; } /** - * - * *
        * Indicates SAA enrollment setup error if any.
        * 
* - * - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; - * - * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; * @param values The setupErrors to add. * @return This builder for chaining. */ public Builder addAllSetupErrors( - java.lang.Iterable< - ? extends - com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse - .SetupError> - values) { + java.lang.Iterable values) { ensureSetupErrorsIsMutable(); - for (com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError - value : values) { + for (com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError value : values) { setupErrors_.add(value.getNumber()); } onChanged(); return this; } /** - * - * *
        * Indicates SAA enrollment setup error if any.
        * 
* - * - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; - * - * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; * @return This builder for chaining. */ public Builder clearSetupErrors() { @@ -8992,32 +7585,23 @@ public Builder clearSetupErrors() { return this; } /** - * - * *
        * Indicates SAA enrollment setup error if any.
        * 
* - * - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; - * - * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; * @return A list containing the enum numeric values on the wire for setupErrors. */ - public java.util.List getSetupErrorsValueList() { + public java.util.List + getSetupErrorsValueList() { return java.util.Collections.unmodifiableList(setupErrors_); } /** - * - * *
        * Indicates SAA enrollment setup error if any.
        * 
* - * - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; - * - * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; * @param index The index of the value to return. * @return The enum numeric value on the wire of setupErrors at the given index. */ @@ -9025,37 +7609,28 @@ public int getSetupErrorsValue(int index) { return setupErrors_.get(index); } /** - * - * *
        * Indicates SAA enrollment setup error if any.
        * 
* - * - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; - * - * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; * @param index The index of the value to return. * @return The enum numeric value on the wire of setupErrors at the given index. * @return This builder for chaining. */ - public Builder setSetupErrorsValue(int index, int value) { + public Builder setSetupErrorsValue( + int index, int value) { ensureSetupErrorsIsMutable(); setupErrors_.set(index, value); onChanged(); return this; } /** - * - * *
        * Indicates SAA enrollment setup error if any.
        * 
* - * - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; - * - * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; * @param value The enum numeric value on the wire for setupErrors to add. * @return This builder for chaining. */ @@ -9066,20 +7641,16 @@ public Builder addSetupErrorsValue(int value) { return this; } /** - * - * *
        * Indicates SAA enrollment setup error if any.
        * 
* - * - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; - * - * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; * @param values The enum numeric values on the wire for setupErrors to add. * @return This builder for chaining. */ - public Builder addAllSetupErrorsValue(java.lang.Iterable values) { + public Builder addAllSetupErrorsValue( + java.lang.Iterable values) { ensureSetupErrorsIsMutable(); for (int value : values) { setupErrors_.add(value); @@ -9087,7 +7658,6 @@ public Builder addAllSetupErrorsValue(java.lang.Iterable valu onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -9100,33 +7670,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse) } // @@protoc_insertion_point(class_scope:google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse) - private static final com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse(); + DEFAULT_INSTANCE = new com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse(); } - public static com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse - getDefaultInstance() { + public static com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SaaEnrollmentResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SaaEnrollmentResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SaaEnrollmentResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SaaEnrollmentResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -9138,30 +7705,23 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse - getDefaultInstanceForType() { + public com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } private int complianceRegimeSettingsCase_ = 0; private java.lang.Object complianceRegimeSettings_; - public enum ComplianceRegimeSettingsCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { - @java.lang.Deprecated - IL4_SETTINGS(7), - @java.lang.Deprecated - CJIS_SETTINGS(8), - @java.lang.Deprecated - FEDRAMP_HIGH_SETTINGS(11), - @java.lang.Deprecated - FEDRAMP_MODERATE_SETTINGS(12), + @java.lang.Deprecated IL4_SETTINGS(7), + @java.lang.Deprecated CJIS_SETTINGS(8), + @java.lang.Deprecated FEDRAMP_HIGH_SETTINGS(11), + @java.lang.Deprecated FEDRAMP_MODERATE_SETTINGS(12), COMPLIANCEREGIMESETTINGS_NOT_SET(0); private final int value; - private ComplianceRegimeSettingsCase(int value) { this.value = value; } @@ -9177,35 +7737,28 @@ public static ComplianceRegimeSettingsCase valueOf(int value) { public static ComplianceRegimeSettingsCase forNumber(int value) { switch (value) { - case 7: - return IL4_SETTINGS; - case 8: - return CJIS_SETTINGS; - case 11: - return FEDRAMP_HIGH_SETTINGS; - case 12: - return FEDRAMP_MODERATE_SETTINGS; - case 0: - return COMPLIANCEREGIMESETTINGS_NOT_SET; - default: - return null; + case 7: return IL4_SETTINGS; + case 8: return CJIS_SETTINGS; + case 11: return FEDRAMP_HIGH_SETTINGS; + case 12: return FEDRAMP_MODERATE_SETTINGS; + case 0: return COMPLIANCEREGIMESETTINGS_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public ComplianceRegimeSettingsCase getComplianceRegimeSettingsCase() { - return ComplianceRegimeSettingsCase.forNumber(complianceRegimeSettingsCase_); + public ComplianceRegimeSettingsCase + getComplianceRegimeSettingsCase() { + return ComplianceRegimeSettingsCase.forNumber( + complianceRegimeSettingsCase_); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Optional. The resource name of the workload.
    * Format:
@@ -9214,7 +7767,6 @@ public ComplianceRegimeSettingsCase getComplianceRegimeSettingsCase() {
    * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The name. */ @java.lang.Override @@ -9223,15 +7775,14 @@ 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; } } /** - * - * *
    * Optional. The resource name of the workload.
    * Format:
@@ -9240,15 +7791,16 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -9259,8 +7811,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int DISPLAY_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object displayName_; /** - * - * *
    * Required. The user-assigned display name of the Workload.
    * When present it must be between 4 to 30 characters.
@@ -9270,7 +7820,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The displayName. */ @java.lang.Override @@ -9279,15 +7828,14 @@ public java.lang.String getDisplayName() { 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(); displayName_ = s; return s; } } /** - * - * *
    * Required. The user-assigned display name of the Workload.
    * When present it must be between 4 to 30 characters.
@@ -9297,15 +7845,16 @@ public java.lang.String getDisplayName() {
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; 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); displayName_ = b; return b; } else { @@ -9314,11 +7863,8 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } public static final int RESOURCES_FIELD_NUMBER = 3; - private java.util.List - resources_; + private java.util.List resources_; /** - * - * *
    * Output only. The resources associated with this workload.
    * These resources will be created when creating the workload.
@@ -9326,18 +7872,13 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
    * Always read only.
    * 
* - * - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public java.util.List - getResourcesList() { + public java.util.List getResourcesList() { return resources_; } /** - * - * *
    * Output only. The resources associated with this workload.
    * These resources will be created when creating the workload.
@@ -9345,19 +7886,14 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
    * Always read only.
    * 
* - * - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfoOrBuilder> + public java.util.List getResourcesOrBuilderList() { return resources_; } /** - * - * *
    * Output only. The resources associated with this workload.
    * These resources will be created when creating the workload.
@@ -9365,17 +7901,13 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
    * Always read only.
    * 
* - * - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public int getResourcesCount() { return resources_.size(); } /** - * - * *
    * Output only. The resources associated with this workload.
    * These resources will be created when creating the workload.
@@ -9383,17 +7915,13 @@ public int getResourcesCount() {
    * Always read only.
    * 
* - * - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo getResources(int index) { return resources_.get(index); } /** - * - * *
    * Output only. The resources associated with this workload.
    * These resources will be created when creating the workload.
@@ -9401,72 +7929,49 @@ public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo getResour
    * Always read only.
    * 
* - * - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfoOrBuilder - getResourcesOrBuilder(int index) { + public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfoOrBuilder getResourcesOrBuilder( + int index) { return resources_.get(index); } public static final int COMPLIANCE_REGIME_FIELD_NUMBER = 4; private int complianceRegime_; /** - * - * *
    * Required. Immutable. Compliance Regime associated with this workload.
    * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return The enum numeric value on the wire for complianceRegime. */ - @java.lang.Override - public int getComplianceRegimeValue() { + @java.lang.Override public int getComplianceRegimeValue() { return complianceRegime_; } /** - * - * *
    * Required. Immutable. Compliance Regime associated with this workload.
    * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return The complianceRegime. */ - @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime getComplianceRegime() { + @java.lang.Override public com.google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime getComplianceRegime() { @SuppressWarnings("deprecation") - com.google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime result = - com.google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime.valueOf( - complianceRegime_); - return result == null - ? com.google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime.UNRECOGNIZED - : result; + com.google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime result = com.google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime.valueOf(complianceRegime_); + return result == null ? com.google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime.UNRECOGNIZED : result; } public static final int CREATE_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. Immutable. The Workload creation timestamp.
    * 
* - * - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -9474,16 +7979,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. Immutable. The Workload creation timestamp.
    * 
* - * - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; * @return The createTime. */ @java.lang.Override @@ -9491,15 +7991,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. Immutable. The Workload creation timestamp.
    * 
* - * - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -9509,8 +8005,6 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int BILLING_ACCOUNT_FIELD_NUMBER = 6; private volatile java.lang.Object billingAccount_; /** - * - * *
    * Input only. The billing account used for the resources which are
    * direct children of workload. This billing account is initially associated
@@ -9523,7 +8017,6 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
    * 
* * string billing_account = 6 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The billingAccount. */ @java.lang.Override @@ -9532,15 +8025,14 @@ public java.lang.String getBillingAccount() { 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(); billingAccount_ = s; return s; } } /** - * - * *
    * Input only. The billing account used for the resources which are
    * direct children of workload. This billing account is initially associated
@@ -9553,15 +8045,16 @@ public java.lang.String getBillingAccount() {
    * 
* * string billing_account = 6 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The bytes for billingAccount. */ @java.lang.Override - public com.google.protobuf.ByteString getBillingAccountBytes() { + public com.google.protobuf.ByteString + getBillingAccountBytes() { java.lang.Object ref = billingAccount_; 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); billingAccount_ = b; return b; } else { @@ -9571,302 +8064,213 @@ public com.google.protobuf.ByteString getBillingAccountBytes() { public static final int IL4_SETTINGS_FIELD_NUMBER = 7; /** - * - * *
    * Required. Input only. Immutable. Settings specific to resources needed
    * for IL4.
    * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings il4_settings = 7 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * - * - * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.il4_settings is deprecated. See - * google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=455 + * .google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings il4_settings = 7 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.il4_settings is deprecated. + * See google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=455 * @return Whether the il4Settings field is set. */ @java.lang.Override - @java.lang.Deprecated - public boolean hasIl4Settings() { + @java.lang.Deprecated public boolean hasIl4Settings() { return complianceRegimeSettingsCase_ == 7; } /** - * - * *
    * Required. Input only. Immutable. Settings specific to resources needed
    * for IL4.
    * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings il4_settings = 7 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * - * - * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.il4_settings is deprecated. See - * google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=455 + * .google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings il4_settings = 7 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.il4_settings is deprecated. + * See google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=455 * @return The il4Settings. */ @java.lang.Override - @java.lang.Deprecated - public com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings getIl4Settings() { + @java.lang.Deprecated public com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings getIl4Settings() { if (complianceRegimeSettingsCase_ == 7) { - return (com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings) - complianceRegimeSettings_; + return (com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings) complianceRegimeSettings_; } return com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings.getDefaultInstance(); } /** - * - * *
    * Required. Input only. Immutable. Settings specific to resources needed
    * for IL4.
    * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings il4_settings = 7 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings il4_settings = 7 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ @java.lang.Override - @java.lang.Deprecated - public com.google.cloud.assuredworkloads.v1beta1.Workload.IL4SettingsOrBuilder - getIl4SettingsOrBuilder() { + @java.lang.Deprecated public com.google.cloud.assuredworkloads.v1beta1.Workload.IL4SettingsOrBuilder getIl4SettingsOrBuilder() { if (complianceRegimeSettingsCase_ == 7) { - return (com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings) - complianceRegimeSettings_; + return (com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings) complianceRegimeSettings_; } return com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings.getDefaultInstance(); } public static final int CJIS_SETTINGS_FIELD_NUMBER = 8; /** - * - * *
    * Required. Input only. Immutable. Settings specific to resources needed
    * for CJIS.
    * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings cjis_settings = 8 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * - * - * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.cjis_settings is deprecated. See - * google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=464 + * .google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings cjis_settings = 8 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.cjis_settings is deprecated. + * See google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=464 * @return Whether the cjisSettings field is set. */ @java.lang.Override - @java.lang.Deprecated - public boolean hasCjisSettings() { + @java.lang.Deprecated public boolean hasCjisSettings() { return complianceRegimeSettingsCase_ == 8; } /** - * - * *
    * Required. Input only. Immutable. Settings specific to resources needed
    * for CJIS.
    * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings cjis_settings = 8 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * - * - * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.cjis_settings is deprecated. See - * google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=464 + * .google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings cjis_settings = 8 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.cjis_settings is deprecated. + * See google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=464 * @return The cjisSettings. */ @java.lang.Override - @java.lang.Deprecated - public com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings getCjisSettings() { + @java.lang.Deprecated public com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings getCjisSettings() { if (complianceRegimeSettingsCase_ == 8) { - return (com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings) - complianceRegimeSettings_; + return (com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings) complianceRegimeSettings_; } return com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings.getDefaultInstance(); } /** - * - * *
    * Required. Input only. Immutable. Settings specific to resources needed
    * for CJIS.
    * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings cjis_settings = 8 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings cjis_settings = 8 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ @java.lang.Override - @java.lang.Deprecated - public com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettingsOrBuilder - getCjisSettingsOrBuilder() { + @java.lang.Deprecated public com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettingsOrBuilder getCjisSettingsOrBuilder() { if (complianceRegimeSettingsCase_ == 8) { - return (com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings) - complianceRegimeSettings_; + return (com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings) complianceRegimeSettings_; } return com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings.getDefaultInstance(); } public static final int FEDRAMP_HIGH_SETTINGS_FIELD_NUMBER = 11; /** - * - * *
    * Required. Input only. Immutable. Settings specific to resources needed
    * for FedRAMP High.
    * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings fedramp_high_settings = 11 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings fedramp_high_settings = 11 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.fedramp_high_settings is deprecated. * See google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=473 * @return Whether the fedrampHighSettings field is set. */ @java.lang.Override - @java.lang.Deprecated - public boolean hasFedrampHighSettings() { + @java.lang.Deprecated public boolean hasFedrampHighSettings() { return complianceRegimeSettingsCase_ == 11; } /** - * - * *
    * Required. Input only. Immutable. Settings specific to resources needed
    * for FedRAMP High.
    * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings fedramp_high_settings = 11 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings fedramp_high_settings = 11 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.fedramp_high_settings is deprecated. * See google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=473 * @return The fedrampHighSettings. */ @java.lang.Override - @java.lang.Deprecated - public com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings - getFedrampHighSettings() { + @java.lang.Deprecated public com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings getFedrampHighSettings() { if (complianceRegimeSettingsCase_ == 11) { - return (com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings) - complianceRegimeSettings_; + return (com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings) complianceRegimeSettings_; } - return com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings - .getDefaultInstance(); + return com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings.getDefaultInstance(); } /** - * - * *
    * Required. Input only. Immutable. Settings specific to resources needed
    * for FedRAMP High.
    * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings fedramp_high_settings = 11 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings fedramp_high_settings = 11 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ @java.lang.Override - @java.lang.Deprecated - public com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettingsOrBuilder - getFedrampHighSettingsOrBuilder() { + @java.lang.Deprecated public com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettingsOrBuilder getFedrampHighSettingsOrBuilder() { if (complianceRegimeSettingsCase_ == 11) { - return (com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings) - complianceRegimeSettings_; + return (com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings) complianceRegimeSettings_; } - return com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings - .getDefaultInstance(); + return com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings.getDefaultInstance(); } public static final int FEDRAMP_MODERATE_SETTINGS_FIELD_NUMBER = 12; /** - * - * *
    * Required. Input only. Immutable. Settings specific to resources needed
    * for FedRAMP Moderate.
    * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings fedramp_moderate_settings = 12 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * - * - * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.fedramp_moderate_settings is - * deprecated. See google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=482 + * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings fedramp_moderate_settings = 12 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.fedramp_moderate_settings is deprecated. + * See google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=482 * @return Whether the fedrampModerateSettings field is set. */ @java.lang.Override - @java.lang.Deprecated - public boolean hasFedrampModerateSettings() { + @java.lang.Deprecated public boolean hasFedrampModerateSettings() { return complianceRegimeSettingsCase_ == 12; } /** - * - * *
    * Required. Input only. Immutable. Settings specific to resources needed
    * for FedRAMP Moderate.
    * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings fedramp_moderate_settings = 12 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * - * - * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.fedramp_moderate_settings is - * deprecated. See google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=482 + * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings fedramp_moderate_settings = 12 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.fedramp_moderate_settings is deprecated. + * See google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=482 * @return The fedrampModerateSettings. */ @java.lang.Override - @java.lang.Deprecated - public com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings - getFedrampModerateSettings() { + @java.lang.Deprecated public com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings getFedrampModerateSettings() { if (complianceRegimeSettingsCase_ == 12) { - return (com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings) - complianceRegimeSettings_; + return (com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings) complianceRegimeSettings_; } - return com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings - .getDefaultInstance(); + return com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings.getDefaultInstance(); } /** - * - * *
    * Required. Input only. Immutable. Settings specific to resources needed
    * for FedRAMP Moderate.
    * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings fedramp_moderate_settings = 12 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings fedramp_moderate_settings = 12 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ @java.lang.Override - @java.lang.Deprecated - public com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettingsOrBuilder - getFedrampModerateSettingsOrBuilder() { + @java.lang.Deprecated public com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettingsOrBuilder getFedrampModerateSettingsOrBuilder() { if (complianceRegimeSettingsCase_ == 12) { - return (com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings) - complianceRegimeSettings_; + return (com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings) complianceRegimeSettings_; } - return com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings - .getDefaultInstance(); + return com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings.getDefaultInstance(); } public static final int ETAG_FIELD_NUMBER = 9; private volatile java.lang.Object etag_; /** - * - * *
    * Optional. ETag of the workload, it is calculated on the basis
    * of the Workload contents. It will be used in Update & Delete operations.
    * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The etag. */ @java.lang.Override @@ -9875,30 +8279,30 @@ public java.lang.String getEtag() { 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(); etag_ = s; return s; } } /** - * - * *
    * Optional. ETag of the workload, it is calculated on the basis
    * of the Workload contents. It will be used in Update & Delete operations.
    * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -9907,23 +8311,24 @@ public com.google.protobuf.ByteString getEtagBytes() { } public static final int LABELS_FIELD_NUMBER = 10; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1beta1_Workload_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_Workload_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -9932,30 +8337,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Optional. Labels applied to the workload.
    * 
* * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; */ + @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } - /** Use {@link #getLabelsMap()} instead. */ + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** - * - * *
    * Optional. Labels applied to the workload.
    * 
@@ -9963,12 +8366,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
    * Optional. Labels applied to the workload.
    * 
@@ -9976,16 +8378,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Optional. Labels applied to the workload.
    * 
@@ -9993,11 +8395,12 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -10007,8 +8410,6 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { public static final int PROVISIONED_RESOURCES_PARENT_FIELD_NUMBER = 13; private volatile java.lang.Object provisionedResourcesParent_; /** - * - * *
    * Input only. The parent resource for the resources managed by this Assured
    * Workload. May be either empty or a folder resource which is a child of the
@@ -10018,9 +8419,7 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
    * folders/{folder_id}
    * 
* - * string provisioned_resources_parent = 13 [(.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string provisioned_resources_parent = 13 [(.google.api.field_behavior) = INPUT_ONLY]; * @return The provisionedResourcesParent. */ @java.lang.Override @@ -10029,15 +8428,14 @@ public java.lang.String getProvisionedResourcesParent() { 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(); provisionedResourcesParent_ = s; return s; } } /** - * - * *
    * Input only. The parent resource for the resources managed by this Assured
    * Workload. May be either empty or a folder resource which is a child of the
@@ -10047,17 +8445,17 @@ public java.lang.String getProvisionedResourcesParent() {
    * folders/{folder_id}
    * 
* - * string provisioned_resources_parent = 13 [(.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string provisioned_resources_parent = 13 [(.google.api.field_behavior) = INPUT_ONLY]; * @return The bytes for provisionedResourcesParent. */ @java.lang.Override - public com.google.protobuf.ByteString getProvisionedResourcesParentBytes() { + public com.google.protobuf.ByteString + getProvisionedResourcesParentBytes() { java.lang.Object ref = provisionedResourcesParent_; 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); provisionedResourcesParent_ = b; return b; } else { @@ -10068,18 +8466,13 @@ public com.google.protobuf.ByteString getProvisionedResourcesParentBytes() { public static final int KMS_SETTINGS_FIELD_NUMBER = 14; private com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kmsSettings_; /** - * - * *
    * Input only. Settings used to create a CMEK crypto key. When set a project
    * with a KMS CMEK key is provisioned. This field is mandatory for a subset of
    * Compliance Regimes.
    * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; - * - * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; * @return Whether the kmsSettings field is set. */ @java.lang.Override @@ -10087,195 +8480,139 @@ public boolean hasKmsSettings() { return kmsSettings_ != null; } /** - * - * *
    * Input only. Settings used to create a CMEK crypto key. When set a project
    * with a KMS CMEK key is provisioned. This field is mandatory for a subset of
    * Compliance Regimes.
    * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; - * - * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; * @return The kmsSettings. */ @java.lang.Override public com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings getKmsSettings() { - return kmsSettings_ == null - ? com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.getDefaultInstance() - : kmsSettings_; + return kmsSettings_ == null ? com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.getDefaultInstance() : kmsSettings_; } /** - * - * *
    * Input only. Settings used to create a CMEK crypto key. When set a project
    * with a KMS CMEK key is provisioned. This field is mandatory for a subset of
    * Compliance Regimes.
    * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; - * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; */ @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder - getKmsSettingsOrBuilder() { + public com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder getKmsSettingsOrBuilder() { return getKmsSettings(); } public static final int RESOURCE_SETTINGS_FIELD_NUMBER = 15; - private java.util.List - resourceSettings_; + private java.util.List resourceSettings_; /** - * - * *
    * Input only. Resource properties that are used to customize workload
    * resources. These properties (such as custom project id) will be used to
    * create workload resources if possible. This field is optional.
    * 
* - * - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; */ @java.lang.Override - public java.util.List - getResourceSettingsList() { + public java.util.List getResourceSettingsList() { return resourceSettings_; } /** - * - * *
    * Input only. Resource properties that are used to customize workload
    * resources. These properties (such as custom project id) will be used to
    * create workload resources if possible. This field is optional.
    * 
* - * - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettingsOrBuilder> + public java.util.List getResourceSettingsOrBuilderList() { return resourceSettings_; } /** - * - * *
    * Input only. Resource properties that are used to customize workload
    * resources. These properties (such as custom project id) will be used to
    * create workload resources if possible. This field is optional.
    * 
* - * - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; */ @java.lang.Override public int getResourceSettingsCount() { return resourceSettings_.size(); } /** - * - * *
    * Input only. Resource properties that are used to customize workload
    * resources. These properties (such as custom project id) will be used to
    * create workload resources if possible. This field is optional.
    * 
* - * - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; */ @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings getResourceSettings( - int index) { + public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings getResourceSettings(int index) { return resourceSettings_.get(index); } /** - * - * *
    * Input only. Resource properties that are used to customize workload
    * resources. These properties (such as custom project id) will be used to
    * create workload resources if possible. This field is optional.
    * 
* - * - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; */ @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettingsOrBuilder - getResourceSettingsOrBuilder(int index) { + public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettingsOrBuilder getResourceSettingsOrBuilder( + int index) { return resourceSettings_.get(index); } public static final int KAJ_ENROLLMENT_STATE_FIELD_NUMBER = 17; private int kajEnrollmentState_; /** - * - * *
    * Output only. Represents the KAJ enrollment state of the given workload.
    * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.KajEnrollmentState kaj_enrollment_state = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.assuredworkloads.v1beta1.Workload.KajEnrollmentState kaj_enrollment_state = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for kajEnrollmentState. */ - @java.lang.Override - public int getKajEnrollmentStateValue() { + @java.lang.Override public int getKajEnrollmentStateValue() { return kajEnrollmentState_; } /** - * - * *
    * Output only. Represents the KAJ enrollment state of the given workload.
    * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.KajEnrollmentState kaj_enrollment_state = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.assuredworkloads.v1beta1.Workload.KajEnrollmentState kaj_enrollment_state = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The kajEnrollmentState. */ - @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.Workload.KajEnrollmentState - getKajEnrollmentState() { + @java.lang.Override public com.google.cloud.assuredworkloads.v1beta1.Workload.KajEnrollmentState getKajEnrollmentState() { @SuppressWarnings("deprecation") - com.google.cloud.assuredworkloads.v1beta1.Workload.KajEnrollmentState result = - com.google.cloud.assuredworkloads.v1beta1.Workload.KajEnrollmentState.valueOf( - kajEnrollmentState_); - return result == null - ? com.google.cloud.assuredworkloads.v1beta1.Workload.KajEnrollmentState.UNRECOGNIZED - : result; + com.google.cloud.assuredworkloads.v1beta1.Workload.KajEnrollmentState result = com.google.cloud.assuredworkloads.v1beta1.Workload.KajEnrollmentState.valueOf(kajEnrollmentState_); + return result == null ? com.google.cloud.assuredworkloads.v1beta1.Workload.KajEnrollmentState.UNRECOGNIZED : result; } public static final int ENABLE_SOVEREIGN_CONTROLS_FIELD_NUMBER = 18; private boolean enableSovereignControls_; /** - * - * *
    * Optional. Indicates the sovereignty status of the given workload.
    * Currently meant to be used by Europe/Canada customers.
    * 
* * bool enable_sovereign_controls = 18 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The enableSovereignControls. */ @java.lang.Override @@ -10284,21 +8621,15 @@ public boolean getEnableSovereignControls() { } public static final int SAA_ENROLLMENT_RESPONSE_FIELD_NUMBER = 20; - private com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse - saaEnrollmentResponse_; + private com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse saaEnrollmentResponse_; /** - * - * *
    * Output only. Represents the SAA enrollment response of the given workload.
    * SAA enrollment response is queried during GetWorkload call.
    * In failure cases, user friendly error message is shown in SAA details page.
    * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the saaEnrollmentResponse field is set. */ @java.lang.Override @@ -10306,49 +8637,34 @@ public boolean hasSaaEnrollmentResponse() { return saaEnrollmentResponse_ != null; } /** - * - * *
    * Output only. Represents the SAA enrollment response of the given workload.
    * SAA enrollment response is queried during GetWorkload call.
    * In failure cases, user friendly error message is shown in SAA details page.
    * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The saaEnrollmentResponse. */ @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse - getSaaEnrollmentResponse() { - return saaEnrollmentResponse_ == null - ? com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse - .getDefaultInstance() - : saaEnrollmentResponse_; + public com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse getSaaEnrollmentResponse() { + return saaEnrollmentResponse_ == null ? com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.getDefaultInstance() : saaEnrollmentResponse_; } /** - * - * *
    * Output only. Represents the SAA enrollment response of the given workload.
    * SAA enrollment response is queried during GetWorkload call.
    * In failure cases, user friendly error message is shown in SAA details page.
    * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponseOrBuilder - getSaaEnrollmentResponseOrBuilder() { + public com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponseOrBuilder getSaaEnrollmentResponseOrBuilder() { return getSaaEnrollmentResponse(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -10360,7 +8676,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_); } @@ -10370,10 +8687,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < resources_.size(); i++) { output.writeMessage(3, resources_.get(i)); } - if (complianceRegime_ - != com.google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime - .COMPLIANCE_REGIME_UNSPECIFIED - .getNumber()) { + if (complianceRegime_ != com.google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime.COMPLIANCE_REGIME_UNSPECIFIED.getNumber()) { output.writeEnum(4, complianceRegime_); } if (createTime_ != null) { @@ -10383,33 +8697,25 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io com.google.protobuf.GeneratedMessageV3.writeString(output, 6, billingAccount_); } if (complianceRegimeSettingsCase_ == 7) { - output.writeMessage( - 7, - (com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings) - complianceRegimeSettings_); + output.writeMessage(7, (com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings) complianceRegimeSettings_); } if (complianceRegimeSettingsCase_ == 8) { - output.writeMessage( - 8, - (com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings) - complianceRegimeSettings_); + output.writeMessage(8, (com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings) complianceRegimeSettings_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, etag_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 10); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 10); if (complianceRegimeSettingsCase_ == 11) { - output.writeMessage( - 11, - (com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings) - complianceRegimeSettings_); + output.writeMessage(11, (com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings) complianceRegimeSettings_); } if (complianceRegimeSettingsCase_ == 12) { - output.writeMessage( - 12, - (com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings) - complianceRegimeSettings_); + output.writeMessage(12, (com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings) complianceRegimeSettings_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(provisionedResourcesParent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 13, provisionedResourcesParent_); @@ -10420,10 +8726,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < resourceSettings_.size(); i++) { output.writeMessage(15, resourceSettings_.get(i)); } - if (kajEnrollmentState_ - != com.google.cloud.assuredworkloads.v1beta1.Workload.KajEnrollmentState - .KAJ_ENROLLMENT_STATE_UNSPECIFIED - .getNumber()) { + if (kajEnrollmentState_ != com.google.cloud.assuredworkloads.v1beta1.Workload.KajEnrollmentState.KAJ_ENROLLMENT_STATE_UNSPECIFIED.getNumber()) { output.writeEnum(17, kajEnrollmentState_); } if (enableSovereignControls_ != false) { @@ -10448,84 +8751,71 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); } for (int i = 0; i < resources_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, resources_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, resources_.get(i)); } - if (complianceRegime_ - != com.google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime - .COMPLIANCE_REGIME_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, complianceRegime_); + if (complianceRegime_ != com.google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime.COMPLIANCE_REGIME_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, complianceRegime_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getCreateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(billingAccount_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, billingAccount_); } if (complianceRegimeSettingsCase_ == 7) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 7, - (com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings) - complianceRegimeSettings_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, (com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings) complianceRegimeSettings_); } if (complianceRegimeSettingsCase_ == 8) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 8, - (com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings) - complianceRegimeSettings_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, (com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings) complianceRegimeSettings_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, etag_); } - for (java.util.Map.Entry entry : - internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry labels__ = - LabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, labels__); + for (java.util.Map.Entry entry + : internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, labels__); } if (complianceRegimeSettingsCase_ == 11) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 11, - (com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings) - complianceRegimeSettings_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, (com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings) complianceRegimeSettings_); } if (complianceRegimeSettingsCase_ == 12) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 12, - (com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings) - complianceRegimeSettings_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, (com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings) complianceRegimeSettings_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(provisionedResourcesParent_)) { - size += - com.google.protobuf.GeneratedMessageV3.computeStringSize(13, provisionedResourcesParent_); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, provisionedResourcesParent_); } if (kmsSettings_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getKmsSettings()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(14, getKmsSettings()); } for (int i = 0; i < resourceSettings_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(15, resourceSettings_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(15, resourceSettings_.get(i)); } - if (kajEnrollmentState_ - != com.google.cloud.assuredworkloads.v1beta1.Workload.KajEnrollmentState - .KAJ_ENROLLMENT_STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(17, kajEnrollmentState_); + if (kajEnrollmentState_ != com.google.cloud.assuredworkloads.v1beta1.Workload.KajEnrollmentState.KAJ_ENROLLMENT_STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(17, kajEnrollmentState_); } if (enableSovereignControls_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(18, enableSovereignControls_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(18, enableSovereignControls_); } if (saaEnrollmentResponse_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(20, getSaaEnrollmentResponse()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(20, getSaaEnrollmentResponse()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -10535,52 +8825,65 @@ 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.assuredworkloads.v1beta1.Workload)) { return super.equals(obj); } - com.google.cloud.assuredworkloads.v1beta1.Workload other = - (com.google.cloud.assuredworkloads.v1beta1.Workload) obj; + com.google.cloud.assuredworkloads.v1beta1.Workload other = (com.google.cloud.assuredworkloads.v1beta1.Workload) obj; - if (!getName().equals(other.getName())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (!getResourcesList().equals(other.getResourcesList())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; + if (!getResourcesList() + .equals(other.getResourcesList())) return false; if (complianceRegime_ != other.complianceRegime_) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; - } - if (!getBillingAccount().equals(other.getBillingAccount())) return false; - if (!getEtag().equals(other.getEtag())) return false; - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (!getProvisionedResourcesParent().equals(other.getProvisionedResourcesParent())) - return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; + } + if (!getBillingAccount() + .equals(other.getBillingAccount())) return false; + if (!getEtag() + .equals(other.getEtag())) return false; + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; + if (!getProvisionedResourcesParent() + .equals(other.getProvisionedResourcesParent())) return false; if (hasKmsSettings() != other.hasKmsSettings()) return false; if (hasKmsSettings()) { - if (!getKmsSettings().equals(other.getKmsSettings())) return false; + if (!getKmsSettings() + .equals(other.getKmsSettings())) return false; } - if (!getResourceSettingsList().equals(other.getResourceSettingsList())) return false; + if (!getResourceSettingsList() + .equals(other.getResourceSettingsList())) return false; if (kajEnrollmentState_ != other.kajEnrollmentState_) return false; - if (getEnableSovereignControls() != other.getEnableSovereignControls()) return false; + if (getEnableSovereignControls() + != other.getEnableSovereignControls()) return false; if (hasSaaEnrollmentResponse() != other.hasSaaEnrollmentResponse()) return false; if (hasSaaEnrollmentResponse()) { - if (!getSaaEnrollmentResponse().equals(other.getSaaEnrollmentResponse())) return false; + if (!getSaaEnrollmentResponse() + .equals(other.getSaaEnrollmentResponse())) return false; } - if (!getComplianceRegimeSettingsCase().equals(other.getComplianceRegimeSettingsCase())) - return false; + if (!getComplianceRegimeSettingsCase().equals(other.getComplianceRegimeSettingsCase())) return false; switch (complianceRegimeSettingsCase_) { case 7: - if (!getIl4Settings().equals(other.getIl4Settings())) return false; + if (!getIl4Settings() + .equals(other.getIl4Settings())) return false; break; case 8: - if (!getCjisSettings().equals(other.getCjisSettings())) return false; + if (!getCjisSettings() + .equals(other.getCjisSettings())) return false; break; case 11: - if (!getFedrampHighSettings().equals(other.getFedrampHighSettings())) return false; + if (!getFedrampHighSettings() + .equals(other.getFedrampHighSettings())) return false; break; case 12: - if (!getFedrampModerateSettings().equals(other.getFedrampModerateSettings())) return false; + if (!getFedrampModerateSettings() + .equals(other.getFedrampModerateSettings())) return false; break; case 0: default: @@ -10631,7 +8934,8 @@ public int hashCode() { hash = (37 * hash) + KAJ_ENROLLMENT_STATE_FIELD_NUMBER; hash = (53 * hash) + kajEnrollmentState_; hash = (37 * hash) + ENABLE_SOVEREIGN_CONTROLS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableSovereignControls()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnableSovereignControls()); if (hasSaaEnrollmentResponse()) { hash = (37 * hash) + SAA_ENROLLMENT_RESPONSE_FIELD_NUMBER; hash = (53 * hash) + getSaaEnrollmentResponse().hashCode(); @@ -10662,103 +8966,96 @@ public int hashCode() { } public static com.google.cloud.assuredworkloads.v1beta1.Workload 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.assuredworkloads.v1beta1.Workload 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.assuredworkloads.v1beta1.Workload parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.assuredworkloads.v1beta1.Workload 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.assuredworkloads.v1beta1.Workload parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.assuredworkloads.v1beta1.Workload 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.assuredworkloads.v1beta1.Workload parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.assuredworkloads.v1beta1.Workload parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.assuredworkloads.v1beta1.Workload 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.assuredworkloads.v1beta1.Workload parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.assuredworkloads.v1beta1.Workload parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.assuredworkloads.v1beta1.Workload 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.assuredworkloads.v1beta1.Workload 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.assuredworkloads.v1beta1.Workload 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.assuredworkloads.v1beta1.Workload prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * An Workload object for managing highly regulated workloads of cloud
    * customers.
@@ -10766,43 +9063,43 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.assuredworkloads.v1beta1.Workload}
    */
-  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.assuredworkloads.v1beta1.Workload)
       com.google.cloud.assuredworkloads.v1beta1.WorkloadOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto
-          .internal_static_google_cloud_assuredworkloads_v1beta1_Workload_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_Workload_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 10:
           return internalGetLabels();
         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 10:
           return internalGetMutableLabels();
         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.assuredworkloads.v1beta1.AssuredworkloadsProto
-          .internal_static_google_cloud_assuredworkloads_v1beta1_Workload_fieldAccessorTable
+      return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_Workload_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.assuredworkloads.v1beta1.Workload.class,
-              com.google.cloud.assuredworkloads.v1beta1.Workload.Builder.class);
+              com.google.cloud.assuredworkloads.v1beta1.Workload.class, com.google.cloud.assuredworkloads.v1beta1.Workload.Builder.class);
     }
 
     // Construct using com.google.cloud.assuredworkloads.v1beta1.Workload.newBuilder()
@@ -10810,18 +9107,18 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getResourcesFieldBuilder();
         getResourceSettingsFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -10878,9 +9175,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto
-          .internal_static_google_cloud_assuredworkloads_v1beta1_Workload_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_Workload_descriptor;
     }
 
     @java.lang.Override
@@ -10899,8 +9196,7 @@ public com.google.cloud.assuredworkloads.v1beta1.Workload build() {
 
     @java.lang.Override
     public com.google.cloud.assuredworkloads.v1beta1.Workload buildPartial() {
-      com.google.cloud.assuredworkloads.v1beta1.Workload result =
-          new com.google.cloud.assuredworkloads.v1beta1.Workload(this);
+      com.google.cloud.assuredworkloads.v1beta1.Workload result = new com.google.cloud.assuredworkloads.v1beta1.Workload(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       result.displayName_ = displayName_;
@@ -10982,39 +9278,38 @@ public com.google.cloud.assuredworkloads.v1beta1.Workload buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.assuredworkloads.v1beta1.Workload) {
-        return mergeFrom((com.google.cloud.assuredworkloads.v1beta1.Workload) other);
+        return mergeFrom((com.google.cloud.assuredworkloads.v1beta1.Workload)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -11022,8 +9317,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.assuredworkloads.v1beta1.Workload other) {
-      if (other == com.google.cloud.assuredworkloads.v1beta1.Workload.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.assuredworkloads.v1beta1.Workload.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -11050,10 +9344,9 @@ public Builder mergeFrom(com.google.cloud.assuredworkloads.v1beta1.Workload othe
             resourcesBuilder_ = null;
             resources_ = other.resources_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            resourcesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getResourcesFieldBuilder()
-                    : null;
+            resourcesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getResourcesFieldBuilder() : null;
           } else {
             resourcesBuilder_.addAllMessages(other.resources_);
           }
@@ -11073,7 +9366,8 @@ public Builder mergeFrom(com.google.cloud.assuredworkloads.v1beta1.Workload othe
         etag_ = other.etag_;
         onChanged();
       }
-      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(
+          other.internalGetLabels());
       if (!other.getProvisionedResourcesParent().isEmpty()) {
         provisionedResourcesParent_ = other.provisionedResourcesParent_;
         onChanged();
@@ -11099,10 +9393,9 @@ public Builder mergeFrom(com.google.cloud.assuredworkloads.v1beta1.Workload othe
             resourceSettingsBuilder_ = null;
             resourceSettings_ = other.resourceSettings_;
             bitField0_ = (bitField0_ & ~0x00000004);
-            resourceSettingsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getResourceSettingsFieldBuilder()
-                    : null;
+            resourceSettingsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getResourceSettingsFieldBuilder() : null;
           } else {
             resourceSettingsBuilder_.addAllMessages(other.resourceSettings_);
           }
@@ -11118,30 +9411,25 @@ public Builder mergeFrom(com.google.cloud.assuredworkloads.v1beta1.Workload othe
         mergeSaaEnrollmentResponse(other.getSaaEnrollmentResponse());
       }
       switch (other.getComplianceRegimeSettingsCase()) {
-        case IL4_SETTINGS:
-          {
-            mergeIl4Settings(other.getIl4Settings());
-            break;
-          }
-        case CJIS_SETTINGS:
-          {
-            mergeCjisSettings(other.getCjisSettings());
-            break;
-          }
-        case FEDRAMP_HIGH_SETTINGS:
-          {
-            mergeFedrampHighSettings(other.getFedrampHighSettings());
-            break;
-          }
-        case FEDRAMP_MODERATE_SETTINGS:
-          {
-            mergeFedrampModerateSettings(other.getFedrampModerateSettings());
-            break;
-          }
-        case COMPLIANCEREGIMESETTINGS_NOT_SET:
-          {
-            break;
-          }
+        case IL4_SETTINGS: {
+          mergeIl4Settings(other.getIl4Settings());
+          break;
+        }
+        case CJIS_SETTINGS: {
+          mergeCjisSettings(other.getCjisSettings());
+          break;
+        }
+        case FEDRAMP_HIGH_SETTINGS: {
+          mergeFedrampHighSettings(other.getFedrampHighSettings());
+          break;
+        }
+        case FEDRAMP_MODERATE_SETTINGS: {
+          mergeFedrampModerateSettings(other.getFedrampModerateSettings());
+          break;
+        }
+        case COMPLIANCEREGIMESETTINGS_NOT_SET: {
+          break;
+        }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -11162,8 +9450,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.assuredworkloads.v1beta1.Workload) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.assuredworkloads.v1beta1.Workload) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -11172,12 +9459,12 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int complianceRegimeSettingsCase_ = 0;
     private java.lang.Object complianceRegimeSettings_;
-
-    public ComplianceRegimeSettingsCase getComplianceRegimeSettingsCase() {
-      return ComplianceRegimeSettingsCase.forNumber(complianceRegimeSettingsCase_);
+    public ComplianceRegimeSettingsCase
+        getComplianceRegimeSettingsCase() {
+      return ComplianceRegimeSettingsCase.forNumber(
+          complianceRegimeSettingsCase_);
     }
 
     public Builder clearComplianceRegimeSettings() {
@@ -11191,8 +9478,6 @@ public Builder clearComplianceRegimeSettings() {
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Optional. The resource name of the workload.
      * Format:
@@ -11201,13 +9486,13 @@ public Builder clearComplianceRegimeSettings() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; @@ -11216,8 +9501,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Optional. The resource name of the workload.
      * Format:
@@ -11226,14 +9509,15 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -11241,8 +9525,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Optional. The resource name of the workload.
      * Format:
@@ -11251,22 +9533,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The resource name of the workload.
      * Format:
@@ -11275,18 +9555,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Optional. The resource name of the workload.
      * Format:
@@ -11295,16 +9572,16 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -11312,8 +9589,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object displayName_ = ""; /** - * - * *
      * Required. The user-assigned display name of the Workload.
      * When present it must be between 4 to 30 characters.
@@ -11323,13 +9598,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; 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(); displayName_ = s; return s; @@ -11338,8 +9613,6 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * Required. The user-assigned display name of the Workload.
      * When present it must be between 4 to 30 characters.
@@ -11349,14 +9622,15 @@ public java.lang.String getDisplayName() {
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; 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); displayName_ = b; return b; } else { @@ -11364,8 +9638,6 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * Required. The user-assigned display name of the Workload.
      * When present it must be between 4 to 30 characters.
@@ -11375,22 +9647,20 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { + public Builder setDisplayName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** - * - * *
      * Required. The user-assigned display name of the Workload.
      * When present it must be between 4 to 30 characters.
@@ -11400,18 +9670,15 @@ public Builder setDisplayName(java.lang.String value) {
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** - * - * *
      * Required. The user-assigned display name of the Workload.
      * When present it must be between 4 to 30 characters.
@@ -11421,42 +9688,34 @@ public Builder clearDisplayName() {
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; } - private java.util.List - resources_ = java.util.Collections.emptyList(); - + private java.util.List resources_ = + java.util.Collections.emptyList(); private void ensureResourcesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - resources_ = - new java.util.ArrayList< - com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo>(resources_); + resources_ = new java.util.ArrayList(resources_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo, - com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.Builder, - com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfoOrBuilder> - resourcesBuilder_; + com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo, com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.Builder, com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfoOrBuilder> resourcesBuilder_; /** - * - * *
      * Output only. The resources associated with this workload.
      * These resources will be created when creating the workload.
@@ -11464,12 +9723,9 @@ private void ensureResourcesIsMutable() {
      * Always read only.
      * 
* - * - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List - getResourcesList() { + public java.util.List getResourcesList() { if (resourcesBuilder_ == null) { return java.util.Collections.unmodifiableList(resources_); } else { @@ -11477,8 +9733,6 @@ private void ensureResourcesIsMutable() { } } /** - * - * *
      * Output only. The resources associated with this workload.
      * These resources will be created when creating the workload.
@@ -11486,9 +9740,7 @@ private void ensureResourcesIsMutable() {
      * Always read only.
      * 
* - * - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public int getResourcesCount() { if (resourcesBuilder_ == null) { @@ -11498,8 +9750,6 @@ public int getResourcesCount() { } } /** - * - * *
      * Output only. The resources associated with this workload.
      * These resources will be created when creating the workload.
@@ -11507,9 +9757,7 @@ public int getResourcesCount() {
      * Always read only.
      * 
* - * - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo getResources(int index) { if (resourcesBuilder_ == null) { @@ -11519,8 +9767,6 @@ public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo getResour } } /** - * - * *
      * Output only. The resources associated with this workload.
      * These resources will be created when creating the workload.
@@ -11528,9 +9774,7 @@ public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo getResour
      * Always read only.
      * 
* - * - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setResources( int index, com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo value) { @@ -11547,8 +9791,6 @@ public Builder setResources( return this; } /** - * - * *
      * Output only. The resources associated with this workload.
      * These resources will be created when creating the workload.
@@ -11556,13 +9798,10 @@ public Builder setResources(
      * Always read only.
      * 
* - * - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setResources( - int index, - com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.Builder builderForValue) { + int index, com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.Builder builderForValue) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); resources_.set(index, builderForValue.build()); @@ -11573,8 +9812,6 @@ public Builder setResources( return this; } /** - * - * *
      * Output only. The resources associated with this workload.
      * These resources will be created when creating the workload.
@@ -11582,12 +9819,9 @@ public Builder setResources(
      * Always read only.
      * 
* - * - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder addResources( - com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo value) { + public Builder addResources(com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo value) { if (resourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -11601,8 +9835,6 @@ public Builder addResources( return this; } /** - * - * *
      * Output only. The resources associated with this workload.
      * These resources will be created when creating the workload.
@@ -11610,9 +9842,7 @@ public Builder addResources(
      * Always read only.
      * 
* - * - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addResources( int index, com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo value) { @@ -11629,8 +9859,6 @@ public Builder addResources( return this; } /** - * - * *
      * Output only. The resources associated with this workload.
      * These resources will be created when creating the workload.
@@ -11638,9 +9866,7 @@ public Builder addResources(
      * Always read only.
      * 
* - * - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addResources( com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.Builder builderForValue) { @@ -11654,8 +9880,6 @@ public Builder addResources( return this; } /** - * - * *
      * Output only. The resources associated with this workload.
      * These resources will be created when creating the workload.
@@ -11663,13 +9887,10 @@ public Builder addResources(
      * Always read only.
      * 
* - * - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addResources( - int index, - com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.Builder builderForValue) { + int index, com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.Builder builderForValue) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); resources_.add(index, builderForValue.build()); @@ -11680,8 +9901,6 @@ public Builder addResources( return this; } /** - * - * *
      * Output only. The resources associated with this workload.
      * These resources will be created when creating the workload.
@@ -11689,17 +9908,14 @@ public Builder addResources(
      * Always read only.
      * 
* - * - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addAllResources( - java.lang.Iterable< - ? extends com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo> - values) { + java.lang.Iterable values) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, resources_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, resources_); onChanged(); } else { resourcesBuilder_.addAllMessages(values); @@ -11707,8 +9923,6 @@ public Builder addAllResources( return this; } /** - * - * *
      * Output only. The resources associated with this workload.
      * These resources will be created when creating the workload.
@@ -11716,9 +9930,7 @@ public Builder addAllResources(
      * Always read only.
      * 
* - * - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearResources() { if (resourcesBuilder_ == null) { @@ -11731,8 +9943,6 @@ public Builder clearResources() { return this; } /** - * - * *
      * Output only. The resources associated with this workload.
      * These resources will be created when creating the workload.
@@ -11740,9 +9950,7 @@ public Builder clearResources() {
      * Always read only.
      * 
* - * - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder removeResources(int index) { if (resourcesBuilder_ == null) { @@ -11755,8 +9963,6 @@ public Builder removeResources(int index) { return this; } /** - * - * *
      * Output only. The resources associated with this workload.
      * These resources will be created when creating the workload.
@@ -11764,17 +9970,13 @@ public Builder removeResources(int index) {
      * Always read only.
      * 
* - * - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.Builder - getResourcesBuilder(int index) { + public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.Builder getResourcesBuilder( + int index) { return getResourcesFieldBuilder().getBuilder(index); } /** - * - * *
      * Output only. The resources associated with this workload.
      * These resources will be created when creating the workload.
@@ -11782,21 +9984,16 @@ public Builder removeResources(int index) {
      * Always read only.
      * 
* - * - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfoOrBuilder - getResourcesOrBuilder(int index) { + public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfoOrBuilder getResourcesOrBuilder( + int index) { if (resourcesBuilder_ == null) { - return resources_.get(index); - } else { + return resources_.get(index); } else { return resourcesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Output only. The resources associated with this workload.
      * These resources will be created when creating the workload.
@@ -11804,13 +10001,10 @@ public Builder removeResources(int index) {
      * Always read only.
      * 
* - * - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List< - ? extends com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfoOrBuilder> - getResourcesOrBuilderList() { + public java.util.List + getResourcesOrBuilderList() { if (resourcesBuilder_ != null) { return resourcesBuilder_.getMessageOrBuilderList(); } else { @@ -11818,8 +10012,6 @@ public Builder removeResources(int index) { } } /** - * - * *
      * Output only. The resources associated with this workload.
      * These resources will be created when creating the workload.
@@ -11827,19 +10019,13 @@ public Builder removeResources(int index) {
      * Always read only.
      * 
* - * - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.Builder - addResourcesBuilder() { - return getResourcesFieldBuilder() - .addBuilder( - com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.getDefaultInstance()); + public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.Builder addResourcesBuilder() { + return getResourcesFieldBuilder().addBuilder( + com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.getDefaultInstance()); } /** - * - * *
      * Output only. The resources associated with this workload.
      * These resources will be created when creating the workload.
@@ -11847,20 +10033,14 @@ public Builder removeResources(int index) {
      * Always read only.
      * 
* - * - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.Builder - addResourcesBuilder(int index) { - return getResourcesFieldBuilder() - .addBuilder( - index, - com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.getDefaultInstance()); + public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.Builder addResourcesBuilder( + int index) { + return getResourcesFieldBuilder().addBuilder( + index, com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.getDefaultInstance()); } /** - * - * *
      * Output only. The resources associated with this workload.
      * These resources will be created when creating the workload.
@@ -11868,27 +10048,22 @@ public Builder removeResources(int index) {
      * Always read only.
      * 
* - * - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List - getResourcesBuilderList() { + public java.util.List + getResourcesBuilderList() { return getResourcesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo, - com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.Builder, - com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfoOrBuilder> + com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo, com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.Builder, com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfoOrBuilder> getResourcesFieldBuilder() { if (resourcesBuilder_ == null) { - resourcesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo, - com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.Builder, - com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfoOrBuilder>( - resources_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + resourcesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo, com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.Builder, com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfoOrBuilder>( + resources_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); resources_ = null; } return resourcesBuilder_; @@ -11896,105 +10071,73 @@ public Builder removeResources(int index) { private int complianceRegime_ = 0; /** - * - * *
      * Required. Immutable. Compliance Regime associated with this workload.
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return The enum numeric value on the wire for complianceRegime. */ - @java.lang.Override - public int getComplianceRegimeValue() { + @java.lang.Override public int getComplianceRegimeValue() { return complianceRegime_; } /** - * - * *
      * Required. Immutable. Compliance Regime associated with this workload.
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @param value The enum numeric value on the wire for complianceRegime to set. * @return This builder for chaining. */ public Builder setComplianceRegimeValue(int value) { - + complianceRegime_ = value; onChanged(); return this; } /** - * - * *
      * Required. Immutable. Compliance Regime associated with this workload.
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return The complianceRegime. */ @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime - getComplianceRegime() { + public com.google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime getComplianceRegime() { @SuppressWarnings("deprecation") - com.google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime result = - com.google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime.valueOf( - complianceRegime_); - return result == null - ? com.google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime.UNRECOGNIZED - : result; + com.google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime result = com.google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime.valueOf(complianceRegime_); + return result == null ? com.google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime.UNRECOGNIZED : result; } /** - * - * *
      * Required. Immutable. Compliance Regime associated with this workload.
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @param value The complianceRegime to set. * @return This builder for chaining. */ - public Builder setComplianceRegime( - com.google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime value) { + public Builder setComplianceRegime(com.google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime value) { if (value == null) { throw new NullPointerException(); } - + complianceRegime_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Required. Immutable. Compliance Regime associated with this workload.
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return This builder for chaining. */ public Builder clearComplianceRegime() { - + complianceRegime_ = 0; onChanged(); return this; @@ -12002,58 +10145,39 @@ public Builder clearComplianceRegime() { 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. Immutable. The Workload creation timestamp.
      * 
* - * - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
      * Output only. Immutable. The Workload creation timestamp.
      * 
* - * - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; * @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. Immutable. The Workload creation timestamp.
      * 
* - * - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -12069,17 +10193,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Immutable. The Workload creation timestamp.
      * 
* - * - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -12090,21 +10211,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. Immutable. The Workload creation timestamp.
      * 
* - * - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -12116,15 +10233,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Immutable. The Workload creation timestamp.
      * 
* - * - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -12138,64 +10251,48 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. Immutable. The Workload creation timestamp.
      * 
* - * - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Immutable. The Workload creation timestamp.
      * 
* - * - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ 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. Immutable. The Workload creation timestamp.
      * 
* - * - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ 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_; @@ -12203,8 +10300,6 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private java.lang.Object billingAccount_ = ""; /** - * - * *
      * Input only. The billing account used for the resources which are
      * direct children of workload. This billing account is initially associated
@@ -12217,13 +10312,13 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
      * 
* * string billing_account = 6 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The billingAccount. */ public java.lang.String getBillingAccount() { java.lang.Object ref = billingAccount_; 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(); billingAccount_ = s; return s; @@ -12232,8 +10327,6 @@ public java.lang.String getBillingAccount() { } } /** - * - * *
      * Input only. The billing account used for the resources which are
      * direct children of workload. This billing account is initially associated
@@ -12246,14 +10339,15 @@ public java.lang.String getBillingAccount() {
      * 
* * string billing_account = 6 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The bytes for billingAccount. */ - public com.google.protobuf.ByteString getBillingAccountBytes() { + public com.google.protobuf.ByteString + getBillingAccountBytes() { java.lang.Object ref = billingAccount_; 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); billingAccount_ = b; return b; } else { @@ -12261,8 +10355,6 @@ public com.google.protobuf.ByteString getBillingAccountBytes() { } } /** - * - * *
      * Input only. The billing account used for the resources which are
      * direct children of workload. This billing account is initially associated
@@ -12275,22 +10367,20 @@ public com.google.protobuf.ByteString getBillingAccountBytes() {
      * 
* * string billing_account = 6 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @param value The billingAccount to set. * @return This builder for chaining. */ - public Builder setBillingAccount(java.lang.String value) { + public Builder setBillingAccount( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + billingAccount_ = value; onChanged(); return this; } /** - * - * *
      * Input only. The billing account used for the resources which are
      * direct children of workload. This billing account is initially associated
@@ -12303,18 +10393,15 @@ public Builder setBillingAccount(java.lang.String value) {
      * 
* * string billing_account = 6 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearBillingAccount() { - + billingAccount_ = getDefaultInstance().getBillingAccount(); onChanged(); return this; } /** - * - * *
      * Input only. The billing account used for the resources which are
      * direct children of workload. This billing account is initially associated
@@ -12327,70 +10414,54 @@ public Builder clearBillingAccount() {
      * 
* * string billing_account = 6 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @param value The bytes for billingAccount to set. * @return This builder for chaining. */ - public Builder setBillingAccountBytes(com.google.protobuf.ByteString value) { + public Builder setBillingAccountBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + billingAccount_ = value; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings, - com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings.Builder, - com.google.cloud.assuredworkloads.v1beta1.Workload.IL4SettingsOrBuilder> - il4SettingsBuilder_; + com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings, com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings.Builder, com.google.cloud.assuredworkloads.v1beta1.Workload.IL4SettingsOrBuilder> il4SettingsBuilder_; /** - * - * *
      * Required. Input only. Immutable. Settings specific to resources needed
      * for IL4.
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings il4_settings = 7 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * - * - * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.il4_settings is deprecated. See - * google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=455 + * .google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings il4_settings = 7 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.il4_settings is deprecated. + * See google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=455 * @return Whether the il4Settings field is set. */ @java.lang.Override - @java.lang.Deprecated - public boolean hasIl4Settings() { + @java.lang.Deprecated public boolean hasIl4Settings() { return complianceRegimeSettingsCase_ == 7; } /** - * - * *
      * Required. Input only. Immutable. Settings specific to resources needed
      * for IL4.
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings il4_settings = 7 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * - * - * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.il4_settings is deprecated. See - * google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=455 + * .google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings il4_settings = 7 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.il4_settings is deprecated. + * See google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=455 * @return The il4Settings. */ @java.lang.Override - @java.lang.Deprecated - public com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings getIl4Settings() { + @java.lang.Deprecated public com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings getIl4Settings() { if (il4SettingsBuilder_ == null) { if (complianceRegimeSettingsCase_ == 7) { - return (com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings) - complianceRegimeSettings_; + return (com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings) complianceRegimeSettings_; } return com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings.getDefaultInstance(); } else { @@ -12401,20 +10472,14 @@ public com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings getIl4Sett } } /** - * - * *
      * Required. Input only. Immutable. Settings specific to resources needed
      * for IL4.
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings il4_settings = 7 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings il4_settings = 7 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ - @java.lang.Deprecated - public Builder setIl4Settings( - com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings value) { + @java.lang.Deprecated public Builder setIl4Settings(com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings value) { if (il4SettingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -12428,19 +10493,14 @@ public Builder setIl4Settings( return this; } /** - * - * *
      * Required. Input only. Immutable. Settings specific to resources needed
      * for IL4.
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings il4_settings = 7 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings il4_settings = 7 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ - @java.lang.Deprecated - public Builder setIl4Settings( + @java.lang.Deprecated public Builder setIl4Settings( com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings.Builder builderForValue) { if (il4SettingsBuilder_ == null) { complianceRegimeSettings_ = builderForValue.build(); @@ -12452,31 +10512,19 @@ public Builder setIl4Settings( return this; } /** - * - * *
      * Required. Input only. Immutable. Settings specific to resources needed
      * for IL4.
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings il4_settings = 7 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings il4_settings = 7 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ - @java.lang.Deprecated - public Builder mergeIl4Settings( - com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings value) { + @java.lang.Deprecated public Builder mergeIl4Settings(com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings value) { if (il4SettingsBuilder_ == null) { - if (complianceRegimeSettingsCase_ == 7 - && complianceRegimeSettings_ - != com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings - .getDefaultInstance()) { - complianceRegimeSettings_ = - com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings.newBuilder( - (com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings) - complianceRegimeSettings_) - .mergeFrom(value) - .buildPartial(); + if (complianceRegimeSettingsCase_ == 7 && + complianceRegimeSettings_ != com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings.getDefaultInstance()) { + complianceRegimeSettings_ = com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings.newBuilder((com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings) complianceRegimeSettings_) + .mergeFrom(value).buildPartial(); } else { complianceRegimeSettings_ = value; } @@ -12492,19 +10540,14 @@ public Builder mergeIl4Settings( return this; } /** - * - * *
      * Required. Input only. Immutable. Settings specific to resources needed
      * for IL4.
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings il4_settings = 7 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings il4_settings = 7 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ - @java.lang.Deprecated - public Builder clearIl4Settings() { + @java.lang.Deprecated public Builder clearIl4Settings() { if (il4SettingsBuilder_ == null) { if (complianceRegimeSettingsCase_ == 7) { complianceRegimeSettingsCase_ = 0; @@ -12521,136 +10564,95 @@ public Builder clearIl4Settings() { return this; } /** - * - * *
      * Required. Input only. Immutable. Settings specific to resources needed
      * for IL4.
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings il4_settings = 7 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings il4_settings = 7 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ - @java.lang.Deprecated - public com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings.Builder - getIl4SettingsBuilder() { + @java.lang.Deprecated public com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings.Builder getIl4SettingsBuilder() { return getIl4SettingsFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Input only. Immutable. Settings specific to resources needed
      * for IL4.
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings il4_settings = 7 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings il4_settings = 7 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ @java.lang.Override - @java.lang.Deprecated - public com.google.cloud.assuredworkloads.v1beta1.Workload.IL4SettingsOrBuilder - getIl4SettingsOrBuilder() { + @java.lang.Deprecated public com.google.cloud.assuredworkloads.v1beta1.Workload.IL4SettingsOrBuilder getIl4SettingsOrBuilder() { if ((complianceRegimeSettingsCase_ == 7) && (il4SettingsBuilder_ != null)) { return il4SettingsBuilder_.getMessageOrBuilder(); } else { if (complianceRegimeSettingsCase_ == 7) { - return (com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings) - complianceRegimeSettings_; + return (com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings) complianceRegimeSettings_; } return com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings.getDefaultInstance(); } } /** - * - * *
      * Required. Input only. Immutable. Settings specific to resources needed
      * for IL4.
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings il4_settings = 7 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings il4_settings = 7 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings, - com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings.Builder, - com.google.cloud.assuredworkloads.v1beta1.Workload.IL4SettingsOrBuilder> + com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings, com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings.Builder, com.google.cloud.assuredworkloads.v1beta1.Workload.IL4SettingsOrBuilder> getIl4SettingsFieldBuilder() { if (il4SettingsBuilder_ == null) { if (!(complianceRegimeSettingsCase_ == 7)) { - complianceRegimeSettings_ = - com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings.getDefaultInstance(); - } - il4SettingsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings, - com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings.Builder, - com.google.cloud.assuredworkloads.v1beta1.Workload.IL4SettingsOrBuilder>( - (com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings) - complianceRegimeSettings_, + complianceRegimeSettings_ = com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings.getDefaultInstance(); + } + il4SettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings, com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings.Builder, com.google.cloud.assuredworkloads.v1beta1.Workload.IL4SettingsOrBuilder>( + (com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings) complianceRegimeSettings_, getParentForChildren(), isClean()); complianceRegimeSettings_ = null; } complianceRegimeSettingsCase_ = 7; - onChanged(); - ; + onChanged();; return il4SettingsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings, - com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings.Builder, - com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettingsOrBuilder> - cjisSettingsBuilder_; + com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings, com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings.Builder, com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettingsOrBuilder> cjisSettingsBuilder_; /** - * - * *
      * Required. Input only. Immutable. Settings specific to resources needed
      * for CJIS.
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings cjis_settings = 8 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * - * - * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.cjis_settings is deprecated. See - * google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=464 + * .google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings cjis_settings = 8 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.cjis_settings is deprecated. + * See google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=464 * @return Whether the cjisSettings field is set. */ @java.lang.Override - @java.lang.Deprecated - public boolean hasCjisSettings() { + @java.lang.Deprecated public boolean hasCjisSettings() { return complianceRegimeSettingsCase_ == 8; } /** - * - * *
      * Required. Input only. Immutable. Settings specific to resources needed
      * for CJIS.
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings cjis_settings = 8 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * - * - * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.cjis_settings is deprecated. See - * google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=464 + * .google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings cjis_settings = 8 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.cjis_settings is deprecated. + * See google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=464 * @return The cjisSettings. */ @java.lang.Override - @java.lang.Deprecated - public com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings getCjisSettings() { + @java.lang.Deprecated public com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings getCjisSettings() { if (cjisSettingsBuilder_ == null) { if (complianceRegimeSettingsCase_ == 8) { - return (com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings) - complianceRegimeSettings_; + return (com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings) complianceRegimeSettings_; } return com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings.getDefaultInstance(); } else { @@ -12661,20 +10663,14 @@ public com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings getCjisSe } } /** - * - * *
      * Required. Input only. Immutable. Settings specific to resources needed
      * for CJIS.
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings cjis_settings = 8 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings cjis_settings = 8 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ - @java.lang.Deprecated - public Builder setCjisSettings( - com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings value) { + @java.lang.Deprecated public Builder setCjisSettings(com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings value) { if (cjisSettingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -12688,19 +10684,14 @@ public Builder setCjisSettings( return this; } /** - * - * *
      * Required. Input only. Immutable. Settings specific to resources needed
      * for CJIS.
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings cjis_settings = 8 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings cjis_settings = 8 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ - @java.lang.Deprecated - public Builder setCjisSettings( + @java.lang.Deprecated public Builder setCjisSettings( com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings.Builder builderForValue) { if (cjisSettingsBuilder_ == null) { complianceRegimeSettings_ = builderForValue.build(); @@ -12712,31 +10703,19 @@ public Builder setCjisSettings( return this; } /** - * - * *
      * Required. Input only. Immutable. Settings specific to resources needed
      * for CJIS.
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings cjis_settings = 8 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings cjis_settings = 8 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ - @java.lang.Deprecated - public Builder mergeCjisSettings( - com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings value) { + @java.lang.Deprecated public Builder mergeCjisSettings(com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings value) { if (cjisSettingsBuilder_ == null) { - if (complianceRegimeSettingsCase_ == 8 - && complianceRegimeSettings_ - != com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings - .getDefaultInstance()) { - complianceRegimeSettings_ = - com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings.newBuilder( - (com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings) - complianceRegimeSettings_) - .mergeFrom(value) - .buildPartial(); + if (complianceRegimeSettingsCase_ == 8 && + complianceRegimeSettings_ != com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings.getDefaultInstance()) { + complianceRegimeSettings_ = com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings.newBuilder((com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings) complianceRegimeSettings_) + .mergeFrom(value).buildPartial(); } else { complianceRegimeSettings_ = value; } @@ -12752,19 +10731,14 @@ public Builder mergeCjisSettings( return this; } /** - * - * *
      * Required. Input only. Immutable. Settings specific to resources needed
      * for CJIS.
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings cjis_settings = 8 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings cjis_settings = 8 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ - @java.lang.Deprecated - public Builder clearCjisSettings() { + @java.lang.Deprecated public Builder clearCjisSettings() { if (cjisSettingsBuilder_ == null) { if (complianceRegimeSettingsCase_ == 8) { complianceRegimeSettingsCase_ = 0; @@ -12781,163 +10755,113 @@ public Builder clearCjisSettings() { return this; } /** - * - * *
      * Required. Input only. Immutable. Settings specific to resources needed
      * for CJIS.
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings cjis_settings = 8 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings cjis_settings = 8 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ - @java.lang.Deprecated - public com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings.Builder - getCjisSettingsBuilder() { + @java.lang.Deprecated public com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings.Builder getCjisSettingsBuilder() { return getCjisSettingsFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Input only. Immutable. Settings specific to resources needed
      * for CJIS.
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings cjis_settings = 8 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings cjis_settings = 8 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ @java.lang.Override - @java.lang.Deprecated - public com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettingsOrBuilder - getCjisSettingsOrBuilder() { + @java.lang.Deprecated public com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettingsOrBuilder getCjisSettingsOrBuilder() { if ((complianceRegimeSettingsCase_ == 8) && (cjisSettingsBuilder_ != null)) { return cjisSettingsBuilder_.getMessageOrBuilder(); } else { if (complianceRegimeSettingsCase_ == 8) { - return (com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings) - complianceRegimeSettings_; + return (com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings) complianceRegimeSettings_; } return com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings.getDefaultInstance(); } } /** - * - * *
      * Required. Input only. Immutable. Settings specific to resources needed
      * for CJIS.
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings cjis_settings = 8 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings cjis_settings = 8 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings, - com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings.Builder, - com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettingsOrBuilder> + com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings, com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings.Builder, com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettingsOrBuilder> getCjisSettingsFieldBuilder() { if (cjisSettingsBuilder_ == null) { if (!(complianceRegimeSettingsCase_ == 8)) { - complianceRegimeSettings_ = - com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings.getDefaultInstance(); - } - cjisSettingsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings, - com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings.Builder, - com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettingsOrBuilder>( - (com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings) - complianceRegimeSettings_, + complianceRegimeSettings_ = com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings.getDefaultInstance(); + } + cjisSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings, com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings.Builder, com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettingsOrBuilder>( + (com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings) complianceRegimeSettings_, getParentForChildren(), isClean()); complianceRegimeSettings_ = null; } complianceRegimeSettingsCase_ = 8; - onChanged(); - ; + onChanged();; return cjisSettingsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings, - com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings.Builder, - com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettingsOrBuilder> - fedrampHighSettingsBuilder_; + com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings, com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings.Builder, com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettingsOrBuilder> fedrampHighSettingsBuilder_; /** - * - * *
      * Required. Input only. Immutable. Settings specific to resources needed
      * for FedRAMP High.
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings fedramp_high_settings = 11 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * - * - * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.fedramp_high_settings is - * deprecated. See google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=473 + * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings fedramp_high_settings = 11 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.fedramp_high_settings is deprecated. + * See google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=473 * @return Whether the fedrampHighSettings field is set. */ @java.lang.Override - @java.lang.Deprecated - public boolean hasFedrampHighSettings() { + @java.lang.Deprecated public boolean hasFedrampHighSettings() { return complianceRegimeSettingsCase_ == 11; } /** - * - * *
      * Required. Input only. Immutable. Settings specific to resources needed
      * for FedRAMP High.
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings fedramp_high_settings = 11 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * - * - * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.fedramp_high_settings is - * deprecated. See google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=473 + * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings fedramp_high_settings = 11 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.fedramp_high_settings is deprecated. + * See google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=473 * @return The fedrampHighSettings. */ @java.lang.Override - @java.lang.Deprecated - public com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings - getFedrampHighSettings() { + @java.lang.Deprecated public com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings getFedrampHighSettings() { if (fedrampHighSettingsBuilder_ == null) { if (complianceRegimeSettingsCase_ == 11) { - return (com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings) - complianceRegimeSettings_; + return (com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings) complianceRegimeSettings_; } - return com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings - .getDefaultInstance(); + return com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings.getDefaultInstance(); } else { if (complianceRegimeSettingsCase_ == 11) { return fedrampHighSettingsBuilder_.getMessage(); } - return com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings - .getDefaultInstance(); + return com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings.getDefaultInstance(); } } /** - * - * *
      * Required. Input only. Immutable. Settings specific to resources needed
      * for FedRAMP High.
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings fedramp_high_settings = 11 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings fedramp_high_settings = 11 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ - @java.lang.Deprecated - public Builder setFedrampHighSettings( - com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings value) { + @java.lang.Deprecated public Builder setFedrampHighSettings(com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings value) { if (fedrampHighSettingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -12951,21 +10875,15 @@ public Builder setFedrampHighSettings( return this; } /** - * - * *
      * Required. Input only. Immutable. Settings specific to resources needed
      * for FedRAMP High.
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings fedramp_high_settings = 11 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings fedramp_high_settings = 11 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ - @java.lang.Deprecated - public Builder setFedrampHighSettings( - com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings.Builder - builderForValue) { + @java.lang.Deprecated public Builder setFedrampHighSettings( + com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings.Builder builderForValue) { if (fedrampHighSettingsBuilder_ == null) { complianceRegimeSettings_ = builderForValue.build(); onChanged(); @@ -12976,31 +10894,19 @@ public Builder setFedrampHighSettings( return this; } /** - * - * *
      * Required. Input only. Immutable. Settings specific to resources needed
      * for FedRAMP High.
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings fedramp_high_settings = 11 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings fedramp_high_settings = 11 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ - @java.lang.Deprecated - public Builder mergeFedrampHighSettings( - com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings value) { + @java.lang.Deprecated public Builder mergeFedrampHighSettings(com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings value) { if (fedrampHighSettingsBuilder_ == null) { - if (complianceRegimeSettingsCase_ == 11 - && complianceRegimeSettings_ - != com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings - .getDefaultInstance()) { - complianceRegimeSettings_ = - com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings.newBuilder( - (com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings) - complianceRegimeSettings_) - .mergeFrom(value) - .buildPartial(); + if (complianceRegimeSettingsCase_ == 11 && + complianceRegimeSettings_ != com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings.getDefaultInstance()) { + complianceRegimeSettings_ = com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings.newBuilder((com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings) complianceRegimeSettings_) + .mergeFrom(value).buildPartial(); } else { complianceRegimeSettings_ = value; } @@ -13016,19 +10922,14 @@ public Builder mergeFedrampHighSettings( return this; } /** - * - * *
      * Required. Input only. Immutable. Settings specific to resources needed
      * for FedRAMP High.
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings fedramp_high_settings = 11 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings fedramp_high_settings = 11 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ - @java.lang.Deprecated - public Builder clearFedrampHighSettings() { + @java.lang.Deprecated public Builder clearFedrampHighSettings() { if (fedrampHighSettingsBuilder_ == null) { if (complianceRegimeSettingsCase_ == 11) { complianceRegimeSettingsCase_ = 0; @@ -13045,165 +10946,113 @@ public Builder clearFedrampHighSettings() { return this; } /** - * - * *
      * Required. Input only. Immutable. Settings specific to resources needed
      * for FedRAMP High.
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings fedramp_high_settings = 11 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings fedramp_high_settings = 11 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ - @java.lang.Deprecated - public com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings.Builder - getFedrampHighSettingsBuilder() { + @java.lang.Deprecated public com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings.Builder getFedrampHighSettingsBuilder() { return getFedrampHighSettingsFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Input only. Immutable. Settings specific to resources needed
      * for FedRAMP High.
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings fedramp_high_settings = 11 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings fedramp_high_settings = 11 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ @java.lang.Override - @java.lang.Deprecated - public com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettingsOrBuilder - getFedrampHighSettingsOrBuilder() { + @java.lang.Deprecated public com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettingsOrBuilder getFedrampHighSettingsOrBuilder() { if ((complianceRegimeSettingsCase_ == 11) && (fedrampHighSettingsBuilder_ != null)) { return fedrampHighSettingsBuilder_.getMessageOrBuilder(); } else { if (complianceRegimeSettingsCase_ == 11) { - return (com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings) - complianceRegimeSettings_; + return (com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings) complianceRegimeSettings_; } - return com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings - .getDefaultInstance(); + return com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings.getDefaultInstance(); } } /** - * - * *
      * Required. Input only. Immutable. Settings specific to resources needed
      * for FedRAMP High.
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings fedramp_high_settings = 11 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings fedramp_high_settings = 11 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings, - com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings.Builder, - com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettingsOrBuilder> + com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings, com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings.Builder, com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettingsOrBuilder> getFedrampHighSettingsFieldBuilder() { if (fedrampHighSettingsBuilder_ == null) { if (!(complianceRegimeSettingsCase_ == 11)) { - complianceRegimeSettings_ = - com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings - .getDefaultInstance(); - } - fedrampHighSettingsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings, - com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings.Builder, - com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettingsOrBuilder>( - (com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings) - complianceRegimeSettings_, + complianceRegimeSettings_ = com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings.getDefaultInstance(); + } + fedrampHighSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings, com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings.Builder, com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettingsOrBuilder>( + (com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings) complianceRegimeSettings_, getParentForChildren(), isClean()); complianceRegimeSettings_ = null; } complianceRegimeSettingsCase_ = 11; - onChanged(); - ; + onChanged();; return fedrampHighSettingsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings, - com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings.Builder, - com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettingsOrBuilder> - fedrampModerateSettingsBuilder_; + com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings, com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings.Builder, com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettingsOrBuilder> fedrampModerateSettingsBuilder_; /** - * - * *
      * Required. Input only. Immutable. Settings specific to resources needed
      * for FedRAMP Moderate.
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings fedramp_moderate_settings = 12 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * - * - * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.fedramp_moderate_settings is - * deprecated. See google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=482 + * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings fedramp_moderate_settings = 12 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.fedramp_moderate_settings is deprecated. + * See google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=482 * @return Whether the fedrampModerateSettings field is set. */ @java.lang.Override - @java.lang.Deprecated - public boolean hasFedrampModerateSettings() { + @java.lang.Deprecated public boolean hasFedrampModerateSettings() { return complianceRegimeSettingsCase_ == 12; } /** - * - * *
      * Required. Input only. Immutable. Settings specific to resources needed
      * for FedRAMP Moderate.
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings fedramp_moderate_settings = 12 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * - * - * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.fedramp_moderate_settings is - * deprecated. See google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=482 + * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings fedramp_moderate_settings = 12 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.fedramp_moderate_settings is deprecated. + * See google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=482 * @return The fedrampModerateSettings. */ @java.lang.Override - @java.lang.Deprecated - public com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings - getFedrampModerateSettings() { + @java.lang.Deprecated public com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings getFedrampModerateSettings() { if (fedrampModerateSettingsBuilder_ == null) { if (complianceRegimeSettingsCase_ == 12) { - return (com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings) - complianceRegimeSettings_; + return (com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings) complianceRegimeSettings_; } - return com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings - .getDefaultInstance(); + return com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings.getDefaultInstance(); } else { if (complianceRegimeSettingsCase_ == 12) { return fedrampModerateSettingsBuilder_.getMessage(); } - return com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings - .getDefaultInstance(); + return com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings.getDefaultInstance(); } } /** - * - * *
      * Required. Input only. Immutable. Settings specific to resources needed
      * for FedRAMP Moderate.
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings fedramp_moderate_settings = 12 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings fedramp_moderate_settings = 12 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ - @java.lang.Deprecated - public Builder setFedrampModerateSettings( - com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings value) { + @java.lang.Deprecated public Builder setFedrampModerateSettings(com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings value) { if (fedrampModerateSettingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -13217,21 +11066,15 @@ public Builder setFedrampModerateSettings( return this; } /** - * - * *
      * Required. Input only. Immutable. Settings specific to resources needed
      * for FedRAMP Moderate.
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings fedramp_moderate_settings = 12 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings fedramp_moderate_settings = 12 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ - @java.lang.Deprecated - public Builder setFedrampModerateSettings( - com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings.Builder - builderForValue) { + @java.lang.Deprecated public Builder setFedrampModerateSettings( + com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings.Builder builderForValue) { if (fedrampModerateSettingsBuilder_ == null) { complianceRegimeSettings_ = builderForValue.build(); onChanged(); @@ -13242,31 +11085,19 @@ public Builder setFedrampModerateSettings( return this; } /** - * - * *
      * Required. Input only. Immutable. Settings specific to resources needed
      * for FedRAMP Moderate.
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings fedramp_moderate_settings = 12 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings fedramp_moderate_settings = 12 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ - @java.lang.Deprecated - public Builder mergeFedrampModerateSettings( - com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings value) { + @java.lang.Deprecated public Builder mergeFedrampModerateSettings(com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings value) { if (fedrampModerateSettingsBuilder_ == null) { - if (complianceRegimeSettingsCase_ == 12 - && complianceRegimeSettings_ - != com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings - .getDefaultInstance()) { - complianceRegimeSettings_ = - com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings.newBuilder( - (com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings) - complianceRegimeSettings_) - .mergeFrom(value) - .buildPartial(); + if (complianceRegimeSettingsCase_ == 12 && + complianceRegimeSettings_ != com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings.getDefaultInstance()) { + complianceRegimeSettings_ = com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings.newBuilder((com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings) complianceRegimeSettings_) + .mergeFrom(value).buildPartial(); } else { complianceRegimeSettings_ = value; } @@ -13282,19 +11113,14 @@ public Builder mergeFedrampModerateSettings( return this; } /** - * - * *
      * Required. Input only. Immutable. Settings specific to resources needed
      * for FedRAMP Moderate.
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings fedramp_moderate_settings = 12 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings fedramp_moderate_settings = 12 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ - @java.lang.Deprecated - public Builder clearFedrampModerateSettings() { + @java.lang.Deprecated public Builder clearFedrampModerateSettings() { if (fedrampModerateSettingsBuilder_ == null) { if (complianceRegimeSettingsCase_ == 12) { complianceRegimeSettingsCase_ = 0; @@ -13311,107 +11137,77 @@ public Builder clearFedrampModerateSettings() { return this; } /** - * - * *
      * Required. Input only. Immutable. Settings specific to resources needed
      * for FedRAMP Moderate.
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings fedramp_moderate_settings = 12 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings fedramp_moderate_settings = 12 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ - @java.lang.Deprecated - public com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings.Builder - getFedrampModerateSettingsBuilder() { + @java.lang.Deprecated public com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings.Builder getFedrampModerateSettingsBuilder() { return getFedrampModerateSettingsFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Input only. Immutable. Settings specific to resources needed
      * for FedRAMP Moderate.
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings fedramp_moderate_settings = 12 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings fedramp_moderate_settings = 12 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ @java.lang.Override - @java.lang.Deprecated - public com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettingsOrBuilder - getFedrampModerateSettingsOrBuilder() { + @java.lang.Deprecated public com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettingsOrBuilder getFedrampModerateSettingsOrBuilder() { if ((complianceRegimeSettingsCase_ == 12) && (fedrampModerateSettingsBuilder_ != null)) { return fedrampModerateSettingsBuilder_.getMessageOrBuilder(); } else { if (complianceRegimeSettingsCase_ == 12) { - return (com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings) - complianceRegimeSettings_; + return (com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings) complianceRegimeSettings_; } - return com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings - .getDefaultInstance(); + return com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings.getDefaultInstance(); } } /** - * - * *
      * Required. Input only. Immutable. Settings specific to resources needed
      * for FedRAMP Moderate.
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings fedramp_moderate_settings = 12 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings fedramp_moderate_settings = 12 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings, - com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings.Builder, - com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettingsOrBuilder> + com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings, com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings.Builder, com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettingsOrBuilder> getFedrampModerateSettingsFieldBuilder() { if (fedrampModerateSettingsBuilder_ == null) { if (!(complianceRegimeSettingsCase_ == 12)) { - complianceRegimeSettings_ = - com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings - .getDefaultInstance(); - } - fedrampModerateSettingsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings, - com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings.Builder, - com.google.cloud.assuredworkloads.v1beta1.Workload - .FedrampModerateSettingsOrBuilder>( - (com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings) - complianceRegimeSettings_, + complianceRegimeSettings_ = com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings.getDefaultInstance(); + } + fedrampModerateSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings, com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings.Builder, com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettingsOrBuilder>( + (com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings) complianceRegimeSettings_, getParentForChildren(), isClean()); complianceRegimeSettings_ = null; } complianceRegimeSettingsCase_ = 12; - onChanged(); - ; + onChanged();; return fedrampModerateSettingsBuilder_; } private java.lang.Object etag_ = ""; /** - * - * *
      * Optional. ETag of the workload, it is calculated on the basis
      * of the Workload contents. It will be used in Update & Delete operations.
      * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; 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(); etag_ = s; return s; @@ -13420,22 +11216,21 @@ public java.lang.String getEtag() { } } /** - * - * *
      * Optional. ETag of the workload, it is calculated on the basis
      * of the Workload contents. It will be used in Update & Delete operations.
      * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for etag. */ - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -13443,84 +11238,78 @@ public com.google.protobuf.ByteString getEtagBytes() { } } /** - * - * *
      * Optional. ETag of the workload, it is calculated on the basis
      * of the Workload contents. It will be used in Update & Delete operations.
      * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag(java.lang.String value) { + public Builder setEtag( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + etag_ = value; onChanged(); return this; } /** - * - * *
      * Optional. ETag of the workload, it is calculated on the basis
      * of the Workload contents. It will be used in Update & Delete operations.
      * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearEtag() { - + etag_ = getDefaultInstance().getEtag(); onChanged(); return this; } /** - * - * *
      * Optional. ETag of the workload, it is calculated on the basis
      * of the Workload contents. It will be used in Update & Delete operations.
      * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; onChanged(); return this; } - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged(); - ; + internalGetMutableLabels() { + onChanged();; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -13532,30 +11321,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Optional. Labels applied to the workload.
      * 
* * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; */ + @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } - /** Use {@link #getLabelsMap()} instead. */ + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** - * - * *
      * Optional. Labels applied to the workload.
      * 
@@ -13563,12 +11350,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
      * Optional. Labels applied to the workload.
      * 
@@ -13576,17 +11362,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Optional. Labels applied to the workload.
      * 
@@ -13594,11 +11379,12 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -13606,68 +11392,69 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap().clear(); + internalGetMutableLabels().getMutableMap() + .clear(); return this; } /** - * - * *
      * Optional. Labels applied to the workload.
      * 
* * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder removeLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableLabels().getMutableMap().remove(key); + + public Builder removeLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableLabels().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableLabels() { + public java.util.Map + getMutableLabels() { return internalGetMutableLabels().getMutableMap(); } /** - * - * *
      * Optional. Labels applied to the workload.
      * 
* * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder putLabels(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } + public Builder putLabels( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } if (value == null) { - throw new NullPointerException("map value"); - } + throw new NullPointerException("map value"); +} - internalGetMutableLabels().getMutableMap().put(key, value); + internalGetMutableLabels().getMutableMap() + .put(key, value); return this; } /** - * - * *
      * Optional. Labels applied to the workload.
      * 
* * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); + + public Builder putAllLabels( + java.util.Map values) { + internalGetMutableLabels().getMutableMap() + .putAll(values); return this; } private java.lang.Object provisionedResourcesParent_ = ""; /** - * - * *
      * Input only. The parent resource for the resources managed by this Assured
      * Workload. May be either empty or a folder resource which is a child of the
@@ -13677,15 +11464,14 @@ public Builder putAllLabels(java.util.Map va
      * folders/{folder_id}
      * 
* - * string provisioned_resources_parent = 13 [(.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string provisioned_resources_parent = 13 [(.google.api.field_behavior) = INPUT_ONLY]; * @return The provisionedResourcesParent. */ public java.lang.String getProvisionedResourcesParent() { java.lang.Object ref = provisionedResourcesParent_; 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(); provisionedResourcesParent_ = s; return s; @@ -13694,8 +11480,6 @@ public java.lang.String getProvisionedResourcesParent() { } } /** - * - * *
      * Input only. The parent resource for the resources managed by this Assured
      * Workload. May be either empty or a folder resource which is a child of the
@@ -13705,16 +11489,16 @@ public java.lang.String getProvisionedResourcesParent() {
      * folders/{folder_id}
      * 
* - * string provisioned_resources_parent = 13 [(.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string provisioned_resources_parent = 13 [(.google.api.field_behavior) = INPUT_ONLY]; * @return The bytes for provisionedResourcesParent. */ - public com.google.protobuf.ByteString getProvisionedResourcesParentBytes() { + public com.google.protobuf.ByteString + getProvisionedResourcesParentBytes() { java.lang.Object ref = provisionedResourcesParent_; 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); provisionedResourcesParent_ = b; return b; } else { @@ -13722,8 +11506,6 @@ public com.google.protobuf.ByteString getProvisionedResourcesParentBytes() { } } /** - * - * *
      * Input only. The parent resource for the resources managed by this Assured
      * Workload. May be either empty or a folder resource which is a child of the
@@ -13733,24 +11515,21 @@ public com.google.protobuf.ByteString getProvisionedResourcesParentBytes() {
      * folders/{folder_id}
      * 
* - * string provisioned_resources_parent = 13 [(.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string provisioned_resources_parent = 13 [(.google.api.field_behavior) = INPUT_ONLY]; * @param value The provisionedResourcesParent to set. * @return This builder for chaining. */ - public Builder setProvisionedResourcesParent(java.lang.String value) { + public Builder setProvisionedResourcesParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + provisionedResourcesParent_ = value; onChanged(); return this; } /** - * - * *
      * Input only. The parent resource for the resources managed by this Assured
      * Workload. May be either empty or a folder resource which is a child of the
@@ -13760,20 +11539,16 @@ public Builder setProvisionedResourcesParent(java.lang.String value) {
      * folders/{folder_id}
      * 
* - * string provisioned_resources_parent = 13 [(.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string provisioned_resources_parent = 13 [(.google.api.field_behavior) = INPUT_ONLY]; * @return This builder for chaining. */ public Builder clearProvisionedResourcesParent() { - + provisionedResourcesParent_ = getDefaultInstance().getProvisionedResourcesParent(); onChanged(); return this; } /** - * - * *
      * Input only. The parent resource for the resources managed by this Assured
      * Workload. May be either empty or a folder resource which is a child of the
@@ -13783,18 +11558,17 @@ public Builder clearProvisionedResourcesParent() {
      * folders/{folder_id}
      * 
* - * string provisioned_resources_parent = 13 [(.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string provisioned_resources_parent = 13 [(.google.api.field_behavior) = INPUT_ONLY]; * @param value The bytes for provisionedResourcesParent to set. * @return This builder for chaining. */ - public Builder setProvisionedResourcesParentBytes(com.google.protobuf.ByteString value) { + public Builder setProvisionedResourcesParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + provisionedResourcesParent_ = value; onChanged(); return this; @@ -13802,67 +11576,47 @@ public Builder setProvisionedResourcesParentBytes(com.google.protobuf.ByteString private com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kmsSettings_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings, - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder, - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder> - kmsSettingsBuilder_; + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings, com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder, com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder> kmsSettingsBuilder_; /** - * - * *
      * Input only. Settings used to create a CMEK crypto key. When set a project
      * with a KMS CMEK key is provisioned. This field is mandatory for a subset of
      * Compliance Regimes.
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; - * - * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; * @return Whether the kmsSettings field is set. */ public boolean hasKmsSettings() { return kmsSettingsBuilder_ != null || kmsSettings_ != null; } /** - * - * *
      * Input only. Settings used to create a CMEK crypto key. When set a project
      * with a KMS CMEK key is provisioned. This field is mandatory for a subset of
      * Compliance Regimes.
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; - * - * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; * @return The kmsSettings. */ public com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings getKmsSettings() { if (kmsSettingsBuilder_ == null) { - return kmsSettings_ == null - ? com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.getDefaultInstance() - : kmsSettings_; + return kmsSettings_ == null ? com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.getDefaultInstance() : kmsSettings_; } else { return kmsSettingsBuilder_.getMessage(); } } /** - * - * *
      * Input only. Settings used to create a CMEK crypto key. When set a project
      * with a KMS CMEK key is provisioned. This field is mandatory for a subset of
      * Compliance Regimes.
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; - * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; */ - public Builder setKmsSettings( - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings value) { + public Builder setKmsSettings(com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings value) { if (kmsSettingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -13876,17 +11630,13 @@ public Builder setKmsSettings( return this; } /** - * - * *
      * Input only. Settings used to create a CMEK crypto key. When set a project
      * with a KMS CMEK key is provisioned. This field is mandatory for a subset of
      * Compliance Regimes.
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; - * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; */ public Builder setKmsSettings( com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder builderForValue) { @@ -13900,27 +11650,19 @@ public Builder setKmsSettings( return this; } /** - * - * *
      * Input only. Settings used to create a CMEK crypto key. When set a project
      * with a KMS CMEK key is provisioned. This field is mandatory for a subset of
      * Compliance Regimes.
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; - * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; */ - public Builder mergeKmsSettings( - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings value) { + public Builder mergeKmsSettings(com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings value) { if (kmsSettingsBuilder_ == null) { if (kmsSettings_ != null) { kmsSettings_ = - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.newBuilder( - kmsSettings_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.newBuilder(kmsSettings_).mergeFrom(value).buildPartial(); } else { kmsSettings_ = value; } @@ -13932,17 +11674,13 @@ public Builder mergeKmsSettings( return this; } /** - * - * *
      * Input only. Settings used to create a CMEK crypto key. When set a project
      * with a KMS CMEK key is provisioned. This field is mandatory for a subset of
      * Compliance Regimes.
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; - * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; */ public Builder clearKmsSettings() { if (kmsSettingsBuilder_ == null) { @@ -13956,111 +11694,81 @@ public Builder clearKmsSettings() { return this; } /** - * - * *
      * Input only. Settings used to create a CMEK crypto key. When set a project
      * with a KMS CMEK key is provisioned. This field is mandatory for a subset of
      * Compliance Regimes.
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; - * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; */ - public com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder - getKmsSettingsBuilder() { - + public com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder getKmsSettingsBuilder() { + onChanged(); return getKmsSettingsFieldBuilder().getBuilder(); } /** - * - * *
      * Input only. Settings used to create a CMEK crypto key. When set a project
      * with a KMS CMEK key is provisioned. This field is mandatory for a subset of
      * Compliance Regimes.
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; - * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; */ - public com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder - getKmsSettingsOrBuilder() { + public com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder getKmsSettingsOrBuilder() { if (kmsSettingsBuilder_ != null) { return kmsSettingsBuilder_.getMessageOrBuilder(); } else { - return kmsSettings_ == null - ? com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.getDefaultInstance() - : kmsSettings_; + return kmsSettings_ == null ? + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.getDefaultInstance() : kmsSettings_; } } /** - * - * *
      * Input only. Settings used to create a CMEK crypto key. When set a project
      * with a KMS CMEK key is provisioned. This field is mandatory for a subset of
      * Compliance Regimes.
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; - * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings, - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder, - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder> + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings, com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder, com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder> getKmsSettingsFieldBuilder() { if (kmsSettingsBuilder_ == null) { - kmsSettingsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings, - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder, - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder>( - getKmsSettings(), getParentForChildren(), isClean()); + kmsSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings, com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder, com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder>( + getKmsSettings(), + getParentForChildren(), + isClean()); kmsSettings_ = null; } return kmsSettingsBuilder_; } - private java.util.List - resourceSettings_ = java.util.Collections.emptyList(); - + private java.util.List resourceSettings_ = + java.util.Collections.emptyList(); private void ensureResourceSettingsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - resourceSettings_ = - new java.util.ArrayList< - com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings>( - resourceSettings_); + resourceSettings_ = new java.util.ArrayList(resourceSettings_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings, - com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.Builder, - com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettingsOrBuilder> - resourceSettingsBuilder_; + com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings, com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.Builder, com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettingsOrBuilder> resourceSettingsBuilder_; /** - * - * *
      * Input only. Resource properties that are used to customize workload
      * resources. These properties (such as custom project id) will be used to
      * create workload resources if possible. This field is optional.
      * 
* - * - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; */ - public java.util.List - getResourceSettingsList() { + public java.util.List getResourceSettingsList() { if (resourceSettingsBuilder_ == null) { return java.util.Collections.unmodifiableList(resourceSettings_); } else { @@ -14068,17 +11776,13 @@ private void ensureResourceSettingsIsMutable() { } } /** - * - * *
      * Input only. Resource properties that are used to customize workload
      * resources. These properties (such as custom project id) will be used to
      * create workload resources if possible. This field is optional.
      * 
* - * - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; */ public int getResourceSettingsCount() { if (resourceSettingsBuilder_ == null) { @@ -14088,20 +11792,15 @@ public int getResourceSettingsCount() { } } /** - * - * *
      * Input only. Resource properties that are used to customize workload
      * resources. These properties (such as custom project id) will be used to
      * create workload resources if possible. This field is optional.
      * 
* - * - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; */ - public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings getResourceSettings( - int index) { + public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings getResourceSettings(int index) { if (resourceSettingsBuilder_ == null) { return resourceSettings_.get(index); } else { @@ -14109,17 +11808,13 @@ public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings getRe } } /** - * - * *
      * Input only. Resource properties that are used to customize workload
      * resources. These properties (such as custom project id) will be used to
      * create workload resources if possible. This field is optional.
      * 
* - * - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; */ public Builder setResourceSettings( int index, com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings value) { @@ -14136,22 +11831,16 @@ public Builder setResourceSettings( return this; } /** - * - * *
      * Input only. Resource properties that are used to customize workload
      * resources. These properties (such as custom project id) will be used to
      * create workload resources if possible. This field is optional.
      * 
* - * - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; */ public Builder setResourceSettings( - int index, - com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.Builder - builderForValue) { + int index, com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.Builder builderForValue) { if (resourceSettingsBuilder_ == null) { ensureResourceSettingsIsMutable(); resourceSettings_.set(index, builderForValue.build()); @@ -14162,20 +11851,15 @@ public Builder setResourceSettings( return this; } /** - * - * *
      * Input only. Resource properties that are used to customize workload
      * resources. These properties (such as custom project id) will be used to
      * create workload resources if possible. This field is optional.
      * 
* - * - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; */ - public Builder addResourceSettings( - com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings value) { + public Builder addResourceSettings(com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings value) { if (resourceSettingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -14189,17 +11873,13 @@ public Builder addResourceSettings( return this; } /** - * - * *
      * Input only. Resource properties that are used to customize workload
      * resources. These properties (such as custom project id) will be used to
      * create workload resources if possible. This field is optional.
      * 
* - * - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; */ public Builder addResourceSettings( int index, com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings value) { @@ -14216,21 +11896,16 @@ public Builder addResourceSettings( return this; } /** - * - * *
      * Input only. Resource properties that are used to customize workload
      * resources. These properties (such as custom project id) will be used to
      * create workload resources if possible. This field is optional.
      * 
* - * - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; */ public Builder addResourceSettings( - com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.Builder - builderForValue) { + com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.Builder builderForValue) { if (resourceSettingsBuilder_ == null) { ensureResourceSettingsIsMutable(); resourceSettings_.add(builderForValue.build()); @@ -14241,22 +11916,16 @@ public Builder addResourceSettings( return this; } /** - * - * *
      * Input only. Resource properties that are used to customize workload
      * resources. These properties (such as custom project id) will be used to
      * create workload resources if possible. This field is optional.
      * 
* - * - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; */ public Builder addResourceSettings( - int index, - com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.Builder - builderForValue) { + int index, com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.Builder builderForValue) { if (resourceSettingsBuilder_ == null) { ensureResourceSettingsIsMutable(); resourceSettings_.add(index, builderForValue.build()); @@ -14267,25 +11936,20 @@ public Builder addResourceSettings( return this; } /** - * - * *
      * Input only. Resource properties that are used to customize workload
      * resources. These properties (such as custom project id) will be used to
      * create workload resources if possible. This field is optional.
      * 
* - * - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; */ public Builder addAllResourceSettings( - java.lang.Iterable< - ? extends com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings> - values) { + java.lang.Iterable values) { if (resourceSettingsBuilder_ == null) { ensureResourceSettingsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, resourceSettings_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, resourceSettings_); onChanged(); } else { resourceSettingsBuilder_.addAllMessages(values); @@ -14293,17 +11957,13 @@ public Builder addAllResourceSettings( return this; } /** - * - * *
      * Input only. Resource properties that are used to customize workload
      * resources. These properties (such as custom project id) will be used to
      * create workload resources if possible. This field is optional.
      * 
* - * - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; */ public Builder clearResourceSettings() { if (resourceSettingsBuilder_ == null) { @@ -14316,17 +11976,13 @@ public Builder clearResourceSettings() { return this; } /** - * - * *
      * Input only. Resource properties that are used to customize workload
      * resources. These properties (such as custom project id) will be used to
      * create workload resources if possible. This field is optional.
      * 
* - * - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; */ public Builder removeResourceSettings(int index) { if (resourceSettingsBuilder_ == null) { @@ -14339,59 +11995,45 @@ public Builder removeResourceSettings(int index) { return this; } /** - * - * *
      * Input only. Resource properties that are used to customize workload
      * resources. These properties (such as custom project id) will be used to
      * create workload resources if possible. This field is optional.
      * 
* - * - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; */ - public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.Builder - getResourceSettingsBuilder(int index) { + public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.Builder getResourceSettingsBuilder( + int index) { return getResourceSettingsFieldBuilder().getBuilder(index); } /** - * - * *
      * Input only. Resource properties that are used to customize workload
      * resources. These properties (such as custom project id) will be used to
      * create workload resources if possible. This field is optional.
      * 
* - * - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; */ - public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettingsOrBuilder - getResourceSettingsOrBuilder(int index) { + public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettingsOrBuilder getResourceSettingsOrBuilder( + int index) { if (resourceSettingsBuilder_ == null) { - return resourceSettings_.get(index); - } else { + return resourceSettings_.get(index); } else { return resourceSettingsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Input only. Resource properties that are used to customize workload
      * resources. These properties (such as custom project id) will be used to
      * create workload resources if possible. This field is optional.
      * 
* - * - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; */ - public java.util.List< - ? extends com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettingsOrBuilder> - getResourceSettingsOrBuilderList() { + public java.util.List + getResourceSettingsOrBuilderList() { if (resourceSettingsBuilder_ != null) { return resourceSettingsBuilder_.getMessageOrBuilderList(); } else { @@ -14399,76 +12041,51 @@ public Builder removeResourceSettings(int index) { } } /** - * - * *
      * Input only. Resource properties that are used to customize workload
      * resources. These properties (such as custom project id) will be used to
      * create workload resources if possible. This field is optional.
      * 
* - * - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; */ - public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.Builder - addResourceSettingsBuilder() { - return getResourceSettingsFieldBuilder() - .addBuilder( - com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings - .getDefaultInstance()); + public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.Builder addResourceSettingsBuilder() { + return getResourceSettingsFieldBuilder().addBuilder( + com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.getDefaultInstance()); } /** - * - * *
      * Input only. Resource properties that are used to customize workload
      * resources. These properties (such as custom project id) will be used to
      * create workload resources if possible. This field is optional.
      * 
* - * - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; */ - public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.Builder - addResourceSettingsBuilder(int index) { - return getResourceSettingsFieldBuilder() - .addBuilder( - index, - com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings - .getDefaultInstance()); + public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.Builder addResourceSettingsBuilder( + int index) { + return getResourceSettingsFieldBuilder().addBuilder( + index, com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.getDefaultInstance()); } /** - * - * *
      * Input only. Resource properties that are used to customize workload
      * resources. These properties (such as custom project id) will be used to
      * create workload resources if possible. This field is optional.
      * 
* - * - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; */ - public java.util.List< - com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.Builder> - getResourceSettingsBuilderList() { + public java.util.List + getResourceSettingsBuilderList() { return getResourceSettingsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings, - com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.Builder, - com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettingsOrBuilder> + com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings, com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.Builder, com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettingsOrBuilder> getResourceSettingsFieldBuilder() { if (resourceSettingsBuilder_ == null) { - resourceSettingsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings, - com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.Builder, - com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettingsOrBuilder>( + resourceSettingsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings, com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.Builder, com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettingsOrBuilder>( resourceSettings_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), @@ -14480,121 +12097,86 @@ public Builder removeResourceSettings(int index) { private int kajEnrollmentState_ = 0; /** - * - * *
      * Output only. Represents the KAJ enrollment state of the given workload.
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.KajEnrollmentState kaj_enrollment_state = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.assuredworkloads.v1beta1.Workload.KajEnrollmentState kaj_enrollment_state = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for kajEnrollmentState. */ - @java.lang.Override - public int getKajEnrollmentStateValue() { + @java.lang.Override public int getKajEnrollmentStateValue() { return kajEnrollmentState_; } /** - * - * *
      * Output only. Represents the KAJ enrollment state of the given workload.
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.KajEnrollmentState kaj_enrollment_state = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.assuredworkloads.v1beta1.Workload.KajEnrollmentState kaj_enrollment_state = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for kajEnrollmentState to set. * @return This builder for chaining. */ public Builder setKajEnrollmentStateValue(int value) { - + kajEnrollmentState_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Represents the KAJ enrollment state of the given workload.
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.KajEnrollmentState kaj_enrollment_state = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.assuredworkloads.v1beta1.Workload.KajEnrollmentState kaj_enrollment_state = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The kajEnrollmentState. */ @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.Workload.KajEnrollmentState - getKajEnrollmentState() { + public com.google.cloud.assuredworkloads.v1beta1.Workload.KajEnrollmentState getKajEnrollmentState() { @SuppressWarnings("deprecation") - com.google.cloud.assuredworkloads.v1beta1.Workload.KajEnrollmentState result = - com.google.cloud.assuredworkloads.v1beta1.Workload.KajEnrollmentState.valueOf( - kajEnrollmentState_); - return result == null - ? com.google.cloud.assuredworkloads.v1beta1.Workload.KajEnrollmentState.UNRECOGNIZED - : result; + com.google.cloud.assuredworkloads.v1beta1.Workload.KajEnrollmentState result = com.google.cloud.assuredworkloads.v1beta1.Workload.KajEnrollmentState.valueOf(kajEnrollmentState_); + return result == null ? com.google.cloud.assuredworkloads.v1beta1.Workload.KajEnrollmentState.UNRECOGNIZED : result; } /** - * - * *
      * Output only. Represents the KAJ enrollment state of the given workload.
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.KajEnrollmentState kaj_enrollment_state = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.assuredworkloads.v1beta1.Workload.KajEnrollmentState kaj_enrollment_state = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The kajEnrollmentState to set. * @return This builder for chaining. */ - public Builder setKajEnrollmentState( - com.google.cloud.assuredworkloads.v1beta1.Workload.KajEnrollmentState value) { + public Builder setKajEnrollmentState(com.google.cloud.assuredworkloads.v1beta1.Workload.KajEnrollmentState value) { if (value == null) { throw new NullPointerException(); } - + kajEnrollmentState_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Output only. Represents the KAJ enrollment state of the given workload.
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.KajEnrollmentState kaj_enrollment_state = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.assuredworkloads.v1beta1.Workload.KajEnrollmentState kaj_enrollment_state = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearKajEnrollmentState() { - + kajEnrollmentState_ = 0; onChanged(); return this; } - private boolean enableSovereignControls_; + private boolean enableSovereignControls_ ; /** - * - * *
      * Optional. Indicates the sovereignty status of the given workload.
      * Currently meant to be used by Europe/Canada customers.
      * 
* * bool enable_sovereign_controls = 18 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The enableSovereignControls. */ @java.lang.Override @@ -14602,109 +12184,80 @@ public boolean getEnableSovereignControls() { return enableSovereignControls_; } /** - * - * *
      * Optional. Indicates the sovereignty status of the given workload.
      * Currently meant to be used by Europe/Canada customers.
      * 
* * bool enable_sovereign_controls = 18 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The enableSovereignControls to set. * @return This builder for chaining. */ public Builder setEnableSovereignControls(boolean value) { - + enableSovereignControls_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Indicates the sovereignty status of the given workload.
      * Currently meant to be used by Europe/Canada customers.
      * 
* * bool enable_sovereign_controls = 18 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearEnableSovereignControls() { - + enableSovereignControls_ = false; onChanged(); return this; } - private com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse - saaEnrollmentResponse_; + private com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse saaEnrollmentResponse_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse, - com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.Builder, - com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponseOrBuilder> - saaEnrollmentResponseBuilder_; + com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse, com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.Builder, com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponseOrBuilder> saaEnrollmentResponseBuilder_; /** - * - * *
      * Output only. Represents the SAA enrollment response of the given workload.
      * SAA enrollment response is queried during GetWorkload call.
      * In failure cases, user friendly error message is shown in SAA details page.
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the saaEnrollmentResponse field is set. */ public boolean hasSaaEnrollmentResponse() { return saaEnrollmentResponseBuilder_ != null || saaEnrollmentResponse_ != null; } /** - * - * *
      * Output only. Represents the SAA enrollment response of the given workload.
      * SAA enrollment response is queried during GetWorkload call.
      * In failure cases, user friendly error message is shown in SAA details page.
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The saaEnrollmentResponse. */ - public com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse - getSaaEnrollmentResponse() { + public com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse getSaaEnrollmentResponse() { if (saaEnrollmentResponseBuilder_ == null) { - return saaEnrollmentResponse_ == null - ? com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse - .getDefaultInstance() - : saaEnrollmentResponse_; + return saaEnrollmentResponse_ == null ? com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.getDefaultInstance() : saaEnrollmentResponse_; } else { return saaEnrollmentResponseBuilder_.getMessage(); } } /** - * - * *
      * Output only. Represents the SAA enrollment response of the given workload.
      * SAA enrollment response is queried during GetWorkload call.
      * In failure cases, user friendly error message is shown in SAA details page.
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setSaaEnrollmentResponse( - com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse value) { + public Builder setSaaEnrollmentResponse(com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse value) { if (saaEnrollmentResponseBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -14718,21 +12271,16 @@ public Builder setSaaEnrollmentResponse( return this; } /** - * - * *
      * Output only. Represents the SAA enrollment response of the given workload.
      * SAA enrollment response is queried during GetWorkload call.
      * In failure cases, user friendly error message is shown in SAA details page.
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setSaaEnrollmentResponse( - com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.Builder - builderForValue) { + com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.Builder builderForValue) { if (saaEnrollmentResponseBuilder_ == null) { saaEnrollmentResponse_ = builderForValue.build(); onChanged(); @@ -14743,27 +12291,19 @@ public Builder setSaaEnrollmentResponse( return this; } /** - * - * *
      * Output only. Represents the SAA enrollment response of the given workload.
      * SAA enrollment response is queried during GetWorkload call.
      * In failure cases, user friendly error message is shown in SAA details page.
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder mergeSaaEnrollmentResponse( - com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse value) { + public Builder mergeSaaEnrollmentResponse(com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse value) { if (saaEnrollmentResponseBuilder_ == null) { if (saaEnrollmentResponse_ != null) { saaEnrollmentResponse_ = - com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.newBuilder( - saaEnrollmentResponse_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.newBuilder(saaEnrollmentResponse_).mergeFrom(value).buildPartial(); } else { saaEnrollmentResponse_ = value; } @@ -14775,17 +12315,13 @@ public Builder mergeSaaEnrollmentResponse( return this; } /** - * - * *
      * Output only. Represents the SAA enrollment response of the given workload.
      * SAA enrollment response is queried during GetWorkload call.
      * In failure cases, user friendly error message is shown in SAA details page.
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearSaaEnrollmentResponse() { if (saaEnrollmentResponseBuilder_ == null) { @@ -14799,80 +12335,61 @@ public Builder clearSaaEnrollmentResponse() { return this; } /** - * - * *
      * Output only. Represents the SAA enrollment response of the given workload.
      * SAA enrollment response is queried during GetWorkload call.
      * In failure cases, user friendly error message is shown in SAA details page.
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.Builder - getSaaEnrollmentResponseBuilder() { - + public com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.Builder getSaaEnrollmentResponseBuilder() { + onChanged(); return getSaaEnrollmentResponseFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Represents the SAA enrollment response of the given workload.
      * SAA enrollment response is queried during GetWorkload call.
      * In failure cases, user friendly error message is shown in SAA details page.
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponseOrBuilder - getSaaEnrollmentResponseOrBuilder() { + public com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponseOrBuilder getSaaEnrollmentResponseOrBuilder() { if (saaEnrollmentResponseBuilder_ != null) { return saaEnrollmentResponseBuilder_.getMessageOrBuilder(); } else { - return saaEnrollmentResponse_ == null - ? com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse - .getDefaultInstance() - : saaEnrollmentResponse_; + return saaEnrollmentResponse_ == null ? + com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.getDefaultInstance() : saaEnrollmentResponse_; } } /** - * - * *
      * Output only. Represents the SAA enrollment response of the given workload.
      * SAA enrollment response is queried during GetWorkload call.
      * In failure cases, user friendly error message is shown in SAA details page.
      * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse, - com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.Builder, - com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponseOrBuilder> + com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse, com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.Builder, com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponseOrBuilder> getSaaEnrollmentResponseFieldBuilder() { if (saaEnrollmentResponseBuilder_ == null) { - saaEnrollmentResponseBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse, - com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.Builder, - com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponseOrBuilder>( - getSaaEnrollmentResponse(), getParentForChildren(), isClean()); + saaEnrollmentResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse, com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.Builder, com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponseOrBuilder>( + getSaaEnrollmentResponse(), + getParentForChildren(), + isClean()); saaEnrollmentResponse_ = null; } return saaEnrollmentResponseBuilder_; } - @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); } @@ -14882,12 +12399,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.assuredworkloads.v1beta1.Workload) } // @@protoc_insertion_point(class_scope:google.cloud.assuredworkloads.v1beta1.Workload) private static final com.google.cloud.assuredworkloads.v1beta1.Workload DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.assuredworkloads.v1beta1.Workload(); } @@ -14896,16 +12413,16 @@ public static com.google.cloud.assuredworkloads.v1beta1.Workload getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Workload parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Workload(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Workload parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Workload(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -14920,4 +12437,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.assuredworkloads.v1beta1.Workload getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/WorkloadName.java b/owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/WorkloadName.java similarity index 100% rename from proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/WorkloadName.java rename to owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/WorkloadName.java diff --git a/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/WorkloadOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/WorkloadOrBuilder.java similarity index 57% rename from proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/WorkloadOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/WorkloadOrBuilder.java index 615a234e..5b49b295 100644 --- a/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/WorkloadOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/WorkloadOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto package com.google.cloud.assuredworkloads.v1beta1; -public interface WorkloadOrBuilder - extends +public interface WorkloadOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.assuredworkloads.v1beta1.Workload) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Optional. The resource name of the workload.
    * Format:
@@ -34,13 +16,10 @@ public interface WorkloadOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Optional. The resource name of the workload.
    * Format:
@@ -49,14 +28,12 @@ public interface WorkloadOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Required. The user-assigned display name of the Workload.
    * When present it must be between 4 to 30 characters.
@@ -66,13 +43,10 @@ public interface WorkloadOrBuilder
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * Required. The user-assigned display name of the Workload.
    * When present it must be between 4 to 30 characters.
@@ -82,14 +56,12 @@ public interface WorkloadOrBuilder
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
    * Output only. The resources associated with this workload.
    * These resources will be created when creating the workload.
@@ -97,15 +69,11 @@ public interface WorkloadOrBuilder
    * Always read only.
    * 
* - * - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List + java.util.List getResourcesList(); /** - * - * *
    * Output only. The resources associated with this workload.
    * These resources will be created when creating the workload.
@@ -113,14 +81,10 @@ public interface WorkloadOrBuilder
    * Always read only.
    * 
* - * - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo getResources(int index); /** - * - * *
    * Output only. The resources associated with this workload.
    * These resources will be created when creating the workload.
@@ -128,14 +92,10 @@ public interface WorkloadOrBuilder
    * Always read only.
    * 
* - * - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ int getResourcesCount(); /** - * - * *
    * Output only. The resources associated with this workload.
    * These resources will be created when creating the workload.
@@ -143,15 +103,11 @@ public interface WorkloadOrBuilder
    * Always read only.
    * 
* - * - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List + java.util.List getResourcesOrBuilderList(); /** - * - * *
    * Output only. The resources associated with this workload.
    * These resources will be created when creating the workload.
@@ -159,86 +115,58 @@ public interface WorkloadOrBuilder
    * Always read only.
    * 
* - * - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfoOrBuilder getResourcesOrBuilder( int index); /** - * - * *
    * Required. Immutable. Compliance Regime associated with this workload.
    * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return The enum numeric value on the wire for complianceRegime. */ int getComplianceRegimeValue(); /** - * - * *
    * Required. Immutable. Compliance Regime associated with this workload.
    * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return The complianceRegime. */ com.google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime getComplianceRegime(); /** - * - * *
    * Output only. Immutable. The Workload creation timestamp.
    * 
* - * - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. Immutable. The Workload creation timestamp.
    * 
* - * - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. Immutable. The Workload creation timestamp.
    * 
* - * - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Input only. The billing account used for the resources which are
    * direct children of workload. This billing account is initially associated
@@ -251,13 +179,10 @@ com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfoOrBuilder getReso
    * 
* * string billing_account = 6 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The billingAccount. */ java.lang.String getBillingAccount(); /** - * - * *
    * Input only. The billing account used for the resources which are
    * direct children of workload. This billing account is initially associated
@@ -270,249 +195,170 @@ com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfoOrBuilder getReso
    * 
* * string billing_account = 6 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The bytes for billingAccount. */ - com.google.protobuf.ByteString getBillingAccountBytes(); + com.google.protobuf.ByteString + getBillingAccountBytes(); /** - * - * *
    * Required. Input only. Immutable. Settings specific to resources needed
    * for IL4.
    * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings il4_settings = 7 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * - * - * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.il4_settings is deprecated. See - * google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=455 + * .google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings il4_settings = 7 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.il4_settings is deprecated. + * See google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=455 * @return Whether the il4Settings field is set. */ - @java.lang.Deprecated - boolean hasIl4Settings(); + @java.lang.Deprecated boolean hasIl4Settings(); /** - * - * *
    * Required. Input only. Immutable. Settings specific to resources needed
    * for IL4.
    * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings il4_settings = 7 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * - * - * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.il4_settings is deprecated. See - * google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=455 + * .google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings il4_settings = 7 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.il4_settings is deprecated. + * See google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=455 * @return The il4Settings. */ - @java.lang.Deprecated - com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings getIl4Settings(); + @java.lang.Deprecated com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings getIl4Settings(); /** - * - * *
    * Required. Input only. Immutable. Settings specific to resources needed
    * for IL4.
    * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings il4_settings = 7 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings il4_settings = 7 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ - @java.lang.Deprecated - com.google.cloud.assuredworkloads.v1beta1.Workload.IL4SettingsOrBuilder getIl4SettingsOrBuilder(); + @java.lang.Deprecated com.google.cloud.assuredworkloads.v1beta1.Workload.IL4SettingsOrBuilder getIl4SettingsOrBuilder(); /** - * - * *
    * Required. Input only. Immutable. Settings specific to resources needed
    * for CJIS.
    * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings cjis_settings = 8 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * - * - * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.cjis_settings is deprecated. See - * google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=464 + * .google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings cjis_settings = 8 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.cjis_settings is deprecated. + * See google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=464 * @return Whether the cjisSettings field is set. */ - @java.lang.Deprecated - boolean hasCjisSettings(); + @java.lang.Deprecated boolean hasCjisSettings(); /** - * - * *
    * Required. Input only. Immutable. Settings specific to resources needed
    * for CJIS.
    * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings cjis_settings = 8 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * - * - * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.cjis_settings is deprecated. See - * google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=464 + * .google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings cjis_settings = 8 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.cjis_settings is deprecated. + * See google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=464 * @return The cjisSettings. */ - @java.lang.Deprecated - com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings getCjisSettings(); + @java.lang.Deprecated com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings getCjisSettings(); /** - * - * *
    * Required. Input only. Immutable. Settings specific to resources needed
    * for CJIS.
    * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings cjis_settings = 8 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings cjis_settings = 8 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ - @java.lang.Deprecated - com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettingsOrBuilder - getCjisSettingsOrBuilder(); + @java.lang.Deprecated com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettingsOrBuilder getCjisSettingsOrBuilder(); /** - * - * *
    * Required. Input only. Immutable. Settings specific to resources needed
    * for FedRAMP High.
    * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings fedramp_high_settings = 11 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings fedramp_high_settings = 11 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.fedramp_high_settings is deprecated. * See google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=473 * @return Whether the fedrampHighSettings field is set. */ - @java.lang.Deprecated - boolean hasFedrampHighSettings(); + @java.lang.Deprecated boolean hasFedrampHighSettings(); /** - * - * *
    * Required. Input only. Immutable. Settings specific to resources needed
    * for FedRAMP High.
    * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings fedramp_high_settings = 11 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings fedramp_high_settings = 11 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.fedramp_high_settings is deprecated. * See google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=473 * @return The fedrampHighSettings. */ - @java.lang.Deprecated - com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings getFedrampHighSettings(); + @java.lang.Deprecated com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings getFedrampHighSettings(); /** - * - * *
    * Required. Input only. Immutable. Settings specific to resources needed
    * for FedRAMP High.
    * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings fedramp_high_settings = 11 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings fedramp_high_settings = 11 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ - @java.lang.Deprecated - com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettingsOrBuilder - getFedrampHighSettingsOrBuilder(); + @java.lang.Deprecated com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettingsOrBuilder getFedrampHighSettingsOrBuilder(); /** - * - * *
    * Required. Input only. Immutable. Settings specific to resources needed
    * for FedRAMP Moderate.
    * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings fedramp_moderate_settings = 12 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * - * - * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.fedramp_moderate_settings is - * deprecated. See google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=482 + * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings fedramp_moderate_settings = 12 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.fedramp_moderate_settings is deprecated. + * See google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=482 * @return Whether the fedrampModerateSettings field is set. */ - @java.lang.Deprecated - boolean hasFedrampModerateSettings(); + @java.lang.Deprecated boolean hasFedrampModerateSettings(); /** - * - * *
    * Required. Input only. Immutable. Settings specific to resources needed
    * for FedRAMP Moderate.
    * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings fedramp_moderate_settings = 12 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * - * - * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.fedramp_moderate_settings is - * deprecated. See google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=482 + * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings fedramp_moderate_settings = 12 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.fedramp_moderate_settings is deprecated. + * See google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=482 * @return The fedrampModerateSettings. */ - @java.lang.Deprecated - com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings - getFedrampModerateSettings(); + @java.lang.Deprecated com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings getFedrampModerateSettings(); /** - * - * *
    * Required. Input only. Immutable. Settings specific to resources needed
    * for FedRAMP Moderate.
    * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings fedramp_moderate_settings = 12 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings fedramp_moderate_settings = 12 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; */ - @java.lang.Deprecated - com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettingsOrBuilder - getFedrampModerateSettingsOrBuilder(); + @java.lang.Deprecated com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettingsOrBuilder getFedrampModerateSettingsOrBuilder(); /** - * - * *
    * Optional. ETag of the workload, it is calculated on the basis
    * of the Workload contents. It will be used in Update & Delete operations.
    * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The etag. */ java.lang.String getEtag(); /** - * - * *
    * Optional. ETag of the workload, it is calculated on the basis
    * of the Workload contents. It will be used in Update & Delete operations.
    * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for etag. */ - com.google.protobuf.ByteString getEtagBytes(); + com.google.protobuf.ByteString + getEtagBytes(); /** - * - * *
    * Optional. Labels applied to the workload.
    * 
@@ -521,31 +367,30 @@ com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfoOrBuilder getReso */ int getLabelsCount(); /** - * - * *
    * Optional. Labels applied to the workload.
    * 
* * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; */ - boolean containsLabels(java.lang.String key); - /** Use {@link #getLabelsMap()} instead. */ + boolean containsLabels( + java.lang.String key); + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Deprecated - java.util.Map getLabels(); + java.util.Map + getLabels(); /** - * - * *
    * Optional. Labels applied to the workload.
    * 
* * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.Map getLabelsMap(); + java.util.Map + getLabelsMap(); /** - * - * *
    * Optional. Labels applied to the workload.
    * 
@@ -554,24 +399,22 @@ com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfoOrBuilder getReso */ /* nullable */ - java.lang.String getLabelsOrDefault( +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * Optional. Labels applied to the workload.
    * 
* * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; */ - java.lang.String getLabelsOrThrow(java.lang.String key); + + java.lang.String getLabelsOrThrow( + java.lang.String key); /** - * - * *
    * Input only. The parent resource for the resources managed by this Assured
    * Workload. May be either empty or a folder resource which is a child of the
@@ -581,15 +424,11 @@ java.lang.String getLabelsOrDefault(
    * folders/{folder_id}
    * 
* - * string provisioned_resources_parent = 13 [(.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string provisioned_resources_parent = 13 [(.google.api.field_behavior) = INPUT_ONLY]; * @return The provisionedResourcesParent. */ java.lang.String getProvisionedResourcesParent(); /** - * - * *
    * Input only. The parent resource for the resources managed by this Assured
    * Workload. May be either empty or a folder resource which is a child of the
@@ -599,228 +438,161 @@ java.lang.String getLabelsOrDefault(
    * folders/{folder_id}
    * 
* - * string provisioned_resources_parent = 13 [(.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string provisioned_resources_parent = 13 [(.google.api.field_behavior) = INPUT_ONLY]; * @return The bytes for provisionedResourcesParent. */ - com.google.protobuf.ByteString getProvisionedResourcesParentBytes(); + com.google.protobuf.ByteString + getProvisionedResourcesParentBytes(); /** - * - * *
    * Input only. Settings used to create a CMEK crypto key. When set a project
    * with a KMS CMEK key is provisioned. This field is mandatory for a subset of
    * Compliance Regimes.
    * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; - * - * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; * @return Whether the kmsSettings field is set. */ boolean hasKmsSettings(); /** - * - * *
    * Input only. Settings used to create a CMEK crypto key. When set a project
    * with a KMS CMEK key is provisioned. This field is mandatory for a subset of
    * Compliance Regimes.
    * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; - * - * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; * @return The kmsSettings. */ com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings getKmsSettings(); /** - * - * *
    * Input only. Settings used to create a CMEK crypto key. When set a project
    * with a KMS CMEK key is provisioned. This field is mandatory for a subset of
    * Compliance Regimes.
    * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; - * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; */ com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder getKmsSettingsOrBuilder(); /** - * - * *
    * Input only. Resource properties that are used to customize workload
    * resources. These properties (such as custom project id) will be used to
    * create workload resources if possible. This field is optional.
    * 
* - * - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; */ - java.util.List + java.util.List getResourceSettingsList(); /** - * - * *
    * Input only. Resource properties that are used to customize workload
    * resources. These properties (such as custom project id) will be used to
    * create workload resources if possible. This field is optional.
    * 
* - * - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; */ - com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings getResourceSettings( - int index); + com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings getResourceSettings(int index); /** - * - * *
    * Input only. Resource properties that are used to customize workload
    * resources. These properties (such as custom project id) will be used to
    * create workload resources if possible. This field is optional.
    * 
* - * - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; */ int getResourceSettingsCount(); /** - * - * *
    * Input only. Resource properties that are used to customize workload
    * resources. These properties (such as custom project id) will be used to
    * create workload resources if possible. This field is optional.
    * 
* - * - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; */ - java.util.List< - ? extends com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettingsOrBuilder> + java.util.List getResourceSettingsOrBuilderList(); /** - * - * *
    * Input only. Resource properties that are used to customize workload
    * resources. These properties (such as custom project id) will be used to
    * create workload resources if possible. This field is optional.
    * 
* - * - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; - * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; */ - com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettingsOrBuilder - getResourceSettingsOrBuilder(int index); + com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettingsOrBuilder getResourceSettingsOrBuilder( + int index); /** - * - * *
    * Output only. Represents the KAJ enrollment state of the given workload.
    * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.KajEnrollmentState kaj_enrollment_state = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.assuredworkloads.v1beta1.Workload.KajEnrollmentState kaj_enrollment_state = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for kajEnrollmentState. */ int getKajEnrollmentStateValue(); /** - * - * *
    * Output only. Represents the KAJ enrollment state of the given workload.
    * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.KajEnrollmentState kaj_enrollment_state = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.assuredworkloads.v1beta1.Workload.KajEnrollmentState kaj_enrollment_state = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The kajEnrollmentState. */ com.google.cloud.assuredworkloads.v1beta1.Workload.KajEnrollmentState getKajEnrollmentState(); /** - * - * *
    * Optional. Indicates the sovereignty status of the given workload.
    * Currently meant to be used by Europe/Canada customers.
    * 
* * bool enable_sovereign_controls = 18 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The enableSovereignControls. */ boolean getEnableSovereignControls(); /** - * - * *
    * Output only. Represents the SAA enrollment response of the given workload.
    * SAA enrollment response is queried during GetWorkload call.
    * In failure cases, user friendly error message is shown in SAA details page.
    * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the saaEnrollmentResponse field is set. */ boolean hasSaaEnrollmentResponse(); /** - * - * *
    * Output only. Represents the SAA enrollment response of the given workload.
    * SAA enrollment response is queried during GetWorkload call.
    * In failure cases, user friendly error message is shown in SAA details page.
    * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The saaEnrollmentResponse. */ - com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse - getSaaEnrollmentResponse(); + com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse getSaaEnrollmentResponse(); /** - * - * *
    * Output only. Represents the SAA enrollment response of the given workload.
    * SAA enrollment response is queried during GetWorkload call.
    * In failure cases, user friendly error message is shown in SAA details page.
    * 
* - * - * .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponseOrBuilder - getSaaEnrollmentResponseOrBuilder(); + com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponseOrBuilder getSaaEnrollmentResponseOrBuilder(); - public com.google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegimeSettingsCase - getComplianceRegimeSettingsCase(); + public com.google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegimeSettingsCase getComplianceRegimeSettingsCase(); } diff --git a/proto-google-cloud-assured-workloads-v1beta1/src/main/proto/google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto b/owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/proto/google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto similarity index 100% rename from proto-google-cloud-assured-workloads-v1beta1/src/main/proto/google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto rename to owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/proto/google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 00000000..cd627541 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,42 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.assuredworkloads.v1beta1.samples; + +// [START assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_create_setcredentialsprovider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsServiceClient; +import com.google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsServiceSettings; +import com.google.cloud.assuredworkloads.v1beta1.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + AssuredWorkloadsServiceSettings assuredWorkloadsServiceSettings = + AssuredWorkloadsServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + AssuredWorkloadsServiceClient assuredWorkloadsServiceClient = + AssuredWorkloadsServiceClient.create(assuredWorkloadsServiceSettings); + } +} +// [END assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_create_setcredentialsprovider_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/create/SyncCreateSetCredentialsProvider1.java new file mode 100644 index 00000000..0018e402 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/create/SyncCreateSetCredentialsProvider1.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.assuredworkloads.v1beta1.samples; + +// [START assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_create_setcredentialsprovider1_sync] +import com.google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsServiceClient; +import com.google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsServiceSettings; + +public class SyncCreateSetCredentialsProvider1 { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider1(); + } + + public static void syncCreateSetCredentialsProvider1() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + AssuredWorkloadsServiceSettings assuredWorkloadsServiceSettings = + AssuredWorkloadsServiceSettings.newBuilder() + .setTransportChannelProvider( + AssuredWorkloadsServiceSettings.defaultHttpJsonTransportProviderBuilder().build()) + .build(); + AssuredWorkloadsServiceClient assuredWorkloadsServiceClient = + AssuredWorkloadsServiceClient.create(assuredWorkloadsServiceSettings); + } +} +// [END assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_create_setcredentialsprovider1_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/create/SyncCreateSetEndpoint.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/create/SyncCreateSetEndpoint.java new file mode 100644 index 00000000..c2058595 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/create/SyncCreateSetEndpoint.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.assuredworkloads.v1beta1.samples; + +// [START assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_create_setendpoint_sync] +import com.google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsServiceClient; +import com.google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsServiceSettings; +import com.google.cloud.assuredworkloads.v1beta1.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + AssuredWorkloadsServiceSettings assuredWorkloadsServiceSettings = + AssuredWorkloadsServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + AssuredWorkloadsServiceClient assuredWorkloadsServiceClient = + AssuredWorkloadsServiceClient.create(assuredWorkloadsServiceSettings); + } +} +// [END assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_create_setendpoint_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/createworkload/AsyncCreateWorkload.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/createworkload/AsyncCreateWorkload.java new file mode 100644 index 00000000..c1479796 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/createworkload/AsyncCreateWorkload.java @@ -0,0 +1,51 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.assuredworkloads.v1beta1.samples; + +// [START assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_createworkload_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsServiceClient; +import com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest; +import com.google.cloud.assuredworkloads.v1beta1.LocationName; +import com.google.cloud.assuredworkloads.v1beta1.Workload; +import com.google.longrunning.Operation; + +public class AsyncCreateWorkload { + + public static void main(String[] args) throws Exception { + asyncCreateWorkload(); + } + + public static void asyncCreateWorkload() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AssuredWorkloadsServiceClient assuredWorkloadsServiceClient = + AssuredWorkloadsServiceClient.create()) { + CreateWorkloadRequest request = + CreateWorkloadRequest.newBuilder() + .setParent(LocationName.of("[ORGANIZATION]", "[LOCATION]").toString()) + .setWorkload(Workload.newBuilder().build()) + .setExternalId("externalId-1699764666") + .build(); + ApiFuture future = + assuredWorkloadsServiceClient.createWorkloadCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_createworkload_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/createworkload/AsyncCreateWorkloadLRO.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/createworkload/AsyncCreateWorkloadLRO.java new file mode 100644 index 00000000..3b649fbc --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/createworkload/AsyncCreateWorkloadLRO.java @@ -0,0 +1,51 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.assuredworkloads.v1beta1.samples; + +// [START assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_createworkload_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsServiceClient; +import com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata; +import com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest; +import com.google.cloud.assuredworkloads.v1beta1.LocationName; +import com.google.cloud.assuredworkloads.v1beta1.Workload; + +public class AsyncCreateWorkloadLRO { + + public static void main(String[] args) throws Exception { + asyncCreateWorkloadLRO(); + } + + public static void asyncCreateWorkloadLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AssuredWorkloadsServiceClient assuredWorkloadsServiceClient = + AssuredWorkloadsServiceClient.create()) { + CreateWorkloadRequest request = + CreateWorkloadRequest.newBuilder() + .setParent(LocationName.of("[ORGANIZATION]", "[LOCATION]").toString()) + .setWorkload(Workload.newBuilder().build()) + .setExternalId("externalId-1699764666") + .build(); + OperationFuture future = + assuredWorkloadsServiceClient.createWorkloadOperationCallable().futureCall(request); + // Do something. + Workload response = future.get(); + } + } +} +// [END assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_createworkload_lro_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/createworkload/SyncCreateWorkload.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/createworkload/SyncCreateWorkload.java new file mode 100644 index 00000000..dac0147c --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/createworkload/SyncCreateWorkload.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.assuredworkloads.v1beta1.samples; + +// [START assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_createworkload_sync] +import com.google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsServiceClient; +import com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest; +import com.google.cloud.assuredworkloads.v1beta1.LocationName; +import com.google.cloud.assuredworkloads.v1beta1.Workload; + +public class SyncCreateWorkload { + + public static void main(String[] args) throws Exception { + syncCreateWorkload(); + } + + public static void syncCreateWorkload() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AssuredWorkloadsServiceClient assuredWorkloadsServiceClient = + AssuredWorkloadsServiceClient.create()) { + CreateWorkloadRequest request = + CreateWorkloadRequest.newBuilder() + .setParent(LocationName.of("[ORGANIZATION]", "[LOCATION]").toString()) + .setWorkload(Workload.newBuilder().build()) + .setExternalId("externalId-1699764666") + .build(); + Workload response = assuredWorkloadsServiceClient.createWorkloadAsync(request).get(); + } + } +} +// [END assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_createworkload_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/createworkload/SyncCreateWorkloadLocationnameWorkload.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/createworkload/SyncCreateWorkloadLocationnameWorkload.java new file mode 100644 index 00000000..b4b5d95e --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/createworkload/SyncCreateWorkloadLocationnameWorkload.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.assuredworkloads.v1beta1.samples; + +// [START assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_createworkload_locationnameworkload_sync] +import com.google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsServiceClient; +import com.google.cloud.assuredworkloads.v1beta1.LocationName; +import com.google.cloud.assuredworkloads.v1beta1.Workload; + +public class SyncCreateWorkloadLocationnameWorkload { + + public static void main(String[] args) throws Exception { + syncCreateWorkloadLocationnameWorkload(); + } + + public static void syncCreateWorkloadLocationnameWorkload() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AssuredWorkloadsServiceClient assuredWorkloadsServiceClient = + AssuredWorkloadsServiceClient.create()) { + LocationName parent = LocationName.of("[ORGANIZATION]", "[LOCATION]"); + Workload workload = Workload.newBuilder().build(); + Workload response = assuredWorkloadsServiceClient.createWorkloadAsync(parent, workload).get(); + } + } +} +// [END assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_createworkload_locationnameworkload_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/createworkload/SyncCreateWorkloadStringWorkload.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/createworkload/SyncCreateWorkloadStringWorkload.java new file mode 100644 index 00000000..1fdde36d --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/createworkload/SyncCreateWorkloadStringWorkload.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.assuredworkloads.v1beta1.samples; + +// [START assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_createworkload_stringworkload_sync] +import com.google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsServiceClient; +import com.google.cloud.assuredworkloads.v1beta1.LocationName; +import com.google.cloud.assuredworkloads.v1beta1.Workload; + +public class SyncCreateWorkloadStringWorkload { + + public static void main(String[] args) throws Exception { + syncCreateWorkloadStringWorkload(); + } + + public static void syncCreateWorkloadStringWorkload() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AssuredWorkloadsServiceClient assuredWorkloadsServiceClient = + AssuredWorkloadsServiceClient.create()) { + String parent = LocationName.of("[ORGANIZATION]", "[LOCATION]").toString(); + Workload workload = Workload.newBuilder().build(); + Workload response = assuredWorkloadsServiceClient.createWorkloadAsync(parent, workload).get(); + } + } +} +// [END assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_createworkload_stringworkload_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/deleteworkload/AsyncDeleteWorkload.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/deleteworkload/AsyncDeleteWorkload.java new file mode 100644 index 00000000..3401e96c --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/deleteworkload/AsyncDeleteWorkload.java @@ -0,0 +1,49 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.assuredworkloads.v1beta1.samples; + +// [START assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_deleteworkload_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsServiceClient; +import com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest; +import com.google.cloud.assuredworkloads.v1beta1.WorkloadName; +import com.google.protobuf.Empty; + +public class AsyncDeleteWorkload { + + public static void main(String[] args) throws Exception { + asyncDeleteWorkload(); + } + + public static void asyncDeleteWorkload() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AssuredWorkloadsServiceClient assuredWorkloadsServiceClient = + AssuredWorkloadsServiceClient.create()) { + DeleteWorkloadRequest request = + DeleteWorkloadRequest.newBuilder() + .setName(WorkloadName.of("[ORGANIZATION]", "[LOCATION]", "[WORKLOAD]").toString()) + .setEtag("etag3123477") + .build(); + ApiFuture future = + assuredWorkloadsServiceClient.deleteWorkloadCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_deleteworkload_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/deleteworkload/SyncDeleteWorkload.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/deleteworkload/SyncDeleteWorkload.java new file mode 100644 index 00000000..e3d76f19 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/deleteworkload/SyncDeleteWorkload.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.assuredworkloads.v1beta1.samples; + +// [START assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_deleteworkload_sync] +import com.google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsServiceClient; +import com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest; +import com.google.cloud.assuredworkloads.v1beta1.WorkloadName; +import com.google.protobuf.Empty; + +public class SyncDeleteWorkload { + + public static void main(String[] args) throws Exception { + syncDeleteWorkload(); + } + + public static void syncDeleteWorkload() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AssuredWorkloadsServiceClient assuredWorkloadsServiceClient = + AssuredWorkloadsServiceClient.create()) { + DeleteWorkloadRequest request = + DeleteWorkloadRequest.newBuilder() + .setName(WorkloadName.of("[ORGANIZATION]", "[LOCATION]", "[WORKLOAD]").toString()) + .setEtag("etag3123477") + .build(); + assuredWorkloadsServiceClient.deleteWorkload(request); + } + } +} +// [END assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_deleteworkload_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/deleteworkload/SyncDeleteWorkloadString.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/deleteworkload/SyncDeleteWorkloadString.java new file mode 100644 index 00000000..1afba608 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/deleteworkload/SyncDeleteWorkloadString.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.assuredworkloads.v1beta1.samples; + +// [START assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_deleteworkload_string_sync] +import com.google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsServiceClient; +import com.google.cloud.assuredworkloads.v1beta1.WorkloadName; +import com.google.protobuf.Empty; + +public class SyncDeleteWorkloadString { + + public static void main(String[] args) throws Exception { + syncDeleteWorkloadString(); + } + + public static void syncDeleteWorkloadString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AssuredWorkloadsServiceClient assuredWorkloadsServiceClient = + AssuredWorkloadsServiceClient.create()) { + String name = WorkloadName.of("[ORGANIZATION]", "[LOCATION]", "[WORKLOAD]").toString(); + assuredWorkloadsServiceClient.deleteWorkload(name); + } + } +} +// [END assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_deleteworkload_string_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/deleteworkload/SyncDeleteWorkloadWorkloadname.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/deleteworkload/SyncDeleteWorkloadWorkloadname.java new file mode 100644 index 00000000..934db95d --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/deleteworkload/SyncDeleteWorkloadWorkloadname.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.assuredworkloads.v1beta1.samples; + +// [START assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_deleteworkload_workloadname_sync] +import com.google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsServiceClient; +import com.google.cloud.assuredworkloads.v1beta1.WorkloadName; +import com.google.protobuf.Empty; + +public class SyncDeleteWorkloadWorkloadname { + + public static void main(String[] args) throws Exception { + syncDeleteWorkloadWorkloadname(); + } + + public static void syncDeleteWorkloadWorkloadname() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AssuredWorkloadsServiceClient assuredWorkloadsServiceClient = + AssuredWorkloadsServiceClient.create()) { + WorkloadName name = WorkloadName.of("[ORGANIZATION]", "[LOCATION]", "[WORKLOAD]"); + assuredWorkloadsServiceClient.deleteWorkload(name); + } + } +} +// [END assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_deleteworkload_workloadname_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/getworkload/AsyncGetWorkload.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/getworkload/AsyncGetWorkload.java new file mode 100644 index 00000000..0b9a32ac --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/getworkload/AsyncGetWorkload.java @@ -0,0 +1,48 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.assuredworkloads.v1beta1.samples; + +// [START assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_getworkload_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsServiceClient; +import com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest; +import com.google.cloud.assuredworkloads.v1beta1.Workload; +import com.google.cloud.assuredworkloads.v1beta1.WorkloadName; + +public class AsyncGetWorkload { + + public static void main(String[] args) throws Exception { + asyncGetWorkload(); + } + + public static void asyncGetWorkload() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AssuredWorkloadsServiceClient assuredWorkloadsServiceClient = + AssuredWorkloadsServiceClient.create()) { + GetWorkloadRequest request = + GetWorkloadRequest.newBuilder() + .setName(WorkloadName.of("[ORGANIZATION]", "[LOCATION]", "[WORKLOAD]").toString()) + .build(); + ApiFuture future = + assuredWorkloadsServiceClient.getWorkloadCallable().futureCall(request); + // Do something. + Workload response = future.get(); + } + } +} +// [END assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_getworkload_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/getworkload/SyncGetWorkload.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/getworkload/SyncGetWorkload.java new file mode 100644 index 00000000..7c2b7c85 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/getworkload/SyncGetWorkload.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.assuredworkloads.v1beta1.samples; + +// [START assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_getworkload_sync] +import com.google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsServiceClient; +import com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest; +import com.google.cloud.assuredworkloads.v1beta1.Workload; +import com.google.cloud.assuredworkloads.v1beta1.WorkloadName; + +public class SyncGetWorkload { + + public static void main(String[] args) throws Exception { + syncGetWorkload(); + } + + public static void syncGetWorkload() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AssuredWorkloadsServiceClient assuredWorkloadsServiceClient = + AssuredWorkloadsServiceClient.create()) { + GetWorkloadRequest request = + GetWorkloadRequest.newBuilder() + .setName(WorkloadName.of("[ORGANIZATION]", "[LOCATION]", "[WORKLOAD]").toString()) + .build(); + Workload response = assuredWorkloadsServiceClient.getWorkload(request); + } + } +} +// [END assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_getworkload_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/getworkload/SyncGetWorkloadString.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/getworkload/SyncGetWorkloadString.java new file mode 100644 index 00000000..8f13ed27 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/getworkload/SyncGetWorkloadString.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.assuredworkloads.v1beta1.samples; + +// [START assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_getworkload_string_sync] +import com.google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsServiceClient; +import com.google.cloud.assuredworkloads.v1beta1.Workload; +import com.google.cloud.assuredworkloads.v1beta1.WorkloadName; + +public class SyncGetWorkloadString { + + public static void main(String[] args) throws Exception { + syncGetWorkloadString(); + } + + public static void syncGetWorkloadString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AssuredWorkloadsServiceClient assuredWorkloadsServiceClient = + AssuredWorkloadsServiceClient.create()) { + String name = WorkloadName.of("[ORGANIZATION]", "[LOCATION]", "[WORKLOAD]").toString(); + Workload response = assuredWorkloadsServiceClient.getWorkload(name); + } + } +} +// [END assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_getworkload_string_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/getworkload/SyncGetWorkloadWorkloadname.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/getworkload/SyncGetWorkloadWorkloadname.java new file mode 100644 index 00000000..7853d525 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/getworkload/SyncGetWorkloadWorkloadname.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.assuredworkloads.v1beta1.samples; + +// [START assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_getworkload_workloadname_sync] +import com.google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsServiceClient; +import com.google.cloud.assuredworkloads.v1beta1.Workload; +import com.google.cloud.assuredworkloads.v1beta1.WorkloadName; + +public class SyncGetWorkloadWorkloadname { + + public static void main(String[] args) throws Exception { + syncGetWorkloadWorkloadname(); + } + + public static void syncGetWorkloadWorkloadname() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AssuredWorkloadsServiceClient assuredWorkloadsServiceClient = + AssuredWorkloadsServiceClient.create()) { + WorkloadName name = WorkloadName.of("[ORGANIZATION]", "[LOCATION]", "[WORKLOAD]"); + Workload response = assuredWorkloadsServiceClient.getWorkload(name); + } + } +} +// [END assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_getworkload_workloadname_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/listworkloads/AsyncListWorkloads.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/listworkloads/AsyncListWorkloads.java new file mode 100644 index 00000000..6289cf09 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/listworkloads/AsyncListWorkloads.java @@ -0,0 +1,53 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.assuredworkloads.v1beta1.samples; + +// [START assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_listworkloads_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsServiceClient; +import com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest; +import com.google.cloud.assuredworkloads.v1beta1.LocationName; +import com.google.cloud.assuredworkloads.v1beta1.Workload; + +public class AsyncListWorkloads { + + public static void main(String[] args) throws Exception { + asyncListWorkloads(); + } + + public static void asyncListWorkloads() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AssuredWorkloadsServiceClient assuredWorkloadsServiceClient = + AssuredWorkloadsServiceClient.create()) { + ListWorkloadsRequest request = + ListWorkloadsRequest.newBuilder() + .setParent(LocationName.of("[ORGANIZATION]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + ApiFuture future = + assuredWorkloadsServiceClient.listWorkloadsPagedCallable().futureCall(request); + // Do something. + for (Workload element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_listworkloads_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/listworkloads/AsyncListWorkloadsPaged.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/listworkloads/AsyncListWorkloadsPaged.java new file mode 100644 index 00000000..bf2996e7 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/listworkloads/AsyncListWorkloadsPaged.java @@ -0,0 +1,61 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.assuredworkloads.v1beta1.samples; + +// [START assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_listworkloads_paged_async] +import com.google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsServiceClient; +import com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest; +import com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse; +import com.google.cloud.assuredworkloads.v1beta1.LocationName; +import com.google.cloud.assuredworkloads.v1beta1.Workload; +import com.google.common.base.Strings; + +public class AsyncListWorkloadsPaged { + + public static void main(String[] args) throws Exception { + asyncListWorkloadsPaged(); + } + + public static void asyncListWorkloadsPaged() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AssuredWorkloadsServiceClient assuredWorkloadsServiceClient = + AssuredWorkloadsServiceClient.create()) { + ListWorkloadsRequest request = + ListWorkloadsRequest.newBuilder() + .setParent(LocationName.of("[ORGANIZATION]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + while (true) { + ListWorkloadsResponse response = + assuredWorkloadsServiceClient.listWorkloadsCallable().call(request); + for (Workload element : response.getWorkloadsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_listworkloads_paged_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/listworkloads/SyncListWorkloads.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/listworkloads/SyncListWorkloads.java new file mode 100644 index 00000000..64a1fad3 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/listworkloads/SyncListWorkloads.java @@ -0,0 +1,49 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.assuredworkloads.v1beta1.samples; + +// [START assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_listworkloads_sync] +import com.google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsServiceClient; +import com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest; +import com.google.cloud.assuredworkloads.v1beta1.LocationName; +import com.google.cloud.assuredworkloads.v1beta1.Workload; + +public class SyncListWorkloads { + + public static void main(String[] args) throws Exception { + syncListWorkloads(); + } + + public static void syncListWorkloads() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AssuredWorkloadsServiceClient assuredWorkloadsServiceClient = + AssuredWorkloadsServiceClient.create()) { + ListWorkloadsRequest request = + ListWorkloadsRequest.newBuilder() + .setParent(LocationName.of("[ORGANIZATION]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + for (Workload element : assuredWorkloadsServiceClient.listWorkloads(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_listworkloads_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/listworkloads/SyncListWorkloadsLocationname.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/listworkloads/SyncListWorkloadsLocationname.java new file mode 100644 index 00000000..95697fd9 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/listworkloads/SyncListWorkloadsLocationname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.assuredworkloads.v1beta1.samples; + +// [START assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_listworkloads_locationname_sync] +import com.google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsServiceClient; +import com.google.cloud.assuredworkloads.v1beta1.LocationName; +import com.google.cloud.assuredworkloads.v1beta1.Workload; + +public class SyncListWorkloadsLocationname { + + public static void main(String[] args) throws Exception { + syncListWorkloadsLocationname(); + } + + public static void syncListWorkloadsLocationname() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AssuredWorkloadsServiceClient assuredWorkloadsServiceClient = + AssuredWorkloadsServiceClient.create()) { + LocationName parent = LocationName.of("[ORGANIZATION]", "[LOCATION]"); + for (Workload element : assuredWorkloadsServiceClient.listWorkloads(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_listworkloads_locationname_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/listworkloads/SyncListWorkloadsString.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/listworkloads/SyncListWorkloadsString.java new file mode 100644 index 00000000..a8924e7b --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/listworkloads/SyncListWorkloadsString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.assuredworkloads.v1beta1.samples; + +// [START assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_listworkloads_string_sync] +import com.google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsServiceClient; +import com.google.cloud.assuredworkloads.v1beta1.LocationName; +import com.google.cloud.assuredworkloads.v1beta1.Workload; + +public class SyncListWorkloadsString { + + public static void main(String[] args) throws Exception { + syncListWorkloadsString(); + } + + public static void syncListWorkloadsString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AssuredWorkloadsServiceClient assuredWorkloadsServiceClient = + AssuredWorkloadsServiceClient.create()) { + String parent = LocationName.of("[ORGANIZATION]", "[LOCATION]").toString(); + for (Workload element : assuredWorkloadsServiceClient.listWorkloads(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_listworkloads_string_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/updateworkload/AsyncUpdateWorkload.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/updateworkload/AsyncUpdateWorkload.java new file mode 100644 index 00000000..c12a7f5b --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/updateworkload/AsyncUpdateWorkload.java @@ -0,0 +1,49 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.assuredworkloads.v1beta1.samples; + +// [START assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_updateworkload_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsServiceClient; +import com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest; +import com.google.cloud.assuredworkloads.v1beta1.Workload; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateWorkload { + + public static void main(String[] args) throws Exception { + asyncUpdateWorkload(); + } + + public static void asyncUpdateWorkload() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AssuredWorkloadsServiceClient assuredWorkloadsServiceClient = + AssuredWorkloadsServiceClient.create()) { + UpdateWorkloadRequest request = + UpdateWorkloadRequest.newBuilder() + .setWorkload(Workload.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + assuredWorkloadsServiceClient.updateWorkloadCallable().futureCall(request); + // Do something. + Workload response = future.get(); + } + } +} +// [END assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_updateworkload_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/updateworkload/SyncUpdateWorkload.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/updateworkload/SyncUpdateWorkload.java new file mode 100644 index 00000000..8fc14e4e --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/updateworkload/SyncUpdateWorkload.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.assuredworkloads.v1beta1.samples; + +// [START assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_updateworkload_sync] +import com.google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsServiceClient; +import com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest; +import com.google.cloud.assuredworkloads.v1beta1.Workload; +import com.google.protobuf.FieldMask; + +public class SyncUpdateWorkload { + + public static void main(String[] args) throws Exception { + syncUpdateWorkload(); + } + + public static void syncUpdateWorkload() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AssuredWorkloadsServiceClient assuredWorkloadsServiceClient = + AssuredWorkloadsServiceClient.create()) { + UpdateWorkloadRequest request = + UpdateWorkloadRequest.newBuilder() + .setWorkload(Workload.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + Workload response = assuredWorkloadsServiceClient.updateWorkload(request); + } + } +} +// [END assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_updateworkload_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/updateworkload/SyncUpdateWorkloadWorkloadFieldmask.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/updateworkload/SyncUpdateWorkloadWorkloadFieldmask.java new file mode 100644 index 00000000..da0a1572 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/updateworkload/SyncUpdateWorkloadWorkloadFieldmask.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.assuredworkloads.v1beta1.samples; + +// [START assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_updateworkload_workloadfieldmask_sync] +import com.google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsServiceClient; +import com.google.cloud.assuredworkloads.v1beta1.Workload; +import com.google.protobuf.FieldMask; + +public class SyncUpdateWorkloadWorkloadFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateWorkloadWorkloadFieldmask(); + } + + public static void syncUpdateWorkloadWorkloadFieldmask() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AssuredWorkloadsServiceClient assuredWorkloadsServiceClient = + AssuredWorkloadsServiceClient.create()) { + Workload workload = Workload.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + Workload response = assuredWorkloadsServiceClient.updateWorkload(workload, updateMask); + } + } +} +// [END assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_updateworkload_workloadfieldmask_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsservicesettings/updateworkload/SyncUpdateWorkload.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsservicesettings/updateworkload/SyncUpdateWorkload.java new file mode 100644 index 00000000..7d07bd3f --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsservicesettings/updateworkload/SyncUpdateWorkload.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.assuredworkloads.v1beta1.samples; + +// [START assuredworkloads_v1beta1_generated_assuredworkloadsservicesettings_updateworkload_sync] +import com.google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsServiceSettings; +import java.time.Duration; + +public class SyncUpdateWorkload { + + public static void main(String[] args) throws Exception { + syncUpdateWorkload(); + } + + public static void syncUpdateWorkload() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + AssuredWorkloadsServiceSettings.Builder assuredWorkloadsServiceSettingsBuilder = + AssuredWorkloadsServiceSettings.newBuilder(); + assuredWorkloadsServiceSettingsBuilder + .updateWorkloadSettings() + .setRetrySettings( + assuredWorkloadsServiceSettingsBuilder + .updateWorkloadSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + AssuredWorkloadsServiceSettings assuredWorkloadsServiceSettings = + assuredWorkloadsServiceSettingsBuilder.build(); + } +} +// [END assuredworkloads_v1beta1_generated_assuredworkloadsservicesettings_updateworkload_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/stub/assuredworkloadsservicestubsettings/updateworkload/SyncUpdateWorkload.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/stub/assuredworkloadsservicestubsettings/updateworkload/SyncUpdateWorkload.java new file mode 100644 index 00000000..81eaf349 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/stub/assuredworkloadsservicestubsettings/updateworkload/SyncUpdateWorkload.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.assuredworkloads.v1beta1.stub.samples; + +// [START assuredworkloads_v1beta1_generated_assuredworkloadsservicestubsettings_updateworkload_sync] +import com.google.cloud.assuredworkloads.v1beta1.stub.AssuredWorkloadsServiceStubSettings; +import java.time.Duration; + +public class SyncUpdateWorkload { + + public static void main(String[] args) throws Exception { + syncUpdateWorkload(); + } + + public static void syncUpdateWorkload() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + AssuredWorkloadsServiceStubSettings.Builder assuredWorkloadsServiceSettingsBuilder = + AssuredWorkloadsServiceStubSettings.newBuilder(); + assuredWorkloadsServiceSettingsBuilder + .updateWorkloadSettings() + .setRetrySettings( + assuredWorkloadsServiceSettingsBuilder + .updateWorkloadSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + AssuredWorkloadsServiceStubSettings assuredWorkloadsServiceSettings = + assuredWorkloadsServiceSettingsBuilder.build(); + } +} +// [END assuredworkloads_v1beta1_generated_assuredworkloadsservicestubsettings_updateworkload_sync] diff --git a/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/AssuredworkloadsProto.java b/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/AssuredworkloadsProto.java deleted file mode 100644 index 18fa2793..00000000 --- a/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/AssuredworkloadsProto.java +++ /dev/null @@ -1,392 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/assuredworkloads/v1/assuredworkloads.proto - -package com.google.cloud.assuredworkloads.v1; - -public final class AssuredworkloadsProto { - private AssuredworkloadsProto() {} - - 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_assuredworkloads_v1_CreateWorkloadRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_assuredworkloads_v1_CreateWorkloadRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_assuredworkloads_v1_UpdateWorkloadRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_assuredworkloads_v1_UpdateWorkloadRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_assuredworkloads_v1_DeleteWorkloadRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_assuredworkloads_v1_DeleteWorkloadRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_assuredworkloads_v1_GetWorkloadRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_assuredworkloads_v1_GetWorkloadRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_assuredworkloads_v1_ListWorkloadsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_assuredworkloads_v1_ListWorkloadsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_assuredworkloads_v1_ListWorkloadsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_assuredworkloads_v1_ListWorkloadsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_assuredworkloads_v1_Workload_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_assuredworkloads_v1_Workload_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_assuredworkloads_v1_Workload_ResourceInfo_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_assuredworkloads_v1_Workload_ResourceInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_assuredworkloads_v1_Workload_KMSSettings_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_assuredworkloads_v1_Workload_KMSSettings_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_assuredworkloads_v1_Workload_ResourceSettings_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_assuredworkloads_v1_Workload_ResourceSettings_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_assuredworkloads_v1_Workload_SaaEnrollmentResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_assuredworkloads_v1_Workload_SaaEnrollmentResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_assuredworkloads_v1_Workload_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_assuredworkloads_v1_Workload_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_assuredworkloads_v1_CreateWorkloadOperationMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_assuredworkloads_v1_CreateWorkloadOperationMetadata_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n7google/cloud/assuredworkloads/v1/assur" - + "edworkloads.proto\022 google.cloud.assuredw" - + "orkloads.v1\032\034google/api/annotations.prot" - + "o\032\027google/api/client.proto\032\037google/api/f" - + "ield_behavior.proto\032\031google/api/resource" - + ".proto\032#google/longrunning/operations.pr" - + "oto\032\036google/protobuf/duration.proto\032\033goo" - + "gle/protobuf/empty.proto\032 google/protobu" - + "f/field_mask.proto\032\037google/protobuf/time" - + "stamp.proto\"\266\001\n\025CreateWorkloadRequest\022@\n" - + "\006parent\030\001 \001(\tB0\340A\002\372A*\022(assuredworkloads." - + "googleapis.com/Workload\022A\n\010workload\030\002 \001(" - + "\0132*.google.cloud.assuredworkloads.v1.Wor" - + "kloadB\003\340A\002\022\030\n\013external_id\030\003 \001(\tB\003\340A\001\"\220\001\n" - + "\025UpdateWorkloadRequest\022A\n\010workload\030\001 \001(\013" - + "2*.google.cloud.assuredworkloads.v1.Work" - + "loadB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google." - + "protobuf.FieldMaskB\003\340A\002\"j\n\025DeleteWorkloa" - + "dRequest\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n(assuredw" - + "orkloads.googleapis.com/Workload\022\021\n\004etag" - + "\030\002 \001(\tB\003\340A\001\"T\n\022GetWorkloadRequest\022>\n\004nam" - + "e\030\001 \001(\tB0\340A\002\372A*\n(assuredworkloads.google" - + "apis.com/Workload\"\217\001\n\024ListWorkloadsReque" - + "st\022@\n\006parent\030\001 \001(\tB0\340A\002\372A*\022(assuredworkl" - + "oads.googleapis.com/Workload\022\021\n\tpage_siz" - + "e\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\004 " - + "\001(\t\"o\n\025ListWorkloadsResponse\022=\n\tworkload" - + "s\030\001 \003(\0132*.google.cloud.assuredworkloads." - + "v1.Workload\022\027\n\017next_page_token\030\002 \001(\t\"\222\023\n" - + "\010Workload\022\021\n\004name\030\001 \001(\tB\003\340A\001\022\031\n\014display_" - + "name\030\002 \001(\tB\003\340A\002\022O\n\tresources\030\003 \003(\01327.goo" - + "gle.cloud.assuredworkloads.v1.Workload.R" - + "esourceInfoB\003\340A\003\022^\n\021compliance_regime\030\004 " - + "\001(\0162;.google.cloud.assuredworkloads.v1.W" - + "orkload.ComplianceRegimeB\006\340A\002\340A\005\0227\n\013crea" - + "te_time\030\005 \001(\0132\032.google.protobuf.Timestam" - + "pB\006\340A\003\340A\005\022\037\n\017billing_account\030\006 \001(\tB\006\340A\002\340" - + "A\004\022\021\n\004etag\030\t \001(\tB\003\340A\001\022K\n\006labels\030\n \003(\01326." - + "google.cloud.assuredworkloads.v1.Workloa" - + "d.LabelsEntryB\003\340A\001\022)\n\034provisioned_resour" - + "ces_parent\030\r \001(\tB\003\340A\004\022Q\n\014kms_settings\030\016 " - + "\001(\01326.google.cloud.assuredworkloads.v1.W" - + "orkload.KMSSettingsB\003\340A\004\022[\n\021resource_set" - + "tings\030\017 \003(\0132;.google.cloud.assuredworklo" - + "ads.v1.Workload.ResourceSettingsB\003\340A\004\022`\n" - + "\024kaj_enrollment_state\030\021 \001(\0162=.google.clo" - + "ud.assuredworkloads.v1.Workload.KajEnrol" - + "lmentStateB\003\340A\003\022&\n\031enable_sovereign_cont" - + "rols\030\022 \001(\010B\003\340A\001\022f\n\027saa_enrollment_respon" - + "se\030\024 \001(\0132@.google.cloud.assuredworkloads" - + ".v1.Workload.SaaEnrollmentResponseB\003\340A\003\032" - + "\357\001\n\014ResourceInfo\022\023\n\013resource_id\030\001 \001(\003\022[\n" - + "\rresource_type\030\002 \001(\0162D.google.cloud.assu" - + "redworkloads.v1.Workload.ResourceInfo.Re" - + "sourceType\"m\n\014ResourceType\022\035\n\031RESOURCE_T" - + "YPE_UNSPECIFIED\020\000\022\024\n\020CONSUMER_PROJECT\020\001\022" - + "\033\n\027ENCRYPTION_KEYS_PROJECT\020\002\022\013\n\007KEYRING\020" - + "\003\032\217\001\n\013KMSSettings\022A\n\022next_rotation_time\030" - + "\001 \001(\0132\032.google.protobuf.TimestampB\t\340A\002\340A" - + "\004\340A\005\022=\n\017rotation_period\030\002 \001(\0132\031.google.p" - + "rotobuf.DurationB\t\340A\002\340A\004\340A\005\032\232\001\n\020Resource" - + "Settings\022\023\n\013resource_id\030\001 \001(\t\022[\n\rresourc" - + "e_type\030\002 \001(\0162D.google.cloud.assuredworkl" - + "oads.v1.Workload.ResourceInfo.ResourceTy" - + "pe\022\024\n\014display_name\030\003 \001(\t\032\374\003\n\025SaaEnrollme" - + "ntResponse\022f\n\014setup_status\030\001 \001(\0162K.googl" - + "e.cloud.assuredworkloads.v1.Workload.Saa" - + "EnrollmentResponse.SetupStateH\000\210\001\001\022a\n\014se" - + "tup_errors\030\002 \003(\0162K.google.cloud.assuredw" - + "orkloads.v1.Workload.SaaEnrollmentRespon" - + "se.SetupError\"R\n\nSetupState\022\033\n\027SETUP_STA" - + "TE_UNSPECIFIED\020\000\022\022\n\016STATUS_PENDING\020\001\022\023\n\017" - + "STATUS_COMPLETE\020\002\"\262\001\n\nSetupError\022\033\n\027SETU" - + "P_ERROR_UNSPECIFIED\020\000\022\034\n\030ERROR_INVALID_B" - + "ASE_SETUP\020\001\022&\n\"ERROR_MISSING_EXTERNAL_SI" - + "GNING_KEY\020\002\022#\n\037ERROR_NOT_ALL_SERVICES_EN" - + "ROLLED\020\003\022\034\n\030ERROR_SETUP_CHECK_FAILED\020\004B\017" - + "\n\r_setup_status\032-\n\013LabelsEntry\022\013\n\003key\030\001 " - + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\330\001\n\020ComplianceReg" - + "ime\022!\n\035COMPLIANCE_REGIME_UNSPECIFIED\020\000\022\007" - + "\n\003IL4\020\001\022\010\n\004CJIS\020\002\022\020\n\014FEDRAMP_HIGH\020\003\022\024\n\020F" - + "EDRAMP_MODERATE\020\004\022\026\n\022US_REGIONAL_ACCESS\020" - + "\005\022\t\n\005HIPAA\020\006\022\013\n\007HITRUST\020\007\022\032\n\026EU_REGIONS_" - + "AND_SUPPORT\020\010\022\032\n\026CA_REGIONS_AND_SUPPORT\020" - + "\t\"\177\n\022KajEnrollmentState\022$\n KAJ_ENROLLMEN" - + "T_STATE_UNSPECIFIED\020\000\022 \n\034KAJ_ENROLLMENT_" - + "STATE_PENDING\020\001\022!\n\035KAJ_ENROLLMENT_STATE_" - + "COMPLETE\020\002:u\352Ar\n(assuredworkloads.google" - + "apis.com/Workload\022Forganizations/{organi" - + "zation}/locations/{location}/workloads/{" - + "workload}\"\344\001\n\037CreateWorkloadOperationMet" - + "adata\0224\n\013create_time\030\001 \001(\0132\032.google.prot" - + "obuf.TimestampB\003\340A\001\022\031\n\014display_name\030\002 \001(" - + "\tB\003\340A\001\022\023\n\006parent\030\003 \001(\tB\003\340A\001\022[\n\021complianc" - + "e_regime\030\004 \001(\0162;.google.cloud.assuredwor" - + "kloads.v1.Workload.ComplianceRegimeB\003\340A\001" - + "2\342\010\n\027AssuredWorkloadsService\022\357\001\n\016CreateW" - + "orkload\0227.google.cloud.assuredworkloads." - + "v1.CreateWorkloadRequest\032\035.google.longru" - + "nning.Operation\"\204\001\202\323\344\223\002>\"2/v1/{parent=or" - + "ganizations/*/locations/*}/workloads:\010wo" - + "rkload\332A\017parent,workload\312A+\n\010Workload\022\037C" - + "reateWorkloadOperationMetadata\022\333\001\n\016Updat" - + "eWorkload\0227.google.cloud.assuredworkload" - + "s.v1.UpdateWorkloadRequest\032*.google.clou" - + "d.assuredworkloads.v1.Workload\"d\202\323\344\223\002G2;" - + "/v1/{workload.name=organizations/*/locat" - + "ions/*/workloads/*}:\010workload\332A\024workload" - + ",update_mask\022\244\001\n\016DeleteWorkload\0227.google" - + ".cloud.assuredworkloads.v1.DeleteWorkloa" - + "dRequest\032\026.google.protobuf.Empty\"A\202\323\344\223\0024" - + "*2/v1/{name=organizations/*/locations/*/" - + "workloads/*}\332A\004name\022\262\001\n\013GetWorkload\0224.go" - + "ogle.cloud.assuredworkloads.v1.GetWorklo" - + "adRequest\032*.google.cloud.assuredworkload" - + "s.v1.Workload\"A\202\323\344\223\0024\0222/v1/{name=organiz" - + "ations/*/locations/*/workloads/*}\332A\004name" - + "\022\305\001\n\rListWorkloads\0226.google.cloud.assure" - + "dworkloads.v1.ListWorkloadsRequest\0327.goo" - + "gle.cloud.assuredworkloads.v1.ListWorklo" - + "adsResponse\"C\202\323\344\223\0024\0222/v1/{parent=organiz" - + "ations/*/locations/*}/workloads\332A\006parent" - + "\032S\312A\037assuredworkloads.googleapis.com\322A.h" - + "ttps://www.googleapis.com/auth/cloud-pla" - + "tformB\335\002\n$com.google.cloud.assuredworklo" - + "ads.v1B\025AssuredworkloadsProtoP\001ZPgoogle." - + "golang.org/genproto/googleapis/cloud/ass" - + "uredworkloads/v1;assuredworkloads\252\002 Goog" - + "le.Cloud.AssuredWorkloads.V1\312\002 Google\\Cl" - + "oud\\AssuredWorkloads\\V1\352\002#Google::Cloud:" - + ":AssuredWorkloads::V1\352A]\n(assuredworkloa" - + "ds.googleapis.com/Location\0221organization" - + "s/{organization}/locations/{location}b\006p" - + "roto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_assuredworkloads_v1_CreateWorkloadRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_assuredworkloads_v1_CreateWorkloadRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_assuredworkloads_v1_CreateWorkloadRequest_descriptor, - new java.lang.String[] { - "Parent", "Workload", "ExternalId", - }); - internal_static_google_cloud_assuredworkloads_v1_UpdateWorkloadRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_assuredworkloads_v1_UpdateWorkloadRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_assuredworkloads_v1_UpdateWorkloadRequest_descriptor, - new java.lang.String[] { - "Workload", "UpdateMask", - }); - internal_static_google_cloud_assuredworkloads_v1_DeleteWorkloadRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_assuredworkloads_v1_DeleteWorkloadRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_assuredworkloads_v1_DeleteWorkloadRequest_descriptor, - new java.lang.String[] { - "Name", "Etag", - }); - internal_static_google_cloud_assuredworkloads_v1_GetWorkloadRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_assuredworkloads_v1_GetWorkloadRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_assuredworkloads_v1_GetWorkloadRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_assuredworkloads_v1_ListWorkloadsRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_assuredworkloads_v1_ListWorkloadsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_assuredworkloads_v1_ListWorkloadsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", "Filter", - }); - internal_static_google_cloud_assuredworkloads_v1_ListWorkloadsResponse_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_assuredworkloads_v1_ListWorkloadsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_assuredworkloads_v1_ListWorkloadsResponse_descriptor, - new java.lang.String[] { - "Workloads", "NextPageToken", - }); - internal_static_google_cloud_assuredworkloads_v1_Workload_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_assuredworkloads_v1_Workload_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_assuredworkloads_v1_Workload_descriptor, - new java.lang.String[] { - "Name", - "DisplayName", - "Resources", - "ComplianceRegime", - "CreateTime", - "BillingAccount", - "Etag", - "Labels", - "ProvisionedResourcesParent", - "KmsSettings", - "ResourceSettings", - "KajEnrollmentState", - "EnableSovereignControls", - "SaaEnrollmentResponse", - }); - internal_static_google_cloud_assuredworkloads_v1_Workload_ResourceInfo_descriptor = - internal_static_google_cloud_assuredworkloads_v1_Workload_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_assuredworkloads_v1_Workload_ResourceInfo_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_assuredworkloads_v1_Workload_ResourceInfo_descriptor, - new java.lang.String[] { - "ResourceId", "ResourceType", - }); - internal_static_google_cloud_assuredworkloads_v1_Workload_KMSSettings_descriptor = - internal_static_google_cloud_assuredworkloads_v1_Workload_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_assuredworkloads_v1_Workload_KMSSettings_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_assuredworkloads_v1_Workload_KMSSettings_descriptor, - new java.lang.String[] { - "NextRotationTime", "RotationPeriod", - }); - internal_static_google_cloud_assuredworkloads_v1_Workload_ResourceSettings_descriptor = - internal_static_google_cloud_assuredworkloads_v1_Workload_descriptor - .getNestedTypes() - .get(2); - internal_static_google_cloud_assuredworkloads_v1_Workload_ResourceSettings_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_assuredworkloads_v1_Workload_ResourceSettings_descriptor, - new java.lang.String[] { - "ResourceId", "ResourceType", "DisplayName", - }); - internal_static_google_cloud_assuredworkloads_v1_Workload_SaaEnrollmentResponse_descriptor = - internal_static_google_cloud_assuredworkloads_v1_Workload_descriptor - .getNestedTypes() - .get(3); - internal_static_google_cloud_assuredworkloads_v1_Workload_SaaEnrollmentResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_assuredworkloads_v1_Workload_SaaEnrollmentResponse_descriptor, - new java.lang.String[] { - "SetupStatus", "SetupErrors", "SetupStatus", - }); - internal_static_google_cloud_assuredworkloads_v1_Workload_LabelsEntry_descriptor = - internal_static_google_cloud_assuredworkloads_v1_Workload_descriptor - .getNestedTypes() - .get(4); - internal_static_google_cloud_assuredworkloads_v1_Workload_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_assuredworkloads_v1_Workload_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_assuredworkloads_v1_CreateWorkloadOperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_assuredworkloads_v1_CreateWorkloadOperationMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_assuredworkloads_v1_CreateWorkloadOperationMetadata_descriptor, - new java.lang.String[] { - "CreateTime", "DisplayName", "Parent", "ComplianceRegime", - }); - 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.resourceDefinition); - registry.add(com.google.api.ResourceProto.resourceReference); - registry.add(com.google.longrunning.OperationsProto.operationInfo); - 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.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AssuredworkloadsProto.java b/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AssuredworkloadsProto.java deleted file mode 100644 index 09c58a60..00000000 --- a/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AssuredworkloadsProto.java +++ /dev/null @@ -1,483 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto - -package com.google.cloud.assuredworkloads.v1beta1; - -public final class AssuredworkloadsProto { - private AssuredworkloadsProto() {} - - 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_assuredworkloads_v1beta1_CreateWorkloadRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_assuredworkloads_v1beta1_CreateWorkloadRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_assuredworkloads_v1beta1_UpdateWorkloadRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_assuredworkloads_v1beta1_UpdateWorkloadRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_assuredworkloads_v1beta1_DeleteWorkloadRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_assuredworkloads_v1beta1_DeleteWorkloadRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_assuredworkloads_v1beta1_GetWorkloadRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_assuredworkloads_v1beta1_GetWorkloadRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_assuredworkloads_v1beta1_ListWorkloadsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_assuredworkloads_v1beta1_ListWorkloadsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_assuredworkloads_v1beta1_ListWorkloadsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_assuredworkloads_v1beta1_ListWorkloadsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_ResourceInfo_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_ResourceInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_KMSSettings_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_KMSSettings_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_IL4Settings_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_IL4Settings_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_CJISSettings_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_CJISSettings_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_FedrampHighSettings_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_FedrampHighSettings_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_FedrampModerateSettings_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_FedrampModerateSettings_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_ResourceSettings_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_ResourceSettings_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_SaaEnrollmentResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_SaaEnrollmentResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_assuredworkloads_v1beta1_CreateWorkloadOperationMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_assuredworkloads_v1beta1_CreateWorkloadOperationMetadata_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n\n\004name\030\001 \001" - + "(\tB0\340A\002\372A*\n(assuredworkloads.googleapis." - + "com/Workload\022\021\n\004etag\030\002 \001(\tB\003\340A\001\"T\n\022GetWo" - + "rkloadRequest\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n(ass" - + "uredworkloads.googleapis.com/Workload\"\217\001" - + "\n\024ListWorkloadsRequest\022@\n\006parent\030\001 \001(\tB0" - + "\340A\002\372A*\022(assuredworkloads.googleapis.com/" - + "Workload\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_toke" - + "n\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\"t\n\025ListWorkloads" - + "Response\022B\n\tworkloads\030\001 \003(\0132/.google.clo" - + "ud.assuredworkloads.v1beta1.Workload\022\027\n\017" - + "next_page_token\030\002 \001(\t\"\213\033\n\010Workload\022\021\n\004na" - + "me\030\001 \001(\tB\003\340A\001\022\031\n\014display_name\030\002 \001(\tB\003\340A\002" - + "\022T\n\tresources\030\003 \003(\0132<.google.cloud.assur" - + "edworkloads.v1beta1.Workload.ResourceInf" - + "oB\003\340A\003\022c\n\021compliance_regime\030\004 \001(\0162@.goog" - + "le.cloud.assuredworkloads.v1beta1.Worklo" - + "ad.ComplianceRegimeB\006\340A\002\340A\005\0227\n\013create_ti" - + "me\030\005 \001(\0132\032.google.protobuf.TimestampB\006\340A" - + "\003\340A\005\022\034\n\017billing_account\030\006 \001(\tB\003\340A\004\022`\n\014il" - + "4_settings\030\007 \001(\0132;.google.cloud.assuredw" - + "orkloads.v1beta1.Workload.IL4SettingsB\013\030" - + "\001\340A\002\340A\004\340A\005H\000\022b\n\rcjis_settings\030\010 \001(\0132<.go" - + "ogle.cloud.assuredworkloads.v1beta1.Work" - + "load.CJISSettingsB\013\030\001\340A\002\340A\004\340A\005H\000\022q\n\025fedr" - + "amp_high_settings\030\013 \001(\0132C.google.cloud.a" - + "ssuredworkloads.v1beta1.Workload.Fedramp" - + "HighSettingsB\013\030\001\340A\002\340A\004\340A\005H\000\022y\n\031fedramp_m" - + "oderate_settings\030\014 \001(\0132G.google.cloud.as" - + "suredworkloads.v1beta1.Workload.FedrampM" - + "oderateSettingsB\013\030\001\340A\002\340A\004\340A\005H\000\022\021\n\004etag\030\t" - + " \001(\tB\003\340A\001\022P\n\006labels\030\n \003(\0132;.google.cloud" - + ".assuredworkloads.v1beta1.Workload.Label" - + "sEntryB\003\340A\001\022)\n\034provisioned_resources_par" - + "ent\030\r \001(\tB\003\340A\004\022V\n\014kms_settings\030\016 \001(\0132;.g" - + "oogle.cloud.assuredworkloads.v1beta1.Wor" - + "kload.KMSSettingsB\003\340A\004\022`\n\021resource_setti" - + "ngs\030\017 \003(\0132@.google.cloud.assuredworkload" - + "s.v1beta1.Workload.ResourceSettingsB\003\340A\004" - + "\022e\n\024kaj_enrollment_state\030\021 \001(\0162B.google." - + "cloud.assuredworkloads.v1beta1.Workload." - + "KajEnrollmentStateB\003\340A\003\022&\n\031enable_sovere" - + "ign_controls\030\022 \001(\010B\003\340A\001\022k\n\027saa_enrollmen" - + "t_response\030\024 \001(\0132E.google.cloud.assuredw" - + "orkloads.v1beta1.Workload.SaaEnrollmentR" - + "esponseB\003\340A\003\032\216\002\n\014ResourceInfo\022\023\n\013resourc" - + "e_id\030\001 \001(\003\022`\n\rresource_type\030\002 \001(\0162I.goog" - + "le.cloud.assuredworkloads.v1beta1.Worklo" - + "ad.ResourceInfo.ResourceType\"\206\001\n\014Resourc" - + "eType\022\035\n\031RESOURCE_TYPE_UNSPECIFIED\020\000\022\030\n\020" - + "CONSUMER_PROJECT\020\001\032\002\010\001\022\023\n\017CONSUMER_FOLDE" - + "R\020\004\022\033\n\027ENCRYPTION_KEYS_PROJECT\020\002\022\013\n\007KEYR" - + "ING\020\003\032\217\001\n\013KMSSettings\022A\n\022next_rotation_t" - + "ime\030\001 \001(\0132\032.google.protobuf.TimestampB\t\340" - + "A\002\340A\004\340A\005\022=\n\017rotation_period\030\002 \001(\0132\031.goog" - + "le.protobuf.DurationB\t\340A\002\340A\004\340A\005\032o\n\013IL4Se" - + "ttings\022\\\n\014kms_settings\030\001 \001(\0132;.google.cl" - + "oud.assuredworkloads.v1beta1.Workload.KM" - + "SSettingsB\t\340A\002\340A\004\340A\005:\002\030\001\032p\n\014CJISSettings" - + "\022\\\n\014kms_settings\030\001 \001(\0132;.google.cloud.as" - + "suredworkloads.v1beta1.Workload.KMSSetti" - + "ngsB\t\340A\002\340A\004\340A\005:\002\030\001\032w\n\023FedrampHighSetting" - + "s\022\\\n\014kms_settings\030\001 \001(\0132;.google.cloud.a" - + "ssuredworkloads.v1beta1.Workload.KMSSett" - + "ingsB\t\340A\002\340A\004\340A\005:\002\030\001\032{\n\027FedrampModerateSe" - + "ttings\022\\\n\014kms_settings\030\001 \001(\0132;.google.cl" - + "oud.assuredworkloads.v1beta1.Workload.KM" - + "SSettingsB\t\340A\002\340A\004\340A\005:\002\030\001\032\237\001\n\020ResourceSet" - + "tings\022\023\n\013resource_id\030\001 \001(\t\022`\n\rresource_t" - + "ype\030\002 \001(\0162I.google.cloud.assuredworkload" - + "s.v1beta1.Workload.ResourceInfo.Resource" - + "Type\022\024\n\014display_name\030\003 \001(\t\032\206\004\n\025SaaEnroll" - + "mentResponse\022k\n\014setup_status\030\001 \001(\0162P.goo" - + "gle.cloud.assuredworkloads.v1beta1.Workl" - + "oad.SaaEnrollmentResponse.SetupStateH\000\210\001" - + "\001\022f\n\014setup_errors\030\002 \003(\0162P.google.cloud.a" - + "ssuredworkloads.v1beta1.Workload.SaaEnro" - + "llmentResponse.SetupError\"R\n\nSetupState\022" - + "\033\n\027SETUP_STATE_UNSPECIFIED\020\000\022\022\n\016STATUS_P" - + "ENDING\020\001\022\023\n\017STATUS_COMPLETE\020\002\"\262\001\n\nSetupE" - + "rror\022\033\n\027SETUP_ERROR_UNSPECIFIED\020\000\022\034\n\030ERR" - + "OR_INVALID_BASE_SETUP\020\001\022&\n\"ERROR_MISSING" - + "_EXTERNAL_SIGNING_KEY\020\002\022#\n\037ERROR_NOT_ALL" - + "_SERVICES_ENROLLED\020\003\022\034\n\030ERROR_SETUP_CHEC" - + "K_FAILED\020\004B\017\n\r_setup_status\032-\n\013LabelsEnt" - + "ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\330\001\n\020C" - + "omplianceRegime\022!\n\035COMPLIANCE_REGIME_UNS" - + "PECIFIED\020\000\022\007\n\003IL4\020\001\022\010\n\004CJIS\020\002\022\020\n\014FEDRAMP" - + "_HIGH\020\003\022\024\n\020FEDRAMP_MODERATE\020\004\022\026\n\022US_REGI" - + "ONAL_ACCESS\020\005\022\t\n\005HIPAA\020\006\022\013\n\007HITRUST\020\007\022\032\n" - + "\026EU_REGIONS_AND_SUPPORT\020\010\022\032\n\026CA_REGIONS_" - + "AND_SUPPORT\020\t\"\177\n\022KajEnrollmentState\022$\n K" - + "AJ_ENROLLMENT_STATE_UNSPECIFIED\020\000\022 \n\034KAJ" - + "_ENROLLMENT_STATE_PENDING\020\001\022!\n\035KAJ_ENROL" - + "LMENT_STATE_COMPLETE\020\002:u\352Ar\n(assuredwork" - + "loads.googleapis.com/Workload\022Forganizat" - + "ions/{organization}/locations/{location}" - + "/workloads/{workload}B\034\n\032compliance_regi" - + "me_settings\"\313\002\n\037CreateWorkloadOperationM" - + "etadata\0224\n\013create_time\030\001 \001(\0132\032.google.pr" - + "otobuf.TimestampB\003\340A\001\022\031\n\014display_name\030\002 " - + "\001(\tB\003\340A\001\022\023\n\006parent\030\003 \001(\tB\003\340A\001\022`\n\021complia" - + "nce_regime\030\004 \001(\0162@.google.cloud.assuredw" - + "orkloads.v1beta1.Workload.ComplianceRegi" - + "meB\003\340A\001\022`\n\021resource_settings\030\005 \003(\0132@.goo" - + "gle.cloud.assuredworkloads.v1beta1.Workl" - + "oad.ResourceSettingsB\003\340A\0012\243\t\n\027AssuredWor" - + "kloadsService\022\371\001\n\016CreateWorkload\022<.googl" - + "e.cloud.assuredworkloads.v1beta1.CreateW" - + "orkloadRequest\032\035.google.longrunning.Oper" - + "ation\"\211\001\202\323\344\223\002C\"7/v1beta1/{parent=organiz" - + "ations/*/locations/*}/workloads:\010workloa" - + "d\332A\017parent,workload\312A+\n\010Workload\022\037Create" - + "WorkloadOperationMetadata\022\352\001\n\016UpdateWork" - + "load\022<.google.cloud.assuredworkloads.v1b" - + "eta1.UpdateWorkloadRequest\032/.google.clou" - + "d.assuredworkloads.v1beta1.Workload\"i\202\323\344" - + "\223\002L2@/v1beta1/{workload.name=organizatio" - + "ns/*/locations/*/workloads/*}:\010workload\332" - + "A\024workload,update_mask\022\256\001\n\016DeleteWorkloa" - + "d\022<.google.cloud.assuredworkloads.v1beta" - + "1.DeleteWorkloadRequest\032\026.google.protobu" - + "f.Empty\"F\202\323\344\223\0029*7/v1beta1/{name=organiza" - + "tions/*/locations/*/workloads/*}\332A\004name\022" - + "\301\001\n\013GetWorkload\0229.google.cloud.assuredwo" - + "rkloads.v1beta1.GetWorkloadRequest\032/.goo" - + "gle.cloud.assuredworkloads.v1beta1.Workl" - + "oad\"F\202\323\344\223\0029\0227/v1beta1/{name=organization" - + "s/*/locations/*/workloads/*}\332A\004name\022\324\001\n\r" - + "ListWorkloads\022;.google.cloud.assuredwork" - + "loads.v1beta1.ListWorkloadsRequest\032<.goo" - + "gle.cloud.assuredworkloads.v1beta1.ListW" - + "orkloadsResponse\"H\202\323\344\223\0029\0227/v1beta1/{pare" - + "nt=organizations/*/locations/*}/workload" - + "s\332A\006parent\032S\312A\037assuredworkloads.googleap" - + "is.com\322A.https://www.googleapis.com/auth" - + "/cloud-platformB\366\002\n)com.google.cloud.ass" - + "uredworkloads.v1beta1B\025AssuredworkloadsP" - + "rotoP\001ZUgoogle.golang.org/genproto/googl" - + "eapis/cloud/assuredworkloads/v1beta1;ass" - + "uredworkloads\252\002%Google.Cloud.AssuredWork" - + "loads.V1Beta1\312\002%Google\\Cloud\\AssuredWork" - + "loads\\V1beta1\352\002(Google::Cloud::AssuredWo" - + "rkloads::V1beta1\352A]\n(assuredworkloads.go" - + "ogleapis.com/Location\0221organizations/{or" - + "ganization}/locations/{location}b\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.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_assuredworkloads_v1beta1_CreateWorkloadRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_assuredworkloads_v1beta1_CreateWorkloadRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_assuredworkloads_v1beta1_CreateWorkloadRequest_descriptor, - new java.lang.String[] { - "Parent", "Workload", "ExternalId", - }); - internal_static_google_cloud_assuredworkloads_v1beta1_UpdateWorkloadRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_assuredworkloads_v1beta1_UpdateWorkloadRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_assuredworkloads_v1beta1_UpdateWorkloadRequest_descriptor, - new java.lang.String[] { - "Workload", "UpdateMask", - }); - internal_static_google_cloud_assuredworkloads_v1beta1_DeleteWorkloadRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_assuredworkloads_v1beta1_DeleteWorkloadRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_assuredworkloads_v1beta1_DeleteWorkloadRequest_descriptor, - new java.lang.String[] { - "Name", "Etag", - }); - internal_static_google_cloud_assuredworkloads_v1beta1_GetWorkloadRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_assuredworkloads_v1beta1_GetWorkloadRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_assuredworkloads_v1beta1_GetWorkloadRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_assuredworkloads_v1beta1_ListWorkloadsRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_assuredworkloads_v1beta1_ListWorkloadsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_assuredworkloads_v1beta1_ListWorkloadsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", "Filter", - }); - internal_static_google_cloud_assuredworkloads_v1beta1_ListWorkloadsResponse_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_assuredworkloads_v1beta1_ListWorkloadsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_assuredworkloads_v1beta1_ListWorkloadsResponse_descriptor, - new java.lang.String[] { - "Workloads", "NextPageToken", - }); - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_descriptor, - new java.lang.String[] { - "Name", - "DisplayName", - "Resources", - "ComplianceRegime", - "CreateTime", - "BillingAccount", - "Il4Settings", - "CjisSettings", - "FedrampHighSettings", - "FedrampModerateSettings", - "Etag", - "Labels", - "ProvisionedResourcesParent", - "KmsSettings", - "ResourceSettings", - "KajEnrollmentState", - "EnableSovereignControls", - "SaaEnrollmentResponse", - "ComplianceRegimeSettings", - }); - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_ResourceInfo_descriptor = - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_ResourceInfo_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_ResourceInfo_descriptor, - new java.lang.String[] { - "ResourceId", "ResourceType", - }); - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_KMSSettings_descriptor = - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_KMSSettings_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_KMSSettings_descriptor, - new java.lang.String[] { - "NextRotationTime", "RotationPeriod", - }); - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_IL4Settings_descriptor = - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_descriptor - .getNestedTypes() - .get(2); - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_IL4Settings_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_IL4Settings_descriptor, - new java.lang.String[] { - "KmsSettings", - }); - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_CJISSettings_descriptor = - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_descriptor - .getNestedTypes() - .get(3); - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_CJISSettings_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_CJISSettings_descriptor, - new java.lang.String[] { - "KmsSettings", - }); - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_FedrampHighSettings_descriptor = - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_descriptor - .getNestedTypes() - .get(4); - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_FedrampHighSettings_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_FedrampHighSettings_descriptor, - new java.lang.String[] { - "KmsSettings", - }); - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_FedrampModerateSettings_descriptor = - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_descriptor - .getNestedTypes() - .get(5); - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_FedrampModerateSettings_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_FedrampModerateSettings_descriptor, - new java.lang.String[] { - "KmsSettings", - }); - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_ResourceSettings_descriptor = - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_descriptor - .getNestedTypes() - .get(6); - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_ResourceSettings_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_ResourceSettings_descriptor, - new java.lang.String[] { - "ResourceId", "ResourceType", "DisplayName", - }); - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_SaaEnrollmentResponse_descriptor = - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_descriptor - .getNestedTypes() - .get(7); - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_SaaEnrollmentResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_SaaEnrollmentResponse_descriptor, - new java.lang.String[] { - "SetupStatus", "SetupErrors", "SetupStatus", - }); - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_LabelsEntry_descriptor = - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_descriptor - .getNestedTypes() - .get(8); - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_assuredworkloads_v1beta1_CreateWorkloadOperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_assuredworkloads_v1beta1_CreateWorkloadOperationMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_assuredworkloads_v1beta1_CreateWorkloadOperationMetadata_descriptor, - new java.lang.String[] { - "CreateTime", "DisplayName", "Parent", "ComplianceRegime", "ResourceSettings", - }); - 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.resourceDefinition); - registry.add(com.google.api.ResourceProto.resourceReference); - registry.add(com.google.longrunning.OperationsProto.operationInfo); - 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.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} From f5a00120ae9e29f2071c9327c66d748624524834 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Thu, 23 Jun 2022 03:04:01 +0000 Subject: [PATCH 2/3] =?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 --- .../v1/AssuredWorkloadsServiceClient.java | 16 +- .../v1/AssuredWorkloadsServiceSettings.java | 7 +- .../assuredworkloads/v1/gapic_metadata.json | 0 .../assuredworkloads/v1/package-info.java | 0 .../v1/stub/AssuredWorkloadsServiceStub.java | 0 .../AssuredWorkloadsServiceStubSettings.java | 6 +- ...ssuredWorkloadsServiceCallableFactory.java | 0 .../stub/GrpcAssuredWorkloadsServiceStub.java | 1 - ...ssuredWorkloadsServiceCallableFactory.java | 0 .../HttpJsonAssuredWorkloadsServiceStub.java | 1 - .../AssuredWorkloadsServiceClient.java | 16 +- .../AssuredWorkloadsServiceSettings.java | 7 +- .../v1beta1/gapic_metadata.json | 0 .../v1beta1/package-info.java | 0 .../stub/AssuredWorkloadsServiceStub.java | 0 .../AssuredWorkloadsServiceStubSettings.java | 6 +- ...ssuredWorkloadsServiceCallableFactory.java | 0 .../stub/GrpcAssuredWorkloadsServiceStub.java | 1 - ...ssuredWorkloadsServiceCallableFactory.java | 0 .../HttpJsonAssuredWorkloadsServiceStub.java | 1 - ...redWorkloadsServiceClientHttpJsonTest.java | 0 .../v1/AssuredWorkloadsServiceClientTest.java | 0 .../v1/MockAssuredWorkloadsService.java | 0 .../v1/MockAssuredWorkloadsServiceImpl.java | 0 ...redWorkloadsServiceClientHttpJsonTest.java | 0 .../AssuredWorkloadsServiceClientTest.java | 0 .../v1beta1/MockAssuredWorkloadsService.java | 0 .../MockAssuredWorkloadsServiceImpl.java | 0 .../v1/AssuredWorkloadsServiceGrpc.java | 857 ++ .../v1beta1/AssuredWorkloadsServiceGrpc.java | 863 ++ .../v1/AssuredWorkloadsServiceGrpc.java | 667 -- .../v1/AssuredworkloadsProto.java | 342 - .../v1beta1/AssuredWorkloadsServiceGrpc.java | 667 -- .../v1beta1/AssuredworkloadsProto.java | 416 - .../v1/AssuredworkloadsProto.java | 392 + .../v1/CreateWorkloadOperationMetadata.java | 666 +- ...ateWorkloadOperationMetadataOrBuilder.java | 67 +- .../v1/CreateWorkloadRequest.java | 567 +- .../v1/CreateWorkloadRequestOrBuilder.java | 64 +- .../v1/DeleteWorkloadRequest.java | 421 +- .../v1/DeleteWorkloadRequestOrBuilder.java | 44 +- .../v1/GetWorkloadRequest.java | 342 +- .../v1/GetWorkloadRequestOrBuilder.java | 35 +- .../v1/ListWorkloadsRequest.java | 536 +- .../v1/ListWorkloadsRequestOrBuilder.java | 56 +- .../v1/ListWorkloadsResponse.java | 464 +- .../v1/ListWorkloadsResponseOrBuilder.java | 45 +- .../assuredworkloads/v1/LocationName.java | 0 .../v1/UpdateWorkloadRequest.java | 516 +- .../v1/UpdateWorkloadRequestOrBuilder.java | 55 +- .../cloud/assuredworkloads/v1/Workload.java | 4744 ++++++---- .../assuredworkloads/v1/WorkloadName.java | 0 .../v1/WorkloadOrBuilder.java | 275 +- .../v1/assuredworkloads.proto | 0 .../v1beta1/AssuredworkloadsProto.java | 483 + .../CreateWorkloadOperationMetadata.java | 976 +- ...ateWorkloadOperationMetadataOrBuilder.java | 109 +- .../v1beta1/CreateWorkloadRequest.java | 589 +- .../CreateWorkloadRequestOrBuilder.java | 64 +- .../v1beta1/DeleteWorkloadRequest.java | 442 +- .../DeleteWorkloadRequestOrBuilder.java | 44 +- .../v1beta1/GetWorkloadRequest.java | 349 +- .../v1beta1/GetWorkloadRequestOrBuilder.java | 35 +- .../v1beta1/ListWorkloadsRequest.java | 554 +- .../ListWorkloadsRequestOrBuilder.java | 56 +- .../v1beta1/ListWorkloadsResponse.java | 469 +- .../ListWorkloadsResponseOrBuilder.java | 45 +- .../v1beta1/LocationName.java | 0 .../v1beta1/UpdateWorkloadRequest.java | 538 +- .../UpdateWorkloadRequestOrBuilder.java | 55 +- .../assuredworkloads/v1beta1/Workload.java | 7833 +++++++++++------ .../v1beta1/WorkloadName.java | 0 .../v1beta1/WorkloadOrBuilder.java | 420 +- .../v1beta1/assuredworkloads.proto | 0 .../SyncCreateSetCredentialsProvider.java | 6 +- .../SyncCreateSetCredentialsProvider1.java | 6 +- .../create/SyncCreateSetEndpoint.java | 0 .../createworkload/AsyncCreateWorkload.java | 0 .../AsyncCreateWorkloadLRO.java | 0 .../createworkload/SyncCreateWorkload.java | 0 ...yncCreateWorkloadLocationnameWorkload.java | 6 +- .../SyncCreateWorkloadStringWorkload.java | 6 +- .../deleteworkload/AsyncDeleteWorkload.java | 0 .../deleteworkload/SyncDeleteWorkload.java | 1 - .../SyncDeleteWorkloadString.java | 1 - .../SyncDeleteWorkloadWorkloadname.java | 7 +- .../getworkload/AsyncGetWorkload.java | 0 .../getworkload/SyncGetWorkload.java | 0 .../getworkload/SyncGetWorkloadString.java | 0 .../SyncGetWorkloadWorkloadname.java | 0 .../listworkloads/AsyncListWorkloads.java | 0 .../AsyncListWorkloadsPaged.java | 0 .../listworkloads/SyncListWorkloads.java | 0 .../SyncListWorkloadsLocationname.java | 3 +- .../SyncListWorkloadsString.java | 0 .../updateworkload/AsyncUpdateWorkload.java | 0 .../updateworkload/SyncUpdateWorkload.java | 0 .../SyncUpdateWorkloadWorkloadFieldmask.java | 6 +- .../updateworkload/SyncUpdateWorkload.java | 0 .../updateworkload/SyncUpdateWorkload.java | 0 .../SyncCreateSetCredentialsProvider.java | 6 +- .../SyncCreateSetCredentialsProvider1.java | 6 +- .../create/SyncCreateSetEndpoint.java | 0 .../createworkload/AsyncCreateWorkload.java | 0 .../AsyncCreateWorkloadLRO.java | 0 .../createworkload/SyncCreateWorkload.java | 0 ...yncCreateWorkloadLocationnameWorkload.java | 6 +- .../SyncCreateWorkloadStringWorkload.java | 6 +- .../deleteworkload/AsyncDeleteWorkload.java | 0 .../deleteworkload/SyncDeleteWorkload.java | 1 - .../SyncDeleteWorkloadString.java | 4 +- .../SyncDeleteWorkloadWorkloadname.java | 7 +- .../getworkload/AsyncGetWorkload.java | 0 .../getworkload/SyncGetWorkload.java | 0 .../getworkload/SyncGetWorkloadString.java | 0 .../SyncGetWorkloadWorkloadname.java | 6 +- .../listworkloads/AsyncListWorkloads.java | 0 .../AsyncListWorkloadsPaged.java | 3 +- .../listworkloads/SyncListWorkloads.java | 0 .../SyncListWorkloadsLocationname.java | 6 +- .../SyncListWorkloadsString.java | 3 +- .../updateworkload/AsyncUpdateWorkload.java | 0 .../updateworkload/SyncUpdateWorkload.java | 0 .../SyncUpdateWorkloadWorkloadFieldmask.java | 6 +- .../updateworkload/SyncUpdateWorkload.java | 0 .../updateworkload/SyncUpdateWorkload.java | 3 +- 126 files changed, 16720 insertions(+), 9609 deletions(-) rename {owl-bot-staging/v1/google-cloud-assured-workloads => google-cloud-assured-workloads}/src/main/java/com/google/cloud/assuredworkloads/v1/AssuredWorkloadsServiceClient.java (98%) rename {owl-bot-staging/v1/google-cloud-assured-workloads => google-cloud-assured-workloads}/src/main/java/com/google/cloud/assuredworkloads/v1/AssuredWorkloadsServiceSettings.java (97%) rename {owl-bot-staging/v1/google-cloud-assured-workloads => google-cloud-assured-workloads}/src/main/java/com/google/cloud/assuredworkloads/v1/gapic_metadata.json (100%) rename {owl-bot-staging/v1/google-cloud-assured-workloads => google-cloud-assured-workloads}/src/main/java/com/google/cloud/assuredworkloads/v1/package-info.java (100%) rename {owl-bot-staging/v1/google-cloud-assured-workloads => google-cloud-assured-workloads}/src/main/java/com/google/cloud/assuredworkloads/v1/stub/AssuredWorkloadsServiceStub.java (100%) rename {owl-bot-staging/v1/google-cloud-assured-workloads => google-cloud-assured-workloads}/src/main/java/com/google/cloud/assuredworkloads/v1/stub/AssuredWorkloadsServiceStubSettings.java (98%) rename {owl-bot-staging/v1/google-cloud-assured-workloads => google-cloud-assured-workloads}/src/main/java/com/google/cloud/assuredworkloads/v1/stub/GrpcAssuredWorkloadsServiceCallableFactory.java (100%) rename {owl-bot-staging/v1/google-cloud-assured-workloads => google-cloud-assured-workloads}/src/main/java/com/google/cloud/assuredworkloads/v1/stub/GrpcAssuredWorkloadsServiceStub.java (99%) rename {owl-bot-staging/v1/google-cloud-assured-workloads => google-cloud-assured-workloads}/src/main/java/com/google/cloud/assuredworkloads/v1/stub/HttpJsonAssuredWorkloadsServiceCallableFactory.java (100%) rename {owl-bot-staging/v1/google-cloud-assured-workloads => google-cloud-assured-workloads}/src/main/java/com/google/cloud/assuredworkloads/v1/stub/HttpJsonAssuredWorkloadsServiceStub.java (99%) rename {owl-bot-staging/v1beta1/google-cloud-assured-workloads => google-cloud-assured-workloads}/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AssuredWorkloadsServiceClient.java (98%) rename {owl-bot-staging/v1beta1/google-cloud-assured-workloads => google-cloud-assured-workloads}/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AssuredWorkloadsServiceSettings.java (97%) rename {owl-bot-staging/v1beta1/google-cloud-assured-workloads => google-cloud-assured-workloads}/src/main/java/com/google/cloud/assuredworkloads/v1beta1/gapic_metadata.json (100%) rename {owl-bot-staging/v1beta1/google-cloud-assured-workloads => google-cloud-assured-workloads}/src/main/java/com/google/cloud/assuredworkloads/v1beta1/package-info.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-assured-workloads => google-cloud-assured-workloads}/src/main/java/com/google/cloud/assuredworkloads/v1beta1/stub/AssuredWorkloadsServiceStub.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-assured-workloads => google-cloud-assured-workloads}/src/main/java/com/google/cloud/assuredworkloads/v1beta1/stub/AssuredWorkloadsServiceStubSettings.java (98%) rename {owl-bot-staging/v1beta1/google-cloud-assured-workloads => google-cloud-assured-workloads}/src/main/java/com/google/cloud/assuredworkloads/v1beta1/stub/GrpcAssuredWorkloadsServiceCallableFactory.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-assured-workloads => google-cloud-assured-workloads}/src/main/java/com/google/cloud/assuredworkloads/v1beta1/stub/GrpcAssuredWorkloadsServiceStub.java (99%) rename {owl-bot-staging/v1beta1/google-cloud-assured-workloads => google-cloud-assured-workloads}/src/main/java/com/google/cloud/assuredworkloads/v1beta1/stub/HttpJsonAssuredWorkloadsServiceCallableFactory.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-assured-workloads => google-cloud-assured-workloads}/src/main/java/com/google/cloud/assuredworkloads/v1beta1/stub/HttpJsonAssuredWorkloadsServiceStub.java (99%) rename {owl-bot-staging/v1/google-cloud-assured-workloads => google-cloud-assured-workloads}/src/test/java/com/google/cloud/assuredworkloads/v1/AssuredWorkloadsServiceClientHttpJsonTest.java (100%) rename {owl-bot-staging/v1/google-cloud-assured-workloads => google-cloud-assured-workloads}/src/test/java/com/google/cloud/assuredworkloads/v1/AssuredWorkloadsServiceClientTest.java (100%) rename {owl-bot-staging/v1/google-cloud-assured-workloads => google-cloud-assured-workloads}/src/test/java/com/google/cloud/assuredworkloads/v1/MockAssuredWorkloadsService.java (100%) rename {owl-bot-staging/v1/google-cloud-assured-workloads => google-cloud-assured-workloads}/src/test/java/com/google/cloud/assuredworkloads/v1/MockAssuredWorkloadsServiceImpl.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-assured-workloads => google-cloud-assured-workloads}/src/test/java/com/google/cloud/assuredworkloads/v1beta1/AssuredWorkloadsServiceClientHttpJsonTest.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-assured-workloads => google-cloud-assured-workloads}/src/test/java/com/google/cloud/assuredworkloads/v1beta1/AssuredWorkloadsServiceClientTest.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-assured-workloads => google-cloud-assured-workloads}/src/test/java/com/google/cloud/assuredworkloads/v1beta1/MockAssuredWorkloadsService.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-assured-workloads => google-cloud-assured-workloads}/src/test/java/com/google/cloud/assuredworkloads/v1beta1/MockAssuredWorkloadsServiceImpl.java (100%) create mode 100644 grpc-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/AssuredWorkloadsServiceGrpc.java create mode 100644 grpc-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AssuredWorkloadsServiceGrpc.java delete mode 100644 owl-bot-staging/v1/grpc-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/AssuredWorkloadsServiceGrpc.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/AssuredworkloadsProto.java delete mode 100644 owl-bot-staging/v1beta1/grpc-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AssuredWorkloadsServiceGrpc.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AssuredworkloadsProto.java create mode 100644 proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/AssuredworkloadsProto.java rename {owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1 => proto-google-cloud-assured-workloads-v1}/src/main/java/com/google/cloud/assuredworkloads/v1/CreateWorkloadOperationMetadata.java (65%) rename {owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1 => proto-google-cloud-assured-workloads-v1}/src/main/java/com/google/cloud/assuredworkloads/v1/CreateWorkloadOperationMetadataOrBuilder.java (64%) rename {owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1 => proto-google-cloud-assured-workloads-v1}/src/main/java/com/google/cloud/assuredworkloads/v1/CreateWorkloadRequest.java (67%) rename {owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1 => proto-google-cloud-assured-workloads-v1}/src/main/java/com/google/cloud/assuredworkloads/v1/CreateWorkloadRequestOrBuilder.java (59%) rename {owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1 => proto-google-cloud-assured-workloads-v1}/src/main/java/com/google/cloud/assuredworkloads/v1/DeleteWorkloadRequest.java (68%) rename {owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1 => proto-google-cloud-assured-workloads-v1}/src/main/java/com/google/cloud/assuredworkloads/v1/DeleteWorkloadRequestOrBuilder.java (55%) rename {owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1 => proto-google-cloud-assured-workloads-v1}/src/main/java/com/google/cloud/assuredworkloads/v1/GetWorkloadRequest.java (68%) rename {owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1 => proto-google-cloud-assured-workloads-v1}/src/main/java/com/google/cloud/assuredworkloads/v1/GetWorkloadRequestOrBuilder.java (52%) rename {owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1 => proto-google-cloud-assured-workloads-v1}/src/main/java/com/google/cloud/assuredworkloads/v1/ListWorkloadsRequest.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1 => proto-google-cloud-assured-workloads-v1}/src/main/java/com/google/cloud/assuredworkloads/v1/ListWorkloadsRequestOrBuilder.java (62%) rename {owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1 => proto-google-cloud-assured-workloads-v1}/src/main/java/com/google/cloud/assuredworkloads/v1/ListWorkloadsResponse.java (73%) rename {owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1 => proto-google-cloud-assured-workloads-v1}/src/main/java/com/google/cloud/assuredworkloads/v1/ListWorkloadsResponseOrBuilder.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1 => proto-google-cloud-assured-workloads-v1}/src/main/java/com/google/cloud/assuredworkloads/v1/LocationName.java (100%) rename {owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1 => proto-google-cloud-assured-workloads-v1}/src/main/java/com/google/cloud/assuredworkloads/v1/UpdateWorkloadRequest.java (66%) rename {owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1 => proto-google-cloud-assured-workloads-v1}/src/main/java/com/google/cloud/assuredworkloads/v1/UpdateWorkloadRequestOrBuilder.java (61%) rename {owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1 => proto-google-cloud-assured-workloads-v1}/src/main/java/com/google/cloud/assuredworkloads/v1/Workload.java (67%) rename {owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1 => proto-google-cloud-assured-workloads-v1}/src/main/java/com/google/cloud/assuredworkloads/v1/WorkloadName.java (100%) rename {owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1 => proto-google-cloud-assured-workloads-v1}/src/main/java/com/google/cloud/assuredworkloads/v1/WorkloadOrBuilder.java (67%) rename {owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1 => proto-google-cloud-assured-workloads-v1}/src/main/proto/google/cloud/assuredworkloads/v1/assuredworkloads.proto (100%) create mode 100644 proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AssuredworkloadsProto.java rename {owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1 => proto-google-cloud-assured-workloads-v1beta1}/src/main/java/com/google/cloud/assuredworkloads/v1beta1/CreateWorkloadOperationMetadata.java (62%) rename {owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1 => proto-google-cloud-assured-workloads-v1beta1}/src/main/java/com/google/cloud/assuredworkloads/v1beta1/CreateWorkloadOperationMetadataOrBuilder.java (58%) rename {owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1 => proto-google-cloud-assured-workloads-v1beta1}/src/main/java/com/google/cloud/assuredworkloads/v1beta1/CreateWorkloadRequest.java (65%) rename {owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1 => proto-google-cloud-assured-workloads-v1beta1}/src/main/java/com/google/cloud/assuredworkloads/v1beta1/CreateWorkloadRequestOrBuilder.java (59%) rename {owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1 => proto-google-cloud-assured-workloads-v1beta1}/src/main/java/com/google/cloud/assuredworkloads/v1beta1/DeleteWorkloadRequest.java (67%) rename {owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1 => proto-google-cloud-assured-workloads-v1beta1}/src/main/java/com/google/cloud/assuredworkloads/v1beta1/DeleteWorkloadRequestOrBuilder.java (55%) rename {owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1 => proto-google-cloud-assured-workloads-v1beta1}/src/main/java/com/google/cloud/assuredworkloads/v1beta1/GetWorkloadRequest.java (67%) rename {owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1 => proto-google-cloud-assured-workloads-v1beta1}/src/main/java/com/google/cloud/assuredworkloads/v1beta1/GetWorkloadRequestOrBuilder.java (52%) rename {owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1 => proto-google-cloud-assured-workloads-v1beta1}/src/main/java/com/google/cloud/assuredworkloads/v1beta1/ListWorkloadsRequest.java (69%) rename {owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1 => proto-google-cloud-assured-workloads-v1beta1}/src/main/java/com/google/cloud/assuredworkloads/v1beta1/ListWorkloadsRequestOrBuilder.java (63%) rename {owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1 => proto-google-cloud-assured-workloads-v1beta1}/src/main/java/com/google/cloud/assuredworkloads/v1beta1/ListWorkloadsResponse.java (73%) rename {owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1 => proto-google-cloud-assured-workloads-v1beta1}/src/main/java/com/google/cloud/assuredworkloads/v1beta1/ListWorkloadsResponseOrBuilder.java (69%) rename {owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1 => proto-google-cloud-assured-workloads-v1beta1}/src/main/java/com/google/cloud/assuredworkloads/v1beta1/LocationName.java (100%) rename {owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1 => proto-google-cloud-assured-workloads-v1beta1}/src/main/java/com/google/cloud/assuredworkloads/v1beta1/UpdateWorkloadRequest.java (65%) rename {owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1 => proto-google-cloud-assured-workloads-v1beta1}/src/main/java/com/google/cloud/assuredworkloads/v1beta1/UpdateWorkloadRequestOrBuilder.java (61%) rename {owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1 => proto-google-cloud-assured-workloads-v1beta1}/src/main/java/com/google/cloud/assuredworkloads/v1beta1/Workload.java (62%) rename {owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1 => proto-google-cloud-assured-workloads-v1beta1}/src/main/java/com/google/cloud/assuredworkloads/v1beta1/WorkloadName.java (100%) rename {owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1 => proto-google-cloud-assured-workloads-v1beta1}/src/main/java/com/google/cloud/assuredworkloads/v1beta1/WorkloadOrBuilder.java (57%) rename {owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1 => proto-google-cloud-assured-workloads-v1beta1}/src/main/proto/google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/create/SyncCreateSetCredentialsProvider.java (88%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/create/SyncCreateSetCredentialsProvider1.java (88%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/createworkload/AsyncCreateWorkload.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/createworkload/AsyncCreateWorkloadLRO.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/createworkload/SyncCreateWorkload.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/createworkload/SyncCreateWorkloadLocationnameWorkload.java (87%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/createworkload/SyncCreateWorkloadStringWorkload.java (88%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/deleteworkload/AsyncDeleteWorkload.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/deleteworkload/SyncDeleteWorkload.java (98%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/deleteworkload/SyncDeleteWorkloadString.java (97%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/deleteworkload/SyncDeleteWorkloadWorkloadname.java (85%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/getworkload/AsyncGetWorkload.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/getworkload/SyncGetWorkload.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/getworkload/SyncGetWorkloadString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/getworkload/SyncGetWorkloadWorkloadname.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/listworkloads/AsyncListWorkloads.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/listworkloads/AsyncListWorkloadsPaged.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/listworkloads/SyncListWorkloads.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/listworkloads/SyncListWorkloadsLocationname.java (94%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/listworkloads/SyncListWorkloadsString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/updateworkload/AsyncUpdateWorkload.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/updateworkload/SyncUpdateWorkload.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/updateworkload/SyncUpdateWorkloadWorkloadFieldmask.java (87%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsservicesettings/updateworkload/SyncUpdateWorkload.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/assuredworkloads/v1/stub/assuredworkloadsservicestubsettings/updateworkload/SyncUpdateWorkload.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/create/SyncCreateSetCredentialsProvider.java (88%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/create/SyncCreateSetCredentialsProvider1.java (87%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/createworkload/AsyncCreateWorkload.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/createworkload/AsyncCreateWorkloadLRO.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/createworkload/SyncCreateWorkload.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/createworkload/SyncCreateWorkloadLocationnameWorkload.java (87%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/createworkload/SyncCreateWorkloadStringWorkload.java (87%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/deleteworkload/AsyncDeleteWorkload.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/deleteworkload/SyncDeleteWorkload.java (98%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/deleteworkload/SyncDeleteWorkloadString.java (91%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/deleteworkload/SyncDeleteWorkloadWorkloadname.java (85%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/getworkload/AsyncGetWorkload.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/getworkload/SyncGetWorkload.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/getworkload/SyncGetWorkloadString.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/getworkload/SyncGetWorkloadWorkloadname.java (87%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/listworkloads/AsyncListWorkloads.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/listworkloads/AsyncListWorkloadsPaged.java (95%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/listworkloads/SyncListWorkloads.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/listworkloads/SyncListWorkloadsLocationname.java (87%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/listworkloads/SyncListWorkloadsString.java (94%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/updateworkload/AsyncUpdateWorkload.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/updateworkload/SyncUpdateWorkload.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/updateworkload/SyncUpdateWorkloadWorkloadFieldmask.java (87%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsservicesettings/updateworkload/SyncUpdateWorkload.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/stub/assuredworkloadsservicestubsettings/updateworkload/SyncUpdateWorkload.java (94%) diff --git a/owl-bot-staging/v1/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/AssuredWorkloadsServiceClient.java b/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/AssuredWorkloadsServiceClient.java similarity index 98% rename from owl-bot-staging/v1/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/AssuredWorkloadsServiceClient.java rename to google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/AssuredWorkloadsServiceClient.java index 00a1def1..1996ed87 100644 --- a/owl-bot-staging/v1/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/AssuredWorkloadsServiceClient.java +++ b/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/AssuredWorkloadsServiceClient.java @@ -64,13 +64,13 @@ * methods: * *
    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* @@ -841,7 +841,10 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListWorkloadsPagedResponse extends AbstractPagedListResponse< - ListWorkloadsRequest, ListWorkloadsResponse, Workload, ListWorkloadsPage, + ListWorkloadsRequest, + ListWorkloadsResponse, + Workload, + ListWorkloadsPage, ListWorkloadsFixedSizeCollection> { public static ApiFuture createAsync( @@ -891,7 +894,10 @@ public ApiFuture createPageAsync( public static class ListWorkloadsFixedSizeCollection extends AbstractFixedSizeCollection< - ListWorkloadsRequest, ListWorkloadsResponse, Workload, ListWorkloadsPage, + ListWorkloadsRequest, + ListWorkloadsResponse, + Workload, + ListWorkloadsPage, ListWorkloadsFixedSizeCollection> { private ListWorkloadsFixedSizeCollection(List pages, int collectionSize) { diff --git a/owl-bot-staging/v1/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/AssuredWorkloadsServiceSettings.java b/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/AssuredWorkloadsServiceSettings.java similarity index 97% rename from owl-bot-staging/v1/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/AssuredWorkloadsServiceSettings.java rename to google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/AssuredWorkloadsServiceSettings.java index 0de498e8..24d6eaf9 100644 --- a/owl-bot-staging/v1/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/AssuredWorkloadsServiceSettings.java +++ b/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/AssuredWorkloadsServiceSettings.java @@ -29,7 +29,6 @@ import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; 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.assuredworkloads.v1.stub.AssuredWorkloadsServiceStubSettings; @@ -46,10 +45,10 @@ *

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

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

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/owl-bot-staging/v1/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/gapic_metadata.json b/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/gapic_metadata.json similarity index 100% rename from owl-bot-staging/v1/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/gapic_metadata.json rename to google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/gapic_metadata.json diff --git a/owl-bot-staging/v1/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/package-info.java b/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/package-info.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/package-info.java rename to google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/package-info.java diff --git a/owl-bot-staging/v1/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/stub/AssuredWorkloadsServiceStub.java b/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/stub/AssuredWorkloadsServiceStub.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/stub/AssuredWorkloadsServiceStub.java rename to google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/stub/AssuredWorkloadsServiceStub.java diff --git a/owl-bot-staging/v1/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/stub/AssuredWorkloadsServiceStubSettings.java b/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/stub/AssuredWorkloadsServiceStubSettings.java similarity index 98% rename from owl-bot-staging/v1/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/stub/AssuredWorkloadsServiceStubSettings.java rename to google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/stub/AssuredWorkloadsServiceStubSettings.java index b16dfd60..5e6b14cf 100644 --- a/owl-bot-staging/v1/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/stub/AssuredWorkloadsServiceStubSettings.java +++ b/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/stub/AssuredWorkloadsServiceStubSettings.java @@ -73,10 +73,10 @@ *

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

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

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/owl-bot-staging/v1/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/stub/GrpcAssuredWorkloadsServiceCallableFactory.java b/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/stub/GrpcAssuredWorkloadsServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/stub/GrpcAssuredWorkloadsServiceCallableFactory.java rename to google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/stub/GrpcAssuredWorkloadsServiceCallableFactory.java diff --git a/owl-bot-staging/v1/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/stub/GrpcAssuredWorkloadsServiceStub.java b/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/stub/GrpcAssuredWorkloadsServiceStub.java similarity index 99% rename from owl-bot-staging/v1/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/stub/GrpcAssuredWorkloadsServiceStub.java rename to google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/stub/GrpcAssuredWorkloadsServiceStub.java index 49002528..155974fd 100644 --- a/owl-bot-staging/v1/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/stub/GrpcAssuredWorkloadsServiceStub.java +++ b/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/stub/GrpcAssuredWorkloadsServiceStub.java @@ -40,7 +40,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/v1/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/stub/HttpJsonAssuredWorkloadsServiceCallableFactory.java b/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/stub/HttpJsonAssuredWorkloadsServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/stub/HttpJsonAssuredWorkloadsServiceCallableFactory.java rename to google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/stub/HttpJsonAssuredWorkloadsServiceCallableFactory.java diff --git a/owl-bot-staging/v1/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/stub/HttpJsonAssuredWorkloadsServiceStub.java b/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/stub/HttpJsonAssuredWorkloadsServiceStub.java similarity index 99% rename from owl-bot-staging/v1/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/stub/HttpJsonAssuredWorkloadsServiceStub.java rename to google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/stub/HttpJsonAssuredWorkloadsServiceStub.java index cc36a15e..1aed44f6 100644 --- a/owl-bot-staging/v1/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/stub/HttpJsonAssuredWorkloadsServiceStub.java +++ b/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/stub/HttpJsonAssuredWorkloadsServiceStub.java @@ -30,7 +30,6 @@ import com.google.api.gax.httpjson.ProtoMessageResponseParser; import com.google.api.gax.httpjson.ProtoRestSerializer; import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; -import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; diff --git a/owl-bot-staging/v1beta1/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AssuredWorkloadsServiceClient.java b/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AssuredWorkloadsServiceClient.java similarity index 98% rename from owl-bot-staging/v1beta1/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AssuredWorkloadsServiceClient.java rename to google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AssuredWorkloadsServiceClient.java index 12fb724f..c227a2a6 100644 --- a/owl-bot-staging/v1beta1/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AssuredWorkloadsServiceClient.java +++ b/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AssuredWorkloadsServiceClient.java @@ -65,13 +65,13 @@ * methods: * *

    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* @@ -843,7 +843,10 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListWorkloadsPagedResponse extends AbstractPagedListResponse< - ListWorkloadsRequest, ListWorkloadsResponse, Workload, ListWorkloadsPage, + ListWorkloadsRequest, + ListWorkloadsResponse, + Workload, + ListWorkloadsPage, ListWorkloadsFixedSizeCollection> { public static ApiFuture createAsync( @@ -893,7 +896,10 @@ public ApiFuture createPageAsync( public static class ListWorkloadsFixedSizeCollection extends AbstractFixedSizeCollection< - ListWorkloadsRequest, ListWorkloadsResponse, Workload, ListWorkloadsPage, + ListWorkloadsRequest, + ListWorkloadsResponse, + Workload, + ListWorkloadsPage, ListWorkloadsFixedSizeCollection> { private ListWorkloadsFixedSizeCollection(List pages, int collectionSize) { diff --git a/owl-bot-staging/v1beta1/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AssuredWorkloadsServiceSettings.java b/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AssuredWorkloadsServiceSettings.java similarity index 97% rename from owl-bot-staging/v1beta1/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AssuredWorkloadsServiceSettings.java rename to google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AssuredWorkloadsServiceSettings.java index e4875aa1..c0d48076 100644 --- a/owl-bot-staging/v1beta1/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AssuredWorkloadsServiceSettings.java +++ b/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AssuredWorkloadsServiceSettings.java @@ -29,7 +29,6 @@ import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; 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.assuredworkloads.v1beta1.stub.AssuredWorkloadsServiceStubSettings; @@ -46,10 +45,10 @@ *

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

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

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/owl-bot-staging/v1beta1/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/gapic_metadata.json b/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/gapic_metadata.json similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/gapic_metadata.json rename to google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/gapic_metadata.json diff --git a/owl-bot-staging/v1beta1/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/package-info.java b/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/package-info.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/package-info.java rename to google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/package-info.java diff --git a/owl-bot-staging/v1beta1/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/stub/AssuredWorkloadsServiceStub.java b/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/stub/AssuredWorkloadsServiceStub.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/stub/AssuredWorkloadsServiceStub.java rename to google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/stub/AssuredWorkloadsServiceStub.java diff --git a/owl-bot-staging/v1beta1/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/stub/AssuredWorkloadsServiceStubSettings.java b/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/stub/AssuredWorkloadsServiceStubSettings.java similarity index 98% rename from owl-bot-staging/v1beta1/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/stub/AssuredWorkloadsServiceStubSettings.java rename to google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/stub/AssuredWorkloadsServiceStubSettings.java index 467e98a7..4b991a42 100644 --- a/owl-bot-staging/v1beta1/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/stub/AssuredWorkloadsServiceStubSettings.java +++ b/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/stub/AssuredWorkloadsServiceStubSettings.java @@ -73,10 +73,10 @@ *

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

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

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/owl-bot-staging/v1beta1/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/stub/GrpcAssuredWorkloadsServiceCallableFactory.java b/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/stub/GrpcAssuredWorkloadsServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/stub/GrpcAssuredWorkloadsServiceCallableFactory.java rename to google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/stub/GrpcAssuredWorkloadsServiceCallableFactory.java diff --git a/owl-bot-staging/v1beta1/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/stub/GrpcAssuredWorkloadsServiceStub.java b/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/stub/GrpcAssuredWorkloadsServiceStub.java similarity index 99% rename from owl-bot-staging/v1beta1/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/stub/GrpcAssuredWorkloadsServiceStub.java rename to google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/stub/GrpcAssuredWorkloadsServiceStub.java index 1591ad5b..25ae8248 100644 --- a/owl-bot-staging/v1beta1/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/stub/GrpcAssuredWorkloadsServiceStub.java +++ b/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/stub/GrpcAssuredWorkloadsServiceStub.java @@ -41,7 +41,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/v1beta1/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/stub/HttpJsonAssuredWorkloadsServiceCallableFactory.java b/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/stub/HttpJsonAssuredWorkloadsServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/stub/HttpJsonAssuredWorkloadsServiceCallableFactory.java rename to google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/stub/HttpJsonAssuredWorkloadsServiceCallableFactory.java diff --git a/owl-bot-staging/v1beta1/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/stub/HttpJsonAssuredWorkloadsServiceStub.java b/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/stub/HttpJsonAssuredWorkloadsServiceStub.java similarity index 99% rename from owl-bot-staging/v1beta1/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/stub/HttpJsonAssuredWorkloadsServiceStub.java rename to google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/stub/HttpJsonAssuredWorkloadsServiceStub.java index 3438d28f..94705b90 100644 --- a/owl-bot-staging/v1beta1/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/stub/HttpJsonAssuredWorkloadsServiceStub.java +++ b/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/stub/HttpJsonAssuredWorkloadsServiceStub.java @@ -30,7 +30,6 @@ import com.google.api.gax.httpjson.ProtoMessageResponseParser; import com.google.api.gax.httpjson.ProtoRestSerializer; import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; -import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; diff --git a/owl-bot-staging/v1/google-cloud-assured-workloads/src/test/java/com/google/cloud/assuredworkloads/v1/AssuredWorkloadsServiceClientHttpJsonTest.java b/google-cloud-assured-workloads/src/test/java/com/google/cloud/assuredworkloads/v1/AssuredWorkloadsServiceClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-assured-workloads/src/test/java/com/google/cloud/assuredworkloads/v1/AssuredWorkloadsServiceClientHttpJsonTest.java rename to google-cloud-assured-workloads/src/test/java/com/google/cloud/assuredworkloads/v1/AssuredWorkloadsServiceClientHttpJsonTest.java diff --git a/owl-bot-staging/v1/google-cloud-assured-workloads/src/test/java/com/google/cloud/assuredworkloads/v1/AssuredWorkloadsServiceClientTest.java b/google-cloud-assured-workloads/src/test/java/com/google/cloud/assuredworkloads/v1/AssuredWorkloadsServiceClientTest.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-assured-workloads/src/test/java/com/google/cloud/assuredworkloads/v1/AssuredWorkloadsServiceClientTest.java rename to google-cloud-assured-workloads/src/test/java/com/google/cloud/assuredworkloads/v1/AssuredWorkloadsServiceClientTest.java diff --git a/owl-bot-staging/v1/google-cloud-assured-workloads/src/test/java/com/google/cloud/assuredworkloads/v1/MockAssuredWorkloadsService.java b/google-cloud-assured-workloads/src/test/java/com/google/cloud/assuredworkloads/v1/MockAssuredWorkloadsService.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-assured-workloads/src/test/java/com/google/cloud/assuredworkloads/v1/MockAssuredWorkloadsService.java rename to google-cloud-assured-workloads/src/test/java/com/google/cloud/assuredworkloads/v1/MockAssuredWorkloadsService.java diff --git a/owl-bot-staging/v1/google-cloud-assured-workloads/src/test/java/com/google/cloud/assuredworkloads/v1/MockAssuredWorkloadsServiceImpl.java b/google-cloud-assured-workloads/src/test/java/com/google/cloud/assuredworkloads/v1/MockAssuredWorkloadsServiceImpl.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-assured-workloads/src/test/java/com/google/cloud/assuredworkloads/v1/MockAssuredWorkloadsServiceImpl.java rename to google-cloud-assured-workloads/src/test/java/com/google/cloud/assuredworkloads/v1/MockAssuredWorkloadsServiceImpl.java diff --git a/owl-bot-staging/v1beta1/google-cloud-assured-workloads/src/test/java/com/google/cloud/assuredworkloads/v1beta1/AssuredWorkloadsServiceClientHttpJsonTest.java b/google-cloud-assured-workloads/src/test/java/com/google/cloud/assuredworkloads/v1beta1/AssuredWorkloadsServiceClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-assured-workloads/src/test/java/com/google/cloud/assuredworkloads/v1beta1/AssuredWorkloadsServiceClientHttpJsonTest.java rename to google-cloud-assured-workloads/src/test/java/com/google/cloud/assuredworkloads/v1beta1/AssuredWorkloadsServiceClientHttpJsonTest.java diff --git a/owl-bot-staging/v1beta1/google-cloud-assured-workloads/src/test/java/com/google/cloud/assuredworkloads/v1beta1/AssuredWorkloadsServiceClientTest.java b/google-cloud-assured-workloads/src/test/java/com/google/cloud/assuredworkloads/v1beta1/AssuredWorkloadsServiceClientTest.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-assured-workloads/src/test/java/com/google/cloud/assuredworkloads/v1beta1/AssuredWorkloadsServiceClientTest.java rename to google-cloud-assured-workloads/src/test/java/com/google/cloud/assuredworkloads/v1beta1/AssuredWorkloadsServiceClientTest.java diff --git a/owl-bot-staging/v1beta1/google-cloud-assured-workloads/src/test/java/com/google/cloud/assuredworkloads/v1beta1/MockAssuredWorkloadsService.java b/google-cloud-assured-workloads/src/test/java/com/google/cloud/assuredworkloads/v1beta1/MockAssuredWorkloadsService.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-assured-workloads/src/test/java/com/google/cloud/assuredworkloads/v1beta1/MockAssuredWorkloadsService.java rename to google-cloud-assured-workloads/src/test/java/com/google/cloud/assuredworkloads/v1beta1/MockAssuredWorkloadsService.java diff --git a/owl-bot-staging/v1beta1/google-cloud-assured-workloads/src/test/java/com/google/cloud/assuredworkloads/v1beta1/MockAssuredWorkloadsServiceImpl.java b/google-cloud-assured-workloads/src/test/java/com/google/cloud/assuredworkloads/v1beta1/MockAssuredWorkloadsServiceImpl.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-assured-workloads/src/test/java/com/google/cloud/assuredworkloads/v1beta1/MockAssuredWorkloadsServiceImpl.java rename to google-cloud-assured-workloads/src/test/java/com/google/cloud/assuredworkloads/v1beta1/MockAssuredWorkloadsServiceImpl.java diff --git a/grpc-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/AssuredWorkloadsServiceGrpc.java b/grpc-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/AssuredWorkloadsServiceGrpc.java new file mode 100644 index 00000000..5b8312b0 --- /dev/null +++ b/grpc-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/AssuredWorkloadsServiceGrpc.java @@ -0,0 +1,857 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.assuredworkloads.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *

+ * Service to manage AssuredWorkloads.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/assuredworkloads/v1/assuredworkloads.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class AssuredWorkloadsServiceGrpc { + + private AssuredWorkloadsServiceGrpc() {} + + public static final String SERVICE_NAME = + "google.cloud.assuredworkloads.v1.AssuredWorkloadsService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest, + com.google.longrunning.Operation> + getCreateWorkloadMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateWorkload", + requestType = com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest, + com.google.longrunning.Operation> + getCreateWorkloadMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest, + com.google.longrunning.Operation> + getCreateWorkloadMethod; + if ((getCreateWorkloadMethod = AssuredWorkloadsServiceGrpc.getCreateWorkloadMethod) == null) { + synchronized (AssuredWorkloadsServiceGrpc.class) { + if ((getCreateWorkloadMethod = AssuredWorkloadsServiceGrpc.getCreateWorkloadMethod) + == null) { + AssuredWorkloadsServiceGrpc.getCreateWorkloadMethod = + getCreateWorkloadMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateWorkload")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new AssuredWorkloadsServiceMethodDescriptorSupplier("CreateWorkload")) + .build(); + } + } + } + return getCreateWorkloadMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest, + com.google.cloud.assuredworkloads.v1.Workload> + getUpdateWorkloadMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateWorkload", + requestType = com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest.class, + responseType = com.google.cloud.assuredworkloads.v1.Workload.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest, + com.google.cloud.assuredworkloads.v1.Workload> + getUpdateWorkloadMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest, + com.google.cloud.assuredworkloads.v1.Workload> + getUpdateWorkloadMethod; + if ((getUpdateWorkloadMethod = AssuredWorkloadsServiceGrpc.getUpdateWorkloadMethod) == null) { + synchronized (AssuredWorkloadsServiceGrpc.class) { + if ((getUpdateWorkloadMethod = AssuredWorkloadsServiceGrpc.getUpdateWorkloadMethod) + == null) { + AssuredWorkloadsServiceGrpc.getUpdateWorkloadMethod = + getUpdateWorkloadMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateWorkload")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.assuredworkloads.v1.Workload.getDefaultInstance())) + .setSchemaDescriptor( + new AssuredWorkloadsServiceMethodDescriptorSupplier("UpdateWorkload")) + .build(); + } + } + } + return getUpdateWorkloadMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest, com.google.protobuf.Empty> + getDeleteWorkloadMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteWorkload", + requestType = com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest, com.google.protobuf.Empty> + getDeleteWorkloadMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest, com.google.protobuf.Empty> + getDeleteWorkloadMethod; + if ((getDeleteWorkloadMethod = AssuredWorkloadsServiceGrpc.getDeleteWorkloadMethod) == null) { + synchronized (AssuredWorkloadsServiceGrpc.class) { + if ((getDeleteWorkloadMethod = AssuredWorkloadsServiceGrpc.getDeleteWorkloadMethod) + == null) { + AssuredWorkloadsServiceGrpc.getDeleteWorkloadMethod = + getDeleteWorkloadMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteWorkload")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new AssuredWorkloadsServiceMethodDescriptorSupplier("DeleteWorkload")) + .build(); + } + } + } + return getDeleteWorkloadMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.assuredworkloads.v1.GetWorkloadRequest, + com.google.cloud.assuredworkloads.v1.Workload> + getGetWorkloadMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetWorkload", + requestType = com.google.cloud.assuredworkloads.v1.GetWorkloadRequest.class, + responseType = com.google.cloud.assuredworkloads.v1.Workload.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.assuredworkloads.v1.GetWorkloadRequest, + com.google.cloud.assuredworkloads.v1.Workload> + getGetWorkloadMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.assuredworkloads.v1.GetWorkloadRequest, + com.google.cloud.assuredworkloads.v1.Workload> + getGetWorkloadMethod; + if ((getGetWorkloadMethod = AssuredWorkloadsServiceGrpc.getGetWorkloadMethod) == null) { + synchronized (AssuredWorkloadsServiceGrpc.class) { + if ((getGetWorkloadMethod = AssuredWorkloadsServiceGrpc.getGetWorkloadMethod) == null) { + AssuredWorkloadsServiceGrpc.getGetWorkloadMethod = + getGetWorkloadMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetWorkload")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.assuredworkloads.v1.GetWorkloadRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.assuredworkloads.v1.Workload.getDefaultInstance())) + .setSchemaDescriptor( + new AssuredWorkloadsServiceMethodDescriptorSupplier("GetWorkload")) + .build(); + } + } + } + return getGetWorkloadMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest, + com.google.cloud.assuredworkloads.v1.ListWorkloadsResponse> + getListWorkloadsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListWorkloads", + requestType = com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest.class, + responseType = com.google.cloud.assuredworkloads.v1.ListWorkloadsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest, + com.google.cloud.assuredworkloads.v1.ListWorkloadsResponse> + getListWorkloadsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest, + com.google.cloud.assuredworkloads.v1.ListWorkloadsResponse> + getListWorkloadsMethod; + if ((getListWorkloadsMethod = AssuredWorkloadsServiceGrpc.getListWorkloadsMethod) == null) { + synchronized (AssuredWorkloadsServiceGrpc.class) { + if ((getListWorkloadsMethod = AssuredWorkloadsServiceGrpc.getListWorkloadsMethod) == null) { + AssuredWorkloadsServiceGrpc.getListWorkloadsMethod = + getListWorkloadsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListWorkloads")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.assuredworkloads.v1.ListWorkloadsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AssuredWorkloadsServiceMethodDescriptorSupplier("ListWorkloads")) + .build(); + } + } + } + return getListWorkloadsMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static AssuredWorkloadsServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AssuredWorkloadsServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AssuredWorkloadsServiceStub(channel, callOptions); + } + }; + return AssuredWorkloadsServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static AssuredWorkloadsServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AssuredWorkloadsServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AssuredWorkloadsServiceBlockingStub(channel, callOptions); + } + }; + return AssuredWorkloadsServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static AssuredWorkloadsServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AssuredWorkloadsServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AssuredWorkloadsServiceFutureStub(channel, callOptions); + } + }; + return AssuredWorkloadsServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Service to manage AssuredWorkloads.
+   * 
+ */ + public abstract static class AssuredWorkloadsServiceImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Creates Assured Workload.
+     * 
+ */ + public void createWorkload( + com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateWorkloadMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates an existing workload.
+     * Currently allows updating of workload display_name and labels.
+     * For force updates don't set etag field in the Workload.
+     * Only one update operation per workload can be in progress.
+     * 
+ */ + public void updateWorkload( + com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateWorkloadMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes the workload. Make sure that workload's direct children are already
+     * in a deleted state, otherwise the request will fail with a
+     * FAILED_PRECONDITION error.
+     * 
+ */ + public void deleteWorkload( + com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteWorkloadMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets Assured Workload associated with a CRM Node
+     * 
+ */ + public void getWorkload( + com.google.cloud.assuredworkloads.v1.GetWorkloadRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetWorkloadMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists Assured Workloads under a CRM Node.
+     * 
+ */ + public void listWorkloads( + com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListWorkloadsMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateWorkloadMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest, + com.google.longrunning.Operation>(this, METHODID_CREATE_WORKLOAD))) + .addMethod( + getUpdateWorkloadMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest, + com.google.cloud.assuredworkloads.v1.Workload>( + this, METHODID_UPDATE_WORKLOAD))) + .addMethod( + getDeleteWorkloadMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest, + com.google.protobuf.Empty>(this, METHODID_DELETE_WORKLOAD))) + .addMethod( + getGetWorkloadMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.assuredworkloads.v1.GetWorkloadRequest, + com.google.cloud.assuredworkloads.v1.Workload>(this, METHODID_GET_WORKLOAD))) + .addMethod( + getListWorkloadsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest, + com.google.cloud.assuredworkloads.v1.ListWorkloadsResponse>( + this, METHODID_LIST_WORKLOADS))) + .build(); + } + } + + /** + * + * + *
+   * Service to manage AssuredWorkloads.
+   * 
+ */ + public static final class AssuredWorkloadsServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private AssuredWorkloadsServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AssuredWorkloadsServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AssuredWorkloadsServiceStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates Assured Workload.
+     * 
+ */ + public void createWorkload( + com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateWorkloadMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates an existing workload.
+     * Currently allows updating of workload display_name and labels.
+     * For force updates don't set etag field in the Workload.
+     * Only one update operation per workload can be in progress.
+     * 
+ */ + public void updateWorkload( + com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateWorkloadMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes the workload. Make sure that workload's direct children are already
+     * in a deleted state, otherwise the request will fail with a
+     * FAILED_PRECONDITION error.
+     * 
+ */ + public void deleteWorkload( + com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteWorkloadMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets Assured Workload associated with a CRM Node
+     * 
+ */ + public void getWorkload( + com.google.cloud.assuredworkloads.v1.GetWorkloadRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetWorkloadMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists Assured Workloads under a CRM Node.
+     * 
+ */ + public void listWorkloads( + com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListWorkloadsMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * Service to manage AssuredWorkloads.
+   * 
+ */ + public static final class AssuredWorkloadsServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private AssuredWorkloadsServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AssuredWorkloadsServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AssuredWorkloadsServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates Assured Workload.
+     * 
+ */ + public com.google.longrunning.Operation createWorkload( + com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateWorkloadMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates an existing workload.
+     * Currently allows updating of workload display_name and labels.
+     * For force updates don't set etag field in the Workload.
+     * Only one update operation per workload can be in progress.
+     * 
+ */ + public com.google.cloud.assuredworkloads.v1.Workload updateWorkload( + com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateWorkloadMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes the workload. Make sure that workload's direct children are already
+     * in a deleted state, otherwise the request will fail with a
+     * FAILED_PRECONDITION error.
+     * 
+ */ + public com.google.protobuf.Empty deleteWorkload( + com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteWorkloadMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets Assured Workload associated with a CRM Node
+     * 
+ */ + public com.google.cloud.assuredworkloads.v1.Workload getWorkload( + com.google.cloud.assuredworkloads.v1.GetWorkloadRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetWorkloadMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists Assured Workloads under a CRM Node.
+     * 
+ */ + public com.google.cloud.assuredworkloads.v1.ListWorkloadsResponse listWorkloads( + com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListWorkloadsMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * Service to manage AssuredWorkloads.
+   * 
+ */ + public static final class AssuredWorkloadsServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private AssuredWorkloadsServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AssuredWorkloadsServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AssuredWorkloadsServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates Assured Workload.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createWorkload(com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateWorkloadMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates an existing workload.
+     * Currently allows updating of workload display_name and labels.
+     * For force updates don't set etag field in the Workload.
+     * Only one update operation per workload can be in progress.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.assuredworkloads.v1.Workload> + updateWorkload(com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateWorkloadMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes the workload. Make sure that workload's direct children are already
+     * in a deleted state, otherwise the request will fail with a
+     * FAILED_PRECONDITION error.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteWorkload(com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteWorkloadMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets Assured Workload associated with a CRM Node
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.assuredworkloads.v1.Workload> + getWorkload(com.google.cloud.assuredworkloads.v1.GetWorkloadRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetWorkloadMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists Assured Workloads under a CRM Node.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.assuredworkloads.v1.ListWorkloadsResponse> + listWorkloads(com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListWorkloadsMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_WORKLOAD = 0; + private static final int METHODID_UPDATE_WORKLOAD = 1; + private static final int METHODID_DELETE_WORKLOAD = 2; + private static final int METHODID_GET_WORKLOAD = 3; + private static final int METHODID_LIST_WORKLOADS = 4; + + 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 AssuredWorkloadsServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(AssuredWorkloadsServiceImplBase 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_WORKLOAD: + serviceImpl.createWorkload( + (com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_WORKLOAD: + serviceImpl.updateWorkload( + (com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_WORKLOAD: + serviceImpl.deleteWorkload( + (com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_WORKLOAD: + serviceImpl.getWorkload( + (com.google.cloud.assuredworkloads.v1.GetWorkloadRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_WORKLOADS: + serviceImpl.listWorkloads( + (com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.assuredworkloads.v1.ListWorkloadsResponse>) + responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private abstract static class AssuredWorkloadsServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + AssuredWorkloadsServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("AssuredWorkloadsService"); + } + } + + private static final class AssuredWorkloadsServiceFileDescriptorSupplier + extends AssuredWorkloadsServiceBaseDescriptorSupplier { + AssuredWorkloadsServiceFileDescriptorSupplier() {} + } + + private static final class AssuredWorkloadsServiceMethodDescriptorSupplier + extends AssuredWorkloadsServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + AssuredWorkloadsServiceMethodDescriptorSupplier(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 (AssuredWorkloadsServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new AssuredWorkloadsServiceFileDescriptorSupplier()) + .addMethod(getCreateWorkloadMethod()) + .addMethod(getUpdateWorkloadMethod()) + .addMethod(getDeleteWorkloadMethod()) + .addMethod(getGetWorkloadMethod()) + .addMethod(getListWorkloadsMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/grpc-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AssuredWorkloadsServiceGrpc.java b/grpc-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AssuredWorkloadsServiceGrpc.java new file mode 100644 index 00000000..92c0204d --- /dev/null +++ b/grpc-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AssuredWorkloadsServiceGrpc.java @@ -0,0 +1,863 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.assuredworkloads.v1beta1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * Service to manage AssuredWorkloads.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class AssuredWorkloadsServiceGrpc { + + private AssuredWorkloadsServiceGrpc() {} + + public static final String SERVICE_NAME = + "google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest, + com.google.longrunning.Operation> + getCreateWorkloadMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateWorkload", + requestType = com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest, + com.google.longrunning.Operation> + getCreateWorkloadMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest, + com.google.longrunning.Operation> + getCreateWorkloadMethod; + if ((getCreateWorkloadMethod = AssuredWorkloadsServiceGrpc.getCreateWorkloadMethod) == null) { + synchronized (AssuredWorkloadsServiceGrpc.class) { + if ((getCreateWorkloadMethod = AssuredWorkloadsServiceGrpc.getCreateWorkloadMethod) + == null) { + AssuredWorkloadsServiceGrpc.getCreateWorkloadMethod = + getCreateWorkloadMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateWorkload")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new AssuredWorkloadsServiceMethodDescriptorSupplier("CreateWorkload")) + .build(); + } + } + } + return getCreateWorkloadMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest, + com.google.cloud.assuredworkloads.v1beta1.Workload> + getUpdateWorkloadMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateWorkload", + requestType = com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest.class, + responseType = com.google.cloud.assuredworkloads.v1beta1.Workload.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest, + com.google.cloud.assuredworkloads.v1beta1.Workload> + getUpdateWorkloadMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest, + com.google.cloud.assuredworkloads.v1beta1.Workload> + getUpdateWorkloadMethod; + if ((getUpdateWorkloadMethod = AssuredWorkloadsServiceGrpc.getUpdateWorkloadMethod) == null) { + synchronized (AssuredWorkloadsServiceGrpc.class) { + if ((getUpdateWorkloadMethod = AssuredWorkloadsServiceGrpc.getUpdateWorkloadMethod) + == null) { + AssuredWorkloadsServiceGrpc.getUpdateWorkloadMethod = + getUpdateWorkloadMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateWorkload")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.assuredworkloads.v1beta1.Workload + .getDefaultInstance())) + .setSchemaDescriptor( + new AssuredWorkloadsServiceMethodDescriptorSupplier("UpdateWorkload")) + .build(); + } + } + } + return getUpdateWorkloadMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest, + com.google.protobuf.Empty> + getDeleteWorkloadMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteWorkload", + requestType = com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest, + com.google.protobuf.Empty> + getDeleteWorkloadMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest, + com.google.protobuf.Empty> + getDeleteWorkloadMethod; + if ((getDeleteWorkloadMethod = AssuredWorkloadsServiceGrpc.getDeleteWorkloadMethod) == null) { + synchronized (AssuredWorkloadsServiceGrpc.class) { + if ((getDeleteWorkloadMethod = AssuredWorkloadsServiceGrpc.getDeleteWorkloadMethod) + == null) { + AssuredWorkloadsServiceGrpc.getDeleteWorkloadMethod = + getDeleteWorkloadMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteWorkload")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new AssuredWorkloadsServiceMethodDescriptorSupplier("DeleteWorkload")) + .build(); + } + } + } + return getDeleteWorkloadMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest, + com.google.cloud.assuredworkloads.v1beta1.Workload> + getGetWorkloadMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetWorkload", + requestType = com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest.class, + responseType = com.google.cloud.assuredworkloads.v1beta1.Workload.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest, + com.google.cloud.assuredworkloads.v1beta1.Workload> + getGetWorkloadMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest, + com.google.cloud.assuredworkloads.v1beta1.Workload> + getGetWorkloadMethod; + if ((getGetWorkloadMethod = AssuredWorkloadsServiceGrpc.getGetWorkloadMethod) == null) { + synchronized (AssuredWorkloadsServiceGrpc.class) { + if ((getGetWorkloadMethod = AssuredWorkloadsServiceGrpc.getGetWorkloadMethod) == null) { + AssuredWorkloadsServiceGrpc.getGetWorkloadMethod = + getGetWorkloadMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetWorkload")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.assuredworkloads.v1beta1.Workload + .getDefaultInstance())) + .setSchemaDescriptor( + new AssuredWorkloadsServiceMethodDescriptorSupplier("GetWorkload")) + .build(); + } + } + } + return getGetWorkloadMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest, + com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse> + getListWorkloadsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListWorkloads", + requestType = com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest.class, + responseType = com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest, + com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse> + getListWorkloadsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest, + com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse> + getListWorkloadsMethod; + if ((getListWorkloadsMethod = AssuredWorkloadsServiceGrpc.getListWorkloadsMethod) == null) { + synchronized (AssuredWorkloadsServiceGrpc.class) { + if ((getListWorkloadsMethod = AssuredWorkloadsServiceGrpc.getListWorkloadsMethod) == null) { + AssuredWorkloadsServiceGrpc.getListWorkloadsMethod = + getListWorkloadsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListWorkloads")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AssuredWorkloadsServiceMethodDescriptorSupplier("ListWorkloads")) + .build(); + } + } + } + return getListWorkloadsMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static AssuredWorkloadsServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AssuredWorkloadsServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AssuredWorkloadsServiceStub(channel, callOptions); + } + }; + return AssuredWorkloadsServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static AssuredWorkloadsServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AssuredWorkloadsServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AssuredWorkloadsServiceBlockingStub(channel, callOptions); + } + }; + return AssuredWorkloadsServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static AssuredWorkloadsServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AssuredWorkloadsServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AssuredWorkloadsServiceFutureStub(channel, callOptions); + } + }; + return AssuredWorkloadsServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Service to manage AssuredWorkloads.
+   * 
+ */ + public abstract static class AssuredWorkloadsServiceImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Creates Assured Workload.
+     * 
+ */ + public void createWorkload( + com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateWorkloadMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates an existing workload.
+     * Currently allows updating of workload display_name and labels.
+     * For force updates don't set etag field in the Workload.
+     * Only one update operation per workload can be in progress.
+     * 
+ */ + public void updateWorkload( + com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateWorkloadMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes the workload. Make sure that workload's direct children are already
+     * in a deleted state, otherwise the request will fail with a
+     * FAILED_PRECONDITION error.
+     * 
+ */ + public void deleteWorkload( + com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteWorkloadMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets Assured Workload associated with a CRM Node
+     * 
+ */ + public void getWorkload( + com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetWorkloadMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists Assured Workloads under a CRM Node.
+     * 
+ */ + public void listWorkloads( + com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListWorkloadsMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateWorkloadMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest, + com.google.longrunning.Operation>(this, METHODID_CREATE_WORKLOAD))) + .addMethod( + getUpdateWorkloadMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest, + com.google.cloud.assuredworkloads.v1beta1.Workload>( + this, METHODID_UPDATE_WORKLOAD))) + .addMethod( + getDeleteWorkloadMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest, + com.google.protobuf.Empty>(this, METHODID_DELETE_WORKLOAD))) + .addMethod( + getGetWorkloadMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest, + com.google.cloud.assuredworkloads.v1beta1.Workload>( + this, METHODID_GET_WORKLOAD))) + .addMethod( + getListWorkloadsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest, + com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse>( + this, METHODID_LIST_WORKLOADS))) + .build(); + } + } + + /** + * + * + *
+   * Service to manage AssuredWorkloads.
+   * 
+ */ + public static final class AssuredWorkloadsServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private AssuredWorkloadsServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AssuredWorkloadsServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AssuredWorkloadsServiceStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates Assured Workload.
+     * 
+ */ + public void createWorkload( + com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateWorkloadMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates an existing workload.
+     * Currently allows updating of workload display_name and labels.
+     * For force updates don't set etag field in the Workload.
+     * Only one update operation per workload can be in progress.
+     * 
+ */ + public void updateWorkload( + com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateWorkloadMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes the workload. Make sure that workload's direct children are already
+     * in a deleted state, otherwise the request will fail with a
+     * FAILED_PRECONDITION error.
+     * 
+ */ + public void deleteWorkload( + com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteWorkloadMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets Assured Workload associated with a CRM Node
+     * 
+ */ + public void getWorkload( + com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetWorkloadMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists Assured Workloads under a CRM Node.
+     * 
+ */ + public void listWorkloads( + com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListWorkloadsMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * Service to manage AssuredWorkloads.
+   * 
+ */ + public static final class AssuredWorkloadsServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private AssuredWorkloadsServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AssuredWorkloadsServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AssuredWorkloadsServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates Assured Workload.
+     * 
+ */ + public com.google.longrunning.Operation createWorkload( + com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateWorkloadMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates an existing workload.
+     * Currently allows updating of workload display_name and labels.
+     * For force updates don't set etag field in the Workload.
+     * Only one update operation per workload can be in progress.
+     * 
+ */ + public com.google.cloud.assuredworkloads.v1beta1.Workload updateWorkload( + com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateWorkloadMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes the workload. Make sure that workload's direct children are already
+     * in a deleted state, otherwise the request will fail with a
+     * FAILED_PRECONDITION error.
+     * 
+ */ + public com.google.protobuf.Empty deleteWorkload( + com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteWorkloadMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets Assured Workload associated with a CRM Node
+     * 
+ */ + public com.google.cloud.assuredworkloads.v1beta1.Workload getWorkload( + com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetWorkloadMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists Assured Workloads under a CRM Node.
+     * 
+ */ + public com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse listWorkloads( + com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListWorkloadsMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * Service to manage AssuredWorkloads.
+   * 
+ */ + public static final class AssuredWorkloadsServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private AssuredWorkloadsServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AssuredWorkloadsServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AssuredWorkloadsServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates Assured Workload.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createWorkload(com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateWorkloadMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates an existing workload.
+     * Currently allows updating of workload display_name and labels.
+     * For force updates don't set etag field in the Workload.
+     * Only one update operation per workload can be in progress.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.assuredworkloads.v1beta1.Workload> + updateWorkload(com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateWorkloadMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes the workload. Make sure that workload's direct children are already
+     * in a deleted state, otherwise the request will fail with a
+     * FAILED_PRECONDITION error.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteWorkload(com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteWorkloadMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets Assured Workload associated with a CRM Node
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.assuredworkloads.v1beta1.Workload> + getWorkload(com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetWorkloadMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists Assured Workloads under a CRM Node.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse> + listWorkloads(com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListWorkloadsMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_WORKLOAD = 0; + private static final int METHODID_UPDATE_WORKLOAD = 1; + private static final int METHODID_DELETE_WORKLOAD = 2; + private static final int METHODID_GET_WORKLOAD = 3; + private static final int METHODID_LIST_WORKLOADS = 4; + + 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 AssuredWorkloadsServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(AssuredWorkloadsServiceImplBase 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_WORKLOAD: + serviceImpl.createWorkload( + (com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_WORKLOAD: + serviceImpl.updateWorkload( + (com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_WORKLOAD: + serviceImpl.deleteWorkload( + (com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_WORKLOAD: + serviceImpl.getWorkload( + (com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_WORKLOADS: + serviceImpl.listWorkloads( + (com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse>) + responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private abstract static class AssuredWorkloadsServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + AssuredWorkloadsServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("AssuredWorkloadsService"); + } + } + + private static final class AssuredWorkloadsServiceFileDescriptorSupplier + extends AssuredWorkloadsServiceBaseDescriptorSupplier { + AssuredWorkloadsServiceFileDescriptorSupplier() {} + } + + private static final class AssuredWorkloadsServiceMethodDescriptorSupplier + extends AssuredWorkloadsServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + AssuredWorkloadsServiceMethodDescriptorSupplier(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 (AssuredWorkloadsServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new AssuredWorkloadsServiceFileDescriptorSupplier()) + .addMethod(getCreateWorkloadMethod()) + .addMethod(getUpdateWorkloadMethod()) + .addMethod(getDeleteWorkloadMethod()) + .addMethod(getGetWorkloadMethod()) + .addMethod(getListWorkloadsMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/v1/grpc-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/AssuredWorkloadsServiceGrpc.java b/owl-bot-staging/v1/grpc-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/AssuredWorkloadsServiceGrpc.java deleted file mode 100644 index 93930f41..00000000 --- a/owl-bot-staging/v1/grpc-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/AssuredWorkloadsServiceGrpc.java +++ /dev/null @@ -1,667 +0,0 @@ -package com.google.cloud.assuredworkloads.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * Service to manage AssuredWorkloads.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/assuredworkloads/v1/assuredworkloads.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class AssuredWorkloadsServiceGrpc { - - private AssuredWorkloadsServiceGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.assuredworkloads.v1.AssuredWorkloadsService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getCreateWorkloadMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateWorkload", - requestType = com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateWorkloadMethod() { - io.grpc.MethodDescriptor getCreateWorkloadMethod; - if ((getCreateWorkloadMethod = AssuredWorkloadsServiceGrpc.getCreateWorkloadMethod) == null) { - synchronized (AssuredWorkloadsServiceGrpc.class) { - if ((getCreateWorkloadMethod = AssuredWorkloadsServiceGrpc.getCreateWorkloadMethod) == null) { - AssuredWorkloadsServiceGrpc.getCreateWorkloadMethod = getCreateWorkloadMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateWorkload")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new AssuredWorkloadsServiceMethodDescriptorSupplier("CreateWorkload")) - .build(); - } - } - } - return getCreateWorkloadMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateWorkloadMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateWorkload", - requestType = com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest.class, - responseType = com.google.cloud.assuredworkloads.v1.Workload.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateWorkloadMethod() { - io.grpc.MethodDescriptor getUpdateWorkloadMethod; - if ((getUpdateWorkloadMethod = AssuredWorkloadsServiceGrpc.getUpdateWorkloadMethod) == null) { - synchronized (AssuredWorkloadsServiceGrpc.class) { - if ((getUpdateWorkloadMethod = AssuredWorkloadsServiceGrpc.getUpdateWorkloadMethod) == null) { - AssuredWorkloadsServiceGrpc.getUpdateWorkloadMethod = getUpdateWorkloadMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateWorkload")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.assuredworkloads.v1.Workload.getDefaultInstance())) - .setSchemaDescriptor(new AssuredWorkloadsServiceMethodDescriptorSupplier("UpdateWorkload")) - .build(); - } - } - } - return getUpdateWorkloadMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteWorkloadMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteWorkload", - requestType = com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteWorkloadMethod() { - io.grpc.MethodDescriptor getDeleteWorkloadMethod; - if ((getDeleteWorkloadMethod = AssuredWorkloadsServiceGrpc.getDeleteWorkloadMethod) == null) { - synchronized (AssuredWorkloadsServiceGrpc.class) { - if ((getDeleteWorkloadMethod = AssuredWorkloadsServiceGrpc.getDeleteWorkloadMethod) == null) { - AssuredWorkloadsServiceGrpc.getDeleteWorkloadMethod = getDeleteWorkloadMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteWorkload")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new AssuredWorkloadsServiceMethodDescriptorSupplier("DeleteWorkload")) - .build(); - } - } - } - return getDeleteWorkloadMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetWorkloadMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetWorkload", - requestType = com.google.cloud.assuredworkloads.v1.GetWorkloadRequest.class, - responseType = com.google.cloud.assuredworkloads.v1.Workload.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetWorkloadMethod() { - io.grpc.MethodDescriptor getGetWorkloadMethod; - if ((getGetWorkloadMethod = AssuredWorkloadsServiceGrpc.getGetWorkloadMethod) == null) { - synchronized (AssuredWorkloadsServiceGrpc.class) { - if ((getGetWorkloadMethod = AssuredWorkloadsServiceGrpc.getGetWorkloadMethod) == null) { - AssuredWorkloadsServiceGrpc.getGetWorkloadMethod = getGetWorkloadMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetWorkload")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.assuredworkloads.v1.GetWorkloadRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.assuredworkloads.v1.Workload.getDefaultInstance())) - .setSchemaDescriptor(new AssuredWorkloadsServiceMethodDescriptorSupplier("GetWorkload")) - .build(); - } - } - } - return getGetWorkloadMethod; - } - - private static volatile io.grpc.MethodDescriptor getListWorkloadsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListWorkloads", - requestType = com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest.class, - responseType = com.google.cloud.assuredworkloads.v1.ListWorkloadsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListWorkloadsMethod() { - io.grpc.MethodDescriptor getListWorkloadsMethod; - if ((getListWorkloadsMethod = AssuredWorkloadsServiceGrpc.getListWorkloadsMethod) == null) { - synchronized (AssuredWorkloadsServiceGrpc.class) { - if ((getListWorkloadsMethod = AssuredWorkloadsServiceGrpc.getListWorkloadsMethod) == null) { - AssuredWorkloadsServiceGrpc.getListWorkloadsMethod = getListWorkloadsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListWorkloads")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.assuredworkloads.v1.ListWorkloadsResponse.getDefaultInstance())) - .setSchemaDescriptor(new AssuredWorkloadsServiceMethodDescriptorSupplier("ListWorkloads")) - .build(); - } - } - } - return getListWorkloadsMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static AssuredWorkloadsServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AssuredWorkloadsServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AssuredWorkloadsServiceStub(channel, callOptions); - } - }; - return AssuredWorkloadsServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static AssuredWorkloadsServiceBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AssuredWorkloadsServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AssuredWorkloadsServiceBlockingStub(channel, callOptions); - } - }; - return AssuredWorkloadsServiceBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static AssuredWorkloadsServiceFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AssuredWorkloadsServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AssuredWorkloadsServiceFutureStub(channel, callOptions); - } - }; - return AssuredWorkloadsServiceFutureStub.newStub(factory, channel); - } - - /** - *
-   * Service to manage AssuredWorkloads.
-   * 
- */ - public static abstract class AssuredWorkloadsServiceImplBase implements io.grpc.BindableService { - - /** - *
-     * Creates Assured Workload.
-     * 
- */ - public void createWorkload(com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateWorkloadMethod(), responseObserver); - } - - /** - *
-     * Updates an existing workload.
-     * Currently allows updating of workload display_name and labels.
-     * For force updates don't set etag field in the Workload.
-     * Only one update operation per workload can be in progress.
-     * 
- */ - public void updateWorkload(com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateWorkloadMethod(), responseObserver); - } - - /** - *
-     * Deletes the workload. Make sure that workload's direct children are already
-     * in a deleted state, otherwise the request will fail with a
-     * FAILED_PRECONDITION error.
-     * 
- */ - public void deleteWorkload(com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteWorkloadMethod(), responseObserver); - } - - /** - *
-     * Gets Assured Workload associated with a CRM Node
-     * 
- */ - public void getWorkload(com.google.cloud.assuredworkloads.v1.GetWorkloadRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetWorkloadMethod(), responseObserver); - } - - /** - *
-     * Lists Assured Workloads under a CRM Node.
-     * 
- */ - public void listWorkloads(com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListWorkloadsMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateWorkloadMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest, - com.google.longrunning.Operation>( - this, METHODID_CREATE_WORKLOAD))) - .addMethod( - getUpdateWorkloadMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest, - com.google.cloud.assuredworkloads.v1.Workload>( - this, METHODID_UPDATE_WORKLOAD))) - .addMethod( - getDeleteWorkloadMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest, - com.google.protobuf.Empty>( - this, METHODID_DELETE_WORKLOAD))) - .addMethod( - getGetWorkloadMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.assuredworkloads.v1.GetWorkloadRequest, - com.google.cloud.assuredworkloads.v1.Workload>( - this, METHODID_GET_WORKLOAD))) - .addMethod( - getListWorkloadsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest, - com.google.cloud.assuredworkloads.v1.ListWorkloadsResponse>( - this, METHODID_LIST_WORKLOADS))) - .build(); - } - } - - /** - *
-   * Service to manage AssuredWorkloads.
-   * 
- */ - public static final class AssuredWorkloadsServiceStub extends io.grpc.stub.AbstractAsyncStub { - private AssuredWorkloadsServiceStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AssuredWorkloadsServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AssuredWorkloadsServiceStub(channel, callOptions); - } - - /** - *
-     * Creates Assured Workload.
-     * 
- */ - public void createWorkload(com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateWorkloadMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates an existing workload.
-     * Currently allows updating of workload display_name and labels.
-     * For force updates don't set etag field in the Workload.
-     * Only one update operation per workload can be in progress.
-     * 
- */ - public void updateWorkload(com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateWorkloadMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes the workload. Make sure that workload's direct children are already
-     * in a deleted state, otherwise the request will fail with a
-     * FAILED_PRECONDITION error.
-     * 
- */ - public void deleteWorkload(com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteWorkloadMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets Assured Workload associated with a CRM Node
-     * 
- */ - public void getWorkload(com.google.cloud.assuredworkloads.v1.GetWorkloadRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetWorkloadMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists Assured Workloads under a CRM Node.
-     * 
- */ - public void listWorkloads(com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListWorkloadsMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * Service to manage AssuredWorkloads.
-   * 
- */ - public static final class AssuredWorkloadsServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private AssuredWorkloadsServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AssuredWorkloadsServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AssuredWorkloadsServiceBlockingStub(channel, callOptions); - } - - /** - *
-     * Creates Assured Workload.
-     * 
- */ - public com.google.longrunning.Operation createWorkload(com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateWorkloadMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates an existing workload.
-     * Currently allows updating of workload display_name and labels.
-     * For force updates don't set etag field in the Workload.
-     * Only one update operation per workload can be in progress.
-     * 
- */ - public com.google.cloud.assuredworkloads.v1.Workload updateWorkload(com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateWorkloadMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes the workload. Make sure that workload's direct children are already
-     * in a deleted state, otherwise the request will fail with a
-     * FAILED_PRECONDITION error.
-     * 
- */ - public com.google.protobuf.Empty deleteWorkload(com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteWorkloadMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets Assured Workload associated with a CRM Node
-     * 
- */ - public com.google.cloud.assuredworkloads.v1.Workload getWorkload(com.google.cloud.assuredworkloads.v1.GetWorkloadRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetWorkloadMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists Assured Workloads under a CRM Node.
-     * 
- */ - public com.google.cloud.assuredworkloads.v1.ListWorkloadsResponse listWorkloads(com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListWorkloadsMethod(), getCallOptions(), request); - } - } - - /** - *
-   * Service to manage AssuredWorkloads.
-   * 
- */ - public static final class AssuredWorkloadsServiceFutureStub extends io.grpc.stub.AbstractFutureStub { - private AssuredWorkloadsServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AssuredWorkloadsServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AssuredWorkloadsServiceFutureStub(channel, callOptions); - } - - /** - *
-     * Creates Assured Workload.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createWorkload( - com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateWorkloadMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates an existing workload.
-     * Currently allows updating of workload display_name and labels.
-     * For force updates don't set etag field in the Workload.
-     * Only one update operation per workload can be in progress.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateWorkload( - com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateWorkloadMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes the workload. Make sure that workload's direct children are already
-     * in a deleted state, otherwise the request will fail with a
-     * FAILED_PRECONDITION error.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteWorkload( - com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteWorkloadMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets Assured Workload associated with a CRM Node
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getWorkload( - com.google.cloud.assuredworkloads.v1.GetWorkloadRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetWorkloadMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists Assured Workloads under a CRM Node.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listWorkloads( - com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListWorkloadsMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_WORKLOAD = 0; - private static final int METHODID_UPDATE_WORKLOAD = 1; - private static final int METHODID_DELETE_WORKLOAD = 2; - private static final int METHODID_GET_WORKLOAD = 3; - private static final int METHODID_LIST_WORKLOADS = 4; - - 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 AssuredWorkloadsServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(AssuredWorkloadsServiceImplBase 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_WORKLOAD: - serviceImpl.createWorkload((com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_WORKLOAD: - serviceImpl.updateWorkload((com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_WORKLOAD: - serviceImpl.deleteWorkload((com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_WORKLOAD: - serviceImpl.getWorkload((com.google.cloud.assuredworkloads.v1.GetWorkloadRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_WORKLOADS: - serviceImpl.listWorkloads((com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private static abstract class AssuredWorkloadsServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - AssuredWorkloadsServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("AssuredWorkloadsService"); - } - } - - private static final class AssuredWorkloadsServiceFileDescriptorSupplier - extends AssuredWorkloadsServiceBaseDescriptorSupplier { - AssuredWorkloadsServiceFileDescriptorSupplier() {} - } - - private static final class AssuredWorkloadsServiceMethodDescriptorSupplier - extends AssuredWorkloadsServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - AssuredWorkloadsServiceMethodDescriptorSupplier(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 (AssuredWorkloadsServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new AssuredWorkloadsServiceFileDescriptorSupplier()) - .addMethod(getCreateWorkloadMethod()) - .addMethod(getUpdateWorkloadMethod()) - .addMethod(getDeleteWorkloadMethod()) - .addMethod(getGetWorkloadMethod()) - .addMethod(getListWorkloadsMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/AssuredworkloadsProto.java b/owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/AssuredworkloadsProto.java deleted file mode 100644 index ec894f76..00000000 --- a/owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/AssuredworkloadsProto.java +++ /dev/null @@ -1,342 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/assuredworkloads/v1/assuredworkloads.proto - -package com.google.cloud.assuredworkloads.v1; - -public final class AssuredworkloadsProto { - private AssuredworkloadsProto() {} - 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_assuredworkloads_v1_CreateWorkloadRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_assuredworkloads_v1_CreateWorkloadRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_assuredworkloads_v1_UpdateWorkloadRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_assuredworkloads_v1_UpdateWorkloadRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_assuredworkloads_v1_DeleteWorkloadRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_assuredworkloads_v1_DeleteWorkloadRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_assuredworkloads_v1_GetWorkloadRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_assuredworkloads_v1_GetWorkloadRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_assuredworkloads_v1_ListWorkloadsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_assuredworkloads_v1_ListWorkloadsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_assuredworkloads_v1_ListWorkloadsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_assuredworkloads_v1_ListWorkloadsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_assuredworkloads_v1_Workload_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_assuredworkloads_v1_Workload_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_assuredworkloads_v1_Workload_ResourceInfo_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_assuredworkloads_v1_Workload_ResourceInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_assuredworkloads_v1_Workload_KMSSettings_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_assuredworkloads_v1_Workload_KMSSettings_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_assuredworkloads_v1_Workload_ResourceSettings_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_assuredworkloads_v1_Workload_ResourceSettings_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_assuredworkloads_v1_Workload_SaaEnrollmentResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_assuredworkloads_v1_Workload_SaaEnrollmentResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_assuredworkloads_v1_Workload_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_assuredworkloads_v1_Workload_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_assuredworkloads_v1_CreateWorkloadOperationMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_assuredworkloads_v1_CreateWorkloadOperationMetadata_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n7google/cloud/assuredworkloads/v1/assur" + - "edworkloads.proto\022 google.cloud.assuredw" + - "orkloads.v1\032\034google/api/annotations.prot" + - "o\032\027google/api/client.proto\032\037google/api/f" + - "ield_behavior.proto\032\031google/api/resource" + - ".proto\032#google/longrunning/operations.pr" + - "oto\032\036google/protobuf/duration.proto\032\033goo" + - "gle/protobuf/empty.proto\032 google/protobu" + - "f/field_mask.proto\032\037google/protobuf/time" + - "stamp.proto\"\266\001\n\025CreateWorkloadRequest\022@\n" + - "\006parent\030\001 \001(\tB0\340A\002\372A*\022(assuredworkloads." + - "googleapis.com/Workload\022A\n\010workload\030\002 \001(" + - "\0132*.google.cloud.assuredworkloads.v1.Wor" + - "kloadB\003\340A\002\022\030\n\013external_id\030\003 \001(\tB\003\340A\001\"\220\001\n" + - "\025UpdateWorkloadRequest\022A\n\010workload\030\001 \001(\013" + - "2*.google.cloud.assuredworkloads.v1.Work" + - "loadB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google." + - "protobuf.FieldMaskB\003\340A\002\"j\n\025DeleteWorkloa" + - "dRequest\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n(assuredw" + - "orkloads.googleapis.com/Workload\022\021\n\004etag" + - "\030\002 \001(\tB\003\340A\001\"T\n\022GetWorkloadRequest\022>\n\004nam" + - "e\030\001 \001(\tB0\340A\002\372A*\n(assuredworkloads.google" + - "apis.com/Workload\"\217\001\n\024ListWorkloadsReque" + - "st\022@\n\006parent\030\001 \001(\tB0\340A\002\372A*\022(assuredworkl" + - "oads.googleapis.com/Workload\022\021\n\tpage_siz" + - "e\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\004 " + - "\001(\t\"o\n\025ListWorkloadsResponse\022=\n\tworkload" + - "s\030\001 \003(\0132*.google.cloud.assuredworkloads." + - "v1.Workload\022\027\n\017next_page_token\030\002 \001(\t\"\222\023\n" + - "\010Workload\022\021\n\004name\030\001 \001(\tB\003\340A\001\022\031\n\014display_" + - "name\030\002 \001(\tB\003\340A\002\022O\n\tresources\030\003 \003(\01327.goo" + - "gle.cloud.assuredworkloads.v1.Workload.R" + - "esourceInfoB\003\340A\003\022^\n\021compliance_regime\030\004 " + - "\001(\0162;.google.cloud.assuredworkloads.v1.W" + - "orkload.ComplianceRegimeB\006\340A\002\340A\005\0227\n\013crea" + - "te_time\030\005 \001(\0132\032.google.protobuf.Timestam" + - "pB\006\340A\003\340A\005\022\037\n\017billing_account\030\006 \001(\tB\006\340A\002\340" + - "A\004\022\021\n\004etag\030\t \001(\tB\003\340A\001\022K\n\006labels\030\n \003(\01326." + - "google.cloud.assuredworkloads.v1.Workloa" + - "d.LabelsEntryB\003\340A\001\022)\n\034provisioned_resour" + - "ces_parent\030\r \001(\tB\003\340A\004\022Q\n\014kms_settings\030\016 " + - "\001(\01326.google.cloud.assuredworkloads.v1.W" + - "orkload.KMSSettingsB\003\340A\004\022[\n\021resource_set" + - "tings\030\017 \003(\0132;.google.cloud.assuredworklo" + - "ads.v1.Workload.ResourceSettingsB\003\340A\004\022`\n" + - "\024kaj_enrollment_state\030\021 \001(\0162=.google.clo" + - "ud.assuredworkloads.v1.Workload.KajEnrol" + - "lmentStateB\003\340A\003\022&\n\031enable_sovereign_cont" + - "rols\030\022 \001(\010B\003\340A\001\022f\n\027saa_enrollment_respon" + - "se\030\024 \001(\0132@.google.cloud.assuredworkloads" + - ".v1.Workload.SaaEnrollmentResponseB\003\340A\003\032" + - "\357\001\n\014ResourceInfo\022\023\n\013resource_id\030\001 \001(\003\022[\n" + - "\rresource_type\030\002 \001(\0162D.google.cloud.assu" + - "redworkloads.v1.Workload.ResourceInfo.Re" + - "sourceType\"m\n\014ResourceType\022\035\n\031RESOURCE_T" + - "YPE_UNSPECIFIED\020\000\022\024\n\020CONSUMER_PROJECT\020\001\022" + - "\033\n\027ENCRYPTION_KEYS_PROJECT\020\002\022\013\n\007KEYRING\020" + - "\003\032\217\001\n\013KMSSettings\022A\n\022next_rotation_time\030" + - "\001 \001(\0132\032.google.protobuf.TimestampB\t\340A\002\340A" + - "\004\340A\005\022=\n\017rotation_period\030\002 \001(\0132\031.google.p" + - "rotobuf.DurationB\t\340A\002\340A\004\340A\005\032\232\001\n\020Resource" + - "Settings\022\023\n\013resource_id\030\001 \001(\t\022[\n\rresourc" + - "e_type\030\002 \001(\0162D.google.cloud.assuredworkl" + - "oads.v1.Workload.ResourceInfo.ResourceTy" + - "pe\022\024\n\014display_name\030\003 \001(\t\032\374\003\n\025SaaEnrollme" + - "ntResponse\022f\n\014setup_status\030\001 \001(\0162K.googl" + - "e.cloud.assuredworkloads.v1.Workload.Saa" + - "EnrollmentResponse.SetupStateH\000\210\001\001\022a\n\014se" + - "tup_errors\030\002 \003(\0162K.google.cloud.assuredw" + - "orkloads.v1.Workload.SaaEnrollmentRespon" + - "se.SetupError\"R\n\nSetupState\022\033\n\027SETUP_STA" + - "TE_UNSPECIFIED\020\000\022\022\n\016STATUS_PENDING\020\001\022\023\n\017" + - "STATUS_COMPLETE\020\002\"\262\001\n\nSetupError\022\033\n\027SETU" + - "P_ERROR_UNSPECIFIED\020\000\022\034\n\030ERROR_INVALID_B" + - "ASE_SETUP\020\001\022&\n\"ERROR_MISSING_EXTERNAL_SI" + - "GNING_KEY\020\002\022#\n\037ERROR_NOT_ALL_SERVICES_EN" + - "ROLLED\020\003\022\034\n\030ERROR_SETUP_CHECK_FAILED\020\004B\017" + - "\n\r_setup_status\032-\n\013LabelsEntry\022\013\n\003key\030\001 " + - "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\330\001\n\020ComplianceReg" + - "ime\022!\n\035COMPLIANCE_REGIME_UNSPECIFIED\020\000\022\007" + - "\n\003IL4\020\001\022\010\n\004CJIS\020\002\022\020\n\014FEDRAMP_HIGH\020\003\022\024\n\020F" + - "EDRAMP_MODERATE\020\004\022\026\n\022US_REGIONAL_ACCESS\020" + - "\005\022\t\n\005HIPAA\020\006\022\013\n\007HITRUST\020\007\022\032\n\026EU_REGIONS_" + - "AND_SUPPORT\020\010\022\032\n\026CA_REGIONS_AND_SUPPORT\020" + - "\t\"\177\n\022KajEnrollmentState\022$\n KAJ_ENROLLMEN" + - "T_STATE_UNSPECIFIED\020\000\022 \n\034KAJ_ENROLLMENT_" + - "STATE_PENDING\020\001\022!\n\035KAJ_ENROLLMENT_STATE_" + - "COMPLETE\020\002:u\352Ar\n(assuredworkloads.google" + - "apis.com/Workload\022Forganizations/{organi" + - "zation}/locations/{location}/workloads/{" + - "workload}\"\344\001\n\037CreateWorkloadOperationMet" + - "adata\0224\n\013create_time\030\001 \001(\0132\032.google.prot" + - "obuf.TimestampB\003\340A\001\022\031\n\014display_name\030\002 \001(" + - "\tB\003\340A\001\022\023\n\006parent\030\003 \001(\tB\003\340A\001\022[\n\021complianc" + - "e_regime\030\004 \001(\0162;.google.cloud.assuredwor" + - "kloads.v1.Workload.ComplianceRegimeB\003\340A\001" + - "2\342\010\n\027AssuredWorkloadsService\022\357\001\n\016CreateW" + - "orkload\0227.google.cloud.assuredworkloads." + - "v1.CreateWorkloadRequest\032\035.google.longru" + - "nning.Operation\"\204\001\202\323\344\223\002>\"2/v1/{parent=or" + - "ganizations/*/locations/*}/workloads:\010wo" + - "rkload\332A\017parent,workload\312A+\n\010Workload\022\037C" + - "reateWorkloadOperationMetadata\022\333\001\n\016Updat" + - "eWorkload\0227.google.cloud.assuredworkload" + - "s.v1.UpdateWorkloadRequest\032*.google.clou" + - "d.assuredworkloads.v1.Workload\"d\202\323\344\223\002G2;" + - "/v1/{workload.name=organizations/*/locat" + - "ions/*/workloads/*}:\010workload\332A\024workload" + - ",update_mask\022\244\001\n\016DeleteWorkload\0227.google" + - ".cloud.assuredworkloads.v1.DeleteWorkloa" + - "dRequest\032\026.google.protobuf.Empty\"A\202\323\344\223\0024" + - "*2/v1/{name=organizations/*/locations/*/" + - "workloads/*}\332A\004name\022\262\001\n\013GetWorkload\0224.go" + - "ogle.cloud.assuredworkloads.v1.GetWorklo" + - "adRequest\032*.google.cloud.assuredworkload" + - "s.v1.Workload\"A\202\323\344\223\0024\0222/v1/{name=organiz" + - "ations/*/locations/*/workloads/*}\332A\004name" + - "\022\305\001\n\rListWorkloads\0226.google.cloud.assure" + - "dworkloads.v1.ListWorkloadsRequest\0327.goo" + - "gle.cloud.assuredworkloads.v1.ListWorklo" + - "adsResponse\"C\202\323\344\223\0024\0222/v1/{parent=organiz" + - "ations/*/locations/*}/workloads\332A\006parent" + - "\032S\312A\037assuredworkloads.googleapis.com\322A.h" + - "ttps://www.googleapis.com/auth/cloud-pla" + - "tformB\335\002\n$com.google.cloud.assuredworklo" + - "ads.v1B\025AssuredworkloadsProtoP\001ZPgoogle." + - "golang.org/genproto/googleapis/cloud/ass" + - "uredworkloads/v1;assuredworkloads\252\002 Goog" + - "le.Cloud.AssuredWorkloads.V1\312\002 Google\\Cl" + - "oud\\AssuredWorkloads\\V1\352\002#Google::Cloud:" + - ":AssuredWorkloads::V1\352A]\n(assuredworkloa" + - "ds.googleapis.com/Location\0221organization" + - "s/{organization}/locations/{location}b\006p" + - "roto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_assuredworkloads_v1_CreateWorkloadRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_assuredworkloads_v1_CreateWorkloadRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_assuredworkloads_v1_CreateWorkloadRequest_descriptor, - new java.lang.String[] { "Parent", "Workload", "ExternalId", }); - internal_static_google_cloud_assuredworkloads_v1_UpdateWorkloadRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_assuredworkloads_v1_UpdateWorkloadRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_assuredworkloads_v1_UpdateWorkloadRequest_descriptor, - new java.lang.String[] { "Workload", "UpdateMask", }); - internal_static_google_cloud_assuredworkloads_v1_DeleteWorkloadRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_assuredworkloads_v1_DeleteWorkloadRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_assuredworkloads_v1_DeleteWorkloadRequest_descriptor, - new java.lang.String[] { "Name", "Etag", }); - internal_static_google_cloud_assuredworkloads_v1_GetWorkloadRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_assuredworkloads_v1_GetWorkloadRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_assuredworkloads_v1_GetWorkloadRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_assuredworkloads_v1_ListWorkloadsRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_assuredworkloads_v1_ListWorkloadsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_assuredworkloads_v1_ListWorkloadsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", }); - internal_static_google_cloud_assuredworkloads_v1_ListWorkloadsResponse_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_assuredworkloads_v1_ListWorkloadsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_assuredworkloads_v1_ListWorkloadsResponse_descriptor, - new java.lang.String[] { "Workloads", "NextPageToken", }); - internal_static_google_cloud_assuredworkloads_v1_Workload_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_assuredworkloads_v1_Workload_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_assuredworkloads_v1_Workload_descriptor, - new java.lang.String[] { "Name", "DisplayName", "Resources", "ComplianceRegime", "CreateTime", "BillingAccount", "Etag", "Labels", "ProvisionedResourcesParent", "KmsSettings", "ResourceSettings", "KajEnrollmentState", "EnableSovereignControls", "SaaEnrollmentResponse", }); - internal_static_google_cloud_assuredworkloads_v1_Workload_ResourceInfo_descriptor = - internal_static_google_cloud_assuredworkloads_v1_Workload_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_assuredworkloads_v1_Workload_ResourceInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_assuredworkloads_v1_Workload_ResourceInfo_descriptor, - new java.lang.String[] { "ResourceId", "ResourceType", }); - internal_static_google_cloud_assuredworkloads_v1_Workload_KMSSettings_descriptor = - internal_static_google_cloud_assuredworkloads_v1_Workload_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_assuredworkloads_v1_Workload_KMSSettings_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_assuredworkloads_v1_Workload_KMSSettings_descriptor, - new java.lang.String[] { "NextRotationTime", "RotationPeriod", }); - internal_static_google_cloud_assuredworkloads_v1_Workload_ResourceSettings_descriptor = - internal_static_google_cloud_assuredworkloads_v1_Workload_descriptor.getNestedTypes().get(2); - internal_static_google_cloud_assuredworkloads_v1_Workload_ResourceSettings_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_assuredworkloads_v1_Workload_ResourceSettings_descriptor, - new java.lang.String[] { "ResourceId", "ResourceType", "DisplayName", }); - internal_static_google_cloud_assuredworkloads_v1_Workload_SaaEnrollmentResponse_descriptor = - internal_static_google_cloud_assuredworkloads_v1_Workload_descriptor.getNestedTypes().get(3); - internal_static_google_cloud_assuredworkloads_v1_Workload_SaaEnrollmentResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_assuredworkloads_v1_Workload_SaaEnrollmentResponse_descriptor, - new java.lang.String[] { "SetupStatus", "SetupErrors", "SetupStatus", }); - internal_static_google_cloud_assuredworkloads_v1_Workload_LabelsEntry_descriptor = - internal_static_google_cloud_assuredworkloads_v1_Workload_descriptor.getNestedTypes().get(4); - internal_static_google_cloud_assuredworkloads_v1_Workload_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_assuredworkloads_v1_Workload_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_assuredworkloads_v1_CreateWorkloadOperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_assuredworkloads_v1_CreateWorkloadOperationMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_assuredworkloads_v1_CreateWorkloadOperationMetadata_descriptor, - new java.lang.String[] { "CreateTime", "DisplayName", "Parent", "ComplianceRegime", }); - 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.resourceDefinition); - registry.add(com.google.api.ResourceProto.resourceReference); - registry.add(com.google.longrunning.OperationsProto.operationInfo); - 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.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1beta1/grpc-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AssuredWorkloadsServiceGrpc.java b/owl-bot-staging/v1beta1/grpc-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AssuredWorkloadsServiceGrpc.java deleted file mode 100644 index b804f532..00000000 --- a/owl-bot-staging/v1beta1/grpc-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AssuredWorkloadsServiceGrpc.java +++ /dev/null @@ -1,667 +0,0 @@ -package com.google.cloud.assuredworkloads.v1beta1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * Service to manage AssuredWorkloads.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class AssuredWorkloadsServiceGrpc { - - private AssuredWorkloadsServiceGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getCreateWorkloadMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateWorkload", - requestType = com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateWorkloadMethod() { - io.grpc.MethodDescriptor getCreateWorkloadMethod; - if ((getCreateWorkloadMethod = AssuredWorkloadsServiceGrpc.getCreateWorkloadMethod) == null) { - synchronized (AssuredWorkloadsServiceGrpc.class) { - if ((getCreateWorkloadMethod = AssuredWorkloadsServiceGrpc.getCreateWorkloadMethod) == null) { - AssuredWorkloadsServiceGrpc.getCreateWorkloadMethod = getCreateWorkloadMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateWorkload")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new AssuredWorkloadsServiceMethodDescriptorSupplier("CreateWorkload")) - .build(); - } - } - } - return getCreateWorkloadMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateWorkloadMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateWorkload", - requestType = com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest.class, - responseType = com.google.cloud.assuredworkloads.v1beta1.Workload.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateWorkloadMethod() { - io.grpc.MethodDescriptor getUpdateWorkloadMethod; - if ((getUpdateWorkloadMethod = AssuredWorkloadsServiceGrpc.getUpdateWorkloadMethod) == null) { - synchronized (AssuredWorkloadsServiceGrpc.class) { - if ((getUpdateWorkloadMethod = AssuredWorkloadsServiceGrpc.getUpdateWorkloadMethod) == null) { - AssuredWorkloadsServiceGrpc.getUpdateWorkloadMethod = getUpdateWorkloadMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateWorkload")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.assuredworkloads.v1beta1.Workload.getDefaultInstance())) - .setSchemaDescriptor(new AssuredWorkloadsServiceMethodDescriptorSupplier("UpdateWorkload")) - .build(); - } - } - } - return getUpdateWorkloadMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteWorkloadMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteWorkload", - requestType = com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteWorkloadMethod() { - io.grpc.MethodDescriptor getDeleteWorkloadMethod; - if ((getDeleteWorkloadMethod = AssuredWorkloadsServiceGrpc.getDeleteWorkloadMethod) == null) { - synchronized (AssuredWorkloadsServiceGrpc.class) { - if ((getDeleteWorkloadMethod = AssuredWorkloadsServiceGrpc.getDeleteWorkloadMethod) == null) { - AssuredWorkloadsServiceGrpc.getDeleteWorkloadMethod = getDeleteWorkloadMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteWorkload")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new AssuredWorkloadsServiceMethodDescriptorSupplier("DeleteWorkload")) - .build(); - } - } - } - return getDeleteWorkloadMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetWorkloadMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetWorkload", - requestType = com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest.class, - responseType = com.google.cloud.assuredworkloads.v1beta1.Workload.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetWorkloadMethod() { - io.grpc.MethodDescriptor getGetWorkloadMethod; - if ((getGetWorkloadMethod = AssuredWorkloadsServiceGrpc.getGetWorkloadMethod) == null) { - synchronized (AssuredWorkloadsServiceGrpc.class) { - if ((getGetWorkloadMethod = AssuredWorkloadsServiceGrpc.getGetWorkloadMethod) == null) { - AssuredWorkloadsServiceGrpc.getGetWorkloadMethod = getGetWorkloadMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetWorkload")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.assuredworkloads.v1beta1.Workload.getDefaultInstance())) - .setSchemaDescriptor(new AssuredWorkloadsServiceMethodDescriptorSupplier("GetWorkload")) - .build(); - } - } - } - return getGetWorkloadMethod; - } - - private static volatile io.grpc.MethodDescriptor getListWorkloadsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListWorkloads", - requestType = com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest.class, - responseType = com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListWorkloadsMethod() { - io.grpc.MethodDescriptor getListWorkloadsMethod; - if ((getListWorkloadsMethod = AssuredWorkloadsServiceGrpc.getListWorkloadsMethod) == null) { - synchronized (AssuredWorkloadsServiceGrpc.class) { - if ((getListWorkloadsMethod = AssuredWorkloadsServiceGrpc.getListWorkloadsMethod) == null) { - AssuredWorkloadsServiceGrpc.getListWorkloadsMethod = getListWorkloadsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListWorkloads")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse.getDefaultInstance())) - .setSchemaDescriptor(new AssuredWorkloadsServiceMethodDescriptorSupplier("ListWorkloads")) - .build(); - } - } - } - return getListWorkloadsMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static AssuredWorkloadsServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AssuredWorkloadsServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AssuredWorkloadsServiceStub(channel, callOptions); - } - }; - return AssuredWorkloadsServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static AssuredWorkloadsServiceBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AssuredWorkloadsServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AssuredWorkloadsServiceBlockingStub(channel, callOptions); - } - }; - return AssuredWorkloadsServiceBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static AssuredWorkloadsServiceFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AssuredWorkloadsServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AssuredWorkloadsServiceFutureStub(channel, callOptions); - } - }; - return AssuredWorkloadsServiceFutureStub.newStub(factory, channel); - } - - /** - *
-   * Service to manage AssuredWorkloads.
-   * 
- */ - public static abstract class AssuredWorkloadsServiceImplBase implements io.grpc.BindableService { - - /** - *
-     * Creates Assured Workload.
-     * 
- */ - public void createWorkload(com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateWorkloadMethod(), responseObserver); - } - - /** - *
-     * Updates an existing workload.
-     * Currently allows updating of workload display_name and labels.
-     * For force updates don't set etag field in the Workload.
-     * Only one update operation per workload can be in progress.
-     * 
- */ - public void updateWorkload(com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateWorkloadMethod(), responseObserver); - } - - /** - *
-     * Deletes the workload. Make sure that workload's direct children are already
-     * in a deleted state, otherwise the request will fail with a
-     * FAILED_PRECONDITION error.
-     * 
- */ - public void deleteWorkload(com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteWorkloadMethod(), responseObserver); - } - - /** - *
-     * Gets Assured Workload associated with a CRM Node
-     * 
- */ - public void getWorkload(com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetWorkloadMethod(), responseObserver); - } - - /** - *
-     * Lists Assured Workloads under a CRM Node.
-     * 
- */ - public void listWorkloads(com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListWorkloadsMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateWorkloadMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest, - com.google.longrunning.Operation>( - this, METHODID_CREATE_WORKLOAD))) - .addMethod( - getUpdateWorkloadMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest, - com.google.cloud.assuredworkloads.v1beta1.Workload>( - this, METHODID_UPDATE_WORKLOAD))) - .addMethod( - getDeleteWorkloadMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest, - com.google.protobuf.Empty>( - this, METHODID_DELETE_WORKLOAD))) - .addMethod( - getGetWorkloadMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest, - com.google.cloud.assuredworkloads.v1beta1.Workload>( - this, METHODID_GET_WORKLOAD))) - .addMethod( - getListWorkloadsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest, - com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse>( - this, METHODID_LIST_WORKLOADS))) - .build(); - } - } - - /** - *
-   * Service to manage AssuredWorkloads.
-   * 
- */ - public static final class AssuredWorkloadsServiceStub extends io.grpc.stub.AbstractAsyncStub { - private AssuredWorkloadsServiceStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AssuredWorkloadsServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AssuredWorkloadsServiceStub(channel, callOptions); - } - - /** - *
-     * Creates Assured Workload.
-     * 
- */ - public void createWorkload(com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateWorkloadMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates an existing workload.
-     * Currently allows updating of workload display_name and labels.
-     * For force updates don't set etag field in the Workload.
-     * Only one update operation per workload can be in progress.
-     * 
- */ - public void updateWorkload(com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateWorkloadMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes the workload. Make sure that workload's direct children are already
-     * in a deleted state, otherwise the request will fail with a
-     * FAILED_PRECONDITION error.
-     * 
- */ - public void deleteWorkload(com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteWorkloadMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets Assured Workload associated with a CRM Node
-     * 
- */ - public void getWorkload(com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetWorkloadMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists Assured Workloads under a CRM Node.
-     * 
- */ - public void listWorkloads(com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListWorkloadsMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * Service to manage AssuredWorkloads.
-   * 
- */ - public static final class AssuredWorkloadsServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private AssuredWorkloadsServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AssuredWorkloadsServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AssuredWorkloadsServiceBlockingStub(channel, callOptions); - } - - /** - *
-     * Creates Assured Workload.
-     * 
- */ - public com.google.longrunning.Operation createWorkload(com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateWorkloadMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates an existing workload.
-     * Currently allows updating of workload display_name and labels.
-     * For force updates don't set etag field in the Workload.
-     * Only one update operation per workload can be in progress.
-     * 
- */ - public com.google.cloud.assuredworkloads.v1beta1.Workload updateWorkload(com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateWorkloadMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes the workload. Make sure that workload's direct children are already
-     * in a deleted state, otherwise the request will fail with a
-     * FAILED_PRECONDITION error.
-     * 
- */ - public com.google.protobuf.Empty deleteWorkload(com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteWorkloadMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets Assured Workload associated with a CRM Node
-     * 
- */ - public com.google.cloud.assuredworkloads.v1beta1.Workload getWorkload(com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetWorkloadMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists Assured Workloads under a CRM Node.
-     * 
- */ - public com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse listWorkloads(com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListWorkloadsMethod(), getCallOptions(), request); - } - } - - /** - *
-   * Service to manage AssuredWorkloads.
-   * 
- */ - public static final class AssuredWorkloadsServiceFutureStub extends io.grpc.stub.AbstractFutureStub { - private AssuredWorkloadsServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AssuredWorkloadsServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AssuredWorkloadsServiceFutureStub(channel, callOptions); - } - - /** - *
-     * Creates Assured Workload.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createWorkload( - com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateWorkloadMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates an existing workload.
-     * Currently allows updating of workload display_name and labels.
-     * For force updates don't set etag field in the Workload.
-     * Only one update operation per workload can be in progress.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateWorkload( - com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateWorkloadMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes the workload. Make sure that workload's direct children are already
-     * in a deleted state, otherwise the request will fail with a
-     * FAILED_PRECONDITION error.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteWorkload( - com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteWorkloadMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets Assured Workload associated with a CRM Node
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getWorkload( - com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetWorkloadMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists Assured Workloads under a CRM Node.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listWorkloads( - com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListWorkloadsMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_WORKLOAD = 0; - private static final int METHODID_UPDATE_WORKLOAD = 1; - private static final int METHODID_DELETE_WORKLOAD = 2; - private static final int METHODID_GET_WORKLOAD = 3; - private static final int METHODID_LIST_WORKLOADS = 4; - - 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 AssuredWorkloadsServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(AssuredWorkloadsServiceImplBase 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_WORKLOAD: - serviceImpl.createWorkload((com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_WORKLOAD: - serviceImpl.updateWorkload((com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_WORKLOAD: - serviceImpl.deleteWorkload((com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_WORKLOAD: - serviceImpl.getWorkload((com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_WORKLOADS: - serviceImpl.listWorkloads((com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private static abstract class AssuredWorkloadsServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - AssuredWorkloadsServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("AssuredWorkloadsService"); - } - } - - private static final class AssuredWorkloadsServiceFileDescriptorSupplier - extends AssuredWorkloadsServiceBaseDescriptorSupplier { - AssuredWorkloadsServiceFileDescriptorSupplier() {} - } - - private static final class AssuredWorkloadsServiceMethodDescriptorSupplier - extends AssuredWorkloadsServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - AssuredWorkloadsServiceMethodDescriptorSupplier(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 (AssuredWorkloadsServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new AssuredWorkloadsServiceFileDescriptorSupplier()) - .addMethod(getCreateWorkloadMethod()) - .addMethod(getUpdateWorkloadMethod()) - .addMethod(getDeleteWorkloadMethod()) - .addMethod(getGetWorkloadMethod()) - .addMethod(getListWorkloadsMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AssuredworkloadsProto.java b/owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AssuredworkloadsProto.java deleted file mode 100644 index 932aa9ba..00000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AssuredworkloadsProto.java +++ /dev/null @@ -1,416 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto - -package com.google.cloud.assuredworkloads.v1beta1; - -public final class AssuredworkloadsProto { - private AssuredworkloadsProto() {} - 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_assuredworkloads_v1beta1_CreateWorkloadRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_assuredworkloads_v1beta1_CreateWorkloadRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_assuredworkloads_v1beta1_UpdateWorkloadRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_assuredworkloads_v1beta1_UpdateWorkloadRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_assuredworkloads_v1beta1_DeleteWorkloadRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_assuredworkloads_v1beta1_DeleteWorkloadRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_assuredworkloads_v1beta1_GetWorkloadRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_assuredworkloads_v1beta1_GetWorkloadRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_assuredworkloads_v1beta1_ListWorkloadsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_assuredworkloads_v1beta1_ListWorkloadsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_assuredworkloads_v1beta1_ListWorkloadsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_assuredworkloads_v1beta1_ListWorkloadsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_ResourceInfo_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_ResourceInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_KMSSettings_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_KMSSettings_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_IL4Settings_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_IL4Settings_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_CJISSettings_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_CJISSettings_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_FedrampHighSettings_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_FedrampHighSettings_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_FedrampModerateSettings_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_FedrampModerateSettings_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_ResourceSettings_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_ResourceSettings_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_SaaEnrollmentResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_SaaEnrollmentResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_assuredworkloads_v1beta1_CreateWorkloadOperationMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_assuredworkloads_v1beta1_CreateWorkloadOperationMetadata_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\n\004name\030\001 \001" + - "(\tB0\340A\002\372A*\n(assuredworkloads.googleapis." + - "com/Workload\022\021\n\004etag\030\002 \001(\tB\003\340A\001\"T\n\022GetWo" + - "rkloadRequest\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n(ass" + - "uredworkloads.googleapis.com/Workload\"\217\001" + - "\n\024ListWorkloadsRequest\022@\n\006parent\030\001 \001(\tB0" + - "\340A\002\372A*\022(assuredworkloads.googleapis.com/" + - "Workload\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_toke" + - "n\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\"t\n\025ListWorkloads" + - "Response\022B\n\tworkloads\030\001 \003(\0132/.google.clo" + - "ud.assuredworkloads.v1beta1.Workload\022\027\n\017" + - "next_page_token\030\002 \001(\t\"\213\033\n\010Workload\022\021\n\004na" + - "me\030\001 \001(\tB\003\340A\001\022\031\n\014display_name\030\002 \001(\tB\003\340A\002" + - "\022T\n\tresources\030\003 \003(\0132<.google.cloud.assur" + - "edworkloads.v1beta1.Workload.ResourceInf" + - "oB\003\340A\003\022c\n\021compliance_regime\030\004 \001(\0162@.goog" + - "le.cloud.assuredworkloads.v1beta1.Worklo" + - "ad.ComplianceRegimeB\006\340A\002\340A\005\0227\n\013create_ti" + - "me\030\005 \001(\0132\032.google.protobuf.TimestampB\006\340A" + - "\003\340A\005\022\034\n\017billing_account\030\006 \001(\tB\003\340A\004\022`\n\014il" + - "4_settings\030\007 \001(\0132;.google.cloud.assuredw" + - "orkloads.v1beta1.Workload.IL4SettingsB\013\030" + - "\001\340A\002\340A\004\340A\005H\000\022b\n\rcjis_settings\030\010 \001(\0132<.go" + - "ogle.cloud.assuredworkloads.v1beta1.Work" + - "load.CJISSettingsB\013\030\001\340A\002\340A\004\340A\005H\000\022q\n\025fedr" + - "amp_high_settings\030\013 \001(\0132C.google.cloud.a" + - "ssuredworkloads.v1beta1.Workload.Fedramp" + - "HighSettingsB\013\030\001\340A\002\340A\004\340A\005H\000\022y\n\031fedramp_m" + - "oderate_settings\030\014 \001(\0132G.google.cloud.as" + - "suredworkloads.v1beta1.Workload.FedrampM" + - "oderateSettingsB\013\030\001\340A\002\340A\004\340A\005H\000\022\021\n\004etag\030\t" + - " \001(\tB\003\340A\001\022P\n\006labels\030\n \003(\0132;.google.cloud" + - ".assuredworkloads.v1beta1.Workload.Label" + - "sEntryB\003\340A\001\022)\n\034provisioned_resources_par" + - "ent\030\r \001(\tB\003\340A\004\022V\n\014kms_settings\030\016 \001(\0132;.g" + - "oogle.cloud.assuredworkloads.v1beta1.Wor" + - "kload.KMSSettingsB\003\340A\004\022`\n\021resource_setti" + - "ngs\030\017 \003(\0132@.google.cloud.assuredworkload" + - "s.v1beta1.Workload.ResourceSettingsB\003\340A\004" + - "\022e\n\024kaj_enrollment_state\030\021 \001(\0162B.google." + - "cloud.assuredworkloads.v1beta1.Workload." + - "KajEnrollmentStateB\003\340A\003\022&\n\031enable_sovere" + - "ign_controls\030\022 \001(\010B\003\340A\001\022k\n\027saa_enrollmen" + - "t_response\030\024 \001(\0132E.google.cloud.assuredw" + - "orkloads.v1beta1.Workload.SaaEnrollmentR" + - "esponseB\003\340A\003\032\216\002\n\014ResourceInfo\022\023\n\013resourc" + - "e_id\030\001 \001(\003\022`\n\rresource_type\030\002 \001(\0162I.goog" + - "le.cloud.assuredworkloads.v1beta1.Worklo" + - "ad.ResourceInfo.ResourceType\"\206\001\n\014Resourc" + - "eType\022\035\n\031RESOURCE_TYPE_UNSPECIFIED\020\000\022\030\n\020" + - "CONSUMER_PROJECT\020\001\032\002\010\001\022\023\n\017CONSUMER_FOLDE" + - "R\020\004\022\033\n\027ENCRYPTION_KEYS_PROJECT\020\002\022\013\n\007KEYR" + - "ING\020\003\032\217\001\n\013KMSSettings\022A\n\022next_rotation_t" + - "ime\030\001 \001(\0132\032.google.protobuf.TimestampB\t\340" + - "A\002\340A\004\340A\005\022=\n\017rotation_period\030\002 \001(\0132\031.goog" + - "le.protobuf.DurationB\t\340A\002\340A\004\340A\005\032o\n\013IL4Se" + - "ttings\022\\\n\014kms_settings\030\001 \001(\0132;.google.cl" + - "oud.assuredworkloads.v1beta1.Workload.KM" + - "SSettingsB\t\340A\002\340A\004\340A\005:\002\030\001\032p\n\014CJISSettings" + - "\022\\\n\014kms_settings\030\001 \001(\0132;.google.cloud.as" + - "suredworkloads.v1beta1.Workload.KMSSetti" + - "ngsB\t\340A\002\340A\004\340A\005:\002\030\001\032w\n\023FedrampHighSetting" + - "s\022\\\n\014kms_settings\030\001 \001(\0132;.google.cloud.a" + - "ssuredworkloads.v1beta1.Workload.KMSSett" + - "ingsB\t\340A\002\340A\004\340A\005:\002\030\001\032{\n\027FedrampModerateSe" + - "ttings\022\\\n\014kms_settings\030\001 \001(\0132;.google.cl" + - "oud.assuredworkloads.v1beta1.Workload.KM" + - "SSettingsB\t\340A\002\340A\004\340A\005:\002\030\001\032\237\001\n\020ResourceSet" + - "tings\022\023\n\013resource_id\030\001 \001(\t\022`\n\rresource_t" + - "ype\030\002 \001(\0162I.google.cloud.assuredworkload" + - "s.v1beta1.Workload.ResourceInfo.Resource" + - "Type\022\024\n\014display_name\030\003 \001(\t\032\206\004\n\025SaaEnroll" + - "mentResponse\022k\n\014setup_status\030\001 \001(\0162P.goo" + - "gle.cloud.assuredworkloads.v1beta1.Workl" + - "oad.SaaEnrollmentResponse.SetupStateH\000\210\001" + - "\001\022f\n\014setup_errors\030\002 \003(\0162P.google.cloud.a" + - "ssuredworkloads.v1beta1.Workload.SaaEnro" + - "llmentResponse.SetupError\"R\n\nSetupState\022" + - "\033\n\027SETUP_STATE_UNSPECIFIED\020\000\022\022\n\016STATUS_P" + - "ENDING\020\001\022\023\n\017STATUS_COMPLETE\020\002\"\262\001\n\nSetupE" + - "rror\022\033\n\027SETUP_ERROR_UNSPECIFIED\020\000\022\034\n\030ERR" + - "OR_INVALID_BASE_SETUP\020\001\022&\n\"ERROR_MISSING" + - "_EXTERNAL_SIGNING_KEY\020\002\022#\n\037ERROR_NOT_ALL" + - "_SERVICES_ENROLLED\020\003\022\034\n\030ERROR_SETUP_CHEC" + - "K_FAILED\020\004B\017\n\r_setup_status\032-\n\013LabelsEnt" + - "ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\330\001\n\020C" + - "omplianceRegime\022!\n\035COMPLIANCE_REGIME_UNS" + - "PECIFIED\020\000\022\007\n\003IL4\020\001\022\010\n\004CJIS\020\002\022\020\n\014FEDRAMP" + - "_HIGH\020\003\022\024\n\020FEDRAMP_MODERATE\020\004\022\026\n\022US_REGI" + - "ONAL_ACCESS\020\005\022\t\n\005HIPAA\020\006\022\013\n\007HITRUST\020\007\022\032\n" + - "\026EU_REGIONS_AND_SUPPORT\020\010\022\032\n\026CA_REGIONS_" + - "AND_SUPPORT\020\t\"\177\n\022KajEnrollmentState\022$\n K" + - "AJ_ENROLLMENT_STATE_UNSPECIFIED\020\000\022 \n\034KAJ" + - "_ENROLLMENT_STATE_PENDING\020\001\022!\n\035KAJ_ENROL" + - "LMENT_STATE_COMPLETE\020\002:u\352Ar\n(assuredwork" + - "loads.googleapis.com/Workload\022Forganizat" + - "ions/{organization}/locations/{location}" + - "/workloads/{workload}B\034\n\032compliance_regi" + - "me_settings\"\313\002\n\037CreateWorkloadOperationM" + - "etadata\0224\n\013create_time\030\001 \001(\0132\032.google.pr" + - "otobuf.TimestampB\003\340A\001\022\031\n\014display_name\030\002 " + - "\001(\tB\003\340A\001\022\023\n\006parent\030\003 \001(\tB\003\340A\001\022`\n\021complia" + - "nce_regime\030\004 \001(\0162@.google.cloud.assuredw" + - "orkloads.v1beta1.Workload.ComplianceRegi" + - "meB\003\340A\001\022`\n\021resource_settings\030\005 \003(\0132@.goo" + - "gle.cloud.assuredworkloads.v1beta1.Workl" + - "oad.ResourceSettingsB\003\340A\0012\243\t\n\027AssuredWor" + - "kloadsService\022\371\001\n\016CreateWorkload\022<.googl" + - "e.cloud.assuredworkloads.v1beta1.CreateW" + - "orkloadRequest\032\035.google.longrunning.Oper" + - "ation\"\211\001\202\323\344\223\002C\"7/v1beta1/{parent=organiz" + - "ations/*/locations/*}/workloads:\010workloa" + - "d\332A\017parent,workload\312A+\n\010Workload\022\037Create" + - "WorkloadOperationMetadata\022\352\001\n\016UpdateWork" + - "load\022<.google.cloud.assuredworkloads.v1b" + - "eta1.UpdateWorkloadRequest\032/.google.clou" + - "d.assuredworkloads.v1beta1.Workload\"i\202\323\344" + - "\223\002L2@/v1beta1/{workload.name=organizatio" + - "ns/*/locations/*/workloads/*}:\010workload\332" + - "A\024workload,update_mask\022\256\001\n\016DeleteWorkloa" + - "d\022<.google.cloud.assuredworkloads.v1beta" + - "1.DeleteWorkloadRequest\032\026.google.protobu" + - "f.Empty\"F\202\323\344\223\0029*7/v1beta1/{name=organiza" + - "tions/*/locations/*/workloads/*}\332A\004name\022" + - "\301\001\n\013GetWorkload\0229.google.cloud.assuredwo" + - "rkloads.v1beta1.GetWorkloadRequest\032/.goo" + - "gle.cloud.assuredworkloads.v1beta1.Workl" + - "oad\"F\202\323\344\223\0029\0227/v1beta1/{name=organization" + - "s/*/locations/*/workloads/*}\332A\004name\022\324\001\n\r" + - "ListWorkloads\022;.google.cloud.assuredwork" + - "loads.v1beta1.ListWorkloadsRequest\032<.goo" + - "gle.cloud.assuredworkloads.v1beta1.ListW" + - "orkloadsResponse\"H\202\323\344\223\0029\0227/v1beta1/{pare" + - "nt=organizations/*/locations/*}/workload" + - "s\332A\006parent\032S\312A\037assuredworkloads.googleap" + - "is.com\322A.https://www.googleapis.com/auth" + - "/cloud-platformB\366\002\n)com.google.cloud.ass" + - "uredworkloads.v1beta1B\025AssuredworkloadsP" + - "rotoP\001ZUgoogle.golang.org/genproto/googl" + - "eapis/cloud/assuredworkloads/v1beta1;ass" + - "uredworkloads\252\002%Google.Cloud.AssuredWork" + - "loads.V1Beta1\312\002%Google\\Cloud\\AssuredWork" + - "loads\\V1beta1\352\002(Google::Cloud::AssuredWo" + - "rkloads::V1beta1\352A]\n(assuredworkloads.go" + - "ogleapis.com/Location\0221organizations/{or" + - "ganization}/locations/{location}b\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.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_assuredworkloads_v1beta1_CreateWorkloadRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_assuredworkloads_v1beta1_CreateWorkloadRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_assuredworkloads_v1beta1_CreateWorkloadRequest_descriptor, - new java.lang.String[] { "Parent", "Workload", "ExternalId", }); - internal_static_google_cloud_assuredworkloads_v1beta1_UpdateWorkloadRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_assuredworkloads_v1beta1_UpdateWorkloadRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_assuredworkloads_v1beta1_UpdateWorkloadRequest_descriptor, - new java.lang.String[] { "Workload", "UpdateMask", }); - internal_static_google_cloud_assuredworkloads_v1beta1_DeleteWorkloadRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_assuredworkloads_v1beta1_DeleteWorkloadRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_assuredworkloads_v1beta1_DeleteWorkloadRequest_descriptor, - new java.lang.String[] { "Name", "Etag", }); - internal_static_google_cloud_assuredworkloads_v1beta1_GetWorkloadRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_assuredworkloads_v1beta1_GetWorkloadRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_assuredworkloads_v1beta1_GetWorkloadRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_assuredworkloads_v1beta1_ListWorkloadsRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_assuredworkloads_v1beta1_ListWorkloadsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_assuredworkloads_v1beta1_ListWorkloadsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", }); - internal_static_google_cloud_assuredworkloads_v1beta1_ListWorkloadsResponse_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_assuredworkloads_v1beta1_ListWorkloadsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_assuredworkloads_v1beta1_ListWorkloadsResponse_descriptor, - new java.lang.String[] { "Workloads", "NextPageToken", }); - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_descriptor, - new java.lang.String[] { "Name", "DisplayName", "Resources", "ComplianceRegime", "CreateTime", "BillingAccount", "Il4Settings", "CjisSettings", "FedrampHighSettings", "FedrampModerateSettings", "Etag", "Labels", "ProvisionedResourcesParent", "KmsSettings", "ResourceSettings", "KajEnrollmentState", "EnableSovereignControls", "SaaEnrollmentResponse", "ComplianceRegimeSettings", }); - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_ResourceInfo_descriptor = - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_ResourceInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_ResourceInfo_descriptor, - new java.lang.String[] { "ResourceId", "ResourceType", }); - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_KMSSettings_descriptor = - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_KMSSettings_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_KMSSettings_descriptor, - new java.lang.String[] { "NextRotationTime", "RotationPeriod", }); - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_IL4Settings_descriptor = - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_descriptor.getNestedTypes().get(2); - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_IL4Settings_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_IL4Settings_descriptor, - new java.lang.String[] { "KmsSettings", }); - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_CJISSettings_descriptor = - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_descriptor.getNestedTypes().get(3); - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_CJISSettings_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_CJISSettings_descriptor, - new java.lang.String[] { "KmsSettings", }); - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_FedrampHighSettings_descriptor = - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_descriptor.getNestedTypes().get(4); - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_FedrampHighSettings_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_FedrampHighSettings_descriptor, - new java.lang.String[] { "KmsSettings", }); - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_FedrampModerateSettings_descriptor = - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_descriptor.getNestedTypes().get(5); - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_FedrampModerateSettings_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_FedrampModerateSettings_descriptor, - new java.lang.String[] { "KmsSettings", }); - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_ResourceSettings_descriptor = - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_descriptor.getNestedTypes().get(6); - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_ResourceSettings_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_ResourceSettings_descriptor, - new java.lang.String[] { "ResourceId", "ResourceType", "DisplayName", }); - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_SaaEnrollmentResponse_descriptor = - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_descriptor.getNestedTypes().get(7); - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_SaaEnrollmentResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_SaaEnrollmentResponse_descriptor, - new java.lang.String[] { "SetupStatus", "SetupErrors", "SetupStatus", }); - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_LabelsEntry_descriptor = - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_descriptor.getNestedTypes().get(8); - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_assuredworkloads_v1beta1_Workload_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_assuredworkloads_v1beta1_CreateWorkloadOperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_assuredworkloads_v1beta1_CreateWorkloadOperationMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_assuredworkloads_v1beta1_CreateWorkloadOperationMetadata_descriptor, - new java.lang.String[] { "CreateTime", "DisplayName", "Parent", "ComplianceRegime", "ResourceSettings", }); - 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.resourceDefinition); - registry.add(com.google.api.ResourceProto.resourceReference); - registry.add(com.google.longrunning.OperationsProto.operationInfo); - 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.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/AssuredworkloadsProto.java b/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/AssuredworkloadsProto.java new file mode 100644 index 00000000..18fa2793 --- /dev/null +++ b/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/AssuredworkloadsProto.java @@ -0,0 +1,392 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/assuredworkloads/v1/assuredworkloads.proto + +package com.google.cloud.assuredworkloads.v1; + +public final class AssuredworkloadsProto { + private AssuredworkloadsProto() {} + + 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_assuredworkloads_v1_CreateWorkloadRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_assuredworkloads_v1_CreateWorkloadRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_assuredworkloads_v1_UpdateWorkloadRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_assuredworkloads_v1_UpdateWorkloadRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_assuredworkloads_v1_DeleteWorkloadRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_assuredworkloads_v1_DeleteWorkloadRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_assuredworkloads_v1_GetWorkloadRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_assuredworkloads_v1_GetWorkloadRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_assuredworkloads_v1_ListWorkloadsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_assuredworkloads_v1_ListWorkloadsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_assuredworkloads_v1_ListWorkloadsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_assuredworkloads_v1_ListWorkloadsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_assuredworkloads_v1_Workload_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_assuredworkloads_v1_Workload_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_assuredworkloads_v1_Workload_ResourceInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_assuredworkloads_v1_Workload_ResourceInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_assuredworkloads_v1_Workload_KMSSettings_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_assuredworkloads_v1_Workload_KMSSettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_assuredworkloads_v1_Workload_ResourceSettings_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_assuredworkloads_v1_Workload_ResourceSettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_assuredworkloads_v1_Workload_SaaEnrollmentResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_assuredworkloads_v1_Workload_SaaEnrollmentResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_assuredworkloads_v1_Workload_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_assuredworkloads_v1_Workload_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_assuredworkloads_v1_CreateWorkloadOperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_assuredworkloads_v1_CreateWorkloadOperationMetadata_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n7google/cloud/assuredworkloads/v1/assur" + + "edworkloads.proto\022 google.cloud.assuredw" + + "orkloads.v1\032\034google/api/annotations.prot" + + "o\032\027google/api/client.proto\032\037google/api/f" + + "ield_behavior.proto\032\031google/api/resource" + + ".proto\032#google/longrunning/operations.pr" + + "oto\032\036google/protobuf/duration.proto\032\033goo" + + "gle/protobuf/empty.proto\032 google/protobu" + + "f/field_mask.proto\032\037google/protobuf/time" + + "stamp.proto\"\266\001\n\025CreateWorkloadRequest\022@\n" + + "\006parent\030\001 \001(\tB0\340A\002\372A*\022(assuredworkloads." + + "googleapis.com/Workload\022A\n\010workload\030\002 \001(" + + "\0132*.google.cloud.assuredworkloads.v1.Wor" + + "kloadB\003\340A\002\022\030\n\013external_id\030\003 \001(\tB\003\340A\001\"\220\001\n" + + "\025UpdateWorkloadRequest\022A\n\010workload\030\001 \001(\013" + + "2*.google.cloud.assuredworkloads.v1.Work" + + "loadB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google." + + "protobuf.FieldMaskB\003\340A\002\"j\n\025DeleteWorkloa" + + "dRequest\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n(assuredw" + + "orkloads.googleapis.com/Workload\022\021\n\004etag" + + "\030\002 \001(\tB\003\340A\001\"T\n\022GetWorkloadRequest\022>\n\004nam" + + "e\030\001 \001(\tB0\340A\002\372A*\n(assuredworkloads.google" + + "apis.com/Workload\"\217\001\n\024ListWorkloadsReque" + + "st\022@\n\006parent\030\001 \001(\tB0\340A\002\372A*\022(assuredworkl" + + "oads.googleapis.com/Workload\022\021\n\tpage_siz" + + "e\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\004 " + + "\001(\t\"o\n\025ListWorkloadsResponse\022=\n\tworkload" + + "s\030\001 \003(\0132*.google.cloud.assuredworkloads." + + "v1.Workload\022\027\n\017next_page_token\030\002 \001(\t\"\222\023\n" + + "\010Workload\022\021\n\004name\030\001 \001(\tB\003\340A\001\022\031\n\014display_" + + "name\030\002 \001(\tB\003\340A\002\022O\n\tresources\030\003 \003(\01327.goo" + + "gle.cloud.assuredworkloads.v1.Workload.R" + + "esourceInfoB\003\340A\003\022^\n\021compliance_regime\030\004 " + + "\001(\0162;.google.cloud.assuredworkloads.v1.W" + + "orkload.ComplianceRegimeB\006\340A\002\340A\005\0227\n\013crea" + + "te_time\030\005 \001(\0132\032.google.protobuf.Timestam" + + "pB\006\340A\003\340A\005\022\037\n\017billing_account\030\006 \001(\tB\006\340A\002\340" + + "A\004\022\021\n\004etag\030\t \001(\tB\003\340A\001\022K\n\006labels\030\n \003(\01326." + + "google.cloud.assuredworkloads.v1.Workloa" + + "d.LabelsEntryB\003\340A\001\022)\n\034provisioned_resour" + + "ces_parent\030\r \001(\tB\003\340A\004\022Q\n\014kms_settings\030\016 " + + "\001(\01326.google.cloud.assuredworkloads.v1.W" + + "orkload.KMSSettingsB\003\340A\004\022[\n\021resource_set" + + "tings\030\017 \003(\0132;.google.cloud.assuredworklo" + + "ads.v1.Workload.ResourceSettingsB\003\340A\004\022`\n" + + "\024kaj_enrollment_state\030\021 \001(\0162=.google.clo" + + "ud.assuredworkloads.v1.Workload.KajEnrol" + + "lmentStateB\003\340A\003\022&\n\031enable_sovereign_cont" + + "rols\030\022 \001(\010B\003\340A\001\022f\n\027saa_enrollment_respon" + + "se\030\024 \001(\0132@.google.cloud.assuredworkloads" + + ".v1.Workload.SaaEnrollmentResponseB\003\340A\003\032" + + "\357\001\n\014ResourceInfo\022\023\n\013resource_id\030\001 \001(\003\022[\n" + + "\rresource_type\030\002 \001(\0162D.google.cloud.assu" + + "redworkloads.v1.Workload.ResourceInfo.Re" + + "sourceType\"m\n\014ResourceType\022\035\n\031RESOURCE_T" + + "YPE_UNSPECIFIED\020\000\022\024\n\020CONSUMER_PROJECT\020\001\022" + + "\033\n\027ENCRYPTION_KEYS_PROJECT\020\002\022\013\n\007KEYRING\020" + + "\003\032\217\001\n\013KMSSettings\022A\n\022next_rotation_time\030" + + "\001 \001(\0132\032.google.protobuf.TimestampB\t\340A\002\340A" + + "\004\340A\005\022=\n\017rotation_period\030\002 \001(\0132\031.google.p" + + "rotobuf.DurationB\t\340A\002\340A\004\340A\005\032\232\001\n\020Resource" + + "Settings\022\023\n\013resource_id\030\001 \001(\t\022[\n\rresourc" + + "e_type\030\002 \001(\0162D.google.cloud.assuredworkl" + + "oads.v1.Workload.ResourceInfo.ResourceTy" + + "pe\022\024\n\014display_name\030\003 \001(\t\032\374\003\n\025SaaEnrollme" + + "ntResponse\022f\n\014setup_status\030\001 \001(\0162K.googl" + + "e.cloud.assuredworkloads.v1.Workload.Saa" + + "EnrollmentResponse.SetupStateH\000\210\001\001\022a\n\014se" + + "tup_errors\030\002 \003(\0162K.google.cloud.assuredw" + + "orkloads.v1.Workload.SaaEnrollmentRespon" + + "se.SetupError\"R\n\nSetupState\022\033\n\027SETUP_STA" + + "TE_UNSPECIFIED\020\000\022\022\n\016STATUS_PENDING\020\001\022\023\n\017" + + "STATUS_COMPLETE\020\002\"\262\001\n\nSetupError\022\033\n\027SETU" + + "P_ERROR_UNSPECIFIED\020\000\022\034\n\030ERROR_INVALID_B" + + "ASE_SETUP\020\001\022&\n\"ERROR_MISSING_EXTERNAL_SI" + + "GNING_KEY\020\002\022#\n\037ERROR_NOT_ALL_SERVICES_EN" + + "ROLLED\020\003\022\034\n\030ERROR_SETUP_CHECK_FAILED\020\004B\017" + + "\n\r_setup_status\032-\n\013LabelsEntry\022\013\n\003key\030\001 " + + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\330\001\n\020ComplianceReg" + + "ime\022!\n\035COMPLIANCE_REGIME_UNSPECIFIED\020\000\022\007" + + "\n\003IL4\020\001\022\010\n\004CJIS\020\002\022\020\n\014FEDRAMP_HIGH\020\003\022\024\n\020F" + + "EDRAMP_MODERATE\020\004\022\026\n\022US_REGIONAL_ACCESS\020" + + "\005\022\t\n\005HIPAA\020\006\022\013\n\007HITRUST\020\007\022\032\n\026EU_REGIONS_" + + "AND_SUPPORT\020\010\022\032\n\026CA_REGIONS_AND_SUPPORT\020" + + "\t\"\177\n\022KajEnrollmentState\022$\n KAJ_ENROLLMEN" + + "T_STATE_UNSPECIFIED\020\000\022 \n\034KAJ_ENROLLMENT_" + + "STATE_PENDING\020\001\022!\n\035KAJ_ENROLLMENT_STATE_" + + "COMPLETE\020\002:u\352Ar\n(assuredworkloads.google" + + "apis.com/Workload\022Forganizations/{organi" + + "zation}/locations/{location}/workloads/{" + + "workload}\"\344\001\n\037CreateWorkloadOperationMet" + + "adata\0224\n\013create_time\030\001 \001(\0132\032.google.prot" + + "obuf.TimestampB\003\340A\001\022\031\n\014display_name\030\002 \001(" + + "\tB\003\340A\001\022\023\n\006parent\030\003 \001(\tB\003\340A\001\022[\n\021complianc" + + "e_regime\030\004 \001(\0162;.google.cloud.assuredwor" + + "kloads.v1.Workload.ComplianceRegimeB\003\340A\001" + + "2\342\010\n\027AssuredWorkloadsService\022\357\001\n\016CreateW" + + "orkload\0227.google.cloud.assuredworkloads." + + "v1.CreateWorkloadRequest\032\035.google.longru" + + "nning.Operation\"\204\001\202\323\344\223\002>\"2/v1/{parent=or" + + "ganizations/*/locations/*}/workloads:\010wo" + + "rkload\332A\017parent,workload\312A+\n\010Workload\022\037C" + + "reateWorkloadOperationMetadata\022\333\001\n\016Updat" + + "eWorkload\0227.google.cloud.assuredworkload" + + "s.v1.UpdateWorkloadRequest\032*.google.clou" + + "d.assuredworkloads.v1.Workload\"d\202\323\344\223\002G2;" + + "/v1/{workload.name=organizations/*/locat" + + "ions/*/workloads/*}:\010workload\332A\024workload" + + ",update_mask\022\244\001\n\016DeleteWorkload\0227.google" + + ".cloud.assuredworkloads.v1.DeleteWorkloa" + + "dRequest\032\026.google.protobuf.Empty\"A\202\323\344\223\0024" + + "*2/v1/{name=organizations/*/locations/*/" + + "workloads/*}\332A\004name\022\262\001\n\013GetWorkload\0224.go" + + "ogle.cloud.assuredworkloads.v1.GetWorklo" + + "adRequest\032*.google.cloud.assuredworkload" + + "s.v1.Workload\"A\202\323\344\223\0024\0222/v1/{name=organiz" + + "ations/*/locations/*/workloads/*}\332A\004name" + + "\022\305\001\n\rListWorkloads\0226.google.cloud.assure" + + "dworkloads.v1.ListWorkloadsRequest\0327.goo" + + "gle.cloud.assuredworkloads.v1.ListWorklo" + + "adsResponse\"C\202\323\344\223\0024\0222/v1/{parent=organiz" + + "ations/*/locations/*}/workloads\332A\006parent" + + "\032S\312A\037assuredworkloads.googleapis.com\322A.h" + + "ttps://www.googleapis.com/auth/cloud-pla" + + "tformB\335\002\n$com.google.cloud.assuredworklo" + + "ads.v1B\025AssuredworkloadsProtoP\001ZPgoogle." + + "golang.org/genproto/googleapis/cloud/ass" + + "uredworkloads/v1;assuredworkloads\252\002 Goog" + + "le.Cloud.AssuredWorkloads.V1\312\002 Google\\Cl" + + "oud\\AssuredWorkloads\\V1\352\002#Google::Cloud:" + + ":AssuredWorkloads::V1\352A]\n(assuredworkloa" + + "ds.googleapis.com/Location\0221organization" + + "s/{organization}/locations/{location}b\006p" + + "roto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_assuredworkloads_v1_CreateWorkloadRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_assuredworkloads_v1_CreateWorkloadRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_assuredworkloads_v1_CreateWorkloadRequest_descriptor, + new java.lang.String[] { + "Parent", "Workload", "ExternalId", + }); + internal_static_google_cloud_assuredworkloads_v1_UpdateWorkloadRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_assuredworkloads_v1_UpdateWorkloadRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_assuredworkloads_v1_UpdateWorkloadRequest_descriptor, + new java.lang.String[] { + "Workload", "UpdateMask", + }); + internal_static_google_cloud_assuredworkloads_v1_DeleteWorkloadRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_assuredworkloads_v1_DeleteWorkloadRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_assuredworkloads_v1_DeleteWorkloadRequest_descriptor, + new java.lang.String[] { + "Name", "Etag", + }); + internal_static_google_cloud_assuredworkloads_v1_GetWorkloadRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_assuredworkloads_v1_GetWorkloadRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_assuredworkloads_v1_GetWorkloadRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_assuredworkloads_v1_ListWorkloadsRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_assuredworkloads_v1_ListWorkloadsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_assuredworkloads_v1_ListWorkloadsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", + }); + internal_static_google_cloud_assuredworkloads_v1_ListWorkloadsResponse_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_assuredworkloads_v1_ListWorkloadsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_assuredworkloads_v1_ListWorkloadsResponse_descriptor, + new java.lang.String[] { + "Workloads", "NextPageToken", + }); + internal_static_google_cloud_assuredworkloads_v1_Workload_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_assuredworkloads_v1_Workload_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_assuredworkloads_v1_Workload_descriptor, + new java.lang.String[] { + "Name", + "DisplayName", + "Resources", + "ComplianceRegime", + "CreateTime", + "BillingAccount", + "Etag", + "Labels", + "ProvisionedResourcesParent", + "KmsSettings", + "ResourceSettings", + "KajEnrollmentState", + "EnableSovereignControls", + "SaaEnrollmentResponse", + }); + internal_static_google_cloud_assuredworkloads_v1_Workload_ResourceInfo_descriptor = + internal_static_google_cloud_assuredworkloads_v1_Workload_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_assuredworkloads_v1_Workload_ResourceInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_assuredworkloads_v1_Workload_ResourceInfo_descriptor, + new java.lang.String[] { + "ResourceId", "ResourceType", + }); + internal_static_google_cloud_assuredworkloads_v1_Workload_KMSSettings_descriptor = + internal_static_google_cloud_assuredworkloads_v1_Workload_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_assuredworkloads_v1_Workload_KMSSettings_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_assuredworkloads_v1_Workload_KMSSettings_descriptor, + new java.lang.String[] { + "NextRotationTime", "RotationPeriod", + }); + internal_static_google_cloud_assuredworkloads_v1_Workload_ResourceSettings_descriptor = + internal_static_google_cloud_assuredworkloads_v1_Workload_descriptor + .getNestedTypes() + .get(2); + internal_static_google_cloud_assuredworkloads_v1_Workload_ResourceSettings_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_assuredworkloads_v1_Workload_ResourceSettings_descriptor, + new java.lang.String[] { + "ResourceId", "ResourceType", "DisplayName", + }); + internal_static_google_cloud_assuredworkloads_v1_Workload_SaaEnrollmentResponse_descriptor = + internal_static_google_cloud_assuredworkloads_v1_Workload_descriptor + .getNestedTypes() + .get(3); + internal_static_google_cloud_assuredworkloads_v1_Workload_SaaEnrollmentResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_assuredworkloads_v1_Workload_SaaEnrollmentResponse_descriptor, + new java.lang.String[] { + "SetupStatus", "SetupErrors", "SetupStatus", + }); + internal_static_google_cloud_assuredworkloads_v1_Workload_LabelsEntry_descriptor = + internal_static_google_cloud_assuredworkloads_v1_Workload_descriptor + .getNestedTypes() + .get(4); + internal_static_google_cloud_assuredworkloads_v1_Workload_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_assuredworkloads_v1_Workload_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_assuredworkloads_v1_CreateWorkloadOperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_assuredworkloads_v1_CreateWorkloadOperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_assuredworkloads_v1_CreateWorkloadOperationMetadata_descriptor, + new java.lang.String[] { + "CreateTime", "DisplayName", "Parent", "ComplianceRegime", + }); + 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.resourceDefinition); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + 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.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/CreateWorkloadOperationMetadata.java b/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/CreateWorkloadOperationMetadata.java similarity index 65% rename from owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/CreateWorkloadOperationMetadata.java rename to proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/CreateWorkloadOperationMetadata.java index 83ebfb58..9b6508f6 100644 --- a/owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/CreateWorkloadOperationMetadata.java +++ b/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/CreateWorkloadOperationMetadata.java @@ -1,24 +1,43 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/assuredworkloads/v1/assuredworkloads.proto package com.google.cloud.assuredworkloads.v1; /** + * + * *
  * Operation metadata to give request details of CreateWorkload.
  * 
* * Protobuf type {@code google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata} */ -public final class CreateWorkloadOperationMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateWorkloadOperationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata) CreateWorkloadOperationMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateWorkloadOperationMetadata.newBuilder() to construct. - private CreateWorkloadOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private CreateWorkloadOperationMetadata( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateWorkloadOperationMetadata() { displayName_ = ""; parent_ = ""; @@ -27,16 +46,15 @@ private CreateWorkloadOperationMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateWorkloadOperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CreateWorkloadOperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,44 +73,49 @@ private CreateWorkloadOperationMetadata( case 0: done = true; break; - case 10: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); - } - createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); + } + createTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - displayName_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + displayName_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 32: { - int rawValue = input.readEnum(); + parent_ = s; + break; + } + case 32: + { + int rawValue = input.readEnum(); - complianceRegime_ = rawValue; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + complianceRegime_ = rawValue; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -100,34 +123,40 @@ private CreateWorkloadOperationMetadata( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_CreateWorkloadOperationMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1_CreateWorkloadOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_CreateWorkloadOperationMetadata_fieldAccessorTable + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1_CreateWorkloadOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata.class, com.google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata.Builder.class); + com.google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata.class, + com.google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata.Builder.class); } public static final int CREATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Optional. Time when the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -135,11 +164,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Optional. Time when the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The createTime. */ @java.lang.Override @@ -147,11 +180,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Optional. Time when the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -161,11 +197,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int DISPLAY_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object displayName_; /** + * + * *
    * Optional. The display name of the workload.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The displayName. */ @java.lang.Override @@ -174,29 +213,29 @@ public java.lang.String getDisplayName() { 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(); displayName_ = s; return s; } } /** + * + * *
    * Optional. The display name of the workload.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; 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); displayName_ = b; return b; } else { @@ -207,11 +246,14 @@ public java.lang.String getDisplayName() { public static final int PARENT_FIELD_NUMBER = 3; private volatile java.lang.Object parent_; /** + * + * *
    * Optional. The parent of the workload.
    * 
* * string parent = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The parent. */ @java.lang.Override @@ -220,29 +262,29 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Optional. The parent of the workload.
    * 
* * string parent = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -253,33 +295,49 @@ public java.lang.String getParent() { public static final int COMPLIANCE_REGIME_FIELD_NUMBER = 4; private int complianceRegime_; /** + * + * *
    * Optional. Compliance controls that should be applied to the resources
    * managed by the workload.
    * 
* - * .google.cloud.assuredworkloads.v1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.assuredworkloads.v1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for complianceRegime. */ - @java.lang.Override public int getComplianceRegimeValue() { + @java.lang.Override + public int getComplianceRegimeValue() { return complianceRegime_; } /** + * + * *
    * Optional. Compliance controls that should be applied to the resources
    * managed by the workload.
    * 
* - * .google.cloud.assuredworkloads.v1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.assuredworkloads.v1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The complianceRegime. */ - @java.lang.Override public com.google.cloud.assuredworkloads.v1.Workload.ComplianceRegime getComplianceRegime() { + @java.lang.Override + public com.google.cloud.assuredworkloads.v1.Workload.ComplianceRegime getComplianceRegime() { @SuppressWarnings("deprecation") - com.google.cloud.assuredworkloads.v1.Workload.ComplianceRegime result = com.google.cloud.assuredworkloads.v1.Workload.ComplianceRegime.valueOf(complianceRegime_); - return result == null ? com.google.cloud.assuredworkloads.v1.Workload.ComplianceRegime.UNRECOGNIZED : result; + com.google.cloud.assuredworkloads.v1.Workload.ComplianceRegime result = + com.google.cloud.assuredworkloads.v1.Workload.ComplianceRegime.valueOf(complianceRegime_); + return result == null + ? com.google.cloud.assuredworkloads.v1.Workload.ComplianceRegime.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -291,8 +349,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 (createTime_ != null) { output.writeMessage(1, getCreateTime()); } @@ -302,7 +359,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, parent_); } - if (complianceRegime_ != com.google.cloud.assuredworkloads.v1.Workload.ComplianceRegime.COMPLIANCE_REGIME_UNSPECIFIED.getNumber()) { + if (complianceRegime_ + != com.google.cloud.assuredworkloads.v1.Workload.ComplianceRegime + .COMPLIANCE_REGIME_UNSPECIFIED + .getNumber()) { output.writeEnum(4, complianceRegime_); } unknownFields.writeTo(output); @@ -315,8 +375,7 @@ public int getSerializedSize() { size = 0; if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); @@ -324,9 +383,11 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, parent_); } - if (complianceRegime_ != com.google.cloud.assuredworkloads.v1.Workload.ComplianceRegime.COMPLIANCE_REGIME_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, complianceRegime_); + if (complianceRegime_ + != com.google.cloud.assuredworkloads.v1.Workload.ComplianceRegime + .COMPLIANCE_REGIME_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, complianceRegime_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -336,22 +397,20 @@ 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.assuredworkloads.v1.CreateWorkloadOperationMetadata)) { return super.equals(obj); } - com.google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata other = (com.google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata) obj; + com.google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata other = + (com.google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata) obj; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } - if (!getDisplayName() - .equals(other.getDisplayName())) return false; - if (!getParent() - .equals(other.getParent())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getParent().equals(other.getParent())) return false; if (complianceRegime_ != other.complianceRegime_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -380,134 +439,145 @@ public int hashCode() { } public static com.google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata 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.assuredworkloads.v1.CreateWorkloadOperationMetadata 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.assuredworkloads.v1.CreateWorkloadOperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata 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.assuredworkloads.v1.CreateWorkloadOperationMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata 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.assuredworkloads.v1.CreateWorkloadOperationMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata 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.assuredworkloads.v1.CreateWorkloadOperationMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata parseDelimitedFrom( - java.io.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.assuredworkloads.v1.CreateWorkloadOperationMetadata + parseDelimitedFrom( + java.io.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.assuredworkloads.v1.CreateWorkloadOperationMetadata 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.assuredworkloads.v1.CreateWorkloadOperationMetadata 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.assuredworkloads.v1.CreateWorkloadOperationMetadata prototype) { + + public static Builder newBuilder( + com.google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata 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; } /** + * + * *
    * Operation metadata to give request details of CreateWorkload.
    * 
* * Protobuf type {@code google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata} */ - 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.assuredworkloads.v1.CreateWorkloadOperationMetadata) com.google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_CreateWorkloadOperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1_CreateWorkloadOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_CreateWorkloadOperationMetadata_fieldAccessorTable + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1_CreateWorkloadOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata.class, com.google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata.Builder.class); + com.google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata.class, + com.google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata.Builder.class); } - // Construct using com.google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata.newBuilder() + // Construct using + // com.google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -527,14 +597,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_CreateWorkloadOperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1_CreateWorkloadOperationMetadata_descriptor; } @java.lang.Override - public com.google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata getDefaultInstanceForType() { - return com.google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata.getDefaultInstance(); + public com.google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata + getDefaultInstanceForType() { + return com.google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata + .getDefaultInstance(); } @java.lang.Override @@ -548,7 +620,8 @@ public com.google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata buil @java.lang.Override public com.google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata buildPartial() { - com.google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata result = new com.google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata(this); + com.google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata result = + new com.google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata(this); if (createTimeBuilder_ == null) { result.createTime_ = createTime_; } else { @@ -565,46 +638,51 @@ public com.google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata buil 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.assuredworkloads.v1.CreateWorkloadOperationMetadata) { - return mergeFrom((com.google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata)other); + return mergeFrom( + (com.google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata other) { - if (other == com.google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata other) { + if (other + == com.google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata + .getDefaultInstance()) return this; if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } @@ -638,7 +716,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -650,39 +730,55 @@ public Builder mergeFrom( 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_; /** + * + * *
      * Optional. Time when the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** + * + * *
      * Optional. Time when the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @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(); } } /** + * + * *
      * Optional. Time when the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -698,14 +794,16 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Optional. Time when the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -716,17 +814,20 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Optional. Time when the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -738,11 +839,14 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Optional. Time when the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -756,48 +860,61 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Optional. Time when the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Time when the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ 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_; } } /** + * + * *
      * Optional. Time when the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ 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_; @@ -805,18 +922,20 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private java.lang.Object displayName_ = ""; /** + * + * *
      * Optional. The display name of the workload.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; 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(); displayName_ = s; return s; @@ -825,20 +944,21 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Optional. The display name of the workload.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; 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); displayName_ = b; return b; } else { @@ -846,54 +966,61 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Optional. The display name of the workload.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { + public Builder setDisplayName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The display name of the workload.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** + * + * *
      * Optional. The display name of the workload.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; @@ -901,18 +1028,20 @@ public Builder setDisplayNameBytes( private java.lang.Object parent_ = ""; /** + * + * *
      * Optional. The parent of the workload.
      * 
* * string parent = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; @@ -921,20 +1050,21 @@ public java.lang.String getParent() { } } /** + * + * *
      * Optional. The parent of the workload.
      * 
* * string parent = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -942,54 +1072,61 @@ public java.lang.String getParent() { } } /** + * + * *
      * Optional. The parent of the workload.
      * 
* * string parent = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The parent of the workload.
      * 
* * string parent = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Optional. The parent of the workload.
      * 
* * string parent = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -997,85 +1134,115 @@ public Builder setParentBytes( private int complianceRegime_ = 0; /** + * + * *
      * Optional. Compliance controls that should be applied to the resources
      * managed by the workload.
      * 
* - * .google.cloud.assuredworkloads.v1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.assuredworkloads.v1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for complianceRegime. */ - @java.lang.Override public int getComplianceRegimeValue() { + @java.lang.Override + public int getComplianceRegimeValue() { return complianceRegime_; } /** + * + * *
      * Optional. Compliance controls that should be applied to the resources
      * managed by the workload.
      * 
* - * .google.cloud.assuredworkloads.v1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.assuredworkloads.v1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The enum numeric value on the wire for complianceRegime to set. * @return This builder for chaining. */ public Builder setComplianceRegimeValue(int value) { - + complianceRegime_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Compliance controls that should be applied to the resources
      * managed by the workload.
      * 
* - * .google.cloud.assuredworkloads.v1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.assuredworkloads.v1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The complianceRegime. */ @java.lang.Override public com.google.cloud.assuredworkloads.v1.Workload.ComplianceRegime getComplianceRegime() { @SuppressWarnings("deprecation") - com.google.cloud.assuredworkloads.v1.Workload.ComplianceRegime result = com.google.cloud.assuredworkloads.v1.Workload.ComplianceRegime.valueOf(complianceRegime_); - return result == null ? com.google.cloud.assuredworkloads.v1.Workload.ComplianceRegime.UNRECOGNIZED : result; + com.google.cloud.assuredworkloads.v1.Workload.ComplianceRegime result = + com.google.cloud.assuredworkloads.v1.Workload.ComplianceRegime.valueOf(complianceRegime_); + return result == null + ? com.google.cloud.assuredworkloads.v1.Workload.ComplianceRegime.UNRECOGNIZED + : result; } /** + * + * *
      * Optional. Compliance controls that should be applied to the resources
      * managed by the workload.
      * 
* - * .google.cloud.assuredworkloads.v1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.assuredworkloads.v1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The complianceRegime to set. * @return This builder for chaining. */ - public Builder setComplianceRegime(com.google.cloud.assuredworkloads.v1.Workload.ComplianceRegime value) { + public Builder setComplianceRegime( + com.google.cloud.assuredworkloads.v1.Workload.ComplianceRegime value) { if (value == null) { throw new NullPointerException(); } - + complianceRegime_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Optional. Compliance controls that should be applied to the resources
      * managed by the workload.
      * 
* - * .google.cloud.assuredworkloads.v1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.assuredworkloads.v1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearComplianceRegime() { - + complianceRegime_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1085,30 +1252,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata) - private static final com.google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata DEFAULT_INSTANCE; + private static final com.google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata(); } - public static com.google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata getDefaultInstance() { + public static com.google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateWorkloadOperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateWorkloadOperationMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateWorkloadOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateWorkloadOperationMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1120,9 +1289,8 @@ public com.google.protobuf.Parser getParserForT } @java.lang.Override - public com.google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata getDefaultInstanceForType() { + public com.google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/CreateWorkloadOperationMetadataOrBuilder.java b/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/CreateWorkloadOperationMetadataOrBuilder.java similarity index 64% rename from owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/CreateWorkloadOperationMetadataOrBuilder.java rename to proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/CreateWorkloadOperationMetadataOrBuilder.java index cf7a9869..b73db6ff 100644 --- a/owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/CreateWorkloadOperationMetadataOrBuilder.java +++ b/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/CreateWorkloadOperationMetadataOrBuilder.java @@ -1,96 +1,143 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/assuredworkloads/v1/assuredworkloads.proto package com.google.cloud.assuredworkloads.v1; -public interface CreateWorkloadOperationMetadataOrBuilder extends +public interface CreateWorkloadOperationMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. Time when the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Optional. Time when the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Optional. Time when the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Optional. The display name of the workload.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * Optional. The display name of the workload.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * Optional. The parent of the workload.
    * 
* * string parent = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Optional. The parent of the workload.
    * 
* * string parent = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Optional. Compliance controls that should be applied to the resources
    * managed by the workload.
    * 
* - * .google.cloud.assuredworkloads.v1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.assuredworkloads.v1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for complianceRegime. */ int getComplianceRegimeValue(); /** + * + * *
    * Optional. Compliance controls that should be applied to the resources
    * managed by the workload.
    * 
* - * .google.cloud.assuredworkloads.v1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.assuredworkloads.v1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The complianceRegime. */ com.google.cloud.assuredworkloads.v1.Workload.ComplianceRegime getComplianceRegime(); diff --git a/owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/CreateWorkloadRequest.java b/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/CreateWorkloadRequest.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/CreateWorkloadRequest.java rename to proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/CreateWorkloadRequest.java index 34c8a3d8..52c29c86 100644 --- a/owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/CreateWorkloadRequest.java +++ b/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/CreateWorkloadRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/assuredworkloads/v1/assuredworkloads.proto package com.google.cloud.assuredworkloads.v1; /** + * + * *
  * Request for creating a workload.
  * 
* * Protobuf type {@code google.cloud.assuredworkloads.v1.CreateWorkloadRequest} */ -public final class CreateWorkloadRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateWorkloadRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.assuredworkloads.v1.CreateWorkloadRequest) CreateWorkloadRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateWorkloadRequest.newBuilder() to construct. private CreateWorkloadRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateWorkloadRequest() { parent_ = ""; externalId_ = ""; @@ -26,16 +44,15 @@ private CreateWorkloadRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateWorkloadRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CreateWorkloadRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,38 +71,43 @@ private CreateWorkloadRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: { - com.google.cloud.assuredworkloads.v1.Workload.Builder subBuilder = null; - if (workload_ != null) { - subBuilder = workload_.toBuilder(); - } - workload_ = input.readMessage(com.google.cloud.assuredworkloads.v1.Workload.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(workload_); - workload_ = subBuilder.buildPartial(); + parent_ = s; + break; } + case 18: + { + com.google.cloud.assuredworkloads.v1.Workload.Builder subBuilder = null; + if (workload_ != null) { + subBuilder = workload_.toBuilder(); + } + workload_ = + input.readMessage( + com.google.cloud.assuredworkloads.v1.Workload.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(workload_); + workload_ = subBuilder.buildPartial(); + } - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - externalId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + externalId_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -93,35 +115,42 @@ private CreateWorkloadRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_CreateWorkloadRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1_CreateWorkloadRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_CreateWorkloadRequest_fieldAccessorTable + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1_CreateWorkloadRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest.class, com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest.Builder.class); + com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest.class, + com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The resource name of the new Workload's parent.
    * Must be of the form `organizations/{org_id}/locations/{location_id}`.
    * 
* - * 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 @@ -130,30 +159,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 new Workload's parent.
    * Must be of the form `organizations/{org_id}/locations/{location_id}`.
    * 
* - * 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 { @@ -164,11 +195,16 @@ public java.lang.String getParent() { public static final int WORKLOAD_FIELD_NUMBER = 2; private com.google.cloud.assuredworkloads.v1.Workload workload_; /** + * + * *
    * Required. Assured Workload to create
    * 
* - * .google.cloud.assuredworkloads.v1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.assuredworkloads.v1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the workload field is set. */ @java.lang.Override @@ -176,23 +212,34 @@ public boolean hasWorkload() { return workload_ != null; } /** + * + * *
    * Required. Assured Workload to create
    * 
* - * .google.cloud.assuredworkloads.v1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.assuredworkloads.v1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The workload. */ @java.lang.Override public com.google.cloud.assuredworkloads.v1.Workload getWorkload() { - return workload_ == null ? com.google.cloud.assuredworkloads.v1.Workload.getDefaultInstance() : workload_; + return workload_ == null + ? com.google.cloud.assuredworkloads.v1.Workload.getDefaultInstance() + : workload_; } /** + * + * *
    * Required. Assured Workload to create
    * 
* - * .google.cloud.assuredworkloads.v1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.assuredworkloads.v1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.assuredworkloads.v1.WorkloadOrBuilder getWorkloadOrBuilder() { @@ -202,6 +249,8 @@ public com.google.cloud.assuredworkloads.v1.WorkloadOrBuilder getWorkloadOrBuild public static final int EXTERNAL_ID_FIELD_NUMBER = 3; private volatile java.lang.Object externalId_; /** + * + * *
    * Optional. A identifier associated with the workload and underlying projects
    * which allows for the break down of billing costs for a workload. The value
@@ -210,6 +259,7 @@ public com.google.cloud.assuredworkloads.v1.WorkloadOrBuilder getWorkloadOrBuild
    * 
* * string external_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The externalId. */ @java.lang.Override @@ -218,14 +268,15 @@ public java.lang.String getExternalId() { 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(); externalId_ = s; return s; } } /** + * + * *
    * Optional. A identifier associated with the workload and underlying projects
    * which allows for the break down of billing costs for a workload. The value
@@ -234,16 +285,15 @@ public java.lang.String getExternalId() {
    * 
* * string external_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for externalId. */ @java.lang.Override - public com.google.protobuf.ByteString - getExternalIdBytes() { + public com.google.protobuf.ByteString getExternalIdBytes() { java.lang.Object ref = externalId_; 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); externalId_ = b; return b; } else { @@ -252,6 +302,7 @@ public java.lang.String getExternalId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -263,8 +314,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_); } @@ -287,8 +337,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (workload_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getWorkload()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getWorkload()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(externalId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, externalId_); @@ -301,22 +350,20 @@ 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.assuredworkloads.v1.CreateWorkloadRequest)) { return super.equals(obj); } - com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest other = (com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest) obj; + com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest other = + (com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasWorkload() != other.hasWorkload()) return false; if (hasWorkload()) { - if (!getWorkload() - .equals(other.getWorkload())) return false; + if (!getWorkload().equals(other.getWorkload())) return false; } - if (!getExternalId() - .equals(other.getExternalId())) return false; + if (!getExternalId().equals(other.getExternalId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -342,117 +389,127 @@ public int hashCode() { } public static com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest 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.assuredworkloads.v1.CreateWorkloadRequest 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.assuredworkloads.v1.CreateWorkloadRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest 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.assuredworkloads.v1.CreateWorkloadRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest 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.assuredworkloads.v1.CreateWorkloadRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest 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.assuredworkloads.v1.CreateWorkloadRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest 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.assuredworkloads.v1.CreateWorkloadRequest 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.assuredworkloads.v1.CreateWorkloadRequest 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.assuredworkloads.v1.CreateWorkloadRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for creating a workload.
    * 
* * Protobuf type {@code google.cloud.assuredworkloads.v1.CreateWorkloadRequest} */ - 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.assuredworkloads.v1.CreateWorkloadRequest) com.google.cloud.assuredworkloads.v1.CreateWorkloadRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_CreateWorkloadRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1_CreateWorkloadRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_CreateWorkloadRequest_fieldAccessorTable + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1_CreateWorkloadRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest.class, com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest.Builder.class); + com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest.class, + com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest.Builder.class); } // Construct using com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest.newBuilder() @@ -460,16 +517,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -487,9 +543,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_CreateWorkloadRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1_CreateWorkloadRequest_descriptor; } @java.lang.Override @@ -508,7 +564,8 @@ public com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest build() { @java.lang.Override public com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest buildPartial() { - com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest result = new com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest(this); + com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest result = + new com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest(this); result.parent_ = parent_; if (workloadBuilder_ == null) { result.workload_ = workload_; @@ -524,38 +581,39 @@ public com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest) { - return mergeFrom((com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest)other); + return mergeFrom((com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest) other); } else { super.mergeFrom(other); return this; @@ -563,7 +621,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest other) { - if (other == com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -594,7 +653,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -606,19 +666,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The resource name of the new Workload's parent.
      * Must be of the form `organizations/{org_id}/locations/{location_id}`.
      * 
* - * 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; @@ -627,21 +691,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource name of the new Workload's parent.
      * Must be of the form `organizations/{org_id}/locations/{location_id}`.
      * 
* - * 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 { @@ -649,57 +716,70 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource name of the new Workload's parent.
      * Must be of the form `organizations/{org_id}/locations/{location_id}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name of the new Workload's parent.
      * Must be of the form `organizations/{org_id}/locations/{location_id}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The resource name of the new Workload's parent.
      * Must be of the form `organizations/{org_id}/locations/{location_id}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -707,39 +787,58 @@ public Builder setParentBytes( private com.google.cloud.assuredworkloads.v1.Workload workload_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.assuredworkloads.v1.Workload, com.google.cloud.assuredworkloads.v1.Workload.Builder, com.google.cloud.assuredworkloads.v1.WorkloadOrBuilder> workloadBuilder_; + com.google.cloud.assuredworkloads.v1.Workload, + com.google.cloud.assuredworkloads.v1.Workload.Builder, + com.google.cloud.assuredworkloads.v1.WorkloadOrBuilder> + workloadBuilder_; /** + * + * *
      * Required. Assured Workload to create
      * 
* - * .google.cloud.assuredworkloads.v1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.assuredworkloads.v1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the workload field is set. */ public boolean hasWorkload() { return workloadBuilder_ != null || workload_ != null; } /** + * + * *
      * Required. Assured Workload to create
      * 
* - * .google.cloud.assuredworkloads.v1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.assuredworkloads.v1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The workload. */ public com.google.cloud.assuredworkloads.v1.Workload getWorkload() { if (workloadBuilder_ == null) { - return workload_ == null ? com.google.cloud.assuredworkloads.v1.Workload.getDefaultInstance() : workload_; + return workload_ == null + ? com.google.cloud.assuredworkloads.v1.Workload.getDefaultInstance() + : workload_; } else { return workloadBuilder_.getMessage(); } } /** + * + * *
      * Required. Assured Workload to create
      * 
* - * .google.cloud.assuredworkloads.v1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.assuredworkloads.v1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setWorkload(com.google.cloud.assuredworkloads.v1.Workload value) { if (workloadBuilder_ == null) { @@ -755,11 +854,15 @@ public Builder setWorkload(com.google.cloud.assuredworkloads.v1.Workload value) return this; } /** + * + * *
      * Required. Assured Workload to create
      * 
* - * .google.cloud.assuredworkloads.v1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.assuredworkloads.v1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setWorkload( com.google.cloud.assuredworkloads.v1.Workload.Builder builderForValue) { @@ -773,17 +876,23 @@ public Builder setWorkload( return this; } /** + * + * *
      * Required. Assured Workload to create
      * 
* - * .google.cloud.assuredworkloads.v1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.assuredworkloads.v1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeWorkload(com.google.cloud.assuredworkloads.v1.Workload value) { if (workloadBuilder_ == null) { if (workload_ != null) { workload_ = - com.google.cloud.assuredworkloads.v1.Workload.newBuilder(workload_).mergeFrom(value).buildPartial(); + com.google.cloud.assuredworkloads.v1.Workload.newBuilder(workload_) + .mergeFrom(value) + .buildPartial(); } else { workload_ = value; } @@ -795,11 +904,15 @@ public Builder mergeWorkload(com.google.cloud.assuredworkloads.v1.Workload value return this; } /** + * + * *
      * Required. Assured Workload to create
      * 
* - * .google.cloud.assuredworkloads.v1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.assuredworkloads.v1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearWorkload() { if (workloadBuilder_ == null) { @@ -813,48 +926,64 @@ public Builder clearWorkload() { return this; } /** + * + * *
      * Required. Assured Workload to create
      * 
* - * .google.cloud.assuredworkloads.v1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.assuredworkloads.v1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.assuredworkloads.v1.Workload.Builder getWorkloadBuilder() { - + onChanged(); return getWorkloadFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Assured Workload to create
      * 
* - * .google.cloud.assuredworkloads.v1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.assuredworkloads.v1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.assuredworkloads.v1.WorkloadOrBuilder getWorkloadOrBuilder() { if (workloadBuilder_ != null) { return workloadBuilder_.getMessageOrBuilder(); } else { - return workload_ == null ? - com.google.cloud.assuredworkloads.v1.Workload.getDefaultInstance() : workload_; + return workload_ == null + ? com.google.cloud.assuredworkloads.v1.Workload.getDefaultInstance() + : workload_; } } /** + * + * *
      * Required. Assured Workload to create
      * 
* - * .google.cloud.assuredworkloads.v1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.assuredworkloads.v1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.assuredworkloads.v1.Workload, com.google.cloud.assuredworkloads.v1.Workload.Builder, com.google.cloud.assuredworkloads.v1.WorkloadOrBuilder> + com.google.cloud.assuredworkloads.v1.Workload, + com.google.cloud.assuredworkloads.v1.Workload.Builder, + com.google.cloud.assuredworkloads.v1.WorkloadOrBuilder> getWorkloadFieldBuilder() { if (workloadBuilder_ == null) { - workloadBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.assuredworkloads.v1.Workload, com.google.cloud.assuredworkloads.v1.Workload.Builder, com.google.cloud.assuredworkloads.v1.WorkloadOrBuilder>( - getWorkload(), - getParentForChildren(), - isClean()); + workloadBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.assuredworkloads.v1.Workload, + com.google.cloud.assuredworkloads.v1.Workload.Builder, + com.google.cloud.assuredworkloads.v1.WorkloadOrBuilder>( + getWorkload(), getParentForChildren(), isClean()); workload_ = null; } return workloadBuilder_; @@ -862,6 +991,8 @@ public com.google.cloud.assuredworkloads.v1.WorkloadOrBuilder getWorkloadOrBuild private java.lang.Object externalId_ = ""; /** + * + * *
      * Optional. A identifier associated with the workload and underlying projects
      * which allows for the break down of billing costs for a workload. The value
@@ -870,13 +1001,13 @@ public com.google.cloud.assuredworkloads.v1.WorkloadOrBuilder getWorkloadOrBuild
      * 
* * string external_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The externalId. */ public java.lang.String getExternalId() { java.lang.Object ref = externalId_; 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(); externalId_ = s; return s; @@ -885,6 +1016,8 @@ public java.lang.String getExternalId() { } } /** + * + * *
      * Optional. A identifier associated with the workload and underlying projects
      * which allows for the break down of billing costs for a workload. The value
@@ -893,15 +1026,14 @@ public java.lang.String getExternalId() {
      * 
* * string external_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for externalId. */ - public com.google.protobuf.ByteString - getExternalIdBytes() { + public com.google.protobuf.ByteString getExternalIdBytes() { java.lang.Object ref = externalId_; 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); externalId_ = b; return b; } else { @@ -909,6 +1041,8 @@ public java.lang.String getExternalId() { } } /** + * + * *
      * Optional. A identifier associated with the workload and underlying projects
      * which allows for the break down of billing costs for a workload. The value
@@ -917,20 +1051,22 @@ public java.lang.String getExternalId() {
      * 
* * string external_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The externalId to set. * @return This builder for chaining. */ - public Builder setExternalId( - java.lang.String value) { + public Builder setExternalId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + externalId_ = value; onChanged(); return this; } /** + * + * *
      * Optional. A identifier associated with the workload and underlying projects
      * which allows for the break down of billing costs for a workload. The value
@@ -939,15 +1075,18 @@ public Builder setExternalId(
      * 
* * string external_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearExternalId() { - + externalId_ = getDefaultInstance().getExternalId(); onChanged(); return this; } /** + * + * *
      * Optional. A identifier associated with the workload and underlying projects
      * which allows for the break down of billing costs for a workload. The value
@@ -956,23 +1095,23 @@ public Builder clearExternalId() {
      * 
* * string external_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for externalId to set. * @return This builder for chaining. */ - public Builder setExternalIdBytes( - com.google.protobuf.ByteString value) { + public Builder setExternalIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + externalId_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -982,12 +1121,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.assuredworkloads.v1.CreateWorkloadRequest) } // @@protoc_insertion_point(class_scope:google.cloud.assuredworkloads.v1.CreateWorkloadRequest) private static final com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest(); } @@ -996,16 +1135,16 @@ public static com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateWorkloadRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateWorkloadRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateWorkloadRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateWorkloadRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1020,6 +1159,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.assuredworkloads.v1.CreateWorkloadRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/CreateWorkloadRequestOrBuilder.java b/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/CreateWorkloadRequestOrBuilder.java similarity index 59% rename from owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/CreateWorkloadRequestOrBuilder.java rename to proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/CreateWorkloadRequestOrBuilder.java index 87fca8f9..bfad0707 100644 --- a/owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/CreateWorkloadRequestOrBuilder.java +++ b/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/CreateWorkloadRequestOrBuilder.java @@ -1,62 +1,103 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/assuredworkloads/v1/assuredworkloads.proto package com.google.cloud.assuredworkloads.v1; -public interface CreateWorkloadRequestOrBuilder extends +public interface CreateWorkloadRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.assuredworkloads.v1.CreateWorkloadRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource name of the new Workload's parent.
    * Must be of the form `organizations/{org_id}/locations/{location_id}`.
    * 
* - * 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 new Workload's parent.
    * Must be of the form `organizations/{org_id}/locations/{location_id}`.
    * 
* - * 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. Assured Workload to create
    * 
* - * .google.cloud.assuredworkloads.v1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.assuredworkloads.v1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the workload field is set. */ boolean hasWorkload(); /** + * + * *
    * Required. Assured Workload to create
    * 
* - * .google.cloud.assuredworkloads.v1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.assuredworkloads.v1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The workload. */ com.google.cloud.assuredworkloads.v1.Workload getWorkload(); /** + * + * *
    * Required. Assured Workload to create
    * 
* - * .google.cloud.assuredworkloads.v1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.assuredworkloads.v1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.assuredworkloads.v1.WorkloadOrBuilder getWorkloadOrBuilder(); /** + * + * *
    * Optional. A identifier associated with the workload and underlying projects
    * which allows for the break down of billing costs for a workload. The value
@@ -65,10 +106,13 @@ public interface CreateWorkloadRequestOrBuilder extends
    * 
* * string external_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The externalId. */ java.lang.String getExternalId(); /** + * + * *
    * Optional. A identifier associated with the workload and underlying projects
    * which allows for the break down of billing costs for a workload. The value
@@ -77,8 +121,8 @@ public interface CreateWorkloadRequestOrBuilder extends
    * 
* * string external_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for externalId. */ - com.google.protobuf.ByteString - getExternalIdBytes(); + com.google.protobuf.ByteString getExternalIdBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/DeleteWorkloadRequest.java b/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/DeleteWorkloadRequest.java similarity index 68% rename from owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/DeleteWorkloadRequest.java rename to proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/DeleteWorkloadRequest.java index eb5822a5..dbf35323 100644 --- a/owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/DeleteWorkloadRequest.java +++ b/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/DeleteWorkloadRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/assuredworkloads/v1/assuredworkloads.proto package com.google.cloud.assuredworkloads.v1; /** + * + * *
  * Request for deleting a Workload.
  * 
* * Protobuf type {@code google.cloud.assuredworkloads.v1.DeleteWorkloadRequest} */ -public final class DeleteWorkloadRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteWorkloadRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.assuredworkloads.v1.DeleteWorkloadRequest) DeleteWorkloadRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteWorkloadRequest.newBuilder() to construct. private DeleteWorkloadRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteWorkloadRequest() { name_ = ""; etag_ = ""; @@ -26,16 +44,15 @@ private DeleteWorkloadRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteWorkloadRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DeleteWorkloadRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,25 +71,27 @@ private DeleteWorkloadRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - etag_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + etag_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -80,36 +99,43 @@ private DeleteWorkloadRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_DeleteWorkloadRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1_DeleteWorkloadRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_DeleteWorkloadRequest_fieldAccessorTable + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1_DeleteWorkloadRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest.class, com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest.Builder.class); + com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest.class, + com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The `name` field is used to identify the workload.
    * Format:
    * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -118,31 +144,33 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The `name` field is used to identify the workload.
    * Format:
    * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -153,12 +181,15 @@ public java.lang.String getName() { public static final int ETAG_FIELD_NUMBER = 2; private volatile java.lang.Object etag_; /** + * + * *
    * Optional. The etag of the workload.
    * If this is provided, it must match the server's etag.
    * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The etag. */ @java.lang.Override @@ -167,30 +198,30 @@ public java.lang.String getEtag() { 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(); etag_ = s; return s; } } /** + * + * *
    * Optional. The etag of the workload.
    * If this is provided, it must match the server's etag.
    * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -199,6 +230,7 @@ public java.lang.String getEtag() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -210,8 +242,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_); } @@ -241,17 +272,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.assuredworkloads.v1.DeleteWorkloadRequest)) { return super.equals(obj); } - com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest other = (com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest) obj; + com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest other = + (com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getEtag() - .equals(other.getEtag())) return false; + if (!getName().equals(other.getName())) return false; + if (!getEtag().equals(other.getEtag())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -273,117 +303,127 @@ public int hashCode() { } public static com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest 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.assuredworkloads.v1.DeleteWorkloadRequest 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.assuredworkloads.v1.DeleteWorkloadRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest 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.assuredworkloads.v1.DeleteWorkloadRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest 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.assuredworkloads.v1.DeleteWorkloadRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest 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.assuredworkloads.v1.DeleteWorkloadRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest 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.assuredworkloads.v1.DeleteWorkloadRequest 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.assuredworkloads.v1.DeleteWorkloadRequest 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.assuredworkloads.v1.DeleteWorkloadRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for deleting a Workload.
    * 
* * Protobuf type {@code google.cloud.assuredworkloads.v1.DeleteWorkloadRequest} */ - 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.assuredworkloads.v1.DeleteWorkloadRequest) com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_DeleteWorkloadRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1_DeleteWorkloadRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_DeleteWorkloadRequest_fieldAccessorTable + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1_DeleteWorkloadRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest.class, com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest.Builder.class); + com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest.class, + com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest.Builder.class); } // Construct using com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest.newBuilder() @@ -391,16 +431,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -412,9 +451,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_DeleteWorkloadRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1_DeleteWorkloadRequest_descriptor; } @java.lang.Override @@ -433,7 +472,8 @@ public com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest build() { @java.lang.Override public com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest buildPartial() { - com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest result = new com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest(this); + com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest result = + new com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest(this); result.name_ = name_; result.etag_ = etag_; onBuilt(); @@ -444,38 +484,39 @@ public com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest) { - return mergeFrom((com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest)other); + return mergeFrom((com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest) other); } else { super.mergeFrom(other); return this; @@ -483,7 +524,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest other) { - if (other == com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -511,7 +553,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -523,20 +566,24 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The `name` field is used to identify the workload.
      * Format:
      * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -545,22 +592,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The `name` field is used to identify the workload.
      * Format:
      * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -568,60 +618,73 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The `name` field is used to identify the workload.
      * Format:
      * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The `name` field is used to identify the workload.
      * Format:
      * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The `name` field is used to identify the workload.
      * Format:
      * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -629,19 +692,21 @@ public Builder setNameBytes( private java.lang.Object etag_ = ""; /** + * + * *
      * Optional. The etag of the workload.
      * If this is provided, it must match the server's etag.
      * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; 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(); etag_ = s; return s; @@ -650,21 +715,22 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Optional. The etag of the workload.
      * If this is provided, it must match the server's etag.
      * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for etag. */ - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -672,64 +738,71 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Optional. The etag of the workload.
      * If this is provided, it must match the server's etag.
      * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag( - java.lang.String value) { + public Builder setEtag(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + etag_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The etag of the workload.
      * If this is provided, it must match the server's etag.
      * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearEtag() { - + etag_ = getDefaultInstance().getEtag(); onChanged(); return this; } /** + * + * *
      * Optional. The etag of the workload.
      * If this is provided, it must match the server's etag.
      * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes( - com.google.protobuf.ByteString value) { + public Builder setEtagBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -739,12 +812,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.assuredworkloads.v1.DeleteWorkloadRequest) } // @@protoc_insertion_point(class_scope:google.cloud.assuredworkloads.v1.DeleteWorkloadRequest) private static final com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest(); } @@ -753,16 +826,16 @@ public static com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteWorkloadRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteWorkloadRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteWorkloadRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteWorkloadRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -777,6 +850,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/DeleteWorkloadRequestOrBuilder.java b/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/DeleteWorkloadRequestOrBuilder.java similarity index 55% rename from owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/DeleteWorkloadRequestOrBuilder.java rename to proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/DeleteWorkloadRequestOrBuilder.java index 823f2937..71e8e9a3 100644 --- a/owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/DeleteWorkloadRequestOrBuilder.java +++ b/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/DeleteWorkloadRequestOrBuilder.java @@ -1,55 +1,85 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/assuredworkloads/v1/assuredworkloads.proto package com.google.cloud.assuredworkloads.v1; -public interface DeleteWorkloadRequestOrBuilder extends +public interface DeleteWorkloadRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.assuredworkloads.v1.DeleteWorkloadRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The `name` field is used to identify the workload.
    * Format:
    * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The `name` field is used to identify the workload.
    * Format:
    * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Optional. The etag of the workload.
    * If this is provided, it must match the server's etag.
    * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The etag. */ java.lang.String getEtag(); /** + * + * *
    * Optional. The etag of the workload.
    * If this is provided, it must match the server's etag.
    * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for etag. */ - com.google.protobuf.ByteString - getEtagBytes(); + com.google.protobuf.ByteString getEtagBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/GetWorkloadRequest.java b/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/GetWorkloadRequest.java similarity index 68% rename from owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/GetWorkloadRequest.java rename to proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/GetWorkloadRequest.java index 8edd9f87..5a7bd056 100644 --- a/owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/GetWorkloadRequest.java +++ b/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/GetWorkloadRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/assuredworkloads/v1/assuredworkloads.proto package com.google.cloud.assuredworkloads.v1; /** + * + * *
  * Request for fetching a workload.
  * 
* * Protobuf type {@code google.cloud.assuredworkloads.v1.GetWorkloadRequest} */ -public final class GetWorkloadRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetWorkloadRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.assuredworkloads.v1.GetWorkloadRequest) GetWorkloadRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetWorkloadRequest.newBuilder() to construct. private GetWorkloadRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetWorkloadRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetWorkloadRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetWorkloadRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GetWorkloadRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,29 +91,33 @@ private GetWorkloadRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_GetWorkloadRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1_GetWorkloadRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_GetWorkloadRequest_fieldAccessorTable + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1_GetWorkloadRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.assuredworkloads.v1.GetWorkloadRequest.class, com.google.cloud.assuredworkloads.v1.GetWorkloadRequest.Builder.class); + com.google.cloud.assuredworkloads.v1.GetWorkloadRequest.class, + com.google.cloud.assuredworkloads.v1.GetWorkloadRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The resource name of the Workload to fetch. This is the
    * workloads's relative path in the API, formatted as
@@ -104,7 +126,10 @@ private GetWorkloadRequest(
    * "organizations/123/locations/us-east1/workloads/assured-workload-1".
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -113,14 +138,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The resource name of the Workload to fetch. This is the
    * workloads's relative path in the API, formatted as
@@ -129,17 +155,18 @@ public java.lang.String getName() {
    * "organizations/123/locations/us-east1/workloads/assured-workload-1".
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -148,6 +175,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -159,8 +187,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_); } @@ -184,15 +211,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.assuredworkloads.v1.GetWorkloadRequest)) { return super.equals(obj); } - com.google.cloud.assuredworkloads.v1.GetWorkloadRequest other = (com.google.cloud.assuredworkloads.v1.GetWorkloadRequest) obj; + com.google.cloud.assuredworkloads.v1.GetWorkloadRequest other = + (com.google.cloud.assuredworkloads.v1.GetWorkloadRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -212,117 +239,127 @@ public int hashCode() { } public static com.google.cloud.assuredworkloads.v1.GetWorkloadRequest 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.assuredworkloads.v1.GetWorkloadRequest 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.assuredworkloads.v1.GetWorkloadRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.assuredworkloads.v1.GetWorkloadRequest 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.assuredworkloads.v1.GetWorkloadRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.assuredworkloads.v1.GetWorkloadRequest 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.assuredworkloads.v1.GetWorkloadRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.assuredworkloads.v1.GetWorkloadRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.assuredworkloads.v1.GetWorkloadRequest 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.assuredworkloads.v1.GetWorkloadRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.assuredworkloads.v1.GetWorkloadRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.assuredworkloads.v1.GetWorkloadRequest 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.assuredworkloads.v1.GetWorkloadRequest 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.assuredworkloads.v1.GetWorkloadRequest 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.assuredworkloads.v1.GetWorkloadRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.assuredworkloads.v1.GetWorkloadRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for fetching a workload.
    * 
* * Protobuf type {@code google.cloud.assuredworkloads.v1.GetWorkloadRequest} */ - 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.assuredworkloads.v1.GetWorkloadRequest) com.google.cloud.assuredworkloads.v1.GetWorkloadRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_GetWorkloadRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1_GetWorkloadRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_GetWorkloadRequest_fieldAccessorTable + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1_GetWorkloadRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.assuredworkloads.v1.GetWorkloadRequest.class, com.google.cloud.assuredworkloads.v1.GetWorkloadRequest.Builder.class); + com.google.cloud.assuredworkloads.v1.GetWorkloadRequest.class, + com.google.cloud.assuredworkloads.v1.GetWorkloadRequest.Builder.class); } // Construct using com.google.cloud.assuredworkloads.v1.GetWorkloadRequest.newBuilder() @@ -330,16 +367,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -349,9 +385,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_GetWorkloadRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1_GetWorkloadRequest_descriptor; } @java.lang.Override @@ -370,7 +406,8 @@ public com.google.cloud.assuredworkloads.v1.GetWorkloadRequest build() { @java.lang.Override public com.google.cloud.assuredworkloads.v1.GetWorkloadRequest buildPartial() { - com.google.cloud.assuredworkloads.v1.GetWorkloadRequest result = new com.google.cloud.assuredworkloads.v1.GetWorkloadRequest(this); + com.google.cloud.assuredworkloads.v1.GetWorkloadRequest result = + new com.google.cloud.assuredworkloads.v1.GetWorkloadRequest(this); result.name_ = name_; onBuilt(); return result; @@ -380,38 +417,39 @@ public com.google.cloud.assuredworkloads.v1.GetWorkloadRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.assuredworkloads.v1.GetWorkloadRequest) { - return mergeFrom((com.google.cloud.assuredworkloads.v1.GetWorkloadRequest)other); + return mergeFrom((com.google.cloud.assuredworkloads.v1.GetWorkloadRequest) other); } else { super.mergeFrom(other); return this; @@ -419,7 +457,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.assuredworkloads.v1.GetWorkloadRequest other) { - if (other == com.google.cloud.assuredworkloads.v1.GetWorkloadRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.assuredworkloads.v1.GetWorkloadRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -443,7 +482,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.assuredworkloads.v1.GetWorkloadRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.assuredworkloads.v1.GetWorkloadRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -455,6 +495,8 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name of the Workload to fetch. This is the
      * workloads's relative path in the API, formatted as
@@ -463,14 +505,16 @@ public Builder mergeFrom(
      * "organizations/123/locations/us-east1/workloads/assured-workload-1".
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -479,6 +523,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the Workload to fetch. This is the
      * workloads's relative path in the API, formatted as
@@ -487,16 +533,17 @@ public java.lang.String getName() {
      * "organizations/123/locations/us-east1/workloads/assured-workload-1".
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -504,6 +551,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the Workload to fetch. This is the
      * workloads's relative path in the API, formatted as
@@ -512,21 +561,25 @@ public java.lang.String getName() {
      * "organizations/123/locations/us-east1/workloads/assured-workload-1".
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name of the Workload to fetch. This is the
      * workloads's relative path in the API, formatted as
@@ -535,16 +588,21 @@ public Builder setName(
      * "organizations/123/locations/us-east1/workloads/assured-workload-1".
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The resource name of the Workload to fetch. This is the
      * workloads's relative path in the API, formatted as
@@ -553,24 +611,26 @@ public Builder clearName() {
      * "organizations/123/locations/us-east1/workloads/assured-workload-1".
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -580,12 +640,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.assuredworkloads.v1.GetWorkloadRequest) } // @@protoc_insertion_point(class_scope:google.cloud.assuredworkloads.v1.GetWorkloadRequest) private static final com.google.cloud.assuredworkloads.v1.GetWorkloadRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.assuredworkloads.v1.GetWorkloadRequest(); } @@ -594,16 +654,16 @@ public static com.google.cloud.assuredworkloads.v1.GetWorkloadRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetWorkloadRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetWorkloadRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetWorkloadRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetWorkloadRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -618,6 +678,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.assuredworkloads.v1.GetWorkloadRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/GetWorkloadRequestOrBuilder.java b/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/GetWorkloadRequestOrBuilder.java similarity index 52% rename from owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/GetWorkloadRequestOrBuilder.java rename to proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/GetWorkloadRequestOrBuilder.java index 53013ce6..c0ce0880 100644 --- a/owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/GetWorkloadRequestOrBuilder.java +++ b/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/GetWorkloadRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/assuredworkloads/v1/assuredworkloads.proto package com.google.cloud.assuredworkloads.v1; -public interface GetWorkloadRequestOrBuilder extends +public interface GetWorkloadRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.assuredworkloads.v1.GetWorkloadRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource name of the Workload to fetch. This is the
    * workloads's relative path in the API, formatted as
@@ -16,11 +34,16 @@ public interface GetWorkloadRequestOrBuilder extends
    * "organizations/123/locations/us-east1/workloads/assured-workload-1".
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The resource name of the Workload to fetch. This is the
    * workloads's relative path in the API, formatted as
@@ -29,9 +52,11 @@ public interface GetWorkloadRequestOrBuilder extends
    * "organizations/123/locations/us-east1/workloads/assured-workload-1".
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/ListWorkloadsRequest.java b/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/ListWorkloadsRequest.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/ListWorkloadsRequest.java rename to proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/ListWorkloadsRequest.java index df2b806c..7fa3f28d 100644 --- a/owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/ListWorkloadsRequest.java +++ b/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/ListWorkloadsRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/assuredworkloads/v1/assuredworkloads.proto package com.google.cloud.assuredworkloads.v1; /** + * + * *
  * Request for fetching workloads in an organization.
  * 
* * Protobuf type {@code google.cloud.assuredworkloads.v1.ListWorkloadsRequest} */ -public final class ListWorkloadsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListWorkloadsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.assuredworkloads.v1.ListWorkloadsRequest) ListWorkloadsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListWorkloadsRequest.newBuilder() to construct. private ListWorkloadsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListWorkloadsRequest() { parent_ = ""; pageToken_ = ""; @@ -27,16 +45,15 @@ private ListWorkloadsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListWorkloadsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListWorkloadsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,36 +72,39 @@ private ListWorkloadsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 16: { - - pageSize_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + pageToken_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + filter_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -92,35 +112,42 @@ private ListWorkloadsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_ListWorkloadsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1_ListWorkloadsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_ListWorkloadsRequest_fieldAccessorTable + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1_ListWorkloadsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest.class, com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest.Builder.class); + com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest.class, + com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Parent Resource to list workloads from.
    * Must be of the form `organizations/{org_id}/locations/{location}`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -129,30 +156,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. Parent Resource to list workloads from.
    * Must be of the form `organizations/{org_id}/locations/{location}`.
    * 
* - * 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 { @@ -163,11 +192,14 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * Page size.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -178,6 +210,8 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * Page token returned from previous request. Page token contains context from
    * previous request. Page token needs to be passed in the second and following
@@ -185,6 +219,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -193,14 +228,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * Page token returned from previous request. Page token contains context from
    * previous request. Page token needs to be passed in the second and following
@@ -208,16 +244,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -228,12 +263,15 @@ public java.lang.String getPageToken() { public static final int FILTER_FIELD_NUMBER = 4; private volatile java.lang.Object filter_; /** + * + * *
    * A custom filter for filtering by properties of a workload. At this time,
    * only filtering by labels is supported.
    * 
* * string filter = 4; + * * @return The filter. */ @java.lang.Override @@ -242,30 +280,30 @@ public java.lang.String getFilter() { 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(); filter_ = s; return s; } } /** + * + * *
    * A custom filter for filtering by properties of a workload. At this time,
    * only filtering by labels is supported.
    * 
* * string filter = 4; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; 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); filter_ = b; return b; } else { @@ -274,6 +312,7 @@ public java.lang.String getFilter() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -285,8 +324,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_); } @@ -312,8 +350,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -329,21 +366,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.assuredworkloads.v1.ListWorkloadsRequest)) { return super.equals(obj); } - com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest other = (com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; + com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest other = + (com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -369,117 +403,127 @@ public int hashCode() { } public static com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest 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.assuredworkloads.v1.ListWorkloadsRequest 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.assuredworkloads.v1.ListWorkloadsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest 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.assuredworkloads.v1.ListWorkloadsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest 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.assuredworkloads.v1.ListWorkloadsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest 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.assuredworkloads.v1.ListWorkloadsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest 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.assuredworkloads.v1.ListWorkloadsRequest 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.assuredworkloads.v1.ListWorkloadsRequest 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.assuredworkloads.v1.ListWorkloadsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for fetching workloads in an organization.
    * 
* * Protobuf type {@code google.cloud.assuredworkloads.v1.ListWorkloadsRequest} */ - 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.assuredworkloads.v1.ListWorkloadsRequest) com.google.cloud.assuredworkloads.v1.ListWorkloadsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_ListWorkloadsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1_ListWorkloadsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_ListWorkloadsRequest_fieldAccessorTable + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1_ListWorkloadsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest.class, com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest.Builder.class); + com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest.class, + com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest.Builder.class); } // Construct using com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest.newBuilder() @@ -487,16 +531,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -512,9 +555,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_ListWorkloadsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1_ListWorkloadsRequest_descriptor; } @java.lang.Override @@ -533,7 +576,8 @@ public com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest build() { @java.lang.Override public com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest buildPartial() { - com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest result = new com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest(this); + com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest result = + new com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -546,38 +590,39 @@ public com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest) { - return mergeFrom((com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest)other); + return mergeFrom((com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest) other); } else { super.mergeFrom(other); return this; @@ -585,7 +630,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest other) { - if (other == com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -620,7 +666,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -632,19 +679,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Parent Resource to list workloads from.
      * Must be of the form `organizations/{org_id}/locations/{location}`.
      * 
* - * 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; @@ -653,21 +704,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent Resource to list workloads from.
      * Must be of the form `organizations/{org_id}/locations/{location}`.
      * 
* - * 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 { @@ -675,69 +729,85 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent Resource to list workloads from.
      * Must be of the form `organizations/{org_id}/locations/{location}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. Parent Resource to list workloads from.
      * Must be of the form `organizations/{org_id}/locations/{location}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. Parent Resource to list workloads from.
      * Must be of the form `organizations/{org_id}/locations/{location}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Page size.
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -745,30 +815,36 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Page size.
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * Page size.
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -776,6 +852,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Page token returned from previous request. Page token contains context from
      * previous request. Page token needs to be passed in the second and following
@@ -783,13 +861,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -798,6 +876,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Page token returned from previous request. Page token contains context from
      * previous request. Page token needs to be passed in the second and following
@@ -805,15 +885,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -821,6 +900,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Page token returned from previous request. Page token contains context from
      * previous request. Page token needs to be passed in the second and following
@@ -828,20 +909,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * Page token returned from previous request. Page token contains context from
      * previous request. Page token needs to be passed in the second and following
@@ -849,15 +932,18 @@ public Builder setPageToken(
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * Page token returned from previous request. Page token contains context from
      * previous request. Page token needs to be passed in the second and following
@@ -865,16 +951,16 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; @@ -882,19 +968,21 @@ public Builder setPageTokenBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * A custom filter for filtering by properties of a workload. At this time,
      * only filtering by labels is supported.
      * 
* * string filter = 4; + * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; 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(); filter_ = s; return s; @@ -903,21 +991,22 @@ public java.lang.String getFilter() { } } /** + * + * *
      * A custom filter for filtering by properties of a workload. At this time,
      * only filtering by labels is supported.
      * 
* * string filter = 4; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; 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); filter_ = b; return b; } else { @@ -925,64 +1014,71 @@ public java.lang.String getFilter() { } } /** + * + * *
      * A custom filter for filtering by properties of a workload. At this time,
      * only filtering by labels is supported.
      * 
* * string filter = 4; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { + public Builder setFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** + * + * *
      * A custom filter for filtering by properties of a workload. At this time,
      * only filtering by labels is supported.
      * 
* * string filter = 4; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
      * A custom filter for filtering by properties of a workload. At this time,
      * only filtering by labels is supported.
      * 
* * string filter = 4; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { + public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -992,12 +1088,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.assuredworkloads.v1.ListWorkloadsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.assuredworkloads.v1.ListWorkloadsRequest) private static final com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest(); } @@ -1006,16 +1102,16 @@ public static com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListWorkloadsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListWorkloadsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListWorkloadsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListWorkloadsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1030,6 +1126,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.assuredworkloads.v1.ListWorkloadsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/ListWorkloadsRequestOrBuilder.java b/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/ListWorkloadsRequestOrBuilder.java similarity index 62% rename from owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/ListWorkloadsRequestOrBuilder.java rename to proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/ListWorkloadsRequestOrBuilder.java index 71fd525b..cbad62a1 100644 --- a/owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/ListWorkloadsRequestOrBuilder.java +++ b/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/ListWorkloadsRequestOrBuilder.java @@ -1,45 +1,75 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/assuredworkloads/v1/assuredworkloads.proto package com.google.cloud.assuredworkloads.v1; -public interface ListWorkloadsRequestOrBuilder extends +public interface ListWorkloadsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.assuredworkloads.v1.ListWorkloadsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Parent Resource to list workloads from.
    * Must be of the form `organizations/{org_id}/locations/{location}`.
    * 
* - * 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. Parent Resource to list workloads from.
    * Must be of the form `organizations/{org_id}/locations/{location}`.
    * 
* - * 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(); /** + * + * *
    * Page size.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * Page token returned from previous request. Page token contains context from
    * previous request. Page token needs to be passed in the second and following
@@ -47,10 +77,13 @@ public interface ListWorkloadsRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * Page token returned from previous request. Page token contains context from
    * previous request. Page token needs to be passed in the second and following
@@ -58,30 +91,35 @@ public interface ListWorkloadsRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * A custom filter for filtering by properties of a workload. At this time,
    * only filtering by labels is supported.
    * 
* * string filter = 4; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * A custom filter for filtering by properties of a workload. At this time,
    * only filtering by labels is supported.
    * 
* * string filter = 4; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/ListWorkloadsResponse.java b/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/ListWorkloadsResponse.java similarity index 73% rename from owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/ListWorkloadsResponse.java rename to proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/ListWorkloadsResponse.java index d682202a..509615c2 100644 --- a/owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/ListWorkloadsResponse.java +++ b/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/ListWorkloadsResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/assuredworkloads/v1/assuredworkloads.proto package com.google.cloud.assuredworkloads.v1; /** + * + * *
  * Response of ListWorkloads endpoint.
  * 
* * Protobuf type {@code google.cloud.assuredworkloads.v1.ListWorkloadsResponse} */ -public final class ListWorkloadsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListWorkloadsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.assuredworkloads.v1.ListWorkloadsResponse) ListWorkloadsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListWorkloadsResponse.newBuilder() to construct. private ListWorkloadsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListWorkloadsResponse() { workloads_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,16 +44,15 @@ private ListWorkloadsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListWorkloadsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListWorkloadsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,28 +72,32 @@ private ListWorkloadsResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - workloads_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + workloads_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + workloads_.add( + input.readMessage( + com.google.cloud.assuredworkloads.v1.Workload.parser(), extensionRegistry)); + break; } - workloads_.add( - input.readMessage(com.google.cloud.assuredworkloads.v1.Workload.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,8 +105,7 @@ private ListWorkloadsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { workloads_ = java.util.Collections.unmodifiableList(workloads_); @@ -94,22 +114,27 @@ private ListWorkloadsResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_ListWorkloadsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1_ListWorkloadsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_ListWorkloadsResponse_fieldAccessorTable + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1_ListWorkloadsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.assuredworkloads.v1.ListWorkloadsResponse.class, com.google.cloud.assuredworkloads.v1.ListWorkloadsResponse.Builder.class); + com.google.cloud.assuredworkloads.v1.ListWorkloadsResponse.class, + com.google.cloud.assuredworkloads.v1.ListWorkloadsResponse.Builder.class); } public static final int WORKLOADS_FIELD_NUMBER = 1; private java.util.List workloads_; /** + * + * *
    * List of Workloads under a given parent.
    * 
@@ -121,6 +146,8 @@ public java.util.List getWorkload return workloads_; } /** + * + * *
    * List of Workloads under a given parent.
    * 
@@ -128,11 +155,13 @@ public java.util.List getWorkload * repeated .google.cloud.assuredworkloads.v1.Workload workloads = 1; */ @java.lang.Override - public java.util.List + public java.util.List getWorkloadsOrBuilderList() { return workloads_; } /** + * + * *
    * List of Workloads under a given parent.
    * 
@@ -144,6 +173,8 @@ public int getWorkloadsCount() { return workloads_.size(); } /** + * + * *
    * List of Workloads under a given parent.
    * 
@@ -155,6 +186,8 @@ public com.google.cloud.assuredworkloads.v1.Workload getWorkloads(int index) { return workloads_.get(index); } /** + * + * *
    * List of Workloads under a given parent.
    * 
@@ -162,19 +195,21 @@ public com.google.cloud.assuredworkloads.v1.Workload getWorkloads(int index) { * repeated .google.cloud.assuredworkloads.v1.Workload workloads = 1; */ @java.lang.Override - public com.google.cloud.assuredworkloads.v1.WorkloadOrBuilder getWorkloadsOrBuilder( - int index) { + public com.google.cloud.assuredworkloads.v1.WorkloadOrBuilder getWorkloadsOrBuilder(int index) { return workloads_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * The next page token. Return empty if reached the last page.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -183,29 +218,29 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * The next page token. Return empty if reached the last page.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -214,6 +249,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -225,8 +261,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 < workloads_.size(); i++) { output.writeMessage(1, workloads_.get(i)); } @@ -243,8 +278,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < workloads_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, workloads_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, workloads_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -257,17 +291,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.assuredworkloads.v1.ListWorkloadsResponse)) { return super.equals(obj); } - com.google.cloud.assuredworkloads.v1.ListWorkloadsResponse other = (com.google.cloud.assuredworkloads.v1.ListWorkloadsResponse) obj; + com.google.cloud.assuredworkloads.v1.ListWorkloadsResponse other = + (com.google.cloud.assuredworkloads.v1.ListWorkloadsResponse) obj; - if (!getWorkloadsList() - .equals(other.getWorkloadsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getWorkloadsList().equals(other.getWorkloadsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -291,117 +324,127 @@ public int hashCode() { } public static com.google.cloud.assuredworkloads.v1.ListWorkloadsResponse 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.assuredworkloads.v1.ListWorkloadsResponse 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.assuredworkloads.v1.ListWorkloadsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.assuredworkloads.v1.ListWorkloadsResponse 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.assuredworkloads.v1.ListWorkloadsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.assuredworkloads.v1.ListWorkloadsResponse 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.assuredworkloads.v1.ListWorkloadsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.assuredworkloads.v1.ListWorkloadsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.assuredworkloads.v1.ListWorkloadsResponse 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.assuredworkloads.v1.ListWorkloadsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.assuredworkloads.v1.ListWorkloadsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.assuredworkloads.v1.ListWorkloadsResponse 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.assuredworkloads.v1.ListWorkloadsResponse 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.assuredworkloads.v1.ListWorkloadsResponse 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.assuredworkloads.v1.ListWorkloadsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.assuredworkloads.v1.ListWorkloadsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response of ListWorkloads endpoint.
    * 
* * Protobuf type {@code google.cloud.assuredworkloads.v1.ListWorkloadsResponse} */ - 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.assuredworkloads.v1.ListWorkloadsResponse) com.google.cloud.assuredworkloads.v1.ListWorkloadsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_ListWorkloadsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1_ListWorkloadsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_ListWorkloadsResponse_fieldAccessorTable + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1_ListWorkloadsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.assuredworkloads.v1.ListWorkloadsResponse.class, com.google.cloud.assuredworkloads.v1.ListWorkloadsResponse.Builder.class); + com.google.cloud.assuredworkloads.v1.ListWorkloadsResponse.class, + com.google.cloud.assuredworkloads.v1.ListWorkloadsResponse.Builder.class); } // Construct using com.google.cloud.assuredworkloads.v1.ListWorkloadsResponse.newBuilder() @@ -409,17 +452,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getWorkloadsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -435,9 +478,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_ListWorkloadsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1_ListWorkloadsResponse_descriptor; } @java.lang.Override @@ -456,7 +499,8 @@ public com.google.cloud.assuredworkloads.v1.ListWorkloadsResponse build() { @java.lang.Override public com.google.cloud.assuredworkloads.v1.ListWorkloadsResponse buildPartial() { - com.google.cloud.assuredworkloads.v1.ListWorkloadsResponse result = new com.google.cloud.assuredworkloads.v1.ListWorkloadsResponse(this); + com.google.cloud.assuredworkloads.v1.ListWorkloadsResponse result = + new com.google.cloud.assuredworkloads.v1.ListWorkloadsResponse(this); int from_bitField0_ = bitField0_; if (workloadsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -476,38 +520,39 @@ public com.google.cloud.assuredworkloads.v1.ListWorkloadsResponse buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.assuredworkloads.v1.ListWorkloadsResponse) { - return mergeFrom((com.google.cloud.assuredworkloads.v1.ListWorkloadsResponse)other); + return mergeFrom((com.google.cloud.assuredworkloads.v1.ListWorkloadsResponse) other); } else { super.mergeFrom(other); return this; @@ -515,7 +560,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.assuredworkloads.v1.ListWorkloadsResponse other) { - if (other == com.google.cloud.assuredworkloads.v1.ListWorkloadsResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.assuredworkloads.v1.ListWorkloadsResponse.getDefaultInstance()) + return this; if (workloadsBuilder_ == null) { if (!other.workloads_.isEmpty()) { if (workloads_.isEmpty()) { @@ -534,9 +580,10 @@ public Builder mergeFrom(com.google.cloud.assuredworkloads.v1.ListWorkloadsRespo workloadsBuilder_ = null; workloads_ = other.workloads_; bitField0_ = (bitField0_ & ~0x00000001); - workloadsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getWorkloadsFieldBuilder() : null; + workloadsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getWorkloadsFieldBuilder() + : null; } else { workloadsBuilder_.addAllMessages(other.workloads_); } @@ -565,7 +612,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.assuredworkloads.v1.ListWorkloadsResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.assuredworkloads.v1.ListWorkloadsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -574,21 +622,29 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List workloads_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureWorkloadsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - workloads_ = new java.util.ArrayList(workloads_); + workloads_ = + new java.util.ArrayList(workloads_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.assuredworkloads.v1.Workload, com.google.cloud.assuredworkloads.v1.Workload.Builder, com.google.cloud.assuredworkloads.v1.WorkloadOrBuilder> workloadsBuilder_; + com.google.cloud.assuredworkloads.v1.Workload, + com.google.cloud.assuredworkloads.v1.Workload.Builder, + com.google.cloud.assuredworkloads.v1.WorkloadOrBuilder> + workloadsBuilder_; /** + * + * *
      * List of Workloads under a given parent.
      * 
@@ -603,6 +659,8 @@ public java.util.List getWorkload } } /** + * + * *
      * List of Workloads under a given parent.
      * 
@@ -617,6 +675,8 @@ public int getWorkloadsCount() { } } /** + * + * *
      * List of Workloads under a given parent.
      * 
@@ -631,14 +691,15 @@ public com.google.cloud.assuredworkloads.v1.Workload getWorkloads(int index) { } } /** + * + * *
      * List of Workloads under a given parent.
      * 
* * repeated .google.cloud.assuredworkloads.v1.Workload workloads = 1; */ - public Builder setWorkloads( - int index, com.google.cloud.assuredworkloads.v1.Workload value) { + public Builder setWorkloads(int index, com.google.cloud.assuredworkloads.v1.Workload value) { if (workloadsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -652,6 +713,8 @@ public Builder setWorkloads( return this; } /** + * + * *
      * List of Workloads under a given parent.
      * 
@@ -670,6 +733,8 @@ public Builder setWorkloads( return this; } /** + * + * *
      * List of Workloads under a given parent.
      * 
@@ -690,14 +755,15 @@ public Builder addWorkloads(com.google.cloud.assuredworkloads.v1.Workload value) return this; } /** + * + * *
      * List of Workloads under a given parent.
      * 
* * repeated .google.cloud.assuredworkloads.v1.Workload workloads = 1; */ - public Builder addWorkloads( - int index, com.google.cloud.assuredworkloads.v1.Workload value) { + public Builder addWorkloads(int index, com.google.cloud.assuredworkloads.v1.Workload value) { if (workloadsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -711,6 +777,8 @@ public Builder addWorkloads( return this; } /** + * + * *
      * List of Workloads under a given parent.
      * 
@@ -729,6 +797,8 @@ public Builder addWorkloads( return this; } /** + * + * *
      * List of Workloads under a given parent.
      * 
@@ -747,6 +817,8 @@ public Builder addWorkloads( return this; } /** + * + * *
      * List of Workloads under a given parent.
      * 
@@ -757,8 +829,7 @@ public Builder addAllWorkloads( java.lang.Iterable values) { if (workloadsBuilder_ == null) { ensureWorkloadsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, workloads_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, workloads_); onChanged(); } else { workloadsBuilder_.addAllMessages(values); @@ -766,6 +837,8 @@ public Builder addAllWorkloads( return this; } /** + * + * *
      * List of Workloads under a given parent.
      * 
@@ -783,6 +856,8 @@ public Builder clearWorkloads() { return this; } /** + * + * *
      * List of Workloads under a given parent.
      * 
@@ -800,39 +875,44 @@ public Builder removeWorkloads(int index) { return this; } /** + * + * *
      * List of Workloads under a given parent.
      * 
* * repeated .google.cloud.assuredworkloads.v1.Workload workloads = 1; */ - public com.google.cloud.assuredworkloads.v1.Workload.Builder getWorkloadsBuilder( - int index) { + public com.google.cloud.assuredworkloads.v1.Workload.Builder getWorkloadsBuilder(int index) { return getWorkloadsFieldBuilder().getBuilder(index); } /** + * + * *
      * List of Workloads under a given parent.
      * 
* * repeated .google.cloud.assuredworkloads.v1.Workload workloads = 1; */ - public com.google.cloud.assuredworkloads.v1.WorkloadOrBuilder getWorkloadsOrBuilder( - int index) { + public com.google.cloud.assuredworkloads.v1.WorkloadOrBuilder getWorkloadsOrBuilder(int index) { if (workloadsBuilder_ == null) { - return workloads_.get(index); } else { + return workloads_.get(index); + } else { return workloadsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * List of Workloads under a given parent.
      * 
* * repeated .google.cloud.assuredworkloads.v1.Workload workloads = 1; */ - public java.util.List - getWorkloadsOrBuilderList() { + public java.util.List + getWorkloadsOrBuilderList() { if (workloadsBuilder_ != null) { return workloadsBuilder_.getMessageOrBuilderList(); } else { @@ -840,6 +920,8 @@ public com.google.cloud.assuredworkloads.v1.WorkloadOrBuilder getWorkloadsOrBuil } } /** + * + * *
      * List of Workloads under a given parent.
      * 
@@ -847,42 +929,48 @@ public com.google.cloud.assuredworkloads.v1.WorkloadOrBuilder getWorkloadsOrBuil * repeated .google.cloud.assuredworkloads.v1.Workload workloads = 1; */ public com.google.cloud.assuredworkloads.v1.Workload.Builder addWorkloadsBuilder() { - return getWorkloadsFieldBuilder().addBuilder( - com.google.cloud.assuredworkloads.v1.Workload.getDefaultInstance()); + return getWorkloadsFieldBuilder() + .addBuilder(com.google.cloud.assuredworkloads.v1.Workload.getDefaultInstance()); } /** + * + * *
      * List of Workloads under a given parent.
      * 
* * repeated .google.cloud.assuredworkloads.v1.Workload workloads = 1; */ - public com.google.cloud.assuredworkloads.v1.Workload.Builder addWorkloadsBuilder( - int index) { - return getWorkloadsFieldBuilder().addBuilder( - index, com.google.cloud.assuredworkloads.v1.Workload.getDefaultInstance()); + public com.google.cloud.assuredworkloads.v1.Workload.Builder addWorkloadsBuilder(int index) { + return getWorkloadsFieldBuilder() + .addBuilder(index, com.google.cloud.assuredworkloads.v1.Workload.getDefaultInstance()); } /** + * + * *
      * List of Workloads under a given parent.
      * 
* * repeated .google.cloud.assuredworkloads.v1.Workload workloads = 1; */ - public java.util.List - getWorkloadsBuilderList() { + public java.util.List + getWorkloadsBuilderList() { return getWorkloadsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.assuredworkloads.v1.Workload, com.google.cloud.assuredworkloads.v1.Workload.Builder, com.google.cloud.assuredworkloads.v1.WorkloadOrBuilder> + com.google.cloud.assuredworkloads.v1.Workload, + com.google.cloud.assuredworkloads.v1.Workload.Builder, + com.google.cloud.assuredworkloads.v1.WorkloadOrBuilder> getWorkloadsFieldBuilder() { if (workloadsBuilder_ == null) { - workloadsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.assuredworkloads.v1.Workload, com.google.cloud.assuredworkloads.v1.Workload.Builder, com.google.cloud.assuredworkloads.v1.WorkloadOrBuilder>( - workloads_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + workloadsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.assuredworkloads.v1.Workload, + com.google.cloud.assuredworkloads.v1.Workload.Builder, + com.google.cloud.assuredworkloads.v1.WorkloadOrBuilder>( + workloads_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); workloads_ = null; } return workloadsBuilder_; @@ -890,18 +978,20 @@ public com.google.cloud.assuredworkloads.v1.Workload.Builder addWorkloadsBuilder private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * The next page token. Return empty if reached the last page.
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -910,20 +1000,21 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * The next page token. Return empty if reached the last page.
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -931,61 +1022,68 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * The next page token. Return empty if reached the last page.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * The next page token. Return empty if reached the last page.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * The next page token. Return empty if reached the last page.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -995,12 +1093,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.assuredworkloads.v1.ListWorkloadsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.assuredworkloads.v1.ListWorkloadsResponse) private static final com.google.cloud.assuredworkloads.v1.ListWorkloadsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.assuredworkloads.v1.ListWorkloadsResponse(); } @@ -1009,16 +1107,16 @@ public static com.google.cloud.assuredworkloads.v1.ListWorkloadsResponse getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListWorkloadsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListWorkloadsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListWorkloadsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListWorkloadsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1033,6 +1131,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.assuredworkloads.v1.ListWorkloadsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/ListWorkloadsResponseOrBuilder.java b/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/ListWorkloadsResponseOrBuilder.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/ListWorkloadsResponseOrBuilder.java rename to proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/ListWorkloadsResponseOrBuilder.java index 003f7e93..ddf9f8a1 100644 --- a/owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/ListWorkloadsResponseOrBuilder.java +++ b/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/ListWorkloadsResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/assuredworkloads/v1/assuredworkloads.proto package com.google.cloud.assuredworkloads.v1; -public interface ListWorkloadsResponseOrBuilder extends +public interface ListWorkloadsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.assuredworkloads.v1.ListWorkloadsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * List of Workloads under a given parent.
    * 
* * repeated .google.cloud.assuredworkloads.v1.Workload workloads = 1; */ - java.util.List - getWorkloadsList(); + java.util.List getWorkloadsList(); /** + * + * *
    * List of Workloads under a given parent.
    * 
@@ -25,6 +44,8 @@ public interface ListWorkloadsResponseOrBuilder extends */ com.google.cloud.assuredworkloads.v1.Workload getWorkloads(int index); /** + * + * *
    * List of Workloads under a given parent.
    * 
@@ -33,41 +54,49 @@ public interface ListWorkloadsResponseOrBuilder extends */ int getWorkloadsCount(); /** + * + * *
    * List of Workloads under a given parent.
    * 
* * repeated .google.cloud.assuredworkloads.v1.Workload workloads = 1; */ - java.util.List + java.util.List getWorkloadsOrBuilderList(); /** + * + * *
    * List of Workloads under a given parent.
    * 
* * repeated .google.cloud.assuredworkloads.v1.Workload workloads = 1; */ - com.google.cloud.assuredworkloads.v1.WorkloadOrBuilder getWorkloadsOrBuilder( - int index); + com.google.cloud.assuredworkloads.v1.WorkloadOrBuilder getWorkloadsOrBuilder(int index); /** + * + * *
    * The next page token. Return empty if reached the last page.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * The next page token. Return empty if reached the last page.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/LocationName.java b/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/LocationName.java similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/LocationName.java rename to proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/LocationName.java diff --git a/owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/UpdateWorkloadRequest.java b/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/UpdateWorkloadRequest.java similarity index 66% rename from owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/UpdateWorkloadRequest.java rename to proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/UpdateWorkloadRequest.java index 449bab09..ceb0fbfa 100644 --- a/owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/UpdateWorkloadRequest.java +++ b/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/UpdateWorkloadRequest.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/assuredworkloads/v1/assuredworkloads.proto package com.google.cloud.assuredworkloads.v1; /** + * + * *
  * Request for Updating a workload.
  * 
* * Protobuf type {@code google.cloud.assuredworkloads.v1.UpdateWorkloadRequest} */ -public final class UpdateWorkloadRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateWorkloadRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.assuredworkloads.v1.UpdateWorkloadRequest) UpdateWorkloadRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateWorkloadRequest.newBuilder() to construct. private UpdateWorkloadRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateWorkloadRequest() { - } + + private UpdateWorkloadRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateWorkloadRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UpdateWorkloadRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,39 +68,44 @@ private UpdateWorkloadRequest( case 0: done = true; break; - case 10: { - com.google.cloud.assuredworkloads.v1.Workload.Builder subBuilder = null; - if (workload_ != null) { - subBuilder = workload_.toBuilder(); - } - workload_ = input.readMessage(com.google.cloud.assuredworkloads.v1.Workload.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(workload_); - workload_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.cloud.assuredworkloads.v1.Workload.Builder subBuilder = null; + if (workload_ != null) { + subBuilder = workload_.toBuilder(); + } + workload_ = + input.readMessage( + com.google.cloud.assuredworkloads.v1.Workload.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(workload_); + workload_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); + break; } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -92,29 +113,33 @@ private UpdateWorkloadRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_UpdateWorkloadRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1_UpdateWorkloadRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_UpdateWorkloadRequest_fieldAccessorTable + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1_UpdateWorkloadRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest.class, com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest.Builder.class); + com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest.class, + com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest.Builder.class); } public static final int WORKLOAD_FIELD_NUMBER = 1; private com.google.cloud.assuredworkloads.v1.Workload workload_; /** + * + * *
    * Required. The workload to update.
    * The workload’s `name` field is used to identify the workload to be updated.
@@ -122,7 +147,10 @@ private UpdateWorkloadRequest(
    * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
    * 
* - * .google.cloud.assuredworkloads.v1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.assuredworkloads.v1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the workload field is set. */ @java.lang.Override @@ -130,6 +158,8 @@ public boolean hasWorkload() { return workload_ != null; } /** + * + * *
    * Required. The workload to update.
    * The workload’s `name` field is used to identify the workload to be updated.
@@ -137,14 +167,21 @@ public boolean hasWorkload() {
    * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
    * 
* - * .google.cloud.assuredworkloads.v1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.assuredworkloads.v1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The workload. */ @java.lang.Override public com.google.cloud.assuredworkloads.v1.Workload getWorkload() { - return workload_ == null ? com.google.cloud.assuredworkloads.v1.Workload.getDefaultInstance() : workload_; + return workload_ == null + ? com.google.cloud.assuredworkloads.v1.Workload.getDefaultInstance() + : workload_; } /** + * + * *
    * Required. The workload to update.
    * The workload’s `name` field is used to identify the workload to be updated.
@@ -152,7 +189,9 @@ public com.google.cloud.assuredworkloads.v1.Workload getWorkload() {
    * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
    * 
* - * .google.cloud.assuredworkloads.v1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.assuredworkloads.v1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.assuredworkloads.v1.WorkloadOrBuilder getWorkloadOrBuilder() { @@ -162,11 +201,15 @@ public com.google.cloud.assuredworkloads.v1.WorkloadOrBuilder getWorkloadOrBuild public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * Required. The list of fields to be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -174,11 +217,15 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * Required. The list of fields to be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ @java.lang.Override @@ -186,11 +233,14 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * Required. The list of fields to be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -198,6 +248,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -209,8 +260,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 (workload_ != null) { output.writeMessage(1, getWorkload()); } @@ -227,12 +277,10 @@ public int getSerializedSize() { size = 0; if (workload_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getWorkload()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getWorkload()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -242,22 +290,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.assuredworkloads.v1.UpdateWorkloadRequest)) { return super.equals(obj); } - com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest other = (com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest) obj; + com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest other = + (com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest) obj; if (hasWorkload() != other.hasWorkload()) return false; if (hasWorkload()) { - if (!getWorkload() - .equals(other.getWorkload())) return false; + if (!getWorkload().equals(other.getWorkload())) return false; } if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) return false; + if (!getUpdateMask().equals(other.getUpdateMask())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -284,117 +331,127 @@ public int hashCode() { } public static com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest 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.assuredworkloads.v1.UpdateWorkloadRequest 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.assuredworkloads.v1.UpdateWorkloadRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest 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.assuredworkloads.v1.UpdateWorkloadRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest 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.assuredworkloads.v1.UpdateWorkloadRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest 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.assuredworkloads.v1.UpdateWorkloadRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest 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.assuredworkloads.v1.UpdateWorkloadRequest 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.assuredworkloads.v1.UpdateWorkloadRequest 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.assuredworkloads.v1.UpdateWorkloadRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for Updating a workload.
    * 
* * Protobuf type {@code google.cloud.assuredworkloads.v1.UpdateWorkloadRequest} */ - 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.assuredworkloads.v1.UpdateWorkloadRequest) com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_UpdateWorkloadRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1_UpdateWorkloadRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_UpdateWorkloadRequest_fieldAccessorTable + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1_UpdateWorkloadRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest.class, com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest.Builder.class); + com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest.class, + com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest.Builder.class); } // Construct using com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest.newBuilder() @@ -402,16 +459,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -431,9 +487,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_UpdateWorkloadRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1_UpdateWorkloadRequest_descriptor; } @java.lang.Override @@ -452,7 +508,8 @@ public com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest build() { @java.lang.Override public com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest buildPartial() { - com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest result = new com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest(this); + com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest result = + new com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest(this); if (workloadBuilder_ == null) { result.workload_ = workload_; } else { @@ -471,38 +528,39 @@ public com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest) { - return mergeFrom((com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest)other); + return mergeFrom((com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest) other); } else { super.mergeFrom(other); return this; @@ -510,7 +568,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest other) { - if (other == com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest.getDefaultInstance()) + return this; if (other.hasWorkload()) { mergeWorkload(other.getWorkload()); } @@ -536,7 +595,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -548,8 +608,13 @@ public Builder mergeFrom( private com.google.cloud.assuredworkloads.v1.Workload workload_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.assuredworkloads.v1.Workload, com.google.cloud.assuredworkloads.v1.Workload.Builder, com.google.cloud.assuredworkloads.v1.WorkloadOrBuilder> workloadBuilder_; + com.google.cloud.assuredworkloads.v1.Workload, + com.google.cloud.assuredworkloads.v1.Workload.Builder, + com.google.cloud.assuredworkloads.v1.WorkloadOrBuilder> + workloadBuilder_; /** + * + * *
      * Required. The workload to update.
      * The workload’s `name` field is used to identify the workload to be updated.
@@ -557,13 +622,18 @@ public Builder mergeFrom(
      * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
      * 
* - * .google.cloud.assuredworkloads.v1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.assuredworkloads.v1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the workload field is set. */ public boolean hasWorkload() { return workloadBuilder_ != null || workload_ != null; } /** + * + * *
      * Required. The workload to update.
      * The workload’s `name` field is used to identify the workload to be updated.
@@ -571,17 +641,24 @@ public boolean hasWorkload() {
      * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
      * 
* - * .google.cloud.assuredworkloads.v1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.assuredworkloads.v1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The workload. */ public com.google.cloud.assuredworkloads.v1.Workload getWorkload() { if (workloadBuilder_ == null) { - return workload_ == null ? com.google.cloud.assuredworkloads.v1.Workload.getDefaultInstance() : workload_; + return workload_ == null + ? com.google.cloud.assuredworkloads.v1.Workload.getDefaultInstance() + : workload_; } else { return workloadBuilder_.getMessage(); } } /** + * + * *
      * Required. The workload to update.
      * The workload’s `name` field is used to identify the workload to be updated.
@@ -589,7 +666,9 @@ public com.google.cloud.assuredworkloads.v1.Workload getWorkload() {
      * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
      * 
* - * .google.cloud.assuredworkloads.v1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.assuredworkloads.v1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setWorkload(com.google.cloud.assuredworkloads.v1.Workload value) { if (workloadBuilder_ == null) { @@ -605,6 +684,8 @@ public Builder setWorkload(com.google.cloud.assuredworkloads.v1.Workload value) return this; } /** + * + * *
      * Required. The workload to update.
      * The workload’s `name` field is used to identify the workload to be updated.
@@ -612,7 +693,9 @@ public Builder setWorkload(com.google.cloud.assuredworkloads.v1.Workload value)
      * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
      * 
* - * .google.cloud.assuredworkloads.v1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.assuredworkloads.v1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setWorkload( com.google.cloud.assuredworkloads.v1.Workload.Builder builderForValue) { @@ -626,6 +709,8 @@ public Builder setWorkload( return this; } /** + * + * *
      * Required. The workload to update.
      * The workload’s `name` field is used to identify the workload to be updated.
@@ -633,13 +718,17 @@ public Builder setWorkload(
      * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
      * 
* - * .google.cloud.assuredworkloads.v1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.assuredworkloads.v1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeWorkload(com.google.cloud.assuredworkloads.v1.Workload value) { if (workloadBuilder_ == null) { if (workload_ != null) { workload_ = - com.google.cloud.assuredworkloads.v1.Workload.newBuilder(workload_).mergeFrom(value).buildPartial(); + com.google.cloud.assuredworkloads.v1.Workload.newBuilder(workload_) + .mergeFrom(value) + .buildPartial(); } else { workload_ = value; } @@ -651,6 +740,8 @@ public Builder mergeWorkload(com.google.cloud.assuredworkloads.v1.Workload value return this; } /** + * + * *
      * Required. The workload to update.
      * The workload’s `name` field is used to identify the workload to be updated.
@@ -658,7 +749,9 @@ public Builder mergeWorkload(com.google.cloud.assuredworkloads.v1.Workload value
      * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
      * 
* - * .google.cloud.assuredworkloads.v1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.assuredworkloads.v1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearWorkload() { if (workloadBuilder_ == null) { @@ -672,6 +765,8 @@ public Builder clearWorkload() { return this; } /** + * + * *
      * Required. The workload to update.
      * The workload’s `name` field is used to identify the workload to be updated.
@@ -679,14 +774,18 @@ public Builder clearWorkload() {
      * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
      * 
* - * .google.cloud.assuredworkloads.v1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.assuredworkloads.v1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.assuredworkloads.v1.Workload.Builder getWorkloadBuilder() { - + onChanged(); return getWorkloadFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The workload to update.
      * The workload’s `name` field is used to identify the workload to be updated.
@@ -694,17 +793,22 @@ public com.google.cloud.assuredworkloads.v1.Workload.Builder getWorkloadBuilder(
      * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
      * 
* - * .google.cloud.assuredworkloads.v1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.assuredworkloads.v1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.assuredworkloads.v1.WorkloadOrBuilder getWorkloadOrBuilder() { if (workloadBuilder_ != null) { return workloadBuilder_.getMessageOrBuilder(); } else { - return workload_ == null ? - com.google.cloud.assuredworkloads.v1.Workload.getDefaultInstance() : workload_; + return workload_ == null + ? com.google.cloud.assuredworkloads.v1.Workload.getDefaultInstance() + : workload_; } } /** + * + * *
      * Required. The workload to update.
      * The workload’s `name` field is used to identify the workload to be updated.
@@ -712,17 +816,22 @@ public com.google.cloud.assuredworkloads.v1.WorkloadOrBuilder getWorkloadOrBuild
      * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
      * 
* - * .google.cloud.assuredworkloads.v1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.assuredworkloads.v1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.assuredworkloads.v1.Workload, com.google.cloud.assuredworkloads.v1.Workload.Builder, com.google.cloud.assuredworkloads.v1.WorkloadOrBuilder> + com.google.cloud.assuredworkloads.v1.Workload, + com.google.cloud.assuredworkloads.v1.Workload.Builder, + com.google.cloud.assuredworkloads.v1.WorkloadOrBuilder> getWorkloadFieldBuilder() { if (workloadBuilder_ == null) { - workloadBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.assuredworkloads.v1.Workload, com.google.cloud.assuredworkloads.v1.Workload.Builder, com.google.cloud.assuredworkloads.v1.WorkloadOrBuilder>( - getWorkload(), - getParentForChildren(), - isClean()); + workloadBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.assuredworkloads.v1.Workload, + com.google.cloud.assuredworkloads.v1.Workload.Builder, + com.google.cloud.assuredworkloads.v1.WorkloadOrBuilder>( + getWorkload(), getParentForChildren(), isClean()); workload_ = null; } return workloadBuilder_; @@ -730,39 +839,55 @@ public com.google.cloud.assuredworkloads.v1.WorkloadOrBuilder getWorkloadOrBuild private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; /** + * + * *
      * Required. The list of fields to be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** + * + * *
      * Required. The list of fields to be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** + * + * *
      * Required. The list of fields to be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -778,14 +903,16 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. The list of fields to be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); @@ -796,17 +923,20 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * Required. The list of fields to be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -818,11 +948,14 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. The list of fields to be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearUpdateMask() { if (updateMaskBuilder_ == null) { @@ -836,55 +969,68 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * Required. The list of fields to be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The list of fields to be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } } /** + * + * *
      * Required. The list of fields to be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); updateMask_ = null; } return updateMaskBuilder_; } + @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); } @@ -894,12 +1040,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.assuredworkloads.v1.UpdateWorkloadRequest) } // @@protoc_insertion_point(class_scope:google.cloud.assuredworkloads.v1.UpdateWorkloadRequest) private static final com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest(); } @@ -908,16 +1054,16 @@ public static com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateWorkloadRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateWorkloadRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateWorkloadRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateWorkloadRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -932,6 +1078,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.assuredworkloads.v1.UpdateWorkloadRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/UpdateWorkloadRequestOrBuilder.java b/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/UpdateWorkloadRequestOrBuilder.java similarity index 61% rename from owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/UpdateWorkloadRequestOrBuilder.java rename to proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/UpdateWorkloadRequestOrBuilder.java index 2eb7a975..61ac3819 100644 --- a/owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/UpdateWorkloadRequestOrBuilder.java +++ b/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/UpdateWorkloadRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/assuredworkloads/v1/assuredworkloads.proto package com.google.cloud.assuredworkloads.v1; -public interface UpdateWorkloadRequestOrBuilder extends +public interface UpdateWorkloadRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.assuredworkloads.v1.UpdateWorkloadRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The workload to update.
    * The workload’s `name` field is used to identify the workload to be updated.
@@ -15,11 +33,16 @@ public interface UpdateWorkloadRequestOrBuilder extends
    * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
    * 
* - * .google.cloud.assuredworkloads.v1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.assuredworkloads.v1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the workload field is set. */ boolean hasWorkload(); /** + * + * *
    * Required. The workload to update.
    * The workload’s `name` field is used to identify the workload to be updated.
@@ -27,11 +50,16 @@ public interface UpdateWorkloadRequestOrBuilder extends
    * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
    * 
* - * .google.cloud.assuredworkloads.v1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.assuredworkloads.v1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The workload. */ com.google.cloud.assuredworkloads.v1.Workload getWorkload(); /** + * + * *
    * Required. The workload to update.
    * The workload’s `name` field is used to identify the workload to be updated.
@@ -39,34 +67,47 @@ public interface UpdateWorkloadRequestOrBuilder extends
    * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
    * 
* - * .google.cloud.assuredworkloads.v1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.assuredworkloads.v1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.assuredworkloads.v1.WorkloadOrBuilder getWorkloadOrBuilder(); /** + * + * *
    * Required. The list of fields to be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * Required. The list of fields to be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * Required. The list of fields to be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/Workload.java b/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/Workload.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/Workload.java rename to proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/Workload.java index 9c139c33..53bc6a1f 100644 --- a/owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/Workload.java +++ b/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/Workload.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/assuredworkloads/v1/assuredworkloads.proto package com.google.cloud.assuredworkloads.v1; /** + * + * *
  * An Workload object for managing highly regulated workloads of cloud
  * customers.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.assuredworkloads.v1.Workload}
  */
-public final class Workload extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Workload extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.assuredworkloads.v1.Workload)
     WorkloadOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Workload.newBuilder() to construct.
   private Workload(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private Workload() {
     name_ = "";
     displayName_ = "";
@@ -34,16 +52,15 @@ private Workload() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Workload();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private Workload(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -63,130 +80,158 @@ private Workload(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            name_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            displayName_ = s;
-            break;
-          }
-          case 26: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              resources_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+              name_ = s;
+              break;
             }
-            resources_.add(
-                input.readMessage(com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.parser(), extensionRegistry));
-            break;
-          }
-          case 32: {
-            int rawValue = input.readEnum();
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            complianceRegime_ = rawValue;
-            break;
-          }
-          case 42: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (createTime_ != null) {
-              subBuilder = createTime_.toBuilder();
+              displayName_ = s;
+              break;
             }
-            createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(createTime_);
-              createTime_ = subBuilder.buildPartial();
+          case 26:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                resources_ =
+                    new java.util.ArrayList<
+                        com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo>();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              resources_.add(
+                  input.readMessage(
+                      com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.parser(),
+                      extensionRegistry));
+              break;
             }
+          case 32:
+            {
+              int rawValue = input.readEnum();
 
-            break;
-          }
-          case 50: {
-            java.lang.String s = input.readStringRequireUtf8();
+              complianceRegime_ = rawValue;
+              break;
+            }
+          case 42:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (createTime_ != null) {
+                subBuilder = createTime_.toBuilder();
+              }
+              createTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(createTime_);
+                createTime_ = subBuilder.buildPartial();
+              }
 
-            billingAccount_ = s;
-            break;
-          }
-          case 74: {
-            java.lang.String s = input.readStringRequireUtf8();
+              break;
+            }
+          case 50:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            etag_ = s;
-            break;
-          }
-          case 82: {
-            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-              labels_ = com.google.protobuf.MapField.newMapField(
-                  LabelsDefaultEntryHolder.defaultEntry);
-              mutable_bitField0_ |= 0x00000002;
+              billingAccount_ = s;
+              break;
             }
-            com.google.protobuf.MapEntry
-            labels__ = input.readMessage(
-                LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-            labels_.getMutableMap().put(
-                labels__.getKey(), labels__.getValue());
-            break;
-          }
-          case 106: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 74:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            provisionedResourcesParent_ = s;
-            break;
-          }
-          case 114: {
-            com.google.cloud.assuredworkloads.v1.Workload.KMSSettings.Builder subBuilder = null;
-            if (kmsSettings_ != null) {
-              subBuilder = kmsSettings_.toBuilder();
+              etag_ = s;
+              break;
             }
-            kmsSettings_ = input.readMessage(com.google.cloud.assuredworkloads.v1.Workload.KMSSettings.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(kmsSettings_);
-              kmsSettings_ = subBuilder.buildPartial();
+          case 82:
+            {
+              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+                labels_ =
+                    com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
+                mutable_bitField0_ |= 0x00000002;
+              }
+              com.google.protobuf.MapEntry labels__ =
+                  input.readMessage(
+                      LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              labels_.getMutableMap().put(labels__.getKey(), labels__.getValue());
+              break;
             }
+          case 106:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            break;
-          }
-          case 122: {
-            if (!((mutable_bitField0_ & 0x00000004) != 0)) {
-              resourceSettings_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000004;
+              provisionedResourcesParent_ = s;
+              break;
             }
-            resourceSettings_.add(
-                input.readMessage(com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings.parser(), extensionRegistry));
-            break;
-          }
-          case 136: {
-            int rawValue = input.readEnum();
+          case 114:
+            {
+              com.google.cloud.assuredworkloads.v1.Workload.KMSSettings.Builder subBuilder = null;
+              if (kmsSettings_ != null) {
+                subBuilder = kmsSettings_.toBuilder();
+              }
+              kmsSettings_ =
+                  input.readMessage(
+                      com.google.cloud.assuredworkloads.v1.Workload.KMSSettings.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(kmsSettings_);
+                kmsSettings_ = subBuilder.buildPartial();
+              }
 
-            kajEnrollmentState_ = rawValue;
-            break;
-          }
-          case 144: {
+              break;
+            }
+          case 122:
+            {
+              if (!((mutable_bitField0_ & 0x00000004) != 0)) {
+                resourceSettings_ =
+                    new java.util.ArrayList<
+                        com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings>();
+                mutable_bitField0_ |= 0x00000004;
+              }
+              resourceSettings_.add(
+                  input.readMessage(
+                      com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings.parser(),
+                      extensionRegistry));
+              break;
+            }
+          case 136:
+            {
+              int rawValue = input.readEnum();
 
-            enableSovereignControls_ = input.readBool();
-            break;
-          }
-          case 162: {
-            com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.Builder subBuilder = null;
-            if (saaEnrollmentResponse_ != null) {
-              subBuilder = saaEnrollmentResponse_.toBuilder();
+              kajEnrollmentState_ = rawValue;
+              break;
             }
-            saaEnrollmentResponse_ = input.readMessage(com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(saaEnrollmentResponse_);
-              saaEnrollmentResponse_ = subBuilder.buildPartial();
+          case 144:
+            {
+              enableSovereignControls_ = input.readBool();
+              break;
             }
+          case 162:
+            {
+              com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.Builder
+                  subBuilder = null;
+              if (saaEnrollmentResponse_ != null) {
+                subBuilder = saaEnrollmentResponse_.toBuilder();
+              }
+              saaEnrollmentResponse_ =
+                  input.readMessage(
+                      com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(saaEnrollmentResponse_);
+                saaEnrollmentResponse_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -194,8 +239,7 @@ private Workload(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         resources_ = java.util.Collections.unmodifiableList(resources_);
@@ -207,41 +251,46 @@ private Workload(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_Workload_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto
+        .internal_static_google_cloud_assuredworkloads_v1_Workload_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 10:
         return internalGetLabels();
       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.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_Workload_fieldAccessorTable
+    return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto
+        .internal_static_google_cloud_assuredworkloads_v1_Workload_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.assuredworkloads.v1.Workload.class, com.google.cloud.assuredworkloads.v1.Workload.Builder.class);
+            com.google.cloud.assuredworkloads.v1.Workload.class,
+            com.google.cloud.assuredworkloads.v1.Workload.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * Supported Compliance Regimes.
    * 
* * Protobuf enum {@code google.cloud.assuredworkloads.v1.Workload.ComplianceRegime} */ - public enum ComplianceRegime - implements com.google.protobuf.ProtocolMessageEnum { + public enum ComplianceRegime implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Unknown compliance regime.
      * 
@@ -250,6 +299,8 @@ public enum ComplianceRegime */ COMPLIANCE_REGIME_UNSPECIFIED(0), /** + * + * *
      * Information protection as per DoD IL4 requirements.
      * 
@@ -258,6 +309,8 @@ public enum ComplianceRegime */ IL4(1), /** + * + * *
      * Criminal Justice Information Services (CJIS) Security policies.
      * 
@@ -266,6 +319,8 @@ public enum ComplianceRegime */ CJIS(2), /** + * + * *
      * FedRAMP High data protection controls
      * 
@@ -274,6 +329,8 @@ public enum ComplianceRegime */ FEDRAMP_HIGH(3), /** + * + * *
      * FedRAMP Moderate data protection controls
      * 
@@ -282,6 +339,8 @@ public enum ComplianceRegime */ FEDRAMP_MODERATE(4), /** + * + * *
      * Assured Workloads For US Regions data protection controls
      * 
@@ -290,6 +349,8 @@ public enum ComplianceRegime */ US_REGIONAL_ACCESS(5), /** + * + * *
      * Health Insurance Portability and Accountability Act controls
      * 
@@ -298,6 +359,8 @@ public enum ComplianceRegime */ HIPAA(6), /** + * + * *
      * Health Information Trust Alliance controls
      * 
@@ -306,6 +369,8 @@ public enum ComplianceRegime */ HITRUST(7), /** + * + * *
      * Assured Workloads For EU Regions and Support controls
      * 
@@ -314,6 +379,8 @@ public enum ComplianceRegime */ EU_REGIONS_AND_SUPPORT(8), /** + * + * *
      * Assured Workloads For Canada Regions and Support controls
      * 
@@ -325,6 +392,8 @@ public enum ComplianceRegime ; /** + * + * *
      * Unknown compliance regime.
      * 
@@ -333,6 +402,8 @@ public enum ComplianceRegime */ public static final int COMPLIANCE_REGIME_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Information protection as per DoD IL4 requirements.
      * 
@@ -341,6 +412,8 @@ public enum ComplianceRegime */ public static final int IL4_VALUE = 1; /** + * + * *
      * Criminal Justice Information Services (CJIS) Security policies.
      * 
@@ -349,6 +422,8 @@ public enum ComplianceRegime */ public static final int CJIS_VALUE = 2; /** + * + * *
      * FedRAMP High data protection controls
      * 
@@ -357,6 +432,8 @@ public enum ComplianceRegime */ public static final int FEDRAMP_HIGH_VALUE = 3; /** + * + * *
      * FedRAMP Moderate data protection controls
      * 
@@ -365,6 +442,8 @@ public enum ComplianceRegime */ public static final int FEDRAMP_MODERATE_VALUE = 4; /** + * + * *
      * Assured Workloads For US Regions data protection controls
      * 
@@ -373,6 +452,8 @@ public enum ComplianceRegime */ public static final int US_REGIONAL_ACCESS_VALUE = 5; /** + * + * *
      * Health Insurance Portability and Accountability Act controls
      * 
@@ -381,6 +462,8 @@ public enum ComplianceRegime */ public static final int HIPAA_VALUE = 6; /** + * + * *
      * Health Information Trust Alliance controls
      * 
@@ -389,6 +472,8 @@ public enum ComplianceRegime */ public static final int HITRUST_VALUE = 7; /** + * + * *
      * Assured Workloads For EU Regions and Support controls
      * 
@@ -397,6 +482,8 @@ public enum ComplianceRegime */ public static final int EU_REGIONS_AND_SUPPORT_VALUE = 8; /** + * + * *
      * Assured Workloads For Canada Regions and Support controls
      * 
@@ -405,7 +492,6 @@ public enum ComplianceRegime */ public static final int CA_REGIONS_AND_SUPPORT_VALUE = 9; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -430,46 +516,56 @@ public static ComplianceRegime valueOf(int value) { */ public static ComplianceRegime forNumber(int value) { switch (value) { - case 0: return COMPLIANCE_REGIME_UNSPECIFIED; - case 1: return IL4; - case 2: return CJIS; - case 3: return FEDRAMP_HIGH; - case 4: return FEDRAMP_MODERATE; - case 5: return US_REGIONAL_ACCESS; - case 6: return HIPAA; - case 7: return HITRUST; - case 8: return EU_REGIONS_AND_SUPPORT; - case 9: return CA_REGIONS_AND_SUPPORT; - default: return null; + case 0: + return COMPLIANCE_REGIME_UNSPECIFIED; + case 1: + return IL4; + case 2: + return CJIS; + case 3: + return FEDRAMP_HIGH; + case 4: + return FEDRAMP_MODERATE; + case 5: + return US_REGIONAL_ACCESS; + case 6: + return HIPAA; + case 7: + return HITRUST; + case 8: + return EU_REGIONS_AND_SUPPORT; + case 9: + return CA_REGIONS_AND_SUPPORT; + 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< - ComplianceRegime> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ComplianceRegime findValueByNumber(int number) { - return ComplianceRegime.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 ComplianceRegime findValueByNumber(int number) { + return ComplianceRegime.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() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.assuredworkloads.v1.Workload.getDescriptor().getEnumTypes().get(0); } @@ -478,8 +574,7 @@ public ComplianceRegime findValueByNumber(int number) { public static ComplianceRegime 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; @@ -497,15 +592,18 @@ private ComplianceRegime(int value) { } /** + * + * *
    * Key Access Justifications(KAJ) Enrollment State.
    * 
* * Protobuf enum {@code google.cloud.assuredworkloads.v1.Workload.KajEnrollmentState} */ - public enum KajEnrollmentState - implements com.google.protobuf.ProtocolMessageEnum { + public enum KajEnrollmentState implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Default State for KAJ Enrollment.
      * 
@@ -514,6 +612,8 @@ public enum KajEnrollmentState */ KAJ_ENROLLMENT_STATE_UNSPECIFIED(0), /** + * + * *
      * Pending State for KAJ Enrollment.
      * 
@@ -522,6 +622,8 @@ public enum KajEnrollmentState */ KAJ_ENROLLMENT_STATE_PENDING(1), /** + * + * *
      * Complete State for KAJ Enrollment.
      * 
@@ -533,6 +635,8 @@ public enum KajEnrollmentState ; /** + * + * *
      * Default State for KAJ Enrollment.
      * 
@@ -541,6 +645,8 @@ public enum KajEnrollmentState */ public static final int KAJ_ENROLLMENT_STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Pending State for KAJ Enrollment.
      * 
@@ -549,6 +655,8 @@ public enum KajEnrollmentState */ public static final int KAJ_ENROLLMENT_STATE_PENDING_VALUE = 1; /** + * + * *
      * Complete State for KAJ Enrollment.
      * 
@@ -557,7 +665,6 @@ public enum KajEnrollmentState */ public static final int KAJ_ENROLLMENT_STATE_COMPLETE_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -582,10 +689,14 @@ public static KajEnrollmentState valueOf(int value) { */ public static KajEnrollmentState forNumber(int value) { switch (value) { - case 0: return KAJ_ENROLLMENT_STATE_UNSPECIFIED; - case 1: return KAJ_ENROLLMENT_STATE_PENDING; - case 2: return KAJ_ENROLLMENT_STATE_COMPLETE; - default: return null; + case 0: + return KAJ_ENROLLMENT_STATE_UNSPECIFIED; + case 1: + return KAJ_ENROLLMENT_STATE_PENDING; + case 2: + return KAJ_ENROLLMENT_STATE_COMPLETE; + default: + return null; } } @@ -593,28 +704,28 @@ public static KajEnrollmentState forNumber(int value) { internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - KajEnrollmentState> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public KajEnrollmentState findValueByNumber(int number) { - return KajEnrollmentState.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 KajEnrollmentState findValueByNumber(int number) { + return KajEnrollmentState.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() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.assuredworkloads.v1.Workload.getDescriptor().getEnumTypes().get(1); } @@ -623,8 +734,7 @@ public KajEnrollmentState findValueByNumber(int number) { public static KajEnrollmentState 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; @@ -641,72 +751,86 @@ private KajEnrollmentState(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.assuredworkloads.v1.Workload.KajEnrollmentState) } - public interface ResourceInfoOrBuilder extends + public interface ResourceInfoOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.assuredworkloads.v1.Workload.ResourceInfo) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Resource identifier.
      * For a project this represents project_number.
      * 
* * int64 resource_id = 1; + * * @return The resourceId. */ long getResourceId(); /** + * + * *
      * Indicates the type of resource.
      * 
* - * .google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType resource_type = 2; + * .google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType resource_type = 2; + * + * * @return The enum numeric value on the wire for resourceType. */ int getResourceTypeValue(); /** + * + * *
      * Indicates the type of resource.
      * 
* - * .google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType resource_type = 2; + * .google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType resource_type = 2; + * + * * @return The resourceType. */ com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType getResourceType(); } /** + * + * *
    * Represent the resources that are children of this Workload.
    * 
* * Protobuf type {@code google.cloud.assuredworkloads.v1.Workload.ResourceInfo} */ - public static final class ResourceInfo extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class ResourceInfo extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.assuredworkloads.v1.Workload.ResourceInfo) ResourceInfoOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ResourceInfo.newBuilder() to construct. private ResourceInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ResourceInfo() { resourceType_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ResourceInfo(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ResourceInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -725,24 +849,25 @@ private ResourceInfo( case 0: done = true; break; - case 8: { - - resourceId_ = input.readInt64(); - break; - } - case 16: { - int rawValue = input.readEnum(); + case 8: + { + resourceId_ = input.readInt64(); + break; + } + case 16: + { + int rawValue = input.readEnum(); - resourceType_ = rawValue; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + resourceType_ = rawValue; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -750,36 +875,41 @@ private ResourceInfo( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_Workload_ResourceInfo_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1_Workload_ResourceInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_Workload_ResourceInfo_fieldAccessorTable + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1_Workload_ResourceInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.class, com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.Builder.class); + com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.class, + com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.Builder.class); } /** + * + * *
      * The type of resource.
      * 
* * Protobuf enum {@code google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType} */ - public enum ResourceType - implements com.google.protobuf.ProtocolMessageEnum { + public enum ResourceType implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
        * Unknown resource type.
        * 
@@ -788,6 +918,8 @@ public enum ResourceType */ RESOURCE_TYPE_UNSPECIFIED(0), /** + * + * *
        * Consumer project.
        * 
@@ -796,6 +928,8 @@ public enum ResourceType */ CONSUMER_PROJECT(1), /** + * + * *
        * Consumer project containing encryption keys.
        * 
@@ -804,6 +938,8 @@ public enum ResourceType */ ENCRYPTION_KEYS_PROJECT(2), /** + * + * *
        * Keyring resource that hosts encryption keys.
        * 
@@ -815,6 +951,8 @@ public enum ResourceType ; /** + * + * *
        * Unknown resource type.
        * 
@@ -823,6 +961,8 @@ public enum ResourceType */ public static final int RESOURCE_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
        * Consumer project.
        * 
@@ -831,6 +971,8 @@ public enum ResourceType */ public static final int CONSUMER_PROJECT_VALUE = 1; /** + * + * *
        * Consumer project containing encryption keys.
        * 
@@ -839,6 +981,8 @@ public enum ResourceType */ public static final int ENCRYPTION_KEYS_PROJECT_VALUE = 2; /** + * + * *
        * Keyring resource that hosts encryption keys.
        * 
@@ -847,7 +991,6 @@ public enum ResourceType */ public static final int KEYRING_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -872,50 +1015,53 @@ public static ResourceType valueOf(int value) { */ public static ResourceType forNumber(int value) { switch (value) { - case 0: return RESOURCE_TYPE_UNSPECIFIED; - case 1: return CONSUMER_PROJECT; - case 2: return ENCRYPTION_KEYS_PROJECT; - case 3: return KEYRING; - default: return null; + case 0: + return RESOURCE_TYPE_UNSPECIFIED; + case 1: + return CONSUMER_PROJECT; + case 2: + return ENCRYPTION_KEYS_PROJECT; + case 3: + return KEYRING; + 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< - ResourceType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ResourceType findValueByNumber(int number) { - return ResourceType.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 ResourceType findValueByNumber(int number) { + return ResourceType.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.assuredworkloads.v1.Workload.ResourceInfo.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.getDescriptor() + .getEnumTypes() + .get(0); } private static final ResourceType[] VALUES = values(); - public static ResourceType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static ResourceType 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; @@ -935,12 +1081,15 @@ private ResourceType(int value) { public static final int RESOURCE_ID_FIELD_NUMBER = 1; private long resourceId_; /** + * + * *
      * Resource identifier.
      * For a project this represents project_number.
      * 
* * int64 resource_id = 1; + * * @return The resourceId. */ @java.lang.Override @@ -951,31 +1100,47 @@ public long getResourceId() { public static final int RESOURCE_TYPE_FIELD_NUMBER = 2; private int resourceType_; /** + * + * *
      * Indicates the type of resource.
      * 
* - * .google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType resource_type = 2; + * .google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType resource_type = 2; + * + * * @return The enum numeric value on the wire for resourceType. */ - @java.lang.Override public int getResourceTypeValue() { + @java.lang.Override + public int getResourceTypeValue() { return resourceType_; } /** + * + * *
      * Indicates the type of resource.
      * 
* - * .google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType resource_type = 2; + * .google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType resource_type = 2; + * + * * @return The resourceType. */ - @java.lang.Override public com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType getResourceType() { + @java.lang.Override + public com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType + getResourceType() { @SuppressWarnings("deprecation") - com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType result = com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType.valueOf(resourceType_); - return result == null ? com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType.UNRECOGNIZED : result; + com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType result = + com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType.valueOf( + resourceType_); + return result == null + ? com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -987,12 +1152,14 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (resourceId_ != 0L) { output.writeInt64(1, resourceId_); } - if (resourceType_ != com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType.RESOURCE_TYPE_UNSPECIFIED.getNumber()) { + if (resourceType_ + != com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType + .RESOURCE_TYPE_UNSPECIFIED + .getNumber()) { output.writeEnum(2, resourceType_); } unknownFields.writeTo(output); @@ -1005,12 +1172,13 @@ public int getSerializedSize() { size = 0; if (resourceId_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, resourceId_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, resourceId_); } - if (resourceType_ != com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType.RESOURCE_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, resourceType_); + if (resourceType_ + != com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType + .RESOURCE_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, resourceType_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1020,15 +1188,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.assuredworkloads.v1.Workload.ResourceInfo)) { return super.equals(obj); } - com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo other = (com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo) obj; + com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo other = + (com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo) obj; - if (getResourceId() - != other.getResourceId()) return false; + if (getResourceId() != other.getResourceId()) return false; if (resourceType_ != other.resourceType_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -1042,8 +1210,7 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + RESOURCE_ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getResourceId()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getResourceId()); hash = (37 * hash) + RESOURCE_TYPE_FIELD_NUMBER; hash = (53 * hash) + resourceType_; hash = (29 * hash) + unknownFields.hashCode(); @@ -1052,87 +1219,94 @@ public int hashCode() { } public static com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo 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.assuredworkloads.v1.Workload.ResourceInfo 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.assuredworkloads.v1.Workload.ResourceInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo 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.assuredworkloads.v1.Workload.ResourceInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo 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.assuredworkloads.v1.Workload.ResourceInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo 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.assuredworkloads.v1.Workload.ResourceInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo 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.assuredworkloads.v1.Workload.ResourceInfo 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.assuredworkloads.v1.Workload.ResourceInfo 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.assuredworkloads.v1.Workload.ResourceInfo prototype) { + + public static Builder newBuilder( + com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo 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 @@ -1142,27 +1316,32 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Represent the resources that are children of this Workload.
      * 
* * Protobuf type {@code google.cloud.assuredworkloads.v1.Workload.ResourceInfo} */ - 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.assuredworkloads.v1.Workload.ResourceInfo) com.google.cloud.assuredworkloads.v1.Workload.ResourceInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_Workload_ResourceInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1_Workload_ResourceInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_Workload_ResourceInfo_fieldAccessorTable + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1_Workload_ResourceInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.class, com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.Builder.class); + com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.class, + com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.Builder.class); } // Construct using com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.newBuilder() @@ -1170,16 +1349,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -1191,13 +1369,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_Workload_ResourceInfo_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1_Workload_ResourceInfo_descriptor; } @java.lang.Override - public com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo getDefaultInstanceForType() { + public com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo + getDefaultInstanceForType() { return com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.getDefaultInstance(); } @@ -1212,7 +1391,8 @@ public com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo build() { @java.lang.Override public com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo buildPartial() { - com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo result = new com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo(this); + com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo result = + new com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo(this); result.resourceId_ = resourceId_; result.resourceType_ = resourceType_; onBuilt(); @@ -1223,38 +1403,41 @@ public com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + 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.assuredworkloads.v1.Workload.ResourceInfo) { - return mergeFrom((com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo)other); + return mergeFrom((com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo) other); } else { super.mergeFrom(other); return this; @@ -1262,7 +1445,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo other) { - if (other == com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.getDefaultInstance()) return this; + if (other + == com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.getDefaultInstance()) + return this; if (other.getResourceId() != 0L) { setResourceId(other.getResourceId()); } @@ -1288,7 +1473,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1298,14 +1484,17 @@ public Builder mergeFrom( return this; } - private long resourceId_ ; + private long resourceId_; /** + * + * *
        * Resource identifier.
        * For a project this represents project_number.
        * 
* * int64 resource_id = 1; + * * @return The resourceId. */ @java.lang.Override @@ -1313,32 +1502,38 @@ public long getResourceId() { return resourceId_; } /** + * + * *
        * Resource identifier.
        * For a project this represents project_number.
        * 
* * int64 resource_id = 1; + * * @param value The resourceId to set. * @return This builder for chaining. */ public Builder setResourceId(long value) { - + resourceId_ = value; onChanged(); return this; } /** + * + * *
        * Resource identifier.
        * For a project this represents project_number.
        * 
* * int64 resource_id = 1; + * * @return This builder for chaining. */ public Builder clearResourceId() { - + resourceId_ = 0L; onChanged(); return this; @@ -1346,77 +1541,110 @@ public Builder clearResourceId() { private int resourceType_ = 0; /** + * + * *
        * Indicates the type of resource.
        * 
* - * .google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType resource_type = 2; + * + * .google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType resource_type = 2; + * + * * @return The enum numeric value on the wire for resourceType. */ - @java.lang.Override public int getResourceTypeValue() { + @java.lang.Override + public int getResourceTypeValue() { return resourceType_; } /** + * + * *
        * Indicates the type of resource.
        * 
* - * .google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType resource_type = 2; + * + * .google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType resource_type = 2; + * + * * @param value The enum numeric value on the wire for resourceType to set. * @return This builder for chaining. */ public Builder setResourceTypeValue(int value) { - + resourceType_ = value; onChanged(); return this; } /** + * + * *
        * Indicates the type of resource.
        * 
* - * .google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType resource_type = 2; + * + * .google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType resource_type = 2; + * + * * @return The resourceType. */ @java.lang.Override - public com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType getResourceType() { + public com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType + getResourceType() { @SuppressWarnings("deprecation") - com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType result = com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType.valueOf(resourceType_); - return result == null ? com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType.UNRECOGNIZED : result; + com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType result = + com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType.valueOf( + resourceType_); + return result == null + ? com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType.UNRECOGNIZED + : result; } /** + * + * *
        * Indicates the type of resource.
        * 
* - * .google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType resource_type = 2; + * + * .google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType resource_type = 2; + * + * * @param value The resourceType to set. * @return This builder for chaining. */ - public Builder setResourceType(com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType value) { + public Builder setResourceType( + com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType value) { if (value == null) { throw new NullPointerException(); } - + resourceType_ = value.getNumber(); onChanged(); return this; } /** + * + * *
        * Indicates the type of resource.
        * 
* - * .google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType resource_type = 2; + * + * .google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType resource_type = 2; + * + * * @return This builder for chaining. */ public Builder clearResourceType() { - + resourceType_ = 0; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1429,12 +1657,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.assuredworkloads.v1.Workload.ResourceInfo) } // @@protoc_insertion_point(class_scope:google.cloud.assuredworkloads.v1.Workload.ResourceInfo) - private static final com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo DEFAULT_INSTANCE; + private static final com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo(); } @@ -1443,16 +1672,16 @@ public static com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ResourceInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ResourceInfo(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResourceInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ResourceInfo(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1467,110 +1696,139 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface KMSSettingsOrBuilder extends + public interface KMSSettingsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.assuredworkloads.v1.Workload.KMSSettings) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Required. Input only. Immutable. The time at which the Key Management
      * Service will automatically create a new version of the crypto key and
      * mark it as the primary.
      * 
* - * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return Whether the nextRotationTime field is set. */ boolean hasNextRotationTime(); /** + * + * *
      * Required. Input only. Immutable. The time at which the Key Management
      * Service will automatically create a new version of the crypto key and
      * mark it as the primary.
      * 
* - * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The nextRotationTime. */ com.google.protobuf.Timestamp getNextRotationTime(); /** + * + * *
      * Required. Input only. Immutable. The time at which the Key Management
      * Service will automatically create a new version of the crypto key and
      * mark it as the primary.
      * 
* - * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ com.google.protobuf.TimestampOrBuilder getNextRotationTimeOrBuilder(); /** + * + * *
      * Required. Input only. Immutable. [next_rotation_time] will be advanced by
      * this period when the Key Management Service automatically rotates a key.
      * Must be at least 24 hours and at most 876,000 hours.
      * 
* - * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return Whether the rotationPeriod field is set. */ boolean hasRotationPeriod(); /** + * + * *
      * Required. Input only. Immutable. [next_rotation_time] will be advanced by
      * this period when the Key Management Service automatically rotates a key.
      * Must be at least 24 hours and at most 876,000 hours.
      * 
* - * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The rotationPeriod. */ com.google.protobuf.Duration getRotationPeriod(); /** + * + * *
      * Required. Input only. Immutable. [next_rotation_time] will be advanced by
      * this period when the Key Management Service automatically rotates a key.
      * Must be at least 24 hours and at most 876,000 hours.
      * 
* - * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ com.google.protobuf.DurationOrBuilder getRotationPeriodOrBuilder(); } /** + * + * *
    * Settings specific to the Key Management Service.
    * 
* * Protobuf type {@code google.cloud.assuredworkloads.v1.Workload.KMSSettings} */ - public static final class KMSSettings extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class KMSSettings extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.assuredworkloads.v1.Workload.KMSSettings) KMSSettingsOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use KMSSettings.newBuilder() to construct. private KMSSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private KMSSettings() { - } + + private KMSSettings() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new KMSSettings(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private KMSSettings( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1589,39 +1847,43 @@ private KMSSettings( case 0: done = true; break; - case 10: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (nextRotationTime_ != null) { - subBuilder = nextRotationTime_.toBuilder(); - } - nextRotationTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(nextRotationTime_); - nextRotationTime_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (nextRotationTime_ != null) { + subBuilder = nextRotationTime_.toBuilder(); + } + nextRotationTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(nextRotationTime_); + nextRotationTime_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.protobuf.Duration.Builder subBuilder = null; - if (rotationPeriod_ != null) { - subBuilder = rotationPeriod_.toBuilder(); - } - rotationPeriod_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(rotationPeriod_); - rotationPeriod_ = subBuilder.buildPartial(); + break; } + case 18: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (rotationPeriod_ != null) { + subBuilder = rotationPeriod_.toBuilder(); + } + rotationPeriod_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(rotationPeriod_); + rotationPeriod_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1629,36 +1891,43 @@ private KMSSettings( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_Workload_KMSSettings_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1_Workload_KMSSettings_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_Workload_KMSSettings_fieldAccessorTable + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1_Workload_KMSSettings_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.assuredworkloads.v1.Workload.KMSSettings.class, com.google.cloud.assuredworkloads.v1.Workload.KMSSettings.Builder.class); + com.google.cloud.assuredworkloads.v1.Workload.KMSSettings.class, + com.google.cloud.assuredworkloads.v1.Workload.KMSSettings.Builder.class); } public static final int NEXT_ROTATION_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp nextRotationTime_; /** + * + * *
      * Required. Input only. Immutable. The time at which the Key Management
      * Service will automatically create a new version of the crypto key and
      * mark it as the primary.
      * 
* - * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return Whether the nextRotationTime field is set. */ @java.lang.Override @@ -1666,27 +1935,38 @@ public boolean hasNextRotationTime() { return nextRotationTime_ != null; } /** + * + * *
      * Required. Input only. Immutable. The time at which the Key Management
      * Service will automatically create a new version of the crypto key and
      * mark it as the primary.
      * 
* - * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The nextRotationTime. */ @java.lang.Override public com.google.protobuf.Timestamp getNextRotationTime() { - return nextRotationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : nextRotationTime_; + return nextRotationTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : nextRotationTime_; } /** + * + * *
      * Required. Input only. Immutable. The time at which the Key Management
      * Service will automatically create a new version of the crypto key and
      * mark it as the primary.
      * 
* - * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getNextRotationTimeOrBuilder() { @@ -1696,13 +1976,18 @@ public com.google.protobuf.TimestampOrBuilder getNextRotationTimeOrBuilder() { public static final int ROTATION_PERIOD_FIELD_NUMBER = 2; private com.google.protobuf.Duration rotationPeriod_; /** + * + * *
      * Required. Input only. Immutable. [next_rotation_time] will be advanced by
      * this period when the Key Management Service automatically rotates a key.
      * Must be at least 24 hours and at most 876,000 hours.
      * 
* - * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return Whether the rotationPeriod field is set. */ @java.lang.Override @@ -1710,27 +1995,38 @@ public boolean hasRotationPeriod() { return rotationPeriod_ != null; } /** + * + * *
      * Required. Input only. Immutable. [next_rotation_time] will be advanced by
      * this period when the Key Management Service automatically rotates a key.
      * Must be at least 24 hours and at most 876,000 hours.
      * 
* - * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The rotationPeriod. */ @java.lang.Override public com.google.protobuf.Duration getRotationPeriod() { - return rotationPeriod_ == null ? com.google.protobuf.Duration.getDefaultInstance() : rotationPeriod_; + return rotationPeriod_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : rotationPeriod_; } /** + * + * *
      * Required. Input only. Immutable. [next_rotation_time] will be advanced by
      * this period when the Key Management Service automatically rotates a key.
      * Must be at least 24 hours and at most 876,000 hours.
      * 
* - * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getRotationPeriodOrBuilder() { @@ -1738,6 +2034,7 @@ public com.google.protobuf.DurationOrBuilder getRotationPeriodOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1749,8 +2046,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 (nextRotationTime_ != null) { output.writeMessage(1, getNextRotationTime()); } @@ -1767,12 +2063,10 @@ public int getSerializedSize() { size = 0; if (nextRotationTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getNextRotationTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getNextRotationTime()); } if (rotationPeriod_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getRotationPeriod()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRotationPeriod()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1782,22 +2076,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.assuredworkloads.v1.Workload.KMSSettings)) { return super.equals(obj); } - com.google.cloud.assuredworkloads.v1.Workload.KMSSettings other = (com.google.cloud.assuredworkloads.v1.Workload.KMSSettings) obj; + com.google.cloud.assuredworkloads.v1.Workload.KMSSettings other = + (com.google.cloud.assuredworkloads.v1.Workload.KMSSettings) obj; if (hasNextRotationTime() != other.hasNextRotationTime()) return false; if (hasNextRotationTime()) { - if (!getNextRotationTime() - .equals(other.getNextRotationTime())) return false; + if (!getNextRotationTime().equals(other.getNextRotationTime())) return false; } if (hasRotationPeriod() != other.hasRotationPeriod()) return false; if (hasRotationPeriod()) { - if (!getRotationPeriod() - .equals(other.getRotationPeriod())) return false; + if (!getRotationPeriod().equals(other.getRotationPeriod())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -1824,87 +2117,94 @@ public int hashCode() { } public static com.google.cloud.assuredworkloads.v1.Workload.KMSSettings 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.assuredworkloads.v1.Workload.KMSSettings 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.assuredworkloads.v1.Workload.KMSSettings parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.assuredworkloads.v1.Workload.KMSSettings 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.assuredworkloads.v1.Workload.KMSSettings parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.assuredworkloads.v1.Workload.KMSSettings 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.assuredworkloads.v1.Workload.KMSSettings parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.assuredworkloads.v1.Workload.KMSSettings parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.assuredworkloads.v1.Workload.KMSSettings 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.assuredworkloads.v1.Workload.KMSSettings parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.assuredworkloads.v1.Workload.KMSSettings parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.assuredworkloads.v1.Workload.KMSSettings 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.assuredworkloads.v1.Workload.KMSSettings 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.assuredworkloads.v1.Workload.KMSSettings 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.assuredworkloads.v1.Workload.KMSSettings prototype) { + + public static Builder newBuilder( + com.google.cloud.assuredworkloads.v1.Workload.KMSSettings 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 @@ -1914,27 +2214,32 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Settings specific to the Key Management Service.
      * 
* * Protobuf type {@code google.cloud.assuredworkloads.v1.Workload.KMSSettings} */ - 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.assuredworkloads.v1.Workload.KMSSettings) com.google.cloud.assuredworkloads.v1.Workload.KMSSettingsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_Workload_KMSSettings_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1_Workload_KMSSettings_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_Workload_KMSSettings_fieldAccessorTable + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1_Workload_KMSSettings_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.assuredworkloads.v1.Workload.KMSSettings.class, com.google.cloud.assuredworkloads.v1.Workload.KMSSettings.Builder.class); + com.google.cloud.assuredworkloads.v1.Workload.KMSSettings.class, + com.google.cloud.assuredworkloads.v1.Workload.KMSSettings.Builder.class); } // Construct using com.google.cloud.assuredworkloads.v1.Workload.KMSSettings.newBuilder() @@ -1942,16 +2247,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -1971,9 +2275,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_Workload_KMSSettings_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1_Workload_KMSSettings_descriptor; } @java.lang.Override @@ -1992,7 +2296,8 @@ public com.google.cloud.assuredworkloads.v1.Workload.KMSSettings build() { @java.lang.Override public com.google.cloud.assuredworkloads.v1.Workload.KMSSettings buildPartial() { - com.google.cloud.assuredworkloads.v1.Workload.KMSSettings result = new com.google.cloud.assuredworkloads.v1.Workload.KMSSettings(this); + com.google.cloud.assuredworkloads.v1.Workload.KMSSettings result = + new com.google.cloud.assuredworkloads.v1.Workload.KMSSettings(this); if (nextRotationTimeBuilder_ == null) { result.nextRotationTime_ = nextRotationTime_; } else { @@ -2011,38 +2316,41 @@ public com.google.cloud.assuredworkloads.v1.Workload.KMSSettings buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + 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.assuredworkloads.v1.Workload.KMSSettings) { - return mergeFrom((com.google.cloud.assuredworkloads.v1.Workload.KMSSettings)other); + return mergeFrom((com.google.cloud.assuredworkloads.v1.Workload.KMSSettings) other); } else { super.mergeFrom(other); return this; @@ -2050,7 +2358,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.assuredworkloads.v1.Workload.KMSSettings other) { - if (other == com.google.cloud.assuredworkloads.v1.Workload.KMSSettings.getDefaultInstance()) return this; + if (other == com.google.cloud.assuredworkloads.v1.Workload.KMSSettings.getDefaultInstance()) + return this; if (other.hasNextRotationTime()) { mergeNextRotationTime(other.getNextRotationTime()); } @@ -2076,7 +2385,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.assuredworkloads.v1.Workload.KMSSettings) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.assuredworkloads.v1.Workload.KMSSettings) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -2088,45 +2398,64 @@ public Builder mergeFrom( private com.google.protobuf.Timestamp nextRotationTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> nextRotationTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + nextRotationTimeBuilder_; /** + * + * *
        * Required. Input only. Immutable. The time at which the Key Management
        * Service will automatically create a new version of the crypto key and
        * mark it as the primary.
        * 
* - * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return Whether the nextRotationTime field is set. */ public boolean hasNextRotationTime() { return nextRotationTimeBuilder_ != null || nextRotationTime_ != null; } /** + * + * *
        * Required. Input only. Immutable. The time at which the Key Management
        * Service will automatically create a new version of the crypto key and
        * mark it as the primary.
        * 
* - * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The nextRotationTime. */ public com.google.protobuf.Timestamp getNextRotationTime() { if (nextRotationTimeBuilder_ == null) { - return nextRotationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : nextRotationTime_; + return nextRotationTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : nextRotationTime_; } else { return nextRotationTimeBuilder_.getMessage(); } } /** + * + * *
        * Required. Input only. Immutable. The time at which the Key Management
        * Service will automatically create a new version of the crypto key and
        * mark it as the primary.
        * 
* - * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ public Builder setNextRotationTime(com.google.protobuf.Timestamp value) { if (nextRotationTimeBuilder_ == null) { @@ -2142,16 +2471,19 @@ public Builder setNextRotationTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
        * Required. Input only. Immutable. The time at which the Key Management
        * Service will automatically create a new version of the crypto key and
        * mark it as the primary.
        * 
* - * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ - public Builder setNextRotationTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setNextRotationTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (nextRotationTimeBuilder_ == null) { nextRotationTime_ = builderForValue.build(); onChanged(); @@ -2162,19 +2494,25 @@ public Builder setNextRotationTime( return this; } /** + * + * *
        * Required. Input only. Immutable. The time at which the Key Management
        * Service will automatically create a new version of the crypto key and
        * mark it as the primary.
        * 
* - * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ public Builder mergeNextRotationTime(com.google.protobuf.Timestamp value) { if (nextRotationTimeBuilder_ == null) { if (nextRotationTime_ != null) { nextRotationTime_ = - com.google.protobuf.Timestamp.newBuilder(nextRotationTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(nextRotationTime_) + .mergeFrom(value) + .buildPartial(); } else { nextRotationTime_ = value; } @@ -2186,13 +2524,17 @@ public Builder mergeNextRotationTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
        * Required. Input only. Immutable. The time at which the Key Management
        * Service will automatically create a new version of the crypto key and
        * mark it as the primary.
        * 
* - * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ public Builder clearNextRotationTime() { if (nextRotationTimeBuilder_ == null) { @@ -2206,54 +2548,70 @@ public Builder clearNextRotationTime() { return this; } /** + * + * *
        * Required. Input only. Immutable. The time at which the Key Management
        * Service will automatically create a new version of the crypto key and
        * mark it as the primary.
        * 
* - * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ public com.google.protobuf.Timestamp.Builder getNextRotationTimeBuilder() { - + onChanged(); return getNextRotationTimeFieldBuilder().getBuilder(); } /** + * + * *
        * Required. Input only. Immutable. The time at which the Key Management
        * Service will automatically create a new version of the crypto key and
        * mark it as the primary.
        * 
* - * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ public com.google.protobuf.TimestampOrBuilder getNextRotationTimeOrBuilder() { if (nextRotationTimeBuilder_ != null) { return nextRotationTimeBuilder_.getMessageOrBuilder(); } else { - return nextRotationTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : nextRotationTime_; + return nextRotationTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : nextRotationTime_; } } /** + * + * *
        * Required. Input only. Immutable. The time at which the Key Management
        * Service will automatically create a new version of the crypto key and
        * mark it as the primary.
        * 
* - * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ 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> getNextRotationTimeFieldBuilder() { if (nextRotationTimeBuilder_ == null) { - nextRotationTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getNextRotationTime(), - getParentForChildren(), - isClean()); + nextRotationTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getNextRotationTime(), getParentForChildren(), isClean()); nextRotationTime_ = null; } return nextRotationTimeBuilder_; @@ -2261,45 +2619,64 @@ public com.google.protobuf.TimestampOrBuilder getNextRotationTimeOrBuilder() { private com.google.protobuf.Duration rotationPeriod_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> rotationPeriodBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + rotationPeriodBuilder_; /** + * + * *
        * Required. Input only. Immutable. [next_rotation_time] will be advanced by
        * this period when the Key Management Service automatically rotates a key.
        * Must be at least 24 hours and at most 876,000 hours.
        * 
* - * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return Whether the rotationPeriod field is set. */ public boolean hasRotationPeriod() { return rotationPeriodBuilder_ != null || rotationPeriod_ != null; } /** + * + * *
        * Required. Input only. Immutable. [next_rotation_time] will be advanced by
        * this period when the Key Management Service automatically rotates a key.
        * Must be at least 24 hours and at most 876,000 hours.
        * 
* - * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The rotationPeriod. */ public com.google.protobuf.Duration getRotationPeriod() { if (rotationPeriodBuilder_ == null) { - return rotationPeriod_ == null ? com.google.protobuf.Duration.getDefaultInstance() : rotationPeriod_; + return rotationPeriod_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : rotationPeriod_; } else { return rotationPeriodBuilder_.getMessage(); } } /** + * + * *
        * Required. Input only. Immutable. [next_rotation_time] will be advanced by
        * this period when the Key Management Service automatically rotates a key.
        * Must be at least 24 hours and at most 876,000 hours.
        * 
* - * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ public Builder setRotationPeriod(com.google.protobuf.Duration value) { if (rotationPeriodBuilder_ == null) { @@ -2315,16 +2692,19 @@ public Builder setRotationPeriod(com.google.protobuf.Duration value) { return this; } /** + * + * *
        * Required. Input only. Immutable. [next_rotation_time] will be advanced by
        * this period when the Key Management Service automatically rotates a key.
        * Must be at least 24 hours and at most 876,000 hours.
        * 
* - * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ - public Builder setRotationPeriod( - com.google.protobuf.Duration.Builder builderForValue) { + public Builder setRotationPeriod(com.google.protobuf.Duration.Builder builderForValue) { if (rotationPeriodBuilder_ == null) { rotationPeriod_ = builderForValue.build(); onChanged(); @@ -2335,19 +2715,25 @@ public Builder setRotationPeriod( return this; } /** + * + * *
        * Required. Input only. Immutable. [next_rotation_time] will be advanced by
        * this period when the Key Management Service automatically rotates a key.
        * Must be at least 24 hours and at most 876,000 hours.
        * 
* - * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ public Builder mergeRotationPeriod(com.google.protobuf.Duration value) { if (rotationPeriodBuilder_ == null) { if (rotationPeriod_ != null) { rotationPeriod_ = - com.google.protobuf.Duration.newBuilder(rotationPeriod_).mergeFrom(value).buildPartial(); + com.google.protobuf.Duration.newBuilder(rotationPeriod_) + .mergeFrom(value) + .buildPartial(); } else { rotationPeriod_ = value; } @@ -2359,13 +2745,17 @@ public Builder mergeRotationPeriod(com.google.protobuf.Duration value) { return this; } /** + * + * *
        * Required. Input only. Immutable. [next_rotation_time] will be advanced by
        * this period when the Key Management Service automatically rotates a key.
        * Must be at least 24 hours and at most 876,000 hours.
        * 
* - * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ public Builder clearRotationPeriod() { if (rotationPeriodBuilder_ == null) { @@ -2379,58 +2769,75 @@ public Builder clearRotationPeriod() { return this; } /** + * + * *
        * Required. Input only. Immutable. [next_rotation_time] will be advanced by
        * this period when the Key Management Service automatically rotates a key.
        * Must be at least 24 hours and at most 876,000 hours.
        * 
* - * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ public com.google.protobuf.Duration.Builder getRotationPeriodBuilder() { - + onChanged(); return getRotationPeriodFieldBuilder().getBuilder(); } /** + * + * *
        * Required. Input only. Immutable. [next_rotation_time] will be advanced by
        * this period when the Key Management Service automatically rotates a key.
        * Must be at least 24 hours and at most 876,000 hours.
        * 
* - * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ public com.google.protobuf.DurationOrBuilder getRotationPeriodOrBuilder() { if (rotationPeriodBuilder_ != null) { return rotationPeriodBuilder_.getMessageOrBuilder(); } else { - return rotationPeriod_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : rotationPeriod_; + return rotationPeriod_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : rotationPeriod_; } } /** + * + * *
        * Required. Input only. Immutable. [next_rotation_time] will be advanced by
        * this period when the Key Management Service automatically rotates a key.
        * Must be at least 24 hours and at most 876,000 hours.
        * 
* - * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> getRotationPeriodFieldBuilder() { if (rotationPeriodBuilder_ == null) { - rotationPeriodBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getRotationPeriod(), - getParentForChildren(), - isClean()); + rotationPeriodBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getRotationPeriod(), getParentForChildren(), isClean()); rotationPeriod_ = null; } return rotationPeriodBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2443,12 +2850,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.assuredworkloads.v1.Workload.KMSSettings) } // @@protoc_insertion_point(class_scope:google.cloud.assuredworkloads.v1.Workload.KMSSettings) private static final com.google.cloud.assuredworkloads.v1.Workload.KMSSettings DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.assuredworkloads.v1.Workload.KMSSettings(); } @@ -2457,16 +2864,16 @@ public static com.google.cloud.assuredworkloads.v1.Workload.KMSSettings getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public KMSSettings parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new KMSSettings(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public KMSSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new KMSSettings(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2481,14 +2888,16 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.assuredworkloads.v1.Workload.KMSSettings getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface ResourceSettingsOrBuilder extends + public interface ResourceSettingsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.assuredworkloads.v1.Workload.ResourceSettings) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Resource identifier.
      * For a project this represents project_id. If the project is already
@@ -2496,10 +2905,13 @@ public interface ResourceSettingsOrBuilder extends
      * 
* * string resource_id = 1; + * * @return The resourceId. */ java.lang.String getResourceId(); /** + * + * *
      * Resource identifier.
      * For a project this represents project_id. If the project is already
@@ -2507,35 +2919,45 @@ public interface ResourceSettingsOrBuilder extends
      * 
* * string resource_id = 1; + * * @return The bytes for resourceId. */ - com.google.protobuf.ByteString - getResourceIdBytes(); + com.google.protobuf.ByteString getResourceIdBytes(); /** + * + * *
      * Indicates the type of resource. This field should be specified to
      * correspond the id to the right project type (CONSUMER_PROJECT or
      * ENCRYPTION_KEYS_PROJECT)
      * 
* - * .google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType resource_type = 2; + * .google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType resource_type = 2; + * + * * @return The enum numeric value on the wire for resourceType. */ int getResourceTypeValue(); /** + * + * *
      * Indicates the type of resource. This field should be specified to
      * correspond the id to the right project type (CONSUMER_PROJECT or
      * ENCRYPTION_KEYS_PROJECT)
      * 
* - * .google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType resource_type = 2; + * .google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType resource_type = 2; + * + * * @return The resourceType. */ com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType getResourceType(); /** + * + * *
      * User-assigned resource display name.
      * If not empty it will be used to create a resource with the specified
@@ -2543,10 +2965,13 @@ public interface ResourceSettingsOrBuilder extends
      * 
* * string display_name = 3; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
      * User-assigned resource display name.
      * If not empty it will be used to create a resource with the specified
@@ -2554,27 +2979,30 @@ public interface ResourceSettingsOrBuilder extends
      * 
* * string display_name = 3; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); } /** + * + * *
    * Represent the custom settings for the resources to be created.
    * 
* * Protobuf type {@code google.cloud.assuredworkloads.v1.Workload.ResourceSettings} */ - public static final class ResourceSettings extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class ResourceSettings extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.assuredworkloads.v1.Workload.ResourceSettings) ResourceSettingsOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ResourceSettings.newBuilder() to construct. private ResourceSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ResourceSettings() { resourceId_ = ""; resourceType_ = 0; @@ -2583,16 +3011,15 @@ private ResourceSettings() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ResourceSettings(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ResourceSettings( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -2611,31 +3038,34 @@ private ResourceSettings( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - resourceId_ = s; - break; - } - case 16: { - int rawValue = input.readEnum(); + resourceId_ = s; + break; + } + case 16: + { + int rawValue = input.readEnum(); - resourceType_ = rawValue; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + resourceType_ = rawValue; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - displayName_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + displayName_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2643,29 +3073,33 @@ private ResourceSettings( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_Workload_ResourceSettings_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1_Workload_ResourceSettings_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_Workload_ResourceSettings_fieldAccessorTable + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1_Workload_ResourceSettings_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings.class, com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings.Builder.class); + com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings.class, + com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings.Builder.class); } public static final int RESOURCE_ID_FIELD_NUMBER = 1; private volatile java.lang.Object resourceId_; /** + * + * *
      * Resource identifier.
      * For a project this represents project_id. If the project is already
@@ -2673,6 +3107,7 @@ private ResourceSettings(
      * 
* * string resource_id = 1; + * * @return The resourceId. */ @java.lang.Override @@ -2681,14 +3116,15 @@ public java.lang.String getResourceId() { 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(); resourceId_ = s; return s; } } /** + * + * *
      * Resource identifier.
      * For a project this represents project_id. If the project is already
@@ -2696,16 +3132,15 @@ public java.lang.String getResourceId() {
      * 
* * string resource_id = 1; + * * @return The bytes for resourceId. */ @java.lang.Override - public com.google.protobuf.ByteString - getResourceIdBytes() { + public com.google.protobuf.ByteString getResourceIdBytes() { java.lang.Object ref = resourceId_; 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); resourceId_ = b; return b; } else { @@ -2716,37 +3151,54 @@ public java.lang.String getResourceId() { public static final int RESOURCE_TYPE_FIELD_NUMBER = 2; private int resourceType_; /** + * + * *
      * Indicates the type of resource. This field should be specified to
      * correspond the id to the right project type (CONSUMER_PROJECT or
      * ENCRYPTION_KEYS_PROJECT)
      * 
* - * .google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType resource_type = 2; + * .google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType resource_type = 2; + * + * * @return The enum numeric value on the wire for resourceType. */ - @java.lang.Override public int getResourceTypeValue() { + @java.lang.Override + public int getResourceTypeValue() { return resourceType_; } /** + * + * *
      * Indicates the type of resource. This field should be specified to
      * correspond the id to the right project type (CONSUMER_PROJECT or
      * ENCRYPTION_KEYS_PROJECT)
      * 
* - * .google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType resource_type = 2; + * .google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType resource_type = 2; + * + * * @return The resourceType. */ - @java.lang.Override public com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType getResourceType() { + @java.lang.Override + public com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType + getResourceType() { @SuppressWarnings("deprecation") - com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType result = com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType.valueOf(resourceType_); - return result == null ? com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType.UNRECOGNIZED : result; + com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType result = + com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType.valueOf( + resourceType_); + return result == null + ? com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType.UNRECOGNIZED + : result; } public static final int DISPLAY_NAME_FIELD_NUMBER = 3; private volatile java.lang.Object displayName_; /** + * + * *
      * User-assigned resource display name.
      * If not empty it will be used to create a resource with the specified
@@ -2754,6 +3206,7 @@ public java.lang.String getResourceId() {
      * 
* * string display_name = 3; + * * @return The displayName. */ @java.lang.Override @@ -2762,14 +3215,15 @@ public java.lang.String getDisplayName() { 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(); displayName_ = s; return s; } } /** + * + * *
      * User-assigned resource display name.
      * If not empty it will be used to create a resource with the specified
@@ -2777,16 +3231,15 @@ public java.lang.String getDisplayName() {
      * 
* * string display_name = 3; + * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; 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); displayName_ = b; return b; } else { @@ -2795,6 +3248,7 @@ public java.lang.String getDisplayName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2806,12 +3260,14 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceId_); } - if (resourceType_ != com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType.RESOURCE_TYPE_UNSPECIFIED.getNumber()) { + if (resourceType_ + != com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType + .RESOURCE_TYPE_UNSPECIFIED + .getNumber()) { output.writeEnum(2, resourceType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { @@ -2829,9 +3285,11 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resourceId_); } - if (resourceType_ != com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType.RESOURCE_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, resourceType_); + if (resourceType_ + != com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType + .RESOURCE_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, resourceType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, displayName_); @@ -2844,18 +3302,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.assuredworkloads.v1.Workload.ResourceSettings)) { return super.equals(obj); } - com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings other = (com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings) obj; + com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings other = + (com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings) obj; - if (!getResourceId() - .equals(other.getResourceId())) return false; + if (!getResourceId().equals(other.getResourceId())) return false; if (resourceType_ != other.resourceType_) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -2879,87 +3336,94 @@ public int hashCode() { } public static com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings 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.assuredworkloads.v1.Workload.ResourceSettings 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.assuredworkloads.v1.Workload.ResourceSettings parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings 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.assuredworkloads.v1.Workload.ResourceSettings parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings 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.assuredworkloads.v1.Workload.ResourceSettings parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings 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.assuredworkloads.v1.Workload.ResourceSettings parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings 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.assuredworkloads.v1.Workload.ResourceSettings 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.assuredworkloads.v1.Workload.ResourceSettings 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.assuredworkloads.v1.Workload.ResourceSettings prototype) { + + public static Builder newBuilder( + com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings 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 @@ -2969,27 +3433,32 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Represent the custom settings for the resources to be created.
      * 
* * Protobuf type {@code google.cloud.assuredworkloads.v1.Workload.ResourceSettings} */ - 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.assuredworkloads.v1.Workload.ResourceSettings) com.google.cloud.assuredworkloads.v1.Workload.ResourceSettingsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_Workload_ResourceSettings_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1_Workload_ResourceSettings_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_Workload_ResourceSettings_fieldAccessorTable + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1_Workload_ResourceSettings_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings.class, com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings.Builder.class); + com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings.class, + com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings.Builder.class); } // Construct using com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings.newBuilder() @@ -2997,16 +3466,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -3020,13 +3488,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_Workload_ResourceSettings_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1_Workload_ResourceSettings_descriptor; } @java.lang.Override - public com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings getDefaultInstanceForType() { + public com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings + getDefaultInstanceForType() { return com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings.getDefaultInstance(); } @@ -3041,7 +3510,8 @@ public com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings build() { @java.lang.Override public com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings buildPartial() { - com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings result = new com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings(this); + com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings result = + new com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings(this); result.resourceId_ = resourceId_; result.resourceType_ = resourceType_; result.displayName_ = displayName_; @@ -3053,46 +3523,52 @@ public com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings buildParti public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + 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.assuredworkloads.v1.Workload.ResourceSettings) { - return mergeFrom((com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings)other); + return mergeFrom((com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings other) { - if (other == com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings other) { + if (other + == com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings.getDefaultInstance()) + return this; if (!other.getResourceId().isEmpty()) { resourceId_ = other.resourceId_; onChanged(); @@ -3123,7 +3599,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -3135,6 +3613,8 @@ public Builder mergeFrom( private java.lang.Object resourceId_ = ""; /** + * + * *
        * Resource identifier.
        * For a project this represents project_id. If the project is already
@@ -3142,13 +3622,13 @@ public Builder mergeFrom(
        * 
* * string resource_id = 1; + * * @return The resourceId. */ public java.lang.String getResourceId() { java.lang.Object ref = resourceId_; 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(); resourceId_ = s; return s; @@ -3157,6 +3637,8 @@ public java.lang.String getResourceId() { } } /** + * + * *
        * Resource identifier.
        * For a project this represents project_id. If the project is already
@@ -3164,15 +3646,14 @@ public java.lang.String getResourceId() {
        * 
* * string resource_id = 1; + * * @return The bytes for resourceId. */ - public com.google.protobuf.ByteString - getResourceIdBytes() { + public com.google.protobuf.ByteString getResourceIdBytes() { java.lang.Object ref = resourceId_; 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); resourceId_ = b; return b; } else { @@ -3180,6 +3661,8 @@ public java.lang.String getResourceId() { } } /** + * + * *
        * Resource identifier.
        * For a project this represents project_id. If the project is already
@@ -3187,20 +3670,22 @@ public java.lang.String getResourceId() {
        * 
* * string resource_id = 1; + * * @param value The resourceId to set. * @return This builder for chaining. */ - public Builder setResourceId( - java.lang.String value) { + public Builder setResourceId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resourceId_ = value; onChanged(); return this; } /** + * + * *
        * Resource identifier.
        * For a project this represents project_id. If the project is already
@@ -3208,15 +3693,18 @@ public Builder setResourceId(
        * 
* * string resource_id = 1; + * * @return This builder for chaining. */ public Builder clearResourceId() { - + resourceId_ = getDefaultInstance().getResourceId(); onChanged(); return this; } /** + * + * *
        * Resource identifier.
        * For a project this represents project_id. If the project is already
@@ -3224,16 +3712,16 @@ public Builder clearResourceId() {
        * 
* * string resource_id = 1; + * * @param value The bytes for resourceId to set. * @return This builder for chaining. */ - public Builder setResourceIdBytes( - com.google.protobuf.ByteString value) { + public Builder setResourceIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceId_ = value; onChanged(); return this; @@ -3241,83 +3729,115 @@ public Builder setResourceIdBytes( private int resourceType_ = 0; /** + * + * *
        * Indicates the type of resource. This field should be specified to
        * correspond the id to the right project type (CONSUMER_PROJECT or
        * ENCRYPTION_KEYS_PROJECT)
        * 
* - * .google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType resource_type = 2; + * + * .google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType resource_type = 2; + * + * * @return The enum numeric value on the wire for resourceType. */ - @java.lang.Override public int getResourceTypeValue() { + @java.lang.Override + public int getResourceTypeValue() { return resourceType_; } /** + * + * *
        * Indicates the type of resource. This field should be specified to
        * correspond the id to the right project type (CONSUMER_PROJECT or
        * ENCRYPTION_KEYS_PROJECT)
        * 
* - * .google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType resource_type = 2; + * + * .google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType resource_type = 2; + * + * * @param value The enum numeric value on the wire for resourceType to set. * @return This builder for chaining. */ public Builder setResourceTypeValue(int value) { - + resourceType_ = value; onChanged(); return this; } /** + * + * *
        * Indicates the type of resource. This field should be specified to
        * correspond the id to the right project type (CONSUMER_PROJECT or
        * ENCRYPTION_KEYS_PROJECT)
        * 
* - * .google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType resource_type = 2; + * + * .google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType resource_type = 2; + * + * * @return The resourceType. */ @java.lang.Override - public com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType getResourceType() { + public com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType + getResourceType() { @SuppressWarnings("deprecation") - com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType result = com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType.valueOf(resourceType_); - return result == null ? com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType.UNRECOGNIZED : result; + com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType result = + com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType.valueOf( + resourceType_); + return result == null + ? com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType.UNRECOGNIZED + : result; } /** + * + * *
        * Indicates the type of resource. This field should be specified to
        * correspond the id to the right project type (CONSUMER_PROJECT or
        * ENCRYPTION_KEYS_PROJECT)
        * 
* - * .google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType resource_type = 2; + * + * .google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType resource_type = 2; + * + * * @param value The resourceType to set. * @return This builder for chaining. */ - public Builder setResourceType(com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType value) { + public Builder setResourceType( + com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType value) { if (value == null) { throw new NullPointerException(); } - + resourceType_ = value.getNumber(); onChanged(); return this; } /** + * + * *
        * Indicates the type of resource. This field should be specified to
        * correspond the id to the right project type (CONSUMER_PROJECT or
        * ENCRYPTION_KEYS_PROJECT)
        * 
* - * .google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType resource_type = 2; + * + * .google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType resource_type = 2; + * + * * @return This builder for chaining. */ public Builder clearResourceType() { - + resourceType_ = 0; onChanged(); return this; @@ -3325,6 +3845,8 @@ public Builder clearResourceType() { private java.lang.Object displayName_ = ""; /** + * + * *
        * User-assigned resource display name.
        * If not empty it will be used to create a resource with the specified
@@ -3332,13 +3854,13 @@ public Builder clearResourceType() {
        * 
* * string display_name = 3; + * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; 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(); displayName_ = s; return s; @@ -3347,6 +3869,8 @@ public java.lang.String getDisplayName() { } } /** + * + * *
        * User-assigned resource display name.
        * If not empty it will be used to create a resource with the specified
@@ -3354,15 +3878,14 @@ public java.lang.String getDisplayName() {
        * 
* * string display_name = 3; + * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; 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); displayName_ = b; return b; } else { @@ -3370,6 +3893,8 @@ public java.lang.String getDisplayName() { } } /** + * + * *
        * User-assigned resource display name.
        * If not empty it will be used to create a resource with the specified
@@ -3377,20 +3902,22 @@ public java.lang.String getDisplayName() {
        * 
* * string display_name = 3; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { + public Builder setDisplayName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** + * + * *
        * User-assigned resource display name.
        * If not empty it will be used to create a resource with the specified
@@ -3398,15 +3925,18 @@ public Builder setDisplayName(
        * 
* * string display_name = 3; + * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** + * + * *
        * User-assigned resource display name.
        * If not empty it will be used to create a resource with the specified
@@ -3414,20 +3944,21 @@ public Builder clearDisplayName() {
        * 
* * string display_name = 3; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3440,30 +3971,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.assuredworkloads.v1.Workload.ResourceSettings) } // @@protoc_insertion_point(class_scope:google.cloud.assuredworkloads.v1.Workload.ResourceSettings) - private static final com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings DEFAULT_INSTANCE; + private static final com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings(); } - public static com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings getDefaultInstance() { + public static com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ResourceSettings parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ResourceSettings(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResourceSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ResourceSettings(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3475,109 +4008,154 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings getDefaultInstanceForType() { + public com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface SaaEnrollmentResponseOrBuilder extends + public interface SaaEnrollmentResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Indicates SAA enrollment status of a given workload.
      * 
* - * optional .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1; + * + * optional .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1; + * + * * @return Whether the setupStatus field is set. */ boolean hasSetupStatus(); /** + * + * *
      * Indicates SAA enrollment status of a given workload.
      * 
* - * optional .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1; + * + * optional .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1; + * + * * @return The enum numeric value on the wire for setupStatus. */ int getSetupStatusValue(); /** + * + * *
      * Indicates SAA enrollment status of a given workload.
      * 
* - * optional .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1; + * + * optional .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1; + * + * * @return The setupStatus. */ com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupState getSetupStatus(); /** + * + * *
      * Indicates SAA enrollment setup error if any.
      * 
* - * repeated .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; + * + * repeated .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; + * + * * @return A list containing the setupErrors. */ - java.util.List getSetupErrorsList(); + java.util.List + getSetupErrorsList(); /** + * + * *
      * Indicates SAA enrollment setup error if any.
      * 
* - * repeated .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; + * + * repeated .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; + * + * * @return The count of setupErrors. */ int getSetupErrorsCount(); /** + * + * *
      * Indicates SAA enrollment setup error if any.
      * 
* - * repeated .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; + * + * repeated .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; + * + * * @param index The index of the element to return. * @return The setupErrors at the given index. */ - com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError getSetupErrors(int index); + com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError getSetupErrors( + int index); /** + * + * *
      * Indicates SAA enrollment setup error if any.
      * 
* - * repeated .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; + * + * repeated .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; + * + * * @return A list containing the enum numeric values on the wire for setupErrors. */ - java.util.List - getSetupErrorsValueList(); + java.util.List getSetupErrorsValueList(); /** + * + * *
      * Indicates SAA enrollment setup error if any.
      * 
* - * repeated .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; + * + * repeated .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; + * + * * @param index The index of the value to return. * @return The enum numeric value on the wire of setupErrors at the given index. */ int getSetupErrorsValue(int index); } /** + * + * *
    * Signed Access Approvals (SAA) enrollment response.
    * 
* * Protobuf type {@code google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse} */ - public static final class SaaEnrollmentResponse extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class SaaEnrollmentResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse) SaaEnrollmentResponseOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SaaEnrollmentResponse.newBuilder() to construct. private SaaEnrollmentResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private SaaEnrollmentResponse() { setupStatus_ = 0; setupErrors_ = java.util.Collections.emptyList(); @@ -3585,16 +4163,15 @@ private SaaEnrollmentResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SaaEnrollmentResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private SaaEnrollmentResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -3614,42 +4191,45 @@ private SaaEnrollmentResponse( case 0: done = true; break; - case 8: { - int rawValue = input.readEnum(); - bitField0_ |= 0x00000001; - setupStatus_ = rawValue; - break; - } - case 16: { - int rawValue = input.readEnum(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - setupErrors_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; + case 8: + { + int rawValue = input.readEnum(); + bitField0_ |= 0x00000001; + setupStatus_ = rawValue; + break; } - setupErrors_.add(rawValue); - break; - } - case 18: { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while(input.getBytesUntilLimit() > 0) { + case 16: + { int rawValue = input.readEnum(); if (!((mutable_bitField0_ & 0x00000002) != 0)) { setupErrors_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } setupErrors_.add(rawValue); + break; } - input.popLimit(oldLimit); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 18: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int rawValue = input.readEnum(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + setupErrors_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + setupErrors_.add(rawValue); + } + input.popLimit(oldLimit); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -3657,8 +4237,7 @@ private SaaEnrollmentResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) != 0)) { setupErrors_ = java.util.Collections.unmodifiableList(setupErrors_); @@ -3667,29 +4246,36 @@ private SaaEnrollmentResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_Workload_SaaEnrollmentResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1_Workload_SaaEnrollmentResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_Workload_SaaEnrollmentResponse_fieldAccessorTable + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1_Workload_SaaEnrollmentResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.class, com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.Builder.class); + com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.class, + com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.Builder.class); } /** + * + * *
      * Setup state of SAA enrollment.
      * 
* - * Protobuf enum {@code google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupState} + * Protobuf enum {@code + * google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupState} */ - public enum SetupState - implements com.google.protobuf.ProtocolMessageEnum { + public enum SetupState implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
        * Unspecified.
        * 
@@ -3698,6 +4284,8 @@ public enum SetupState */ SETUP_STATE_UNSPECIFIED(0), /** + * + * *
        * SAA enrollment pending.
        * 
@@ -3706,6 +4294,8 @@ public enum SetupState */ STATUS_PENDING(1), /** + * + * *
        * SAA enrollment comopleted.
        * 
@@ -3717,6 +4307,8 @@ public enum SetupState ; /** + * + * *
        * Unspecified.
        * 
@@ -3725,6 +4317,8 @@ public enum SetupState */ public static final int SETUP_STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
        * SAA enrollment pending.
        * 
@@ -3733,6 +4327,8 @@ public enum SetupState */ public static final int STATUS_PENDING_VALUE = 1; /** + * + * *
        * SAA enrollment comopleted.
        * 
@@ -3741,7 +4337,6 @@ public enum SetupState */ public static final int STATUS_COMPLETE_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -3766,49 +4361,51 @@ public static SetupState valueOf(int value) { */ public static SetupState forNumber(int value) { switch (value) { - case 0: return SETUP_STATE_UNSPECIFIED; - case 1: return STATUS_PENDING; - case 2: return STATUS_COMPLETE; - default: return null; + case 0: + return SETUP_STATE_UNSPECIFIED; + case 1: + return STATUS_PENDING; + case 2: + return STATUS_COMPLETE; + 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< - SetupState> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public SetupState findValueByNumber(int number) { - return SetupState.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 SetupState findValueByNumber(int number) { + return SetupState.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.assuredworkloads.v1.Workload.SaaEnrollmentResponse.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.getDescriptor() + .getEnumTypes() + .get(0); } private static final SetupState[] VALUES = values(); - public static SetupState valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static SetupState 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; @@ -3826,15 +4423,19 @@ private SetupState(int value) { } /** + * + * *
      * Setup error of SAA enrollment.
      * 
* - * Protobuf enum {@code google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError} + * Protobuf enum {@code + * google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError} */ - public enum SetupError - implements com.google.protobuf.ProtocolMessageEnum { + public enum SetupError implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
        * Unspecified.
        * 
@@ -3843,6 +4444,8 @@ public enum SetupError */ SETUP_ERROR_UNSPECIFIED(0), /** + * + * *
        * Invalid states for all customers, to be redirected to AA UI for
        * additional details.
@@ -3852,6 +4455,8 @@ public enum SetupError
        */
       ERROR_INVALID_BASE_SETUP(1),
       /**
+       *
+       *
        * 
        * Returned when there is not an EKM key configured.
        * 
@@ -3860,6 +4465,8 @@ public enum SetupError */ ERROR_MISSING_EXTERNAL_SIGNING_KEY(2), /** + * + * *
        * Returned when there are no enrolled services or the customer is
        * enrolled in CAA only for a subset of services.
@@ -3869,6 +4476,8 @@ public enum SetupError
        */
       ERROR_NOT_ALL_SERVICES_ENROLLED(3),
       /**
+       *
+       *
        * 
        * Returned when exception was encountered during evaluation of other
        * criteria.
@@ -3881,6 +4490,8 @@ public enum SetupError
       ;
 
       /**
+       *
+       *
        * 
        * Unspecified.
        * 
@@ -3889,6 +4500,8 @@ public enum SetupError */ public static final int SETUP_ERROR_UNSPECIFIED_VALUE = 0; /** + * + * *
        * Invalid states for all customers, to be redirected to AA UI for
        * additional details.
@@ -3898,6 +4511,8 @@ public enum SetupError
        */
       public static final int ERROR_INVALID_BASE_SETUP_VALUE = 1;
       /**
+       *
+       *
        * 
        * Returned when there is not an EKM key configured.
        * 
@@ -3906,6 +4521,8 @@ public enum SetupError */ public static final int ERROR_MISSING_EXTERNAL_SIGNING_KEY_VALUE = 2; /** + * + * *
        * Returned when there are no enrolled services or the customer is
        * enrolled in CAA only for a subset of services.
@@ -3915,6 +4532,8 @@ public enum SetupError
        */
       public static final int ERROR_NOT_ALL_SERVICES_ENROLLED_VALUE = 3;
       /**
+       *
+       *
        * 
        * Returned when exception was encountered during evaluation of other
        * criteria.
@@ -3924,7 +4543,6 @@ public enum SetupError
        */
       public static final int ERROR_SETUP_CHECK_FAILED_VALUE = 4;
 
-
       public final int getNumber() {
         if (this == UNRECOGNIZED) {
           throw new java.lang.IllegalArgumentException(
@@ -3949,51 +4567,55 @@ public static SetupError valueOf(int value) {
        */
       public static SetupError forNumber(int value) {
         switch (value) {
-          case 0: return SETUP_ERROR_UNSPECIFIED;
-          case 1: return ERROR_INVALID_BASE_SETUP;
-          case 2: return ERROR_MISSING_EXTERNAL_SIGNING_KEY;
-          case 3: return ERROR_NOT_ALL_SERVICES_ENROLLED;
-          case 4: return ERROR_SETUP_CHECK_FAILED;
-          default: return null;
+          case 0:
+            return SETUP_ERROR_UNSPECIFIED;
+          case 1:
+            return ERROR_INVALID_BASE_SETUP;
+          case 2:
+            return ERROR_MISSING_EXTERNAL_SIGNING_KEY;
+          case 3:
+            return ERROR_NOT_ALL_SERVICES_ENROLLED;
+          case 4:
+            return ERROR_SETUP_CHECK_FAILED;
+          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<
-          SetupError> internalValueMap =
-            new com.google.protobuf.Internal.EnumLiteMap() {
-              public SetupError findValueByNumber(int number) {
-                return SetupError.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 SetupError findValueByNumber(int number) {
+              return SetupError.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.assuredworkloads.v1.Workload.SaaEnrollmentResponse.getDescriptor().getEnumTypes().get(1);
+
+      public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+        return com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.getDescriptor()
+            .getEnumTypes()
+            .get(1);
       }
 
       private static final SetupError[] VALUES = values();
 
-      public static SetupError valueOf(
-          com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+      public static SetupError 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;
@@ -4014,72 +4636,120 @@ private SetupError(int value) {
     public static final int SETUP_STATUS_FIELD_NUMBER = 1;
     private int setupStatus_;
     /**
+     *
+     *
      * 
      * Indicates SAA enrollment status of a given workload.
      * 
* - * optional .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1; + * + * optional .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1; + * + * * @return Whether the setupStatus field is set. */ - @java.lang.Override public boolean hasSetupStatus() { + @java.lang.Override + public boolean hasSetupStatus() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Indicates SAA enrollment status of a given workload.
      * 
* - * optional .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1; + * + * optional .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1; + * + * * @return The enum numeric value on the wire for setupStatus. */ - @java.lang.Override public int getSetupStatusValue() { + @java.lang.Override + public int getSetupStatusValue() { return setupStatus_; } /** + * + * *
      * Indicates SAA enrollment status of a given workload.
      * 
* - * optional .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1; + * + * optional .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1; + * + * * @return The setupStatus. */ - @java.lang.Override public com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupState getSetupStatus() { + @java.lang.Override + public com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupState + getSetupStatus() { @SuppressWarnings("deprecation") - com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupState result = com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupState.valueOf(setupStatus_); - return result == null ? com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupState.UNRECOGNIZED : result; + com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupState result = + com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupState.valueOf( + setupStatus_); + return result == null + ? com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupState + .UNRECOGNIZED + : result; } public static final int SETUP_ERRORS_FIELD_NUMBER = 2; private java.util.List setupErrors_; private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError> setupErrors_converter_ = + java.lang.Integer, + com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError> + setupErrors_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError>() { - public com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError convert(java.lang.Integer from) { + java.lang.Integer, + com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError>() { + public com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError + convert(java.lang.Integer from) { @SuppressWarnings("deprecation") - com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError result = com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError.valueOf(from); - return result == null ? com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError.UNRECOGNIZED : result; + com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError + result = + com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse + .SetupError.valueOf(from); + return result == null + ? com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError + .UNRECOGNIZED + : result; } }; /** + * + * *
      * Indicates SAA enrollment setup error if any.
      * 
* - * repeated .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; + * + * repeated .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; + * + * * @return A list containing the setupErrors. */ @java.lang.Override - public java.util.List getSetupErrorsList() { + public java.util.List< + com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError> + getSetupErrorsList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError>(setupErrors_, setupErrors_converter_); + java.lang.Integer, + com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError>( + setupErrors_, setupErrors_converter_); } /** + * + * *
      * Indicates SAA enrollment setup error if any.
      * 
* - * repeated .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; + * + * repeated .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; + * + * * @return The count of setupErrors. */ @java.lang.Override @@ -4087,37 +4757,52 @@ public int getSetupErrorsCount() { return setupErrors_.size(); } /** + * + * *
      * Indicates SAA enrollment setup error if any.
      * 
* - * repeated .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; + * + * repeated .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; + * + * * @param index The index of the element to return. * @return The setupErrors at the given index. */ @java.lang.Override - public com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError getSetupErrors(int index) { + public com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError + getSetupErrors(int index) { return setupErrors_converter_.convert(setupErrors_.get(index)); } /** + * + * *
      * Indicates SAA enrollment setup error if any.
      * 
* - * repeated .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; + * + * repeated .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; + * + * * @return A list containing the enum numeric values on the wire for setupErrors. */ @java.lang.Override - public java.util.List - getSetupErrorsValueList() { + public java.util.List getSetupErrorsValueList() { return setupErrors_; } /** + * + * *
      * Indicates SAA enrollment setup error if any.
      * 
* - * repeated .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; + * + * repeated .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; + * + * * @param index The index of the value to return. * @return The enum numeric value on the wire of setupErrors at the given index. */ @@ -4125,9 +4810,11 @@ public com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.Setup public int getSetupErrorsValue(int index) { return setupErrors_.get(index); } + private int setupErrorsMemoizedSerializedSize; private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -4139,8 +4826,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 { getSerializedSize(); if (((bitField0_ & 0x00000001) != 0)) { output.writeEnum(1, setupStatus_); @@ -4162,20 +4848,20 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, setupStatus_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, setupStatus_); } { int dataSize = 0; for (int i = 0; i < setupErrors_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeEnumSizeNoTag(setupErrors_.get(i)); + dataSize += + com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(setupErrors_.get(i)); } size += dataSize; - if (!getSetupErrorsList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(dataSize); - }setupErrorsMemoizedSerializedSize = dataSize; + if (!getSetupErrorsList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + setupErrorsMemoizedSerializedSize = dataSize; } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -4185,12 +4871,13 @@ 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.assuredworkloads.v1.Workload.SaaEnrollmentResponse)) { return super.equals(obj); } - com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse other = (com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse) obj; + com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse other = + (com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse) obj; if (hasSetupStatus() != other.hasSetupStatus()) return false; if (hasSetupStatus()) { @@ -4222,87 +4909,95 @@ public int hashCode() { } public static com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse 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.assuredworkloads.v1.Workload.SaaEnrollmentResponse 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.assuredworkloads.v1.Workload.SaaEnrollmentResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse 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.assuredworkloads.v1.Workload.SaaEnrollmentResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse 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.assuredworkloads.v1.Workload.SaaEnrollmentResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse 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.assuredworkloads.v1.Workload.SaaEnrollmentResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse parseDelimitedFrom( - java.io.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.assuredworkloads.v1.Workload.SaaEnrollmentResponse + parseDelimitedFrom( + java.io.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.assuredworkloads.v1.Workload.SaaEnrollmentResponse 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.assuredworkloads.v1.Workload.SaaEnrollmentResponse 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.assuredworkloads.v1.Workload.SaaEnrollmentResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse 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 @@ -4312,44 +5007,49 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Signed Access Approvals (SAA) enrollment response.
      * 
* * Protobuf type {@code google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse} */ - 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.assuredworkloads.v1.Workload.SaaEnrollmentResponse) com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_Workload_SaaEnrollmentResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1_Workload_SaaEnrollmentResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_Workload_SaaEnrollmentResponse_fieldAccessorTable + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1_Workload_SaaEnrollmentResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.class, com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.Builder.class); + com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.class, + com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.Builder.class); } - // Construct using com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.newBuilder() + // Construct using + // com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -4361,14 +5061,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_Workload_SaaEnrollmentResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1_Workload_SaaEnrollmentResponse_descriptor; } @java.lang.Override - public com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse getDefaultInstanceForType() { - return com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.getDefaultInstance(); + public com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse + getDefaultInstanceForType() { + return com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse + .getDefaultInstance(); } @java.lang.Override @@ -4382,7 +5084,8 @@ public com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse build @java.lang.Override public com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse buildPartial() { - com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse result = new com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse(this); + com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse result = + new com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { @@ -4403,46 +5106,53 @@ public com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse build public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + 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.assuredworkloads.v1.Workload.SaaEnrollmentResponse) { - return mergeFrom((com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse)other); + return mergeFrom( + (com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse other) { - if (other == com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse other) { + if (other + == com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse + .getDefaultInstance()) return this; if (other.hasSetupStatus()) { setSetupStatus(other.getSetupStatus()); } @@ -4475,7 +5185,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -4484,37 +5196,55 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private int setupStatus_ = 0; /** + * + * *
        * Indicates SAA enrollment status of a given workload.
        * 
* - * optional .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1; + * + * optional .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1; + * + * * @return Whether the setupStatus field is set. */ - @java.lang.Override public boolean hasSetupStatus() { + @java.lang.Override + public boolean hasSetupStatus() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
        * Indicates SAA enrollment status of a given workload.
        * 
* - * optional .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1; + * + * optional .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1; + * + * * @return The enum numeric value on the wire for setupStatus. */ - @java.lang.Override public int getSetupStatusValue() { + @java.lang.Override + public int getSetupStatusValue() { return setupStatus_; } /** + * + * *
        * Indicates SAA enrollment status of a given workload.
        * 
* - * optional .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1; + * + * optional .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1; + * + * * @param value The enum numeric value on the wire for setupStatus to set. * @return This builder for chaining. */ @@ -4525,29 +5255,46 @@ public Builder setSetupStatusValue(int value) { return this; } /** + * + * *
        * Indicates SAA enrollment status of a given workload.
        * 
* - * optional .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1; + * + * optional .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1; + * + * * @return The setupStatus. */ @java.lang.Override - public com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupState getSetupStatus() { + public com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupState + getSetupStatus() { @SuppressWarnings("deprecation") - com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupState result = com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupState.valueOf(setupStatus_); - return result == null ? com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupState.UNRECOGNIZED : result; + com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupState result = + com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupState.valueOf( + setupStatus_); + return result == null + ? com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupState + .UNRECOGNIZED + : result; } /** + * + * *
        * Indicates SAA enrollment status of a given workload.
        * 
* - * optional .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1; + * + * optional .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1; + * + * * @param value The setupStatus to set. * @return This builder for chaining. */ - public Builder setSetupStatus(com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupState value) { + public Builder setSetupStatus( + com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupState value) { if (value == null) { throw new NullPointerException(); } @@ -4557,11 +5304,16 @@ public Builder setSetupStatus(com.google.cloud.assuredworkloads.v1.Workload.SaaE return this; } /** + * + * *
        * Indicates SAA enrollment status of a given workload.
        * 
* - * optional .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1; + * + * optional .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1; + * + * * @return This builder for chaining. */ public Builder clearSetupStatus() { @@ -4571,8 +5323,8 @@ public Builder clearSetupStatus() { return this; } - private java.util.List setupErrors_ = - java.util.Collections.emptyList(); + private java.util.List setupErrors_ = java.util.Collections.emptyList(); + private void ensureSetupErrorsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { setupErrors_ = new java.util.ArrayList(setupErrors_); @@ -4580,52 +5332,78 @@ private void ensureSetupErrorsIsMutable() { } } /** + * + * *
        * Indicates SAA enrollment setup error if any.
        * 
* - * repeated .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; + * + * repeated .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; + * + * * @return A list containing the setupErrors. */ - public java.util.List getSetupErrorsList() { + public java.util.List< + com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError> + getSetupErrorsList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError>(setupErrors_, setupErrors_converter_); + java.lang.Integer, + com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError>( + setupErrors_, setupErrors_converter_); } /** + * + * *
        * Indicates SAA enrollment setup error if any.
        * 
* - * repeated .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; + * + * repeated .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; + * + * * @return The count of setupErrors. */ public int getSetupErrorsCount() { return setupErrors_.size(); } /** + * + * *
        * Indicates SAA enrollment setup error if any.
        * 
* - * repeated .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; + * + * repeated .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; + * + * * @param index The index of the element to return. * @return The setupErrors at the given index. */ - public com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError getSetupErrors(int index) { + public com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError + getSetupErrors(int index) { return setupErrors_converter_.convert(setupErrors_.get(index)); } /** + * + * *
        * Indicates SAA enrollment setup error if any.
        * 
* - * repeated .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; + * + * repeated .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; + * + * * @param index The index to set the value at. * @param value The setupErrors to set. * @return This builder for chaining. */ public Builder setSetupErrors( - int index, com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError value) { + int index, + com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError value) { if (value == null) { throw new NullPointerException(); } @@ -4635,15 +5413,21 @@ public Builder setSetupErrors( return this; } /** + * + * *
        * Indicates SAA enrollment setup error if any.
        * 
* - * repeated .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; + * + * repeated .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; + * + * * @param value The setupErrors to add. * @return This builder for chaining. */ - public Builder addSetupErrors(com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError value) { + public Builder addSetupErrors( + com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError value) { if (value == null) { throw new NullPointerException(); } @@ -4653,29 +5437,44 @@ public Builder addSetupErrors(com.google.cloud.assuredworkloads.v1.Workload.SaaE return this; } /** + * + * *
        * Indicates SAA enrollment setup error if any.
        * 
* - * repeated .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; + * + * repeated .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; + * + * * @param values The setupErrors to add. * @return This builder for chaining. */ public Builder addAllSetupErrors( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends + com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse + .SetupError> + values) { ensureSetupErrorsIsMutable(); - for (com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError value : values) { + for (com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError value : + values) { setupErrors_.add(value.getNumber()); } onChanged(); return this; } /** + * + * *
        * Indicates SAA enrollment setup error if any.
        * 
* - * repeated .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; + * + * repeated .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; + * + * * @return This builder for chaining. */ public Builder clearSetupErrors() { @@ -4685,23 +5484,32 @@ public Builder clearSetupErrors() { return this; } /** + * + * *
        * Indicates SAA enrollment setup error if any.
        * 
* - * repeated .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; + * + * repeated .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; + * + * * @return A list containing the enum numeric values on the wire for setupErrors. */ - public java.util.List - getSetupErrorsValueList() { + public java.util.List getSetupErrorsValueList() { return java.util.Collections.unmodifiableList(setupErrors_); } /** + * + * *
        * Indicates SAA enrollment setup error if any.
        * 
* - * repeated .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; + * + * repeated .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; + * + * * @param index The index of the value to return. * @return The enum numeric value on the wire of setupErrors at the given index. */ @@ -4709,28 +5517,37 @@ public int getSetupErrorsValue(int index) { return setupErrors_.get(index); } /** + * + * *
        * Indicates SAA enrollment setup error if any.
        * 
* - * repeated .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; + * + * repeated .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; + * + * * @param index The index of the value to return. * @return The enum numeric value on the wire of setupErrors at the given index. * @return This builder for chaining. */ - public Builder setSetupErrorsValue( - int index, int value) { + public Builder setSetupErrorsValue(int index, int value) { ensureSetupErrorsIsMutable(); setupErrors_.set(index, value); onChanged(); return this; } /** + * + * *
        * Indicates SAA enrollment setup error if any.
        * 
* - * repeated .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; + * + * repeated .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; + * + * * @param value The enum numeric value on the wire for setupErrors to add. * @return This builder for chaining. */ @@ -4741,16 +5558,20 @@ public Builder addSetupErrorsValue(int value) { return this; } /** + * + * *
        * Indicates SAA enrollment setup error if any.
        * 
* - * repeated .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; + * + * repeated .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; + * + * * @param values The enum numeric values on the wire for setupErrors to add. * @return This builder for chaining. */ - public Builder addAllSetupErrorsValue( - java.lang.Iterable values) { + public Builder addAllSetupErrorsValue(java.lang.Iterable values) { ensureSetupErrorsIsMutable(); for (int value : values) { setupErrors_.add(value); @@ -4758,6 +5579,7 @@ public Builder addAllSetupErrorsValue( onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -4770,30 +5592,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse) } // @@protoc_insertion_point(class_scope:google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse) - private static final com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse DEFAULT_INSTANCE; + private static final com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse(); } - public static com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse getDefaultInstance() { + public static com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SaaEnrollmentResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SaaEnrollmentResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SaaEnrollmentResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SaaEnrollmentResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4805,15 +5629,17 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse getDefaultInstanceForType() { + public com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Optional. The resource name of the workload.
    * Format:
@@ -4822,6 +5648,7 @@ public com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse getDe
    * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The name. */ @java.lang.Override @@ -4830,14 +5657,15 @@ 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; } } /** + * + * *
    * Optional. The resource name of the workload.
    * Format:
@@ -4846,16 +5674,15 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -4866,6 +5693,8 @@ public java.lang.String getName() { public static final int DISPLAY_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object displayName_; /** + * + * *
    * Required. The user-assigned display name of the Workload.
    * When present it must be between 4 to 30 characters.
@@ -4875,6 +5704,7 @@ public java.lang.String getName() {
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The displayName. */ @java.lang.Override @@ -4883,14 +5713,15 @@ public java.lang.String getDisplayName() { 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(); displayName_ = s; return s; } } /** + * + * *
    * Required. The user-assigned display name of the Workload.
    * When present it must be between 4 to 30 characters.
@@ -4900,16 +5731,15 @@ public java.lang.String getDisplayName() {
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; 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); displayName_ = b; return b; } else { @@ -4920,6 +5750,8 @@ public java.lang.String getDisplayName() { public static final int RESOURCES_FIELD_NUMBER = 3; private java.util.List resources_; /** + * + * *
    * Output only. The resources associated with this workload.
    * These resources will be created when creating the workload.
@@ -4927,13 +5759,18 @@ public java.lang.String getDisplayName() {
    * Always read only.
    * 
* - * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.List getResourcesList() { + public java.util.List + getResourcesList() { return resources_; } /** + * + * *
    * Output only. The resources associated with this workload.
    * These resources will be created when creating the workload.
@@ -4941,14 +5778,19 @@ public java.util.List
    *
-   * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+   * 
+   * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+   * 
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List<
+          ? extends com.google.cloud.assuredworkloads.v1.Workload.ResourceInfoOrBuilder>
       getResourcesOrBuilderList() {
     return resources_;
   }
   /**
+   *
+   *
    * 
    * Output only. The resources associated with this workload.
    * These resources will be created when creating the workload.
@@ -4956,13 +5798,17 @@ public java.util.List
    *
-   * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+   * 
+   * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+   * 
    */
   @java.lang.Override
   public int getResourcesCount() {
     return resources_.size();
   }
   /**
+   *
+   *
    * 
    * Output only. The resources associated with this workload.
    * These resources will be created when creating the workload.
@@ -4970,13 +5816,17 @@ public int getResourcesCount() {
    * Always read only.
    * 
* - * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo getResources(int index) { return resources_.get(index); } /** + * + * *
    * Output only. The resources associated with this workload.
    * These resources will be created when creating the workload.
@@ -4984,7 +5834,9 @@ public com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo getResources(i
    * Always read only.
    * 
* - * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.assuredworkloads.v1.Workload.ResourceInfoOrBuilder getResourcesOrBuilder( @@ -4995,38 +5847,58 @@ public com.google.cloud.assuredworkloads.v1.Workload.ResourceInfoOrBuilder getRe public static final int COMPLIANCE_REGIME_FIELD_NUMBER = 4; private int complianceRegime_; /** + * + * *
    * Required. Immutable. Compliance Regime associated with this workload.
    * 
* - * .google.cloud.assuredworkloads.v1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The enum numeric value on the wire for complianceRegime. */ - @java.lang.Override public int getComplianceRegimeValue() { + @java.lang.Override + public int getComplianceRegimeValue() { return complianceRegime_; } /** + * + * *
    * Required. Immutable. Compliance Regime associated with this workload.
    * 
* - * .google.cloud.assuredworkloads.v1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The complianceRegime. */ - @java.lang.Override public com.google.cloud.assuredworkloads.v1.Workload.ComplianceRegime getComplianceRegime() { + @java.lang.Override + public com.google.cloud.assuredworkloads.v1.Workload.ComplianceRegime getComplianceRegime() { @SuppressWarnings("deprecation") - com.google.cloud.assuredworkloads.v1.Workload.ComplianceRegime result = com.google.cloud.assuredworkloads.v1.Workload.ComplianceRegime.valueOf(complianceRegime_); - return result == null ? com.google.cloud.assuredworkloads.v1.Workload.ComplianceRegime.UNRECOGNIZED : result; + com.google.cloud.assuredworkloads.v1.Workload.ComplianceRegime result = + com.google.cloud.assuredworkloads.v1.Workload.ComplianceRegime.valueOf(complianceRegime_); + return result == null + ? com.google.cloud.assuredworkloads.v1.Workload.ComplianceRegime.UNRECOGNIZED + : result; } public static final int CREATE_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. Immutable. The Workload creation timestamp.
    * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -5034,11 +5906,16 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. Immutable. The Workload creation timestamp.
    * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The createTime. */ @java.lang.Override @@ -5046,11 +5923,15 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. Immutable. The Workload creation timestamp.
    * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -5060,6 +5941,8 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int BILLING_ACCOUNT_FIELD_NUMBER = 6; private volatile java.lang.Object billingAccount_; /** + * + * *
    * Required. Input only. The billing account used for the resources which are
    * direct children of workload. This billing account is initially associated
@@ -5071,7 +5954,10 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
    * `billingAccounts/012345-567890-ABCDEF`.
    * 
* - * string billing_account = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * string billing_account = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The billingAccount. */ @java.lang.Override @@ -5080,14 +5966,15 @@ public java.lang.String getBillingAccount() { 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(); billingAccount_ = s; return s; } } /** + * + * *
    * Required. Input only. The billing account used for the resources which are
    * direct children of workload. This billing account is initially associated
@@ -5099,17 +5986,18 @@ public java.lang.String getBillingAccount() {
    * `billingAccounts/012345-567890-ABCDEF`.
    * 
* - * string billing_account = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * string billing_account = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The bytes for billingAccount. */ @java.lang.Override - public com.google.protobuf.ByteString - getBillingAccountBytes() { + public com.google.protobuf.ByteString getBillingAccountBytes() { java.lang.Object ref = billingAccount_; 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); billingAccount_ = b; return b; } else { @@ -5120,12 +6008,15 @@ public java.lang.String getBillingAccount() { public static final int ETAG_FIELD_NUMBER = 9; private volatile java.lang.Object etag_; /** + * + * *
    * Optional. ETag of the workload, it is calculated on the basis
    * of the Workload contents. It will be used in Update & Delete operations.
    * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The etag. */ @java.lang.Override @@ -5134,30 +6025,30 @@ public java.lang.String getEtag() { 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(); etag_ = s; return s; } } /** + * + * *
    * Optional. ETag of the workload, it is calculated on the basis
    * of the Workload contents. It will be used in Update & Delete operations.
    * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -5166,24 +6057,23 @@ public java.lang.String getEtag() { } public static final int LABELS_FIELD_NUMBER = 10; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_Workload_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1_Workload_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -5192,28 +6082,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Optional. Labels applied to the workload.
    * 
* * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; */ - @java.lang.Override - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetLabels().getMap().containsKey(key); } - /** - * Use {@link #getLabelsMap()} instead. - */ + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** + * + * *
    * Optional. Labels applied to the workload.
    * 
@@ -5221,11 +6113,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
    * Optional. Labels applied to the workload.
    * 
@@ -5233,16 +6126,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Optional. Labels applied to the workload.
    * 
@@ -5250,12 +6143,11 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -5265,6 +6157,8 @@ public java.lang.String getLabelsOrThrow( public static final int PROVISIONED_RESOURCES_PARENT_FIELD_NUMBER = 13; private volatile java.lang.Object provisionedResourcesParent_; /** + * + * *
    * Input only. The parent resource for the resources managed by this Assured
    * Workload. May be either empty or a folder resource which is a child of the
@@ -5274,7 +6168,9 @@ public java.lang.String getLabelsOrThrow(
    * folders/{folder_id}
    * 
* - * string provisioned_resources_parent = 13 [(.google.api.field_behavior) = INPUT_ONLY]; + * string provisioned_resources_parent = 13 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The provisionedResourcesParent. */ @java.lang.Override @@ -5283,14 +6179,15 @@ public java.lang.String getProvisionedResourcesParent() { 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(); provisionedResourcesParent_ = s; return s; } } /** + * + * *
    * Input only. The parent resource for the resources managed by this Assured
    * Workload. May be either empty or a folder resource which is a child of the
@@ -5300,17 +6197,17 @@ public java.lang.String getProvisionedResourcesParent() {
    * folders/{folder_id}
    * 
* - * string provisioned_resources_parent = 13 [(.google.api.field_behavior) = INPUT_ONLY]; + * string provisioned_resources_parent = 13 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The bytes for provisionedResourcesParent. */ @java.lang.Override - public com.google.protobuf.ByteString - getProvisionedResourcesParentBytes() { + public com.google.protobuf.ByteString getProvisionedResourcesParentBytes() { java.lang.Object ref = provisionedResourcesParent_; 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); provisionedResourcesParent_ = b; return b; } else { @@ -5321,13 +6218,18 @@ public java.lang.String getProvisionedResourcesParent() { public static final int KMS_SETTINGS_FIELD_NUMBER = 14; private com.google.cloud.assuredworkloads.v1.Workload.KMSSettings kmsSettings_; /** + * + * *
    * Input only. Settings used to create a CMEK crypto key. When set a project
    * with a KMS CMEK key is provisioned. This field is mandatory for a subset of
    * Compliance Regimes.
    * 
* - * .google.cloud.assuredworkloads.v1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.assuredworkloads.v1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return Whether the kmsSettings field is set. */ @java.lang.Override @@ -5335,139 +6237,194 @@ public boolean hasKmsSettings() { return kmsSettings_ != null; } /** + * + * *
    * Input only. Settings used to create a CMEK crypto key. When set a project
    * with a KMS CMEK key is provisioned. This field is mandatory for a subset of
    * Compliance Regimes.
    * 
* - * .google.cloud.assuredworkloads.v1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.assuredworkloads.v1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The kmsSettings. */ @java.lang.Override public com.google.cloud.assuredworkloads.v1.Workload.KMSSettings getKmsSettings() { - return kmsSettings_ == null ? com.google.cloud.assuredworkloads.v1.Workload.KMSSettings.getDefaultInstance() : kmsSettings_; + return kmsSettings_ == null + ? com.google.cloud.assuredworkloads.v1.Workload.KMSSettings.getDefaultInstance() + : kmsSettings_; } /** + * + * *
    * Input only. Settings used to create a CMEK crypto key. When set a project
    * with a KMS CMEK key is provisioned. This field is mandatory for a subset of
    * Compliance Regimes.
    * 
* - * .google.cloud.assuredworkloads.v1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.assuredworkloads.v1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.assuredworkloads.v1.Workload.KMSSettingsOrBuilder getKmsSettingsOrBuilder() { + public com.google.cloud.assuredworkloads.v1.Workload.KMSSettingsOrBuilder + getKmsSettingsOrBuilder() { return getKmsSettings(); } public static final int RESOURCE_SETTINGS_FIELD_NUMBER = 15; - private java.util.List resourceSettings_; + private java.util.List + resourceSettings_; /** + * + * *
    * Input only. Resource properties that are used to customize workload
    * resources. These properties (such as custom project id) will be used to
    * create workload resources if possible. This field is optional.
    * 
* - * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ @java.lang.Override - public java.util.List getResourceSettingsList() { + public java.util.List + getResourceSettingsList() { return resourceSettings_; } /** + * + * *
    * Input only. Resource properties that are used to customize workload
    * resources. These properties (such as custom project id) will be used to
    * create workload resources if possible. This field is optional.
    * 
* - * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.assuredworkloads.v1.Workload.ResourceSettingsOrBuilder> getResourceSettingsOrBuilderList() { return resourceSettings_; } /** + * + * *
    * Input only. Resource properties that are used to customize workload
    * resources. These properties (such as custom project id) will be used to
    * create workload resources if possible. This field is optional.
    * 
* - * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ @java.lang.Override public int getResourceSettingsCount() { return resourceSettings_.size(); } /** + * + * *
    * Input only. Resource properties that are used to customize workload
    * resources. These properties (such as custom project id) will be used to
    * create workload resources if possible. This field is optional.
    * 
* - * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings getResourceSettings(int index) { + public com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings getResourceSettings( + int index) { return resourceSettings_.get(index); } /** + * + * *
    * Input only. Resource properties that are used to customize workload
    * resources. These properties (such as custom project id) will be used to
    * create workload resources if possible. This field is optional.
    * 
* - * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.assuredworkloads.v1.Workload.ResourceSettingsOrBuilder getResourceSettingsOrBuilder( - int index) { + public com.google.cloud.assuredworkloads.v1.Workload.ResourceSettingsOrBuilder + getResourceSettingsOrBuilder(int index) { return resourceSettings_.get(index); } public static final int KAJ_ENROLLMENT_STATE_FIELD_NUMBER = 17; private int kajEnrollmentState_; /** + * + * *
    * Output only. Represents the KAJ enrollment state of the given workload.
    * 
* - * .google.cloud.assuredworkloads.v1.Workload.KajEnrollmentState kaj_enrollment_state = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.assuredworkloads.v1.Workload.KajEnrollmentState kaj_enrollment_state = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for kajEnrollmentState. */ - @java.lang.Override public int getKajEnrollmentStateValue() { + @java.lang.Override + public int getKajEnrollmentStateValue() { return kajEnrollmentState_; } /** + * + * *
    * Output only. Represents the KAJ enrollment state of the given workload.
    * 
* - * .google.cloud.assuredworkloads.v1.Workload.KajEnrollmentState kaj_enrollment_state = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.assuredworkloads.v1.Workload.KajEnrollmentState kaj_enrollment_state = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The kajEnrollmentState. */ - @java.lang.Override public com.google.cloud.assuredworkloads.v1.Workload.KajEnrollmentState getKajEnrollmentState() { + @java.lang.Override + public com.google.cloud.assuredworkloads.v1.Workload.KajEnrollmentState getKajEnrollmentState() { @SuppressWarnings("deprecation") - com.google.cloud.assuredworkloads.v1.Workload.KajEnrollmentState result = com.google.cloud.assuredworkloads.v1.Workload.KajEnrollmentState.valueOf(kajEnrollmentState_); - return result == null ? com.google.cloud.assuredworkloads.v1.Workload.KajEnrollmentState.UNRECOGNIZED : result; + com.google.cloud.assuredworkloads.v1.Workload.KajEnrollmentState result = + com.google.cloud.assuredworkloads.v1.Workload.KajEnrollmentState.valueOf( + kajEnrollmentState_); + return result == null + ? com.google.cloud.assuredworkloads.v1.Workload.KajEnrollmentState.UNRECOGNIZED + : result; } public static final int ENABLE_SOVEREIGN_CONTROLS_FIELD_NUMBER = 18; private boolean enableSovereignControls_; /** + * + * *
    * Optional. Indicates the sovereignty status of the given workload.
    * Currently meant to be used by Europe/Canada customers.
    * 
* * bool enable_sovereign_controls = 18 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The enableSovereignControls. */ @java.lang.Override @@ -5476,15 +6433,21 @@ public boolean getEnableSovereignControls() { } public static final int SAA_ENROLLMENT_RESPONSE_FIELD_NUMBER = 20; - private com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse saaEnrollmentResponse_; + private com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse + saaEnrollmentResponse_; /** + * + * *
    * Output only. Represents the SAA enrollment response of the given workload.
    * SAA enrollment response is queried during GetWorkload call.
    * In failure cases, user friendly error message is shown in SAA details page.
    * 
* - * .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the saaEnrollmentResponse field is set. */ @java.lang.Override @@ -5492,34 +6455,48 @@ public boolean hasSaaEnrollmentResponse() { return saaEnrollmentResponse_ != null; } /** + * + * *
    * Output only. Represents the SAA enrollment response of the given workload.
    * SAA enrollment response is queried during GetWorkload call.
    * In failure cases, user friendly error message is shown in SAA details page.
    * 
* - * .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The saaEnrollmentResponse. */ @java.lang.Override - public com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse getSaaEnrollmentResponse() { - return saaEnrollmentResponse_ == null ? com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.getDefaultInstance() : saaEnrollmentResponse_; + public com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse + getSaaEnrollmentResponse() { + return saaEnrollmentResponse_ == null + ? com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.getDefaultInstance() + : saaEnrollmentResponse_; } /** + * + * *
    * Output only. Represents the SAA enrollment response of the given workload.
    * SAA enrollment response is queried during GetWorkload call.
    * In failure cases, user friendly error message is shown in SAA details page.
    * 
* - * .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponseOrBuilder getSaaEnrollmentResponseOrBuilder() { + public com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponseOrBuilder + getSaaEnrollmentResponseOrBuilder() { return getSaaEnrollmentResponse(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -5531,8 +6508,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_); } @@ -5542,7 +6518,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < resources_.size(); i++) { output.writeMessage(3, resources_.get(i)); } - if (complianceRegime_ != com.google.cloud.assuredworkloads.v1.Workload.ComplianceRegime.COMPLIANCE_REGIME_UNSPECIFIED.getNumber()) { + if (complianceRegime_ + != com.google.cloud.assuredworkloads.v1.Workload.ComplianceRegime + .COMPLIANCE_REGIME_UNSPECIFIED + .getNumber()) { output.writeEnum(4, complianceRegime_); } if (createTime_ != null) { @@ -5554,12 +6533,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, etag_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 10); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 10); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(provisionedResourcesParent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 13, provisionedResourcesParent_); } @@ -5569,7 +6544,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < resourceSettings_.size(); i++) { output.writeMessage(15, resourceSettings_.get(i)); } - if (kajEnrollmentState_ != com.google.cloud.assuredworkloads.v1.Workload.KajEnrollmentState.KAJ_ENROLLMENT_STATE_UNSPECIFIED.getNumber()) { + if (kajEnrollmentState_ + != com.google.cloud.assuredworkloads.v1.Workload.KajEnrollmentState + .KAJ_ENROLLMENT_STATE_UNSPECIFIED + .getNumber()) { output.writeEnum(17, kajEnrollmentState_); } if (enableSovereignControls_ != false) { @@ -5594,16 +6572,16 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); } for (int i = 0; i < resources_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, resources_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, resources_.get(i)); } - if (complianceRegime_ != com.google.cloud.assuredworkloads.v1.Workload.ComplianceRegime.COMPLIANCE_REGIME_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, complianceRegime_); + if (complianceRegime_ + != com.google.cloud.assuredworkloads.v1.Workload.ComplianceRegime + .COMPLIANCE_REGIME_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, complianceRegime_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCreateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(billingAccount_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, billingAccount_); @@ -5611,38 +6589,39 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, etag_); } - for (java.util.Map.Entry entry - : internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry - labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, labels__); + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, labels__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(provisionedResourcesParent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, provisionedResourcesParent_); + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize(13, provisionedResourcesParent_); } if (kmsSettings_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(14, getKmsSettings()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getKmsSettings()); } for (int i = 0; i < resourceSettings_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(15, resourceSettings_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(15, resourceSettings_.get(i)); } - if (kajEnrollmentState_ != com.google.cloud.assuredworkloads.v1.Workload.KajEnrollmentState.KAJ_ENROLLMENT_STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(17, kajEnrollmentState_); + if (kajEnrollmentState_ + != com.google.cloud.assuredworkloads.v1.Workload.KajEnrollmentState + .KAJ_ENROLLMENT_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(17, kajEnrollmentState_); } if (enableSovereignControls_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(18, enableSovereignControls_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(18, enableSovereignControls_); } if (saaEnrollmentResponse_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(20, getSaaEnrollmentResponse()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(20, getSaaEnrollmentResponse()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -5652,47 +6631,37 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.assuredworkloads.v1.Workload)) { return super.equals(obj); } - com.google.cloud.assuredworkloads.v1.Workload other = (com.google.cloud.assuredworkloads.v1.Workload) obj; + com.google.cloud.assuredworkloads.v1.Workload other = + (com.google.cloud.assuredworkloads.v1.Workload) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; - if (!getResourcesList() - .equals(other.getResourcesList())) return false; + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getResourcesList().equals(other.getResourcesList())) return false; if (complianceRegime_ != other.complianceRegime_) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; - } - if (!getBillingAccount() - .equals(other.getBillingAccount())) return false; - if (!getEtag() - .equals(other.getEtag())) return false; - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; - if (!getProvisionedResourcesParent() - .equals(other.getProvisionedResourcesParent())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (!getBillingAccount().equals(other.getBillingAccount())) return false; + if (!getEtag().equals(other.getEtag())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getProvisionedResourcesParent().equals(other.getProvisionedResourcesParent())) + return false; if (hasKmsSettings() != other.hasKmsSettings()) return false; if (hasKmsSettings()) { - if (!getKmsSettings() - .equals(other.getKmsSettings())) return false; + if (!getKmsSettings().equals(other.getKmsSettings())) return false; } - if (!getResourceSettingsList() - .equals(other.getResourceSettingsList())) return false; + if (!getResourceSettingsList().equals(other.getResourceSettingsList())) return false; if (kajEnrollmentState_ != other.kajEnrollmentState_) return false; - if (getEnableSovereignControls() - != other.getEnableSovereignControls()) return false; + if (getEnableSovereignControls() != other.getEnableSovereignControls()) return false; if (hasSaaEnrollmentResponse() != other.hasSaaEnrollmentResponse()) return false; if (hasSaaEnrollmentResponse()) { - if (!getSaaEnrollmentResponse() - .equals(other.getSaaEnrollmentResponse())) return false; + if (!getSaaEnrollmentResponse().equals(other.getSaaEnrollmentResponse())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -5740,8 +6709,7 @@ public int hashCode() { hash = (37 * hash) + KAJ_ENROLLMENT_STATE_FIELD_NUMBER; hash = (53 * hash) + kajEnrollmentState_; hash = (37 * hash) + ENABLE_SOVEREIGN_CONTROLS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnableSovereignControls()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableSovereignControls()); if (hasSaaEnrollmentResponse()) { hash = (37 * hash) + SAA_ENROLLMENT_RESPONSE_FIELD_NUMBER; hash = (53 * hash) + getSaaEnrollmentResponse().hashCode(); @@ -5751,97 +6719,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.assuredworkloads.v1.Workload parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.assuredworkloads.v1.Workload parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.assuredworkloads.v1.Workload 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.assuredworkloads.v1.Workload parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.assuredworkloads.v1.Workload 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.assuredworkloads.v1.Workload parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.assuredworkloads.v1.Workload 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.assuredworkloads.v1.Workload parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.assuredworkloads.v1.Workload 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.assuredworkloads.v1.Workload parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.assuredworkloads.v1.Workload parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.assuredworkloads.v1.Workload 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.assuredworkloads.v1.Workload 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.assuredworkloads.v1.Workload 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.assuredworkloads.v1.Workload prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * An Workload object for managing highly regulated workloads of cloud
    * customers.
@@ -5849,43 +6824,43 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.assuredworkloads.v1.Workload}
    */
-  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.assuredworkloads.v1.Workload)
       com.google.cloud.assuredworkloads.v1.WorkloadOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_Workload_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto
+          .internal_static_google_cloud_assuredworkloads_v1_Workload_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 10:
           return internalGetLabels();
         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 10:
           return internalGetMutableLabels();
         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.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_Workload_fieldAccessorTable
+      return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto
+          .internal_static_google_cloud_assuredworkloads_v1_Workload_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.assuredworkloads.v1.Workload.class, com.google.cloud.assuredworkloads.v1.Workload.Builder.class);
+              com.google.cloud.assuredworkloads.v1.Workload.class,
+              com.google.cloud.assuredworkloads.v1.Workload.Builder.class);
     }
 
     // Construct using com.google.cloud.assuredworkloads.v1.Workload.newBuilder()
@@ -5893,18 +6868,18 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getResourcesFieldBuilder();
         getResourceSettingsFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -5959,9 +6934,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1_Workload_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.assuredworkloads.v1.AssuredworkloadsProto
+          .internal_static_google_cloud_assuredworkloads_v1_Workload_descriptor;
     }
 
     @java.lang.Override
@@ -5980,7 +6955,8 @@ public com.google.cloud.assuredworkloads.v1.Workload build() {
 
     @java.lang.Override
     public com.google.cloud.assuredworkloads.v1.Workload buildPartial() {
-      com.google.cloud.assuredworkloads.v1.Workload result = new com.google.cloud.assuredworkloads.v1.Workload(this);
+      com.google.cloud.assuredworkloads.v1.Workload result =
+          new com.google.cloud.assuredworkloads.v1.Workload(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       result.displayName_ = displayName_;
@@ -6033,38 +7009,39 @@ public com.google.cloud.assuredworkloads.v1.Workload buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.assuredworkloads.v1.Workload) {
-        return mergeFrom((com.google.cloud.assuredworkloads.v1.Workload)other);
+        return mergeFrom((com.google.cloud.assuredworkloads.v1.Workload) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -6099,9 +7076,10 @@ public Builder mergeFrom(com.google.cloud.assuredworkloads.v1.Workload other) {
             resourcesBuilder_ = null;
             resources_ = other.resources_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            resourcesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getResourcesFieldBuilder() : null;
+            resourcesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getResourcesFieldBuilder()
+                    : null;
           } else {
             resourcesBuilder_.addAllMessages(other.resources_);
           }
@@ -6121,8 +7099,7 @@ public Builder mergeFrom(com.google.cloud.assuredworkloads.v1.Workload other) {
         etag_ = other.etag_;
         onChanged();
       }
-      internalGetMutableLabels().mergeFrom(
-          other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
       if (!other.getProvisionedResourcesParent().isEmpty()) {
         provisionedResourcesParent_ = other.provisionedResourcesParent_;
         onChanged();
@@ -6148,9 +7125,10 @@ public Builder mergeFrom(com.google.cloud.assuredworkloads.v1.Workload other) {
             resourceSettingsBuilder_ = null;
             resourceSettings_ = other.resourceSettings_;
             bitField0_ = (bitField0_ & ~0x00000004);
-            resourceSettingsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getResourceSettingsFieldBuilder() : null;
+            resourceSettingsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getResourceSettingsFieldBuilder()
+                    : null;
           } else {
             resourceSettingsBuilder_.addAllMessages(other.resourceSettings_);
           }
@@ -6193,10 +7171,13 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Optional. The resource name of the workload.
      * Format:
@@ -6205,13 +7186,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; @@ -6220,6 +7201,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Optional. The resource name of the workload.
      * Format:
@@ -6228,15 +7211,14 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -6244,6 +7226,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Optional. The resource name of the workload.
      * Format:
@@ -6252,20 +7236,22 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The resource name of the workload.
      * Format:
@@ -6274,15 +7260,18 @@ public Builder setName(
      * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Optional. The resource name of the workload.
      * Format:
@@ -6291,16 +7280,16 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -6308,6 +7297,8 @@ public Builder setNameBytes( private java.lang.Object displayName_ = ""; /** + * + * *
      * Required. The user-assigned display name of the Workload.
      * When present it must be between 4 to 30 characters.
@@ -6317,13 +7308,13 @@ public Builder setNameBytes(
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; 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(); displayName_ = s; return s; @@ -6332,6 +7323,8 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Required. The user-assigned display name of the Workload.
      * When present it must be between 4 to 30 characters.
@@ -6341,15 +7334,14 @@ public java.lang.String getDisplayName() {
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; 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); displayName_ = b; return b; } else { @@ -6357,6 +7349,8 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Required. The user-assigned display name of the Workload.
      * When present it must be between 4 to 30 characters.
@@ -6366,20 +7360,22 @@ public java.lang.String getDisplayName() {
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { + public Builder setDisplayName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** + * + * *
      * Required. The user-assigned display name of the Workload.
      * When present it must be between 4 to 30 characters.
@@ -6389,15 +7385,18 @@ public Builder setDisplayName(
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** + * + * *
      * Required. The user-assigned display name of the Workload.
      * When present it must be between 4 to 30 characters.
@@ -6407,34 +7406,42 @@ public Builder clearDisplayName() {
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; } private java.util.List resources_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureResourcesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - resources_ = new java.util.ArrayList(resources_); + resources_ = + new java.util.ArrayList( + resources_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo, com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.Builder, com.google.cloud.assuredworkloads.v1.Workload.ResourceInfoOrBuilder> resourcesBuilder_; + com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo, + com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.Builder, + com.google.cloud.assuredworkloads.v1.Workload.ResourceInfoOrBuilder> + resourcesBuilder_; /** + * + * *
      * Output only. The resources associated with this workload.
      * These resources will be created when creating the workload.
@@ -6442,9 +7449,12 @@ private void ensureResourcesIsMutable() {
      * Always read only.
      * 
* - * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List getResourcesList() { + public java.util.List + getResourcesList() { if (resourcesBuilder_ == null) { return java.util.Collections.unmodifiableList(resources_); } else { @@ -6452,6 +7462,8 @@ public java.util.List * Output only. The resources associated with this workload. * These resources will be created when creating the workload. @@ -6459,7 +7471,9 @@ public java.util.List * - * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public int getResourcesCount() { if (resourcesBuilder_ == null) { @@ -6469,6 +7483,8 @@ public int getResourcesCount() { } } /** + * + * *
      * Output only. The resources associated with this workload.
      * These resources will be created when creating the workload.
@@ -6476,7 +7492,9 @@ public int getResourcesCount() {
      * Always read only.
      * 
* - * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo getResources(int index) { if (resourcesBuilder_ == null) { @@ -6486,6 +7504,8 @@ public com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo getResources(i } } /** + * + * *
      * Output only. The resources associated with this workload.
      * These resources will be created when creating the workload.
@@ -6493,7 +7513,9 @@ public com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo getResources(i
      * Always read only.
      * 
* - * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setResources( int index, com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo value) { @@ -6510,6 +7532,8 @@ public Builder setResources( return this; } /** + * + * *
      * Output only. The resources associated with this workload.
      * These resources will be created when creating the workload.
@@ -6517,10 +7541,13 @@ public Builder setResources(
      * Always read only.
      * 
* - * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setResources( - int index, com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.Builder builderForValue) { + int index, + com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.Builder builderForValue) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); resources_.set(index, builderForValue.build()); @@ -6531,6 +7558,8 @@ public Builder setResources( return this; } /** + * + * *
      * Output only. The resources associated with this workload.
      * These resources will be created when creating the workload.
@@ -6538,7 +7567,9 @@ public Builder setResources(
      * Always read only.
      * 
* - * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addResources(com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo value) { if (resourcesBuilder_ == null) { @@ -6554,6 +7585,8 @@ public Builder addResources(com.google.cloud.assuredworkloads.v1.Workload.Resour return this; } /** + * + * *
      * Output only. The resources associated with this workload.
      * These resources will be created when creating the workload.
@@ -6561,7 +7594,9 @@ public Builder addResources(com.google.cloud.assuredworkloads.v1.Workload.Resour
      * Always read only.
      * 
* - * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addResources( int index, com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo value) { @@ -6578,6 +7613,8 @@ public Builder addResources( return this; } /** + * + * *
      * Output only. The resources associated with this workload.
      * These resources will be created when creating the workload.
@@ -6585,7 +7622,9 @@ public Builder addResources(
      * Always read only.
      * 
* - * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addResources( com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.Builder builderForValue) { @@ -6599,6 +7638,8 @@ public Builder addResources( return this; } /** + * + * *
      * Output only. The resources associated with this workload.
      * These resources will be created when creating the workload.
@@ -6606,10 +7647,13 @@ public Builder addResources(
      * Always read only.
      * 
* - * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addResources( - int index, com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.Builder builderForValue) { + int index, + com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.Builder builderForValue) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); resources_.add(index, builderForValue.build()); @@ -6620,6 +7664,8 @@ public Builder addResources( return this; } /** + * + * *
      * Output only. The resources associated with this workload.
      * These resources will be created when creating the workload.
@@ -6627,14 +7673,16 @@ public Builder addResources(
      * Always read only.
      * 
* - * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addAllResources( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, resources_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, resources_); onChanged(); } else { resourcesBuilder_.addAllMessages(values); @@ -6642,6 +7690,8 @@ public Builder addAllResources( return this; } /** + * + * *
      * Output only. The resources associated with this workload.
      * These resources will be created when creating the workload.
@@ -6649,7 +7699,9 @@ public Builder addAllResources(
      * Always read only.
      * 
* - * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearResources() { if (resourcesBuilder_ == null) { @@ -6662,6 +7714,8 @@ public Builder clearResources() { return this; } /** + * + * *
      * Output only. The resources associated with this workload.
      * These resources will be created when creating the workload.
@@ -6669,7 +7723,9 @@ public Builder clearResources() {
      * Always read only.
      * 
* - * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder removeResources(int index) { if (resourcesBuilder_ == null) { @@ -6682,6 +7738,8 @@ public Builder removeResources(int index) { return this; } /** + * + * *
      * Output only. The resources associated with this workload.
      * These resources will be created when creating the workload.
@@ -6689,13 +7747,17 @@ public Builder removeResources(int index) {
      * Always read only.
      * 
* - * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.Builder getResourcesBuilder( int index) { return getResourcesFieldBuilder().getBuilder(index); } /** + * + * *
      * Output only. The resources associated with this workload.
      * These resources will be created when creating the workload.
@@ -6703,16 +7765,21 @@ public com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.Builder getRes
      * Always read only.
      * 
* - * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.assuredworkloads.v1.Workload.ResourceInfoOrBuilder getResourcesOrBuilder( - int index) { + public com.google.cloud.assuredworkloads.v1.Workload.ResourceInfoOrBuilder + getResourcesOrBuilder(int index) { if (resourcesBuilder_ == null) { - return resources_.get(index); } else { + return resources_.get(index); + } else { return resourcesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Output only. The resources associated with this workload.
      * These resources will be created when creating the workload.
@@ -6720,10 +7787,13 @@ public com.google.cloud.assuredworkloads.v1.Workload.ResourceInfoOrBuilder getRe
      * Always read only.
      * 
* - * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getResourcesOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.assuredworkloads.v1.Workload.ResourceInfoOrBuilder> + getResourcesOrBuilderList() { if (resourcesBuilder_ != null) { return resourcesBuilder_.getMessageOrBuilderList(); } else { @@ -6731,6 +7801,8 @@ public com.google.cloud.assuredworkloads.v1.Workload.ResourceInfoOrBuilder getRe } } /** + * + * *
      * Output only. The resources associated with this workload.
      * These resources will be created when creating the workload.
@@ -6738,13 +7810,19 @@ public com.google.cloud.assuredworkloads.v1.Workload.ResourceInfoOrBuilder getRe
      * Always read only.
      * 
* - * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.Builder addResourcesBuilder() { - return getResourcesFieldBuilder().addBuilder( - com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.getDefaultInstance()); + public com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.Builder + addResourcesBuilder() { + return getResourcesFieldBuilder() + .addBuilder( + com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.getDefaultInstance()); } /** + * + * *
      * Output only. The resources associated with this workload.
      * These resources will be created when creating the workload.
@@ -6752,14 +7830,20 @@ public com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.Builder addRes
      * Always read only.
      * 
* - * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.Builder addResourcesBuilder( int index) { - return getResourcesFieldBuilder().addBuilder( - index, com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.getDefaultInstance()); + return getResourcesFieldBuilder() + .addBuilder( + index, + com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.getDefaultInstance()); } /** + * + * *
      * Output only. The resources associated with this workload.
      * These resources will be created when creating the workload.
@@ -6767,22 +7851,27 @@ public com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.Builder addRes
      * Always read only.
      * 
* - * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getResourcesBuilderList() { + public java.util.List + getResourcesBuilderList() { return getResourcesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo, com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.Builder, com.google.cloud.assuredworkloads.v1.Workload.ResourceInfoOrBuilder> + com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo, + com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.Builder, + com.google.cloud.assuredworkloads.v1.Workload.ResourceInfoOrBuilder> getResourcesFieldBuilder() { if (resourcesBuilder_ == null) { - resourcesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo, com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.Builder, com.google.cloud.assuredworkloads.v1.Workload.ResourceInfoOrBuilder>( - resources_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + resourcesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo, + com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.Builder, + com.google.cloud.assuredworkloads.v1.Workload.ResourceInfoOrBuilder>( + resources_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); resources_ = null; } return resourcesBuilder_; @@ -6790,73 +7879,103 @@ public com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo.Builder addRes private int complianceRegime_ = 0; /** + * + * *
      * Required. Immutable. Compliance Regime associated with this workload.
      * 
* - * .google.cloud.assuredworkloads.v1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The enum numeric value on the wire for complianceRegime. */ - @java.lang.Override public int getComplianceRegimeValue() { + @java.lang.Override + public int getComplianceRegimeValue() { return complianceRegime_; } /** + * + * *
      * Required. Immutable. Compliance Regime associated with this workload.
      * 
* - * .google.cloud.assuredworkloads.v1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @param value The enum numeric value on the wire for complianceRegime to set. * @return This builder for chaining. */ public Builder setComplianceRegimeValue(int value) { - + complianceRegime_ = value; onChanged(); return this; } /** + * + * *
      * Required. Immutable. Compliance Regime associated with this workload.
      * 
* - * .google.cloud.assuredworkloads.v1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The complianceRegime. */ @java.lang.Override public com.google.cloud.assuredworkloads.v1.Workload.ComplianceRegime getComplianceRegime() { @SuppressWarnings("deprecation") - com.google.cloud.assuredworkloads.v1.Workload.ComplianceRegime result = com.google.cloud.assuredworkloads.v1.Workload.ComplianceRegime.valueOf(complianceRegime_); - return result == null ? com.google.cloud.assuredworkloads.v1.Workload.ComplianceRegime.UNRECOGNIZED : result; + com.google.cloud.assuredworkloads.v1.Workload.ComplianceRegime result = + com.google.cloud.assuredworkloads.v1.Workload.ComplianceRegime.valueOf(complianceRegime_); + return result == null + ? com.google.cloud.assuredworkloads.v1.Workload.ComplianceRegime.UNRECOGNIZED + : result; } /** + * + * *
      * Required. Immutable. Compliance Regime associated with this workload.
      * 
* - * .google.cloud.assuredworkloads.v1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @param value The complianceRegime to set. * @return This builder for chaining. */ - public Builder setComplianceRegime(com.google.cloud.assuredworkloads.v1.Workload.ComplianceRegime value) { + public Builder setComplianceRegime( + com.google.cloud.assuredworkloads.v1.Workload.ComplianceRegime value) { if (value == null) { throw new NullPointerException(); } - + complianceRegime_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Required. Immutable. Compliance Regime associated with this workload.
      * 
* - * .google.cloud.assuredworkloads.v1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return This builder for chaining. */ public Builder clearComplianceRegime() { - + complianceRegime_ = 0; onChanged(); return this; @@ -6864,39 +7983,58 @@ public Builder clearComplianceRegime() { 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. Immutable. The Workload creation timestamp.
      * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** + * + * *
      * Output only. Immutable. The Workload creation timestamp.
      * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @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. Immutable. The Workload creation timestamp.
      * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -6912,14 +8050,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Immutable. The Workload creation timestamp.
      * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -6930,17 +8071,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. Immutable. The Workload creation timestamp.
      * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -6952,11 +8097,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Immutable. The Workload creation timestamp.
      * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -6970,48 +8119,64 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. Immutable. The Workload creation timestamp.
      * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Immutable. The Workload creation timestamp.
      * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ 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. Immutable. The Workload creation timestamp.
      * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ 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_; @@ -7019,6 +8184,8 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private java.lang.Object billingAccount_ = ""; /** + * + * *
      * Required. Input only. The billing account used for the resources which are
      * direct children of workload. This billing account is initially associated
@@ -7030,14 +8197,16 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
      * `billingAccounts/012345-567890-ABCDEF`.
      * 
* - * string billing_account = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * string billing_account = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The billingAccount. */ public java.lang.String getBillingAccount() { java.lang.Object ref = billingAccount_; 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(); billingAccount_ = s; return s; @@ -7046,6 +8215,8 @@ public java.lang.String getBillingAccount() { } } /** + * + * *
      * Required. Input only. The billing account used for the resources which are
      * direct children of workload. This billing account is initially associated
@@ -7057,16 +8228,17 @@ public java.lang.String getBillingAccount() {
      * `billingAccounts/012345-567890-ABCDEF`.
      * 
* - * string billing_account = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * string billing_account = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The bytes for billingAccount. */ - public com.google.protobuf.ByteString - getBillingAccountBytes() { + public com.google.protobuf.ByteString getBillingAccountBytes() { java.lang.Object ref = billingAccount_; 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); billingAccount_ = b; return b; } else { @@ -7074,6 +8246,8 @@ public java.lang.String getBillingAccount() { } } /** + * + * *
      * Required. Input only. The billing account used for the resources which are
      * direct children of workload. This billing account is initially associated
@@ -7085,21 +8259,25 @@ public java.lang.String getBillingAccount() {
      * `billingAccounts/012345-567890-ABCDEF`.
      * 
* - * string billing_account = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * string billing_account = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * * @param value The billingAccount to set. * @return This builder for chaining. */ - public Builder setBillingAccount( - java.lang.String value) { + public Builder setBillingAccount(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + billingAccount_ = value; onChanged(); return this; } /** + * + * *
      * Required. Input only. The billing account used for the resources which are
      * direct children of workload. This billing account is initially associated
@@ -7111,16 +8289,21 @@ public Builder setBillingAccount(
      * `billingAccounts/012345-567890-ABCDEF`.
      * 
* - * string billing_account = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * string billing_account = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearBillingAccount() { - + billingAccount_ = getDefaultInstance().getBillingAccount(); onChanged(); return this; } /** + * + * *
      * Required. Input only. The billing account used for the resources which are
      * direct children of workload. This billing account is initially associated
@@ -7132,17 +8315,19 @@ public Builder clearBillingAccount() {
      * `billingAccounts/012345-567890-ABCDEF`.
      * 
* - * string billing_account = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * string billing_account = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * * @param value The bytes for billingAccount to set. * @return This builder for chaining. */ - public Builder setBillingAccountBytes( - com.google.protobuf.ByteString value) { + public Builder setBillingAccountBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + billingAccount_ = value; onChanged(); return this; @@ -7150,19 +8335,21 @@ public Builder setBillingAccountBytes( private java.lang.Object etag_ = ""; /** + * + * *
      * Optional. ETag of the workload, it is calculated on the basis
      * of the Workload contents. It will be used in Update & Delete operations.
      * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; 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(); etag_ = s; return s; @@ -7171,21 +8358,22 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Optional. ETag of the workload, it is calculated on the basis
      * of the Workload contents. It will be used in Update & Delete operations.
      * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for etag. */ - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -7193,78 +8381,84 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Optional. ETag of the workload, it is calculated on the basis
      * of the Workload contents. It will be used in Update & Delete operations.
      * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag( - java.lang.String value) { + public Builder setEtag(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + etag_ = value; onChanged(); return this; } /** + * + * *
      * Optional. ETag of the workload, it is calculated on the basis
      * of the Workload contents. It will be used in Update & Delete operations.
      * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearEtag() { - + etag_ = getDefaultInstance().getEtag(); onChanged(); return this; } /** + * + * *
      * Optional. ETag of the workload, it is calculated on the basis
      * of the Workload contents. It will be used in Update & Delete operations.
      * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes( - com.google.protobuf.ByteString value) { + public Builder setEtagBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; onChanged(); return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged();; + internalGetMutableLabels() { + onChanged(); + ; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -7276,28 +8470,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Optional. Labels applied to the workload.
      * 
* * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; */ - @java.lang.Override - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetLabels().getMap().containsKey(key); } - /** - * Use {@link #getLabelsMap()} instead. - */ + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** + * + * *
      * Optional. Labels applied to the workload.
      * 
@@ -7305,11 +8501,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
      * Optional. Labels applied to the workload.
      * 
@@ -7317,16 +8514,17 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Optional. Labels applied to the workload.
      * 
@@ -7334,12 +8532,11 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -7347,69 +8544,68 @@ public java.lang.String getLabelsOrThrow( } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap() - .clear(); + internalGetMutableLabels().getMutableMap().clear(); return this; } /** + * + * *
      * Optional. Labels applied to the workload.
      * 
* * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; */ - - public Builder removeLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableLabels().getMutableMap() - .remove(key); + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabels().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableLabels() { + public java.util.Map getMutableLabels() { return internalGetMutableLabels().getMutableMap(); } /** + * + * *
      * Optional. Labels applied to the workload.
      * 
* * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder putLabels( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } if (value == null) { - throw new NullPointerException("map value"); -} + throw new NullPointerException("map value"); + } - internalGetMutableLabels().getMutableMap() - .put(key, value); + internalGetMutableLabels().getMutableMap().put(key, value); return this; } /** + * + * *
      * Optional. Labels applied to the workload.
      * 
* * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; */ - - public Builder putAllLabels( - java.util.Map values) { - internalGetMutableLabels().getMutableMap() - .putAll(values); + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); return this; } private java.lang.Object provisionedResourcesParent_ = ""; /** + * + * *
      * Input only. The parent resource for the resources managed by this Assured
      * Workload. May be either empty or a folder resource which is a child of the
@@ -7419,14 +8615,15 @@ public Builder putAllLabels(
      * folders/{folder_id}
      * 
* - * string provisioned_resources_parent = 13 [(.google.api.field_behavior) = INPUT_ONLY]; + * string provisioned_resources_parent = 13 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The provisionedResourcesParent. */ public java.lang.String getProvisionedResourcesParent() { java.lang.Object ref = provisionedResourcesParent_; 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(); provisionedResourcesParent_ = s; return s; @@ -7435,6 +8632,8 @@ public java.lang.String getProvisionedResourcesParent() { } } /** + * + * *
      * Input only. The parent resource for the resources managed by this Assured
      * Workload. May be either empty or a folder resource which is a child of the
@@ -7444,16 +8643,16 @@ public java.lang.String getProvisionedResourcesParent() {
      * folders/{folder_id}
      * 
* - * string provisioned_resources_parent = 13 [(.google.api.field_behavior) = INPUT_ONLY]; + * string provisioned_resources_parent = 13 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The bytes for provisionedResourcesParent. */ - public com.google.protobuf.ByteString - getProvisionedResourcesParentBytes() { + public com.google.protobuf.ByteString getProvisionedResourcesParentBytes() { java.lang.Object ref = provisionedResourcesParent_; 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); provisionedResourcesParent_ = b; return b; } else { @@ -7461,6 +8660,8 @@ public java.lang.String getProvisionedResourcesParent() { } } /** + * + * *
      * Input only. The parent resource for the resources managed by this Assured
      * Workload. May be either empty or a folder resource which is a child of the
@@ -7470,21 +8671,24 @@ public java.lang.String getProvisionedResourcesParent() {
      * folders/{folder_id}
      * 
* - * string provisioned_resources_parent = 13 [(.google.api.field_behavior) = INPUT_ONLY]; + * string provisioned_resources_parent = 13 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @param value The provisionedResourcesParent to set. * @return This builder for chaining. */ - public Builder setProvisionedResourcesParent( - java.lang.String value) { + public Builder setProvisionedResourcesParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + provisionedResourcesParent_ = value; onChanged(); return this; } /** + * + * *
      * Input only. The parent resource for the resources managed by this Assured
      * Workload. May be either empty or a folder resource which is a child of the
@@ -7494,16 +8698,20 @@ public Builder setProvisionedResourcesParent(
      * folders/{folder_id}
      * 
* - * string provisioned_resources_parent = 13 [(.google.api.field_behavior) = INPUT_ONLY]; + * string provisioned_resources_parent = 13 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearProvisionedResourcesParent() { - + provisionedResourcesParent_ = getDefaultInstance().getProvisionedResourcesParent(); onChanged(); return this; } /** + * + * *
      * Input only. The parent resource for the resources managed by this Assured
      * Workload. May be either empty or a folder resource which is a child of the
@@ -7513,17 +8721,18 @@ public Builder clearProvisionedResourcesParent() {
      * folders/{folder_id}
      * 
* - * string provisioned_resources_parent = 13 [(.google.api.field_behavior) = INPUT_ONLY]; + * string provisioned_resources_parent = 13 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @param value The bytes for provisionedResourcesParent to set. * @return This builder for chaining. */ - public Builder setProvisionedResourcesParentBytes( - com.google.protobuf.ByteString value) { + public Builder setProvisionedResourcesParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + provisionedResourcesParent_ = value; onChanged(); return this; @@ -7531,45 +8740,64 @@ public Builder setProvisionedResourcesParentBytes( private com.google.cloud.assuredworkloads.v1.Workload.KMSSettings kmsSettings_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.assuredworkloads.v1.Workload.KMSSettings, com.google.cloud.assuredworkloads.v1.Workload.KMSSettings.Builder, com.google.cloud.assuredworkloads.v1.Workload.KMSSettingsOrBuilder> kmsSettingsBuilder_; + com.google.cloud.assuredworkloads.v1.Workload.KMSSettings, + com.google.cloud.assuredworkloads.v1.Workload.KMSSettings.Builder, + com.google.cloud.assuredworkloads.v1.Workload.KMSSettingsOrBuilder> + kmsSettingsBuilder_; /** + * + * *
      * Input only. Settings used to create a CMEK crypto key. When set a project
      * with a KMS CMEK key is provisioned. This field is mandatory for a subset of
      * Compliance Regimes.
      * 
* - * .google.cloud.assuredworkloads.v1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.assuredworkloads.v1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return Whether the kmsSettings field is set. */ public boolean hasKmsSettings() { return kmsSettingsBuilder_ != null || kmsSettings_ != null; } /** + * + * *
      * Input only. Settings used to create a CMEK crypto key. When set a project
      * with a KMS CMEK key is provisioned. This field is mandatory for a subset of
      * Compliance Regimes.
      * 
* - * .google.cloud.assuredworkloads.v1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.assuredworkloads.v1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The kmsSettings. */ public com.google.cloud.assuredworkloads.v1.Workload.KMSSettings getKmsSettings() { if (kmsSettingsBuilder_ == null) { - return kmsSettings_ == null ? com.google.cloud.assuredworkloads.v1.Workload.KMSSettings.getDefaultInstance() : kmsSettings_; + return kmsSettings_ == null + ? com.google.cloud.assuredworkloads.v1.Workload.KMSSettings.getDefaultInstance() + : kmsSettings_; } else { return kmsSettingsBuilder_.getMessage(); } } /** + * + * *
      * Input only. Settings used to create a CMEK crypto key. When set a project
      * with a KMS CMEK key is provisioned. This field is mandatory for a subset of
      * Compliance Regimes.
      * 
* - * .google.cloud.assuredworkloads.v1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.assuredworkloads.v1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ public Builder setKmsSettings(com.google.cloud.assuredworkloads.v1.Workload.KMSSettings value) { if (kmsSettingsBuilder_ == null) { @@ -7585,13 +8813,17 @@ public Builder setKmsSettings(com.google.cloud.assuredworkloads.v1.Workload.KMSS return this; } /** + * + * *
      * Input only. Settings used to create a CMEK crypto key. When set a project
      * with a KMS CMEK key is provisioned. This field is mandatory for a subset of
      * Compliance Regimes.
      * 
* - * .google.cloud.assuredworkloads.v1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.assuredworkloads.v1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ public Builder setKmsSettings( com.google.cloud.assuredworkloads.v1.Workload.KMSSettings.Builder builderForValue) { @@ -7605,19 +8837,26 @@ public Builder setKmsSettings( return this; } /** + * + * *
      * Input only. Settings used to create a CMEK crypto key. When set a project
      * with a KMS CMEK key is provisioned. This field is mandatory for a subset of
      * Compliance Regimes.
      * 
* - * .google.cloud.assuredworkloads.v1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.assuredworkloads.v1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ - public Builder mergeKmsSettings(com.google.cloud.assuredworkloads.v1.Workload.KMSSettings value) { + public Builder mergeKmsSettings( + com.google.cloud.assuredworkloads.v1.Workload.KMSSettings value) { if (kmsSettingsBuilder_ == null) { if (kmsSettings_ != null) { kmsSettings_ = - com.google.cloud.assuredworkloads.v1.Workload.KMSSettings.newBuilder(kmsSettings_).mergeFrom(value).buildPartial(); + com.google.cloud.assuredworkloads.v1.Workload.KMSSettings.newBuilder(kmsSettings_) + .mergeFrom(value) + .buildPartial(); } else { kmsSettings_ = value; } @@ -7629,13 +8868,17 @@ public Builder mergeKmsSettings(com.google.cloud.assuredworkloads.v1.Workload.KM return this; } /** + * + * *
      * Input only. Settings used to create a CMEK crypto key. When set a project
      * with a KMS CMEK key is provisioned. This field is mandatory for a subset of
      * Compliance Regimes.
      * 
* - * .google.cloud.assuredworkloads.v1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.assuredworkloads.v1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ public Builder clearKmsSettings() { if (kmsSettingsBuilder_ == null) { @@ -7649,81 +8892,110 @@ public Builder clearKmsSettings() { return this; } /** + * + * *
      * Input only. Settings used to create a CMEK crypto key. When set a project
      * with a KMS CMEK key is provisioned. This field is mandatory for a subset of
      * Compliance Regimes.
      * 
* - * .google.cloud.assuredworkloads.v1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.assuredworkloads.v1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ - public com.google.cloud.assuredworkloads.v1.Workload.KMSSettings.Builder getKmsSettingsBuilder() { - + public com.google.cloud.assuredworkloads.v1.Workload.KMSSettings.Builder + getKmsSettingsBuilder() { + onChanged(); return getKmsSettingsFieldBuilder().getBuilder(); } /** + * + * *
      * Input only. Settings used to create a CMEK crypto key. When set a project
      * with a KMS CMEK key is provisioned. This field is mandatory for a subset of
      * Compliance Regimes.
      * 
* - * .google.cloud.assuredworkloads.v1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.assuredworkloads.v1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ - public com.google.cloud.assuredworkloads.v1.Workload.KMSSettingsOrBuilder getKmsSettingsOrBuilder() { + public com.google.cloud.assuredworkloads.v1.Workload.KMSSettingsOrBuilder + getKmsSettingsOrBuilder() { if (kmsSettingsBuilder_ != null) { return kmsSettingsBuilder_.getMessageOrBuilder(); } else { - return kmsSettings_ == null ? - com.google.cloud.assuredworkloads.v1.Workload.KMSSettings.getDefaultInstance() : kmsSettings_; + return kmsSettings_ == null + ? com.google.cloud.assuredworkloads.v1.Workload.KMSSettings.getDefaultInstance() + : kmsSettings_; } } /** + * + * *
      * Input only. Settings used to create a CMEK crypto key. When set a project
      * with a KMS CMEK key is provisioned. This field is mandatory for a subset of
      * Compliance Regimes.
      * 
* - * .google.cloud.assuredworkloads.v1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.assuredworkloads.v1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.assuredworkloads.v1.Workload.KMSSettings, com.google.cloud.assuredworkloads.v1.Workload.KMSSettings.Builder, com.google.cloud.assuredworkloads.v1.Workload.KMSSettingsOrBuilder> + com.google.cloud.assuredworkloads.v1.Workload.KMSSettings, + com.google.cloud.assuredworkloads.v1.Workload.KMSSettings.Builder, + com.google.cloud.assuredworkloads.v1.Workload.KMSSettingsOrBuilder> getKmsSettingsFieldBuilder() { if (kmsSettingsBuilder_ == null) { - kmsSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.assuredworkloads.v1.Workload.KMSSettings, com.google.cloud.assuredworkloads.v1.Workload.KMSSettings.Builder, com.google.cloud.assuredworkloads.v1.Workload.KMSSettingsOrBuilder>( - getKmsSettings(), - getParentForChildren(), - isClean()); + kmsSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.assuredworkloads.v1.Workload.KMSSettings, + com.google.cloud.assuredworkloads.v1.Workload.KMSSettings.Builder, + com.google.cloud.assuredworkloads.v1.Workload.KMSSettingsOrBuilder>( + getKmsSettings(), getParentForChildren(), isClean()); kmsSettings_ = null; } return kmsSettingsBuilder_; } - private java.util.List resourceSettings_ = - java.util.Collections.emptyList(); + private java.util.List + resourceSettings_ = java.util.Collections.emptyList(); + private void ensureResourceSettingsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - resourceSettings_ = new java.util.ArrayList(resourceSettings_); + resourceSettings_ = + new java.util.ArrayList( + resourceSettings_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings, com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings.Builder, com.google.cloud.assuredworkloads.v1.Workload.ResourceSettingsOrBuilder> resourceSettingsBuilder_; + com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings, + com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings.Builder, + com.google.cloud.assuredworkloads.v1.Workload.ResourceSettingsOrBuilder> + resourceSettingsBuilder_; /** + * + * *
      * Input only. Resource properties that are used to customize workload
      * resources. These properties (such as custom project id) will be used to
      * create workload resources if possible. This field is optional.
      * 
* - * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ - public java.util.List getResourceSettingsList() { + public java.util.List + getResourceSettingsList() { if (resourceSettingsBuilder_ == null) { return java.util.Collections.unmodifiableList(resourceSettings_); } else { @@ -7731,13 +9003,17 @@ public java.util.List * Input only. Resource properties that are used to customize workload * resources. These properties (such as custom project id) will be used to * create workload resources if possible. This field is optional. *
* - * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ public int getResourceSettingsCount() { if (resourceSettingsBuilder_ == null) { @@ -7747,15 +9023,20 @@ public int getResourceSettingsCount() { } } /** + * + * *
      * Input only. Resource properties that are used to customize workload
      * resources. These properties (such as custom project id) will be used to
      * create workload resources if possible. This field is optional.
      * 
* - * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ - public com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings getResourceSettings(int index) { + public com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings getResourceSettings( + int index) { if (resourceSettingsBuilder_ == null) { return resourceSettings_.get(index); } else { @@ -7763,13 +9044,17 @@ public com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings getResourc } } /** + * + * *
      * Input only. Resource properties that are used to customize workload
      * resources. These properties (such as custom project id) will be used to
      * create workload resources if possible. This field is optional.
      * 
* - * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ public Builder setResourceSettings( int index, com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings value) { @@ -7786,16 +9071,21 @@ public Builder setResourceSettings( return this; } /** + * + * *
      * Input only. Resource properties that are used to customize workload
      * resources. These properties (such as custom project id) will be used to
      * create workload resources if possible. This field is optional.
      * 
* - * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ public Builder setResourceSettings( - int index, com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings.Builder builderForValue) { + int index, + com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings.Builder builderForValue) { if (resourceSettingsBuilder_ == null) { ensureResourceSettingsIsMutable(); resourceSettings_.set(index, builderForValue.build()); @@ -7806,15 +9096,20 @@ public Builder setResourceSettings( return this; } /** + * + * *
      * Input only. Resource properties that are used to customize workload
      * resources. These properties (such as custom project id) will be used to
      * create workload resources if possible. This field is optional.
      * 
* - * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ - public Builder addResourceSettings(com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings value) { + public Builder addResourceSettings( + com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings value) { if (resourceSettingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -7828,13 +9123,17 @@ public Builder addResourceSettings(com.google.cloud.assuredworkloads.v1.Workload return this; } /** + * + * *
      * Input only. Resource properties that are used to customize workload
      * resources. These properties (such as custom project id) will be used to
      * create workload resources if possible. This field is optional.
      * 
* - * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ public Builder addResourceSettings( int index, com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings value) { @@ -7851,13 +9150,17 @@ public Builder addResourceSettings( return this; } /** + * + * *
      * Input only. Resource properties that are used to customize workload
      * resources. These properties (such as custom project id) will be used to
      * create workload resources if possible. This field is optional.
      * 
* - * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ public Builder addResourceSettings( com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings.Builder builderForValue) { @@ -7871,16 +9174,21 @@ public Builder addResourceSettings( return this; } /** + * + * *
      * Input only. Resource properties that are used to customize workload
      * resources. These properties (such as custom project id) will be used to
      * create workload resources if possible. This field is optional.
      * 
* - * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ public Builder addResourceSettings( - int index, com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings.Builder builderForValue) { + int index, + com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings.Builder builderForValue) { if (resourceSettingsBuilder_ == null) { ensureResourceSettingsIsMutable(); resourceSettings_.add(index, builderForValue.build()); @@ -7891,20 +9199,24 @@ public Builder addResourceSettings( return this; } /** + * + * *
      * Input only. Resource properties that are used to customize workload
      * resources. These properties (such as custom project id) will be used to
      * create workload resources if possible. This field is optional.
      * 
* - * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ public Builder addAllResourceSettings( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (resourceSettingsBuilder_ == null) { ensureResourceSettingsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, resourceSettings_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, resourceSettings_); onChanged(); } else { resourceSettingsBuilder_.addAllMessages(values); @@ -7912,13 +9224,17 @@ public Builder addAllResourceSettings( return this; } /** + * + * *
      * Input only. Resource properties that are used to customize workload
      * resources. These properties (such as custom project id) will be used to
      * create workload resources if possible. This field is optional.
      * 
* - * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ public Builder clearResourceSettings() { if (resourceSettingsBuilder_ == null) { @@ -7931,13 +9247,17 @@ public Builder clearResourceSettings() { return this; } /** + * + * *
      * Input only. Resource properties that are used to customize workload
      * resources. These properties (such as custom project id) will be used to
      * create workload resources if possible. This field is optional.
      * 
* - * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ public Builder removeResourceSettings(int index) { if (resourceSettingsBuilder_ == null) { @@ -7950,45 +9270,59 @@ public Builder removeResourceSettings(int index) { return this; } /** + * + * *
      * Input only. Resource properties that are used to customize workload
      * resources. These properties (such as custom project id) will be used to
      * create workload resources if possible. This field is optional.
      * 
* - * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ - public com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings.Builder getResourceSettingsBuilder( - int index) { + public com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings.Builder + getResourceSettingsBuilder(int index) { return getResourceSettingsFieldBuilder().getBuilder(index); } /** + * + * *
      * Input only. Resource properties that are used to customize workload
      * resources. These properties (such as custom project id) will be used to
      * create workload resources if possible. This field is optional.
      * 
* - * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ - public com.google.cloud.assuredworkloads.v1.Workload.ResourceSettingsOrBuilder getResourceSettingsOrBuilder( - int index) { + public com.google.cloud.assuredworkloads.v1.Workload.ResourceSettingsOrBuilder + getResourceSettingsOrBuilder(int index) { if (resourceSettingsBuilder_ == null) { - return resourceSettings_.get(index); } else { + return resourceSettings_.get(index); + } else { return resourceSettingsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Input only. Resource properties that are used to customize workload
      * resources. These properties (such as custom project id) will be used to
      * create workload resources if possible. This field is optional.
      * 
* - * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ - public java.util.List - getResourceSettingsOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.assuredworkloads.v1.Workload.ResourceSettingsOrBuilder> + getResourceSettingsOrBuilderList() { if (resourceSettingsBuilder_ != null) { return resourceSettingsBuilder_.getMessageOrBuilderList(); } else { @@ -7996,51 +9330,73 @@ public com.google.cloud.assuredworkloads.v1.Workload.ResourceSettingsOrBuilder g } } /** + * + * *
      * Input only. Resource properties that are used to customize workload
      * resources. These properties (such as custom project id) will be used to
      * create workload resources if possible. This field is optional.
      * 
* - * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ - public com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings.Builder addResourceSettingsBuilder() { - return getResourceSettingsFieldBuilder().addBuilder( - com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings.getDefaultInstance()); + public com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings.Builder + addResourceSettingsBuilder() { + return getResourceSettingsFieldBuilder() + .addBuilder( + com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings.getDefaultInstance()); } /** + * + * *
      * Input only. Resource properties that are used to customize workload
      * resources. These properties (such as custom project id) will be used to
      * create workload resources if possible. This field is optional.
      * 
* - * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ - public com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings.Builder addResourceSettingsBuilder( - int index) { - return getResourceSettingsFieldBuilder().addBuilder( - index, com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings.getDefaultInstance()); + public com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings.Builder + addResourceSettingsBuilder(int index) { + return getResourceSettingsFieldBuilder() + .addBuilder( + index, + com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings.getDefaultInstance()); } /** + * + * *
      * Input only. Resource properties that are used to customize workload
      * resources. These properties (such as custom project id) will be used to
      * create workload resources if possible. This field is optional.
      * 
* - * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ - public java.util.List - getResourceSettingsBuilderList() { + public java.util.List + getResourceSettingsBuilderList() { return getResourceSettingsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings, com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings.Builder, com.google.cloud.assuredworkloads.v1.Workload.ResourceSettingsOrBuilder> + com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings, + com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings.Builder, + com.google.cloud.assuredworkloads.v1.Workload.ResourceSettingsOrBuilder> getResourceSettingsFieldBuilder() { if (resourceSettingsBuilder_ == null) { - resourceSettingsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings, com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings.Builder, com.google.cloud.assuredworkloads.v1.Workload.ResourceSettingsOrBuilder>( + resourceSettingsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings, + com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings.Builder, + com.google.cloud.assuredworkloads.v1.Workload.ResourceSettingsOrBuilder>( resourceSettings_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), @@ -8052,86 +9408,121 @@ public com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings.Builder ad private int kajEnrollmentState_ = 0; /** + * + * *
      * Output only. Represents the KAJ enrollment state of the given workload.
      * 
* - * .google.cloud.assuredworkloads.v1.Workload.KajEnrollmentState kaj_enrollment_state = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.assuredworkloads.v1.Workload.KajEnrollmentState kaj_enrollment_state = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for kajEnrollmentState. */ - @java.lang.Override public int getKajEnrollmentStateValue() { + @java.lang.Override + public int getKajEnrollmentStateValue() { return kajEnrollmentState_; } /** + * + * *
      * Output only. Represents the KAJ enrollment state of the given workload.
      * 
* - * .google.cloud.assuredworkloads.v1.Workload.KajEnrollmentState kaj_enrollment_state = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.assuredworkloads.v1.Workload.KajEnrollmentState kaj_enrollment_state = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for kajEnrollmentState to set. * @return This builder for chaining. */ public Builder setKajEnrollmentStateValue(int value) { - + kajEnrollmentState_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Represents the KAJ enrollment state of the given workload.
      * 
* - * .google.cloud.assuredworkloads.v1.Workload.KajEnrollmentState kaj_enrollment_state = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.assuredworkloads.v1.Workload.KajEnrollmentState kaj_enrollment_state = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The kajEnrollmentState. */ @java.lang.Override - public com.google.cloud.assuredworkloads.v1.Workload.KajEnrollmentState getKajEnrollmentState() { + public com.google.cloud.assuredworkloads.v1.Workload.KajEnrollmentState + getKajEnrollmentState() { @SuppressWarnings("deprecation") - com.google.cloud.assuredworkloads.v1.Workload.KajEnrollmentState result = com.google.cloud.assuredworkloads.v1.Workload.KajEnrollmentState.valueOf(kajEnrollmentState_); - return result == null ? com.google.cloud.assuredworkloads.v1.Workload.KajEnrollmentState.UNRECOGNIZED : result; + com.google.cloud.assuredworkloads.v1.Workload.KajEnrollmentState result = + com.google.cloud.assuredworkloads.v1.Workload.KajEnrollmentState.valueOf( + kajEnrollmentState_); + return result == null + ? com.google.cloud.assuredworkloads.v1.Workload.KajEnrollmentState.UNRECOGNIZED + : result; } /** + * + * *
      * Output only. Represents the KAJ enrollment state of the given workload.
      * 
* - * .google.cloud.assuredworkloads.v1.Workload.KajEnrollmentState kaj_enrollment_state = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.assuredworkloads.v1.Workload.KajEnrollmentState kaj_enrollment_state = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The kajEnrollmentState to set. * @return This builder for chaining. */ - public Builder setKajEnrollmentState(com.google.cloud.assuredworkloads.v1.Workload.KajEnrollmentState value) { + public Builder setKajEnrollmentState( + com.google.cloud.assuredworkloads.v1.Workload.KajEnrollmentState value) { if (value == null) { throw new NullPointerException(); } - + kajEnrollmentState_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Output only. Represents the KAJ enrollment state of the given workload.
      * 
* - * .google.cloud.assuredworkloads.v1.Workload.KajEnrollmentState kaj_enrollment_state = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.assuredworkloads.v1.Workload.KajEnrollmentState kaj_enrollment_state = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearKajEnrollmentState() { - + kajEnrollmentState_ = 0; onChanged(); return this; } - private boolean enableSovereignControls_ ; + private boolean enableSovereignControls_; /** + * + * *
      * Optional. Indicates the sovereignty status of the given workload.
      * Currently meant to be used by Europe/Canada customers.
      * 
* * bool enable_sovereign_controls = 18 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The enableSovereignControls. */ @java.lang.Override @@ -8139,80 +9530,109 @@ public boolean getEnableSovereignControls() { return enableSovereignControls_; } /** + * + * *
      * Optional. Indicates the sovereignty status of the given workload.
      * Currently meant to be used by Europe/Canada customers.
      * 
* * bool enable_sovereign_controls = 18 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The enableSovereignControls to set. * @return This builder for chaining. */ public Builder setEnableSovereignControls(boolean value) { - + enableSovereignControls_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Indicates the sovereignty status of the given workload.
      * Currently meant to be used by Europe/Canada customers.
      * 
* * bool enable_sovereign_controls = 18 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearEnableSovereignControls() { - + enableSovereignControls_ = false; onChanged(); return this; } - private com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse saaEnrollmentResponse_; + private com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse + saaEnrollmentResponse_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse, com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.Builder, com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponseOrBuilder> saaEnrollmentResponseBuilder_; + com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse, + com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.Builder, + com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponseOrBuilder> + saaEnrollmentResponseBuilder_; /** + * + * *
      * Output only. Represents the SAA enrollment response of the given workload.
      * SAA enrollment response is queried during GetWorkload call.
      * In failure cases, user friendly error message is shown in SAA details page.
      * 
* - * .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the saaEnrollmentResponse field is set. */ public boolean hasSaaEnrollmentResponse() { return saaEnrollmentResponseBuilder_ != null || saaEnrollmentResponse_ != null; } /** + * + * *
      * Output only. Represents the SAA enrollment response of the given workload.
      * SAA enrollment response is queried during GetWorkload call.
      * In failure cases, user friendly error message is shown in SAA details page.
      * 
* - * .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The saaEnrollmentResponse. */ - public com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse getSaaEnrollmentResponse() { + public com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse + getSaaEnrollmentResponse() { if (saaEnrollmentResponseBuilder_ == null) { - return saaEnrollmentResponse_ == null ? com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.getDefaultInstance() : saaEnrollmentResponse_; + return saaEnrollmentResponse_ == null + ? com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse + .getDefaultInstance() + : saaEnrollmentResponse_; } else { return saaEnrollmentResponseBuilder_.getMessage(); } } /** + * + * *
      * Output only. Represents the SAA enrollment response of the given workload.
      * SAA enrollment response is queried during GetWorkload call.
      * In failure cases, user friendly error message is shown in SAA details page.
      * 
* - * .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setSaaEnrollmentResponse(com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse value) { + public Builder setSaaEnrollmentResponse( + com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse value) { if (saaEnrollmentResponseBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -8226,16 +9646,21 @@ public Builder setSaaEnrollmentResponse(com.google.cloud.assuredworkloads.v1.Wor return this; } /** + * + * *
      * Output only. Represents the SAA enrollment response of the given workload.
      * SAA enrollment response is queried during GetWorkload call.
      * In failure cases, user friendly error message is shown in SAA details page.
      * 
* - * .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setSaaEnrollmentResponse( - com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.Builder builderForValue) { + com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.Builder + builderForValue) { if (saaEnrollmentResponseBuilder_ == null) { saaEnrollmentResponse_ = builderForValue.build(); onChanged(); @@ -8246,19 +9671,27 @@ public Builder setSaaEnrollmentResponse( return this; } /** + * + * *
      * Output only. Represents the SAA enrollment response of the given workload.
      * SAA enrollment response is queried during GetWorkload call.
      * In failure cases, user friendly error message is shown in SAA details page.
      * 
* - * .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder mergeSaaEnrollmentResponse(com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse value) { + public Builder mergeSaaEnrollmentResponse( + com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse value) { if (saaEnrollmentResponseBuilder_ == null) { if (saaEnrollmentResponse_ != null) { saaEnrollmentResponse_ = - com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.newBuilder(saaEnrollmentResponse_).mergeFrom(value).buildPartial(); + com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.newBuilder( + saaEnrollmentResponse_) + .mergeFrom(value) + .buildPartial(); } else { saaEnrollmentResponse_ = value; } @@ -8270,13 +9703,17 @@ public Builder mergeSaaEnrollmentResponse(com.google.cloud.assuredworkloads.v1.W return this; } /** + * + * *
      * Output only. Represents the SAA enrollment response of the given workload.
      * SAA enrollment response is queried during GetWorkload call.
      * In failure cases, user friendly error message is shown in SAA details page.
      * 
* - * .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearSaaEnrollmentResponse() { if (saaEnrollmentResponseBuilder_ == null) { @@ -8290,61 +9727,80 @@ public Builder clearSaaEnrollmentResponse() { return this; } /** + * + * *
      * Output only. Represents the SAA enrollment response of the given workload.
      * SAA enrollment response is queried during GetWorkload call.
      * In failure cases, user friendly error message is shown in SAA details page.
      * 
* - * .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.Builder getSaaEnrollmentResponseBuilder() { - + public com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.Builder + getSaaEnrollmentResponseBuilder() { + onChanged(); return getSaaEnrollmentResponseFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Represents the SAA enrollment response of the given workload.
      * SAA enrollment response is queried during GetWorkload call.
      * In failure cases, user friendly error message is shown in SAA details page.
      * 
* - * .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponseOrBuilder getSaaEnrollmentResponseOrBuilder() { + public com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponseOrBuilder + getSaaEnrollmentResponseOrBuilder() { if (saaEnrollmentResponseBuilder_ != null) { return saaEnrollmentResponseBuilder_.getMessageOrBuilder(); } else { - return saaEnrollmentResponse_ == null ? - com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.getDefaultInstance() : saaEnrollmentResponse_; + return saaEnrollmentResponse_ == null + ? com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse + .getDefaultInstance() + : saaEnrollmentResponse_; } } /** + * + * *
      * Output only. Represents the SAA enrollment response of the given workload.
      * SAA enrollment response is queried during GetWorkload call.
      * In failure cases, user friendly error message is shown in SAA details page.
      * 
* - * .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse, com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.Builder, com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponseOrBuilder> + com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse, + com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.Builder, + com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponseOrBuilder> getSaaEnrollmentResponseFieldBuilder() { if (saaEnrollmentResponseBuilder_ == null) { - saaEnrollmentResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse, com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.Builder, com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponseOrBuilder>( - getSaaEnrollmentResponse(), - getParentForChildren(), - isClean()); + saaEnrollmentResponseBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse, + com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.Builder, + com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponseOrBuilder>( + getSaaEnrollmentResponse(), getParentForChildren(), isClean()); saaEnrollmentResponse_ = null; } return saaEnrollmentResponseBuilder_; } + @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); } @@ -8354,12 +9810,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.assuredworkloads.v1.Workload) } // @@protoc_insertion_point(class_scope:google.cloud.assuredworkloads.v1.Workload) private static final com.google.cloud.assuredworkloads.v1.Workload DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.assuredworkloads.v1.Workload(); } @@ -8368,16 +9824,16 @@ public static com.google.cloud.assuredworkloads.v1.Workload getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Workload parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Workload(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Workload parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Workload(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -8392,6 +9848,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.assuredworkloads.v1.Workload getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/WorkloadName.java b/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/WorkloadName.java similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/WorkloadName.java rename to proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/WorkloadName.java diff --git a/owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/WorkloadOrBuilder.java b/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/WorkloadOrBuilder.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/WorkloadOrBuilder.java rename to proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/WorkloadOrBuilder.java index 2d13a77c..64b611f9 100644 --- a/owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/WorkloadOrBuilder.java +++ b/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/WorkloadOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/assuredworkloads/v1/assuredworkloads.proto package com.google.cloud.assuredworkloads.v1; -public interface WorkloadOrBuilder extends +public interface WorkloadOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.assuredworkloads.v1.Workload) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. The resource name of the workload.
    * Format:
@@ -16,10 +34,13 @@ public interface WorkloadOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Optional. The resource name of the workload.
    * Format:
@@ -28,12 +49,14 @@ public interface WorkloadOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Required. The user-assigned display name of the Workload.
    * When present it must be between 4 to 30 characters.
@@ -43,10 +66,13 @@ public interface WorkloadOrBuilder extends
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * Required. The user-assigned display name of the Workload.
    * When present it must be between 4 to 30 characters.
@@ -56,12 +82,14 @@ public interface WorkloadOrBuilder extends
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * Output only. The resources associated with this workload.
    * These resources will be created when creating the workload.
@@ -69,11 +97,14 @@ public interface WorkloadOrBuilder extends
    * Always read only.
    * 
* - * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List - getResourcesList(); + java.util.List getResourcesList(); /** + * + * *
    * Output only. The resources associated with this workload.
    * These resources will be created when creating the workload.
@@ -81,10 +112,14 @@ public interface WorkloadOrBuilder extends
    * Always read only.
    * 
* - * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.assuredworkloads.v1.Workload.ResourceInfo getResources(int index); /** + * + * *
    * Output only. The resources associated with this workload.
    * These resources will be created when creating the workload.
@@ -92,10 +127,14 @@ public interface WorkloadOrBuilder extends
    * Always read only.
    * 
* - * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ int getResourcesCount(); /** + * + * *
    * Output only. The resources associated with this workload.
    * These resources will be created when creating the workload.
@@ -103,11 +142,15 @@ public interface WorkloadOrBuilder extends
    * Always read only.
    * 
* - * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List + java.util.List getResourcesOrBuilderList(); /** + * + * *
    * Output only. The resources associated with this workload.
    * These resources will be created when creating the workload.
@@ -115,58 +158,86 @@ public interface WorkloadOrBuilder extends
    * Always read only.
    * 
* - * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.assuredworkloads.v1.Workload.ResourceInfoOrBuilder getResourcesOrBuilder( int index); /** + * + * *
    * Required. Immutable. Compliance Regime associated with this workload.
    * 
* - * .google.cloud.assuredworkloads.v1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The enum numeric value on the wire for complianceRegime. */ int getComplianceRegimeValue(); /** + * + * *
    * Required. Immutable. Compliance Regime associated with this workload.
    * 
* - * .google.cloud.assuredworkloads.v1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The complianceRegime. */ com.google.cloud.assuredworkloads.v1.Workload.ComplianceRegime getComplianceRegime(); /** + * + * *
    * Output only. Immutable. The Workload creation timestamp.
    * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. Immutable. The Workload creation timestamp.
    * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. Immutable. The Workload creation timestamp.
    * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Required. Input only. The billing account used for the resources which are
    * direct children of workload. This billing account is initially associated
@@ -178,11 +249,16 @@ com.google.cloud.assuredworkloads.v1.Workload.ResourceInfoOrBuilder getResources
    * `billingAccounts/012345-567890-ABCDEF`.
    * 
* - * string billing_account = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * string billing_account = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The billingAccount. */ java.lang.String getBillingAccount(); /** + * + * *
    * Required. Input only. The billing account used for the resources which are
    * direct children of workload. This billing account is initially associated
@@ -194,35 +270,44 @@ com.google.cloud.assuredworkloads.v1.Workload.ResourceInfoOrBuilder getResources
    * `billingAccounts/012345-567890-ABCDEF`.
    * 
* - * string billing_account = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * string billing_account = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The bytes for billingAccount. */ - com.google.protobuf.ByteString - getBillingAccountBytes(); + com.google.protobuf.ByteString getBillingAccountBytes(); /** + * + * *
    * Optional. ETag of the workload, it is calculated on the basis
    * of the Workload contents. It will be used in Update & Delete operations.
    * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The etag. */ java.lang.String getEtag(); /** + * + * *
    * Optional. ETag of the workload, it is calculated on the basis
    * of the Workload contents. It will be used in Update & Delete operations.
    * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for etag. */ - com.google.protobuf.ByteString - getEtagBytes(); + com.google.protobuf.ByteString getEtagBytes(); /** + * + * *
    * Optional. Labels applied to the workload.
    * 
@@ -231,30 +316,31 @@ com.google.cloud.assuredworkloads.v1.Workload.ResourceInfoOrBuilder getResources */ int getLabelsCount(); /** + * + * *
    * Optional. Labels applied to the workload.
    * 
* * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; */ - boolean containsLabels( - java.lang.String key); - /** - * Use {@link #getLabelsMap()} instead. - */ + boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated - java.util.Map - getLabels(); + java.util.Map getLabels(); /** + * + * *
    * Optional. Labels applied to the workload.
    * 
* * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.Map - getLabelsMap(); + java.util.Map getLabelsMap(); /** + * + * *
    * Optional. Labels applied to the workload.
    * 
@@ -263,22 +349,24 @@ boolean containsLabels( */ /* nullable */ -java.lang.String getLabelsOrDefault( + java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * Optional. Labels applied to the workload.
    * 
* * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; */ - - java.lang.String getLabelsOrThrow( - java.lang.String key); + java.lang.String getLabelsOrThrow(java.lang.String key); /** + * + * *
    * Input only. The parent resource for the resources managed by this Assured
    * Workload. May be either empty or a folder resource which is a child of the
@@ -288,11 +376,15 @@ java.lang.String getLabelsOrThrow(
    * folders/{folder_id}
    * 
* - * string provisioned_resources_parent = 13 [(.google.api.field_behavior) = INPUT_ONLY]; + * string provisioned_resources_parent = 13 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The provisionedResourcesParent. */ java.lang.String getProvisionedResourcesParent(); /** + * + * *
    * Input only. The parent resource for the resources managed by this Assured
    * Workload. May be either empty or a folder resource which is a child of the
@@ -302,159 +394,222 @@ java.lang.String getLabelsOrThrow(
    * folders/{folder_id}
    * 
* - * string provisioned_resources_parent = 13 [(.google.api.field_behavior) = INPUT_ONLY]; + * string provisioned_resources_parent = 13 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The bytes for provisionedResourcesParent. */ - com.google.protobuf.ByteString - getProvisionedResourcesParentBytes(); + com.google.protobuf.ByteString getProvisionedResourcesParentBytes(); /** + * + * *
    * Input only. Settings used to create a CMEK crypto key. When set a project
    * with a KMS CMEK key is provisioned. This field is mandatory for a subset of
    * Compliance Regimes.
    * 
* - * .google.cloud.assuredworkloads.v1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.assuredworkloads.v1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return Whether the kmsSettings field is set. */ boolean hasKmsSettings(); /** + * + * *
    * Input only. Settings used to create a CMEK crypto key. When set a project
    * with a KMS CMEK key is provisioned. This field is mandatory for a subset of
    * Compliance Regimes.
    * 
* - * .google.cloud.assuredworkloads.v1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.assuredworkloads.v1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The kmsSettings. */ com.google.cloud.assuredworkloads.v1.Workload.KMSSettings getKmsSettings(); /** + * + * *
    * Input only. Settings used to create a CMEK crypto key. When set a project
    * with a KMS CMEK key is provisioned. This field is mandatory for a subset of
    * Compliance Regimes.
    * 
* - * .google.cloud.assuredworkloads.v1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.assuredworkloads.v1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ com.google.cloud.assuredworkloads.v1.Workload.KMSSettingsOrBuilder getKmsSettingsOrBuilder(); /** + * + * *
    * Input only. Resource properties that are used to customize workload
    * resources. These properties (such as custom project id) will be used to
    * create workload resources if possible. This field is optional.
    * 
* - * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ - java.util.List + java.util.List getResourceSettingsList(); /** + * + * *
    * Input only. Resource properties that are used to customize workload
    * resources. These properties (such as custom project id) will be used to
    * create workload resources if possible. This field is optional.
    * 
* - * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings getResourceSettings(int index); /** + * + * *
    * Input only. Resource properties that are used to customize workload
    * resources. These properties (such as custom project id) will be used to
    * create workload resources if possible. This field is optional.
    * 
* - * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ int getResourceSettingsCount(); /** + * + * *
    * Input only. Resource properties that are used to customize workload
    * resources. These properties (such as custom project id) will be used to
    * create workload resources if possible. This field is optional.
    * 
* - * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ - java.util.List + java.util.List getResourceSettingsOrBuilderList(); /** + * + * *
    * Input only. Resource properties that are used to customize workload
    * resources. These properties (such as custom project id) will be used to
    * create workload resources if possible. This field is optional.
    * 
* - * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ - com.google.cloud.assuredworkloads.v1.Workload.ResourceSettingsOrBuilder getResourceSettingsOrBuilder( - int index); + com.google.cloud.assuredworkloads.v1.Workload.ResourceSettingsOrBuilder + getResourceSettingsOrBuilder(int index); /** + * + * *
    * Output only. Represents the KAJ enrollment state of the given workload.
    * 
* - * .google.cloud.assuredworkloads.v1.Workload.KajEnrollmentState kaj_enrollment_state = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.assuredworkloads.v1.Workload.KajEnrollmentState kaj_enrollment_state = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for kajEnrollmentState. */ int getKajEnrollmentStateValue(); /** + * + * *
    * Output only. Represents the KAJ enrollment state of the given workload.
    * 
* - * .google.cloud.assuredworkloads.v1.Workload.KajEnrollmentState kaj_enrollment_state = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.assuredworkloads.v1.Workload.KajEnrollmentState kaj_enrollment_state = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The kajEnrollmentState. */ com.google.cloud.assuredworkloads.v1.Workload.KajEnrollmentState getKajEnrollmentState(); /** + * + * *
    * Optional. Indicates the sovereignty status of the given workload.
    * Currently meant to be used by Europe/Canada customers.
    * 
* * bool enable_sovereign_controls = 18 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The enableSovereignControls. */ boolean getEnableSovereignControls(); /** + * + * *
    * Output only. Represents the SAA enrollment response of the given workload.
    * SAA enrollment response is queried during GetWorkload call.
    * In failure cases, user friendly error message is shown in SAA details page.
    * 
* - * .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the saaEnrollmentResponse field is set. */ boolean hasSaaEnrollmentResponse(); /** + * + * *
    * Output only. Represents the SAA enrollment response of the given workload.
    * SAA enrollment response is queried during GetWorkload call.
    * In failure cases, user friendly error message is shown in SAA details page.
    * 
* - * .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The saaEnrollmentResponse. */ com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse getSaaEnrollmentResponse(); /** + * + * *
    * Output only. Represents the SAA enrollment response of the given workload.
    * SAA enrollment response is queried during GetWorkload call.
    * In failure cases, user friendly error message is shown in SAA details page.
    * 
* - * .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponseOrBuilder getSaaEnrollmentResponseOrBuilder(); + com.google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponseOrBuilder + getSaaEnrollmentResponseOrBuilder(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/proto/google/cloud/assuredworkloads/v1/assuredworkloads.proto b/proto-google-cloud-assured-workloads-v1/src/main/proto/google/cloud/assuredworkloads/v1/assuredworkloads.proto similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-assured-workloads-v1/src/main/proto/google/cloud/assuredworkloads/v1/assuredworkloads.proto rename to proto-google-cloud-assured-workloads-v1/src/main/proto/google/cloud/assuredworkloads/v1/assuredworkloads.proto diff --git a/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AssuredworkloadsProto.java b/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AssuredworkloadsProto.java new file mode 100644 index 00000000..09c58a60 --- /dev/null +++ b/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AssuredworkloadsProto.java @@ -0,0 +1,483 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto + +package com.google.cloud.assuredworkloads.v1beta1; + +public final class AssuredworkloadsProto { + private AssuredworkloadsProto() {} + + 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_assuredworkloads_v1beta1_CreateWorkloadRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_assuredworkloads_v1beta1_CreateWorkloadRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_assuredworkloads_v1beta1_UpdateWorkloadRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_assuredworkloads_v1beta1_UpdateWorkloadRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_assuredworkloads_v1beta1_DeleteWorkloadRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_assuredworkloads_v1beta1_DeleteWorkloadRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_assuredworkloads_v1beta1_GetWorkloadRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_assuredworkloads_v1beta1_GetWorkloadRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_assuredworkloads_v1beta1_ListWorkloadsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_assuredworkloads_v1beta1_ListWorkloadsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_assuredworkloads_v1beta1_ListWorkloadsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_assuredworkloads_v1beta1_ListWorkloadsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_ResourceInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_ResourceInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_KMSSettings_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_KMSSettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_IL4Settings_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_IL4Settings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_CJISSettings_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_CJISSettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_FedrampHighSettings_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_FedrampHighSettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_FedrampModerateSettings_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_FedrampModerateSettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_ResourceSettings_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_ResourceSettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_SaaEnrollmentResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_SaaEnrollmentResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_assuredworkloads_v1beta1_CreateWorkloadOperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_assuredworkloads_v1beta1_CreateWorkloadOperationMetadata_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n\n\004name\030\001 \001" + + "(\tB0\340A\002\372A*\n(assuredworkloads.googleapis." + + "com/Workload\022\021\n\004etag\030\002 \001(\tB\003\340A\001\"T\n\022GetWo" + + "rkloadRequest\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n(ass" + + "uredworkloads.googleapis.com/Workload\"\217\001" + + "\n\024ListWorkloadsRequest\022@\n\006parent\030\001 \001(\tB0" + + "\340A\002\372A*\022(assuredworkloads.googleapis.com/" + + "Workload\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_toke" + + "n\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\"t\n\025ListWorkloads" + + "Response\022B\n\tworkloads\030\001 \003(\0132/.google.clo" + + "ud.assuredworkloads.v1beta1.Workload\022\027\n\017" + + "next_page_token\030\002 \001(\t\"\213\033\n\010Workload\022\021\n\004na" + + "me\030\001 \001(\tB\003\340A\001\022\031\n\014display_name\030\002 \001(\tB\003\340A\002" + + "\022T\n\tresources\030\003 \003(\0132<.google.cloud.assur" + + "edworkloads.v1beta1.Workload.ResourceInf" + + "oB\003\340A\003\022c\n\021compliance_regime\030\004 \001(\0162@.goog" + + "le.cloud.assuredworkloads.v1beta1.Worklo" + + "ad.ComplianceRegimeB\006\340A\002\340A\005\0227\n\013create_ti" + + "me\030\005 \001(\0132\032.google.protobuf.TimestampB\006\340A" + + "\003\340A\005\022\034\n\017billing_account\030\006 \001(\tB\003\340A\004\022`\n\014il" + + "4_settings\030\007 \001(\0132;.google.cloud.assuredw" + + "orkloads.v1beta1.Workload.IL4SettingsB\013\030" + + "\001\340A\002\340A\004\340A\005H\000\022b\n\rcjis_settings\030\010 \001(\0132<.go" + + "ogle.cloud.assuredworkloads.v1beta1.Work" + + "load.CJISSettingsB\013\030\001\340A\002\340A\004\340A\005H\000\022q\n\025fedr" + + "amp_high_settings\030\013 \001(\0132C.google.cloud.a" + + "ssuredworkloads.v1beta1.Workload.Fedramp" + + "HighSettingsB\013\030\001\340A\002\340A\004\340A\005H\000\022y\n\031fedramp_m" + + "oderate_settings\030\014 \001(\0132G.google.cloud.as" + + "suredworkloads.v1beta1.Workload.FedrampM" + + "oderateSettingsB\013\030\001\340A\002\340A\004\340A\005H\000\022\021\n\004etag\030\t" + + " \001(\tB\003\340A\001\022P\n\006labels\030\n \003(\0132;.google.cloud" + + ".assuredworkloads.v1beta1.Workload.Label" + + "sEntryB\003\340A\001\022)\n\034provisioned_resources_par" + + "ent\030\r \001(\tB\003\340A\004\022V\n\014kms_settings\030\016 \001(\0132;.g" + + "oogle.cloud.assuredworkloads.v1beta1.Wor" + + "kload.KMSSettingsB\003\340A\004\022`\n\021resource_setti" + + "ngs\030\017 \003(\0132@.google.cloud.assuredworkload" + + "s.v1beta1.Workload.ResourceSettingsB\003\340A\004" + + "\022e\n\024kaj_enrollment_state\030\021 \001(\0162B.google." + + "cloud.assuredworkloads.v1beta1.Workload." + + "KajEnrollmentStateB\003\340A\003\022&\n\031enable_sovere" + + "ign_controls\030\022 \001(\010B\003\340A\001\022k\n\027saa_enrollmen" + + "t_response\030\024 \001(\0132E.google.cloud.assuredw" + + "orkloads.v1beta1.Workload.SaaEnrollmentR" + + "esponseB\003\340A\003\032\216\002\n\014ResourceInfo\022\023\n\013resourc" + + "e_id\030\001 \001(\003\022`\n\rresource_type\030\002 \001(\0162I.goog" + + "le.cloud.assuredworkloads.v1beta1.Worklo" + + "ad.ResourceInfo.ResourceType\"\206\001\n\014Resourc" + + "eType\022\035\n\031RESOURCE_TYPE_UNSPECIFIED\020\000\022\030\n\020" + + "CONSUMER_PROJECT\020\001\032\002\010\001\022\023\n\017CONSUMER_FOLDE" + + "R\020\004\022\033\n\027ENCRYPTION_KEYS_PROJECT\020\002\022\013\n\007KEYR" + + "ING\020\003\032\217\001\n\013KMSSettings\022A\n\022next_rotation_t" + + "ime\030\001 \001(\0132\032.google.protobuf.TimestampB\t\340" + + "A\002\340A\004\340A\005\022=\n\017rotation_period\030\002 \001(\0132\031.goog" + + "le.protobuf.DurationB\t\340A\002\340A\004\340A\005\032o\n\013IL4Se" + + "ttings\022\\\n\014kms_settings\030\001 \001(\0132;.google.cl" + + "oud.assuredworkloads.v1beta1.Workload.KM" + + "SSettingsB\t\340A\002\340A\004\340A\005:\002\030\001\032p\n\014CJISSettings" + + "\022\\\n\014kms_settings\030\001 \001(\0132;.google.cloud.as" + + "suredworkloads.v1beta1.Workload.KMSSetti" + + "ngsB\t\340A\002\340A\004\340A\005:\002\030\001\032w\n\023FedrampHighSetting" + + "s\022\\\n\014kms_settings\030\001 \001(\0132;.google.cloud.a" + + "ssuredworkloads.v1beta1.Workload.KMSSett" + + "ingsB\t\340A\002\340A\004\340A\005:\002\030\001\032{\n\027FedrampModerateSe" + + "ttings\022\\\n\014kms_settings\030\001 \001(\0132;.google.cl" + + "oud.assuredworkloads.v1beta1.Workload.KM" + + "SSettingsB\t\340A\002\340A\004\340A\005:\002\030\001\032\237\001\n\020ResourceSet" + + "tings\022\023\n\013resource_id\030\001 \001(\t\022`\n\rresource_t" + + "ype\030\002 \001(\0162I.google.cloud.assuredworkload" + + "s.v1beta1.Workload.ResourceInfo.Resource" + + "Type\022\024\n\014display_name\030\003 \001(\t\032\206\004\n\025SaaEnroll" + + "mentResponse\022k\n\014setup_status\030\001 \001(\0162P.goo" + + "gle.cloud.assuredworkloads.v1beta1.Workl" + + "oad.SaaEnrollmentResponse.SetupStateH\000\210\001" + + "\001\022f\n\014setup_errors\030\002 \003(\0162P.google.cloud.a" + + "ssuredworkloads.v1beta1.Workload.SaaEnro" + + "llmentResponse.SetupError\"R\n\nSetupState\022" + + "\033\n\027SETUP_STATE_UNSPECIFIED\020\000\022\022\n\016STATUS_P" + + "ENDING\020\001\022\023\n\017STATUS_COMPLETE\020\002\"\262\001\n\nSetupE" + + "rror\022\033\n\027SETUP_ERROR_UNSPECIFIED\020\000\022\034\n\030ERR" + + "OR_INVALID_BASE_SETUP\020\001\022&\n\"ERROR_MISSING" + + "_EXTERNAL_SIGNING_KEY\020\002\022#\n\037ERROR_NOT_ALL" + + "_SERVICES_ENROLLED\020\003\022\034\n\030ERROR_SETUP_CHEC" + + "K_FAILED\020\004B\017\n\r_setup_status\032-\n\013LabelsEnt" + + "ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\330\001\n\020C" + + "omplianceRegime\022!\n\035COMPLIANCE_REGIME_UNS" + + "PECIFIED\020\000\022\007\n\003IL4\020\001\022\010\n\004CJIS\020\002\022\020\n\014FEDRAMP" + + "_HIGH\020\003\022\024\n\020FEDRAMP_MODERATE\020\004\022\026\n\022US_REGI" + + "ONAL_ACCESS\020\005\022\t\n\005HIPAA\020\006\022\013\n\007HITRUST\020\007\022\032\n" + + "\026EU_REGIONS_AND_SUPPORT\020\010\022\032\n\026CA_REGIONS_" + + "AND_SUPPORT\020\t\"\177\n\022KajEnrollmentState\022$\n K" + + "AJ_ENROLLMENT_STATE_UNSPECIFIED\020\000\022 \n\034KAJ" + + "_ENROLLMENT_STATE_PENDING\020\001\022!\n\035KAJ_ENROL" + + "LMENT_STATE_COMPLETE\020\002:u\352Ar\n(assuredwork" + + "loads.googleapis.com/Workload\022Forganizat" + + "ions/{organization}/locations/{location}" + + "/workloads/{workload}B\034\n\032compliance_regi" + + "me_settings\"\313\002\n\037CreateWorkloadOperationM" + + "etadata\0224\n\013create_time\030\001 \001(\0132\032.google.pr" + + "otobuf.TimestampB\003\340A\001\022\031\n\014display_name\030\002 " + + "\001(\tB\003\340A\001\022\023\n\006parent\030\003 \001(\tB\003\340A\001\022`\n\021complia" + + "nce_regime\030\004 \001(\0162@.google.cloud.assuredw" + + "orkloads.v1beta1.Workload.ComplianceRegi" + + "meB\003\340A\001\022`\n\021resource_settings\030\005 \003(\0132@.goo" + + "gle.cloud.assuredworkloads.v1beta1.Workl" + + "oad.ResourceSettingsB\003\340A\0012\243\t\n\027AssuredWor" + + "kloadsService\022\371\001\n\016CreateWorkload\022<.googl" + + "e.cloud.assuredworkloads.v1beta1.CreateW" + + "orkloadRequest\032\035.google.longrunning.Oper" + + "ation\"\211\001\202\323\344\223\002C\"7/v1beta1/{parent=organiz" + + "ations/*/locations/*}/workloads:\010workloa" + + "d\332A\017parent,workload\312A+\n\010Workload\022\037Create" + + "WorkloadOperationMetadata\022\352\001\n\016UpdateWork" + + "load\022<.google.cloud.assuredworkloads.v1b" + + "eta1.UpdateWorkloadRequest\032/.google.clou" + + "d.assuredworkloads.v1beta1.Workload\"i\202\323\344" + + "\223\002L2@/v1beta1/{workload.name=organizatio" + + "ns/*/locations/*/workloads/*}:\010workload\332" + + "A\024workload,update_mask\022\256\001\n\016DeleteWorkloa" + + "d\022<.google.cloud.assuredworkloads.v1beta" + + "1.DeleteWorkloadRequest\032\026.google.protobu" + + "f.Empty\"F\202\323\344\223\0029*7/v1beta1/{name=organiza" + + "tions/*/locations/*/workloads/*}\332A\004name\022" + + "\301\001\n\013GetWorkload\0229.google.cloud.assuredwo" + + "rkloads.v1beta1.GetWorkloadRequest\032/.goo" + + "gle.cloud.assuredworkloads.v1beta1.Workl" + + "oad\"F\202\323\344\223\0029\0227/v1beta1/{name=organization" + + "s/*/locations/*/workloads/*}\332A\004name\022\324\001\n\r" + + "ListWorkloads\022;.google.cloud.assuredwork" + + "loads.v1beta1.ListWorkloadsRequest\032<.goo" + + "gle.cloud.assuredworkloads.v1beta1.ListW" + + "orkloadsResponse\"H\202\323\344\223\0029\0227/v1beta1/{pare" + + "nt=organizations/*/locations/*}/workload" + + "s\332A\006parent\032S\312A\037assuredworkloads.googleap" + + "is.com\322A.https://www.googleapis.com/auth" + + "/cloud-platformB\366\002\n)com.google.cloud.ass" + + "uredworkloads.v1beta1B\025AssuredworkloadsP" + + "rotoP\001ZUgoogle.golang.org/genproto/googl" + + "eapis/cloud/assuredworkloads/v1beta1;ass" + + "uredworkloads\252\002%Google.Cloud.AssuredWork" + + "loads.V1Beta1\312\002%Google\\Cloud\\AssuredWork" + + "loads\\V1beta1\352\002(Google::Cloud::AssuredWo" + + "rkloads::V1beta1\352A]\n(assuredworkloads.go" + + "ogleapis.com/Location\0221organizations/{or" + + "ganization}/locations/{location}b\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.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_assuredworkloads_v1beta1_CreateWorkloadRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_assuredworkloads_v1beta1_CreateWorkloadRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_assuredworkloads_v1beta1_CreateWorkloadRequest_descriptor, + new java.lang.String[] { + "Parent", "Workload", "ExternalId", + }); + internal_static_google_cloud_assuredworkloads_v1beta1_UpdateWorkloadRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_assuredworkloads_v1beta1_UpdateWorkloadRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_assuredworkloads_v1beta1_UpdateWorkloadRequest_descriptor, + new java.lang.String[] { + "Workload", "UpdateMask", + }); + internal_static_google_cloud_assuredworkloads_v1beta1_DeleteWorkloadRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_assuredworkloads_v1beta1_DeleteWorkloadRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_assuredworkloads_v1beta1_DeleteWorkloadRequest_descriptor, + new java.lang.String[] { + "Name", "Etag", + }); + internal_static_google_cloud_assuredworkloads_v1beta1_GetWorkloadRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_assuredworkloads_v1beta1_GetWorkloadRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_assuredworkloads_v1beta1_GetWorkloadRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_assuredworkloads_v1beta1_ListWorkloadsRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_assuredworkloads_v1beta1_ListWorkloadsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_assuredworkloads_v1beta1_ListWorkloadsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", + }); + internal_static_google_cloud_assuredworkloads_v1beta1_ListWorkloadsResponse_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_assuredworkloads_v1beta1_ListWorkloadsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_assuredworkloads_v1beta1_ListWorkloadsResponse_descriptor, + new java.lang.String[] { + "Workloads", "NextPageToken", + }); + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_descriptor, + new java.lang.String[] { + "Name", + "DisplayName", + "Resources", + "ComplianceRegime", + "CreateTime", + "BillingAccount", + "Il4Settings", + "CjisSettings", + "FedrampHighSettings", + "FedrampModerateSettings", + "Etag", + "Labels", + "ProvisionedResourcesParent", + "KmsSettings", + "ResourceSettings", + "KajEnrollmentState", + "EnableSovereignControls", + "SaaEnrollmentResponse", + "ComplianceRegimeSettings", + }); + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_ResourceInfo_descriptor = + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_ResourceInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_ResourceInfo_descriptor, + new java.lang.String[] { + "ResourceId", "ResourceType", + }); + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_KMSSettings_descriptor = + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_KMSSettings_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_KMSSettings_descriptor, + new java.lang.String[] { + "NextRotationTime", "RotationPeriod", + }); + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_IL4Settings_descriptor = + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_descriptor + .getNestedTypes() + .get(2); + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_IL4Settings_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_IL4Settings_descriptor, + new java.lang.String[] { + "KmsSettings", + }); + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_CJISSettings_descriptor = + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_descriptor + .getNestedTypes() + .get(3); + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_CJISSettings_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_CJISSettings_descriptor, + new java.lang.String[] { + "KmsSettings", + }); + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_FedrampHighSettings_descriptor = + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_descriptor + .getNestedTypes() + .get(4); + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_FedrampHighSettings_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_FedrampHighSettings_descriptor, + new java.lang.String[] { + "KmsSettings", + }); + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_FedrampModerateSettings_descriptor = + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_descriptor + .getNestedTypes() + .get(5); + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_FedrampModerateSettings_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_FedrampModerateSettings_descriptor, + new java.lang.String[] { + "KmsSettings", + }); + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_ResourceSettings_descriptor = + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_descriptor + .getNestedTypes() + .get(6); + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_ResourceSettings_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_ResourceSettings_descriptor, + new java.lang.String[] { + "ResourceId", "ResourceType", "DisplayName", + }); + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_SaaEnrollmentResponse_descriptor = + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_descriptor + .getNestedTypes() + .get(7); + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_SaaEnrollmentResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_SaaEnrollmentResponse_descriptor, + new java.lang.String[] { + "SetupStatus", "SetupErrors", "SetupStatus", + }); + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_LabelsEntry_descriptor = + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_descriptor + .getNestedTypes() + .get(8); + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_assuredworkloads_v1beta1_Workload_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_assuredworkloads_v1beta1_CreateWorkloadOperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_assuredworkloads_v1beta1_CreateWorkloadOperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_assuredworkloads_v1beta1_CreateWorkloadOperationMetadata_descriptor, + new java.lang.String[] { + "CreateTime", "DisplayName", "Parent", "ComplianceRegime", "ResourceSettings", + }); + 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.resourceDefinition); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + 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.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/CreateWorkloadOperationMetadata.java b/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/CreateWorkloadOperationMetadata.java similarity index 62% rename from owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/CreateWorkloadOperationMetadata.java rename to proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/CreateWorkloadOperationMetadata.java index e48960f3..8708651e 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/CreateWorkloadOperationMetadata.java +++ b/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/CreateWorkloadOperationMetadata.java @@ -1,24 +1,43 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto package com.google.cloud.assuredworkloads.v1beta1; /** + * + * *
  * Operation metadata to give request details of CreateWorkload.
  * 
* * Protobuf type {@code google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata} */ -public final class CreateWorkloadOperationMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateWorkloadOperationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata) CreateWorkloadOperationMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateWorkloadOperationMetadata.newBuilder() to construct. - private CreateWorkloadOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private CreateWorkloadOperationMetadata( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateWorkloadOperationMetadata() { displayName_ = ""; parent_ = ""; @@ -28,16 +47,15 @@ private CreateWorkloadOperationMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateWorkloadOperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CreateWorkloadOperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -57,53 +75,63 @@ private CreateWorkloadOperationMetadata( case 0: done = true; break; - case 10: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); - } - createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); + } + createTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - displayName_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + displayName_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 32: { - int rawValue = input.readEnum(); + parent_ = s; + break; + } + case 32: + { + int rawValue = input.readEnum(); - complianceRegime_ = rawValue; - break; - } - case 42: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - resourceSettings_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + complianceRegime_ = rawValue; + break; } - resourceSettings_.add( - input.readMessage(com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 42: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + resourceSettings_ = + new java.util.ArrayList< + com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings>(); + mutable_bitField0_ |= 0x00000001; + } + resourceSettings_.add( + input.readMessage( + com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -111,8 +139,7 @@ private CreateWorkloadOperationMetadata( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { resourceSettings_ = java.util.Collections.unmodifiableList(resourceSettings_); @@ -121,27 +148,35 @@ private CreateWorkloadOperationMetadata( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_CreateWorkloadOperationMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1beta1_CreateWorkloadOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_CreateWorkloadOperationMetadata_fieldAccessorTable + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1beta1_CreateWorkloadOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata.class, com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata.Builder.class); + com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata.class, + com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata.Builder + .class); } public static final int CREATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Optional. Time when the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -149,11 +184,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Optional. Time when the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The createTime. */ @java.lang.Override @@ -161,11 +200,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Optional. Time when the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -175,11 +217,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int DISPLAY_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object displayName_; /** + * + * *
    * Optional. The display name of the workload.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The displayName. */ @java.lang.Override @@ -188,29 +233,29 @@ public java.lang.String getDisplayName() { 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(); displayName_ = s; return s; } } /** + * + * *
    * Optional. The display name of the workload.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; 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); displayName_ = b; return b; } else { @@ -221,11 +266,14 @@ public java.lang.String getDisplayName() { public static final int PARENT_FIELD_NUMBER = 3; private volatile java.lang.Object parent_; /** + * + * *
    * Optional. The parent of the workload.
    * 
* * string parent = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The parent. */ @java.lang.Override @@ -234,29 +282,29 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Optional. The parent of the workload.
    * 
* * string parent = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -267,98 +315,139 @@ public java.lang.String getParent() { public static final int COMPLIANCE_REGIME_FIELD_NUMBER = 4; private int complianceRegime_; /** + * + * *
    * Optional. Compliance controls that should be applied to the resources
    * managed by the workload.
    * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for complianceRegime. */ - @java.lang.Override public int getComplianceRegimeValue() { + @java.lang.Override + public int getComplianceRegimeValue() { return complianceRegime_; } /** + * + * *
    * Optional. Compliance controls that should be applied to the resources
    * managed by the workload.
    * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The complianceRegime. */ - @java.lang.Override public com.google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime getComplianceRegime() { + @java.lang.Override + public com.google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime getComplianceRegime() { @SuppressWarnings("deprecation") - com.google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime result = com.google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime.valueOf(complianceRegime_); - return result == null ? com.google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime.UNRECOGNIZED : result; + com.google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime result = + com.google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime.valueOf( + complianceRegime_); + return result == null + ? com.google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime.UNRECOGNIZED + : result; } public static final int RESOURCE_SETTINGS_FIELD_NUMBER = 5; - private java.util.List resourceSettings_; + private java.util.List + resourceSettings_; /** + * + * *
    * Optional. Resource properties in the input that are used for
    * creating/customizing workload resources.
    * 
* - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.List getResourceSettingsList() { + public java.util.List + getResourceSettingsList() { return resourceSettings_; } /** + * + * *
    * Optional. Resource properties in the input that are used for
    * creating/customizing workload resources.
    * 
* - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettingsOrBuilder> getResourceSettingsOrBuilderList() { return resourceSettings_; } /** + * + * *
    * Optional. Resource properties in the input that are used for
    * creating/customizing workload resources.
    * 
* - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public int getResourceSettingsCount() { return resourceSettings_.size(); } /** + * + * *
    * Optional. Resource properties in the input that are used for
    * creating/customizing workload resources.
    * 
* - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings getResourceSettings(int index) { + public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings getResourceSettings( + int index) { return resourceSettings_.get(index); } /** + * + * *
    * Optional. Resource properties in the input that are used for
    * creating/customizing workload resources.
    * 
* - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettingsOrBuilder getResourceSettingsOrBuilder( - int index) { + public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettingsOrBuilder + getResourceSettingsOrBuilder(int index) { return resourceSettings_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -370,8 +459,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 (createTime_ != null) { output.writeMessage(1, getCreateTime()); } @@ -381,7 +469,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, parent_); } - if (complianceRegime_ != com.google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime.COMPLIANCE_REGIME_UNSPECIFIED.getNumber()) { + if (complianceRegime_ + != com.google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime + .COMPLIANCE_REGIME_UNSPECIFIED + .getNumber()) { output.writeEnum(4, complianceRegime_); } for (int i = 0; i < resourceSettings_.size(); i++) { @@ -397,8 +488,7 @@ public int getSerializedSize() { size = 0; if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); @@ -406,13 +496,14 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, parent_); } - if (complianceRegime_ != com.google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime.COMPLIANCE_REGIME_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, complianceRegime_); + if (complianceRegime_ + != com.google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime + .COMPLIANCE_REGIME_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, complianceRegime_); } for (int i = 0; i < resourceSettings_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, resourceSettings_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, resourceSettings_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -422,25 +513,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.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata)) { + if (!(obj + instanceof com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata)) { return super.equals(obj); } - com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata other = (com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata) obj; + com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata other = + (com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata) obj; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } - if (!getDisplayName() - .equals(other.getDisplayName())) return false; - if (!getParent() - .equals(other.getParent())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getParent().equals(other.getParent())) return false; if (complianceRegime_ != other.complianceRegime_) return false; - if (!getResourceSettingsList() - .equals(other.getResourceSettingsList())) return false; + if (!getResourceSettingsList().equals(other.getResourceSettingsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -472,135 +561,148 @@ public int hashCode() { } public static com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata 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.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata 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.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata 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.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata 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.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata 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.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata parseDelimitedFrom( - java.io.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.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata + parseDelimitedFrom( + java.io.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.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata 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.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata 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.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata prototype) { + + public static Builder newBuilder( + com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata 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; } /** + * + * *
    * Operation metadata to give request details of CreateWorkload.
    * 
* * Protobuf type {@code google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata} */ - 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.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata) com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_CreateWorkloadOperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1beta1_CreateWorkloadOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_CreateWorkloadOperationMetadata_fieldAccessorTable + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1beta1_CreateWorkloadOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata.class, com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata.Builder.class); + com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata.class, + com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata.Builder + .class); } - // Construct using com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata.newBuilder() + // Construct using + // com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getResourceSettingsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -626,19 +728,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_CreateWorkloadOperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1beta1_CreateWorkloadOperationMetadata_descriptor; } @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata getDefaultInstanceForType() { - return com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata.getDefaultInstance(); + public com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata + getDefaultInstanceForType() { + return com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata build() { - com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata result = buildPartial(); + com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -646,8 +751,10 @@ public com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata } @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata buildPartial() { - com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata result = new com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata(this); + public com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata + buildPartial() { + com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata result = + new com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata(this); int from_bitField0_ = bitField0_; if (createTimeBuilder_ == null) { result.createTime_ = createTime_; @@ -674,46 +781,52 @@ public com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata 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.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata) { - return mergeFrom((com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata)other); + if (other + instanceof com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata) { + return mergeFrom( + (com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata other) { - if (other == com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata other) { + if (other + == com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata + .getDefaultInstance()) return this; if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } @@ -746,9 +859,10 @@ public Builder mergeFrom(com.google.cloud.assuredworkloads.v1beta1.CreateWorkloa resourceSettingsBuilder_ = null; resourceSettings_ = other.resourceSettings_; bitField0_ = (bitField0_ & ~0x00000001); - resourceSettingsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getResourceSettingsFieldBuilder() : null; + resourceSettingsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getResourceSettingsFieldBuilder() + : null; } else { resourceSettingsBuilder_.addAllMessages(other.resourceSettings_); } @@ -769,11 +883,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata parsedMessage = null; + com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata parsedMessage = + null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -782,43 +899,60 @@ public Builder mergeFrom( } return this; } + private int bitField0_; 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_; /** + * + * *
      * Optional. Time when the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** + * + * *
      * Optional. Time when the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @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(); } } /** + * + * *
      * Optional. Time when the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -834,14 +968,16 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Optional. Time when the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -852,17 +988,20 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Optional. Time when the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -874,11 +1013,14 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Optional. Time when the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -892,48 +1034,61 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Optional. Time when the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Time when the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ 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_; } } /** + * + * *
      * Optional. Time when the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ 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_; @@ -941,18 +1096,20 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private java.lang.Object displayName_ = ""; /** + * + * *
      * Optional. The display name of the workload.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; 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(); displayName_ = s; return s; @@ -961,20 +1118,21 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Optional. The display name of the workload.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; 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); displayName_ = b; return b; } else { @@ -982,54 +1140,61 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Optional. The display name of the workload.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { + public Builder setDisplayName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The display name of the workload.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** + * + * *
      * Optional. The display name of the workload.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; @@ -1037,18 +1202,20 @@ public Builder setDisplayNameBytes( private java.lang.Object parent_ = ""; /** + * + * *
      * Optional. The parent of the workload.
      * 
* * string parent = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; @@ -1057,20 +1224,21 @@ public java.lang.String getParent() { } } /** + * + * *
      * Optional. The parent of the workload.
      * 
* * string parent = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -1078,54 +1246,61 @@ public java.lang.String getParent() { } } /** + * + * *
      * Optional. The parent of the workload.
      * 
* * string parent = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The parent of the workload.
      * 
* * string parent = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Optional. The parent of the workload.
      * 
* * string parent = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -1133,104 +1308,148 @@ public Builder setParentBytes( private int complianceRegime_ = 0; /** + * + * *
      * Optional. Compliance controls that should be applied to the resources
      * managed by the workload.
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for complianceRegime. */ - @java.lang.Override public int getComplianceRegimeValue() { + @java.lang.Override + public int getComplianceRegimeValue() { return complianceRegime_; } /** + * + * *
      * Optional. Compliance controls that should be applied to the resources
      * managed by the workload.
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The enum numeric value on the wire for complianceRegime to set. * @return This builder for chaining. */ public Builder setComplianceRegimeValue(int value) { - + complianceRegime_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Compliance controls that should be applied to the resources
      * managed by the workload.
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The complianceRegime. */ @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime getComplianceRegime() { + public com.google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime + getComplianceRegime() { @SuppressWarnings("deprecation") - com.google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime result = com.google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime.valueOf(complianceRegime_); - return result == null ? com.google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime.UNRECOGNIZED : result; + com.google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime result = + com.google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime.valueOf( + complianceRegime_); + return result == null + ? com.google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime.UNRECOGNIZED + : result; } /** + * + * *
      * Optional. Compliance controls that should be applied to the resources
      * managed by the workload.
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The complianceRegime to set. * @return This builder for chaining. */ - public Builder setComplianceRegime(com.google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime value) { + public Builder setComplianceRegime( + com.google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime value) { if (value == null) { throw new NullPointerException(); } - + complianceRegime_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Optional. Compliance controls that should be applied to the resources
      * managed by the workload.
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearComplianceRegime() { - + complianceRegime_ = 0; onChanged(); return this; } - private java.util.List resourceSettings_ = - java.util.Collections.emptyList(); + private java.util.List + resourceSettings_ = java.util.Collections.emptyList(); + private void ensureResourceSettingsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - resourceSettings_ = new java.util.ArrayList(resourceSettings_); + resourceSettings_ = + new java.util.ArrayList< + com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings>( + resourceSettings_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings, com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.Builder, com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettingsOrBuilder> resourceSettingsBuilder_; + com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings, + com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.Builder, + com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettingsOrBuilder> + resourceSettingsBuilder_; /** + * + * *
      * Optional. Resource properties in the input that are used for
      * creating/customizing workload resources.
      * 
* - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List getResourceSettingsList() { + public java.util.List + getResourceSettingsList() { if (resourceSettingsBuilder_ == null) { return java.util.Collections.unmodifiableList(resourceSettings_); } else { @@ -1238,12 +1457,16 @@ public java.util.List * Optional. Resource properties in the input that are used for * creating/customizing workload resources. *
* - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public int getResourceSettingsCount() { if (resourceSettingsBuilder_ == null) { @@ -1253,14 +1476,19 @@ public int getResourceSettingsCount() { } } /** + * + * *
      * Optional. Resource properties in the input that are used for
      * creating/customizing workload resources.
      * 
* - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings getResourceSettings(int index) { + public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings getResourceSettings( + int index) { if (resourceSettingsBuilder_ == null) { return resourceSettings_.get(index); } else { @@ -1268,12 +1496,16 @@ public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings getRe } } /** + * + * *
      * Optional. Resource properties in the input that are used for
      * creating/customizing workload resources.
      * 
* - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setResourceSettings( int index, com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings value) { @@ -1290,15 +1522,21 @@ public Builder setResourceSettings( return this; } /** + * + * *
      * Optional. Resource properties in the input that are used for
      * creating/customizing workload resources.
      * 
* - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setResourceSettings( - int index, com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.Builder builderForValue) { + int index, + com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.Builder + builderForValue) { if (resourceSettingsBuilder_ == null) { ensureResourceSettingsIsMutable(); resourceSettings_.set(index, builderForValue.build()); @@ -1309,14 +1547,19 @@ public Builder setResourceSettings( return this; } /** + * + * *
      * Optional. Resource properties in the input that are used for
      * creating/customizing workload resources.
      * 
* - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder addResourceSettings(com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings value) { + public Builder addResourceSettings( + com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings value) { if (resourceSettingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1330,12 +1573,16 @@ public Builder addResourceSettings(com.google.cloud.assuredworkloads.v1beta1.Wor return this; } /** + * + * *
      * Optional. Resource properties in the input that are used for
      * creating/customizing workload resources.
      * 
* - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addResourceSettings( int index, com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings value) { @@ -1352,15 +1599,20 @@ public Builder addResourceSettings( return this; } /** + * + * *
      * Optional. Resource properties in the input that are used for
      * creating/customizing workload resources.
      * 
* - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addResourceSettings( - com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.Builder builderForValue) { + com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.Builder + builderForValue) { if (resourceSettingsBuilder_ == null) { ensureResourceSettingsIsMutable(); resourceSettings_.add(builderForValue.build()); @@ -1371,15 +1623,21 @@ public Builder addResourceSettings( return this; } /** + * + * *
      * Optional. Resource properties in the input that are used for
      * creating/customizing workload resources.
      * 
* - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addResourceSettings( - int index, com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.Builder builderForValue) { + int index, + com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.Builder + builderForValue) { if (resourceSettingsBuilder_ == null) { ensureResourceSettingsIsMutable(); resourceSettings_.add(index, builderForValue.build()); @@ -1390,19 +1648,24 @@ public Builder addResourceSettings( return this; } /** + * + * *
      * Optional. Resource properties in the input that are used for
      * creating/customizing workload resources.
      * 
* - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAllResourceSettings( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings> + values) { if (resourceSettingsBuilder_ == null) { ensureResourceSettingsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, resourceSettings_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, resourceSettings_); onChanged(); } else { resourceSettingsBuilder_.addAllMessages(values); @@ -1410,12 +1673,16 @@ public Builder addAllResourceSettings( return this; } /** + * + * *
      * Optional. Resource properties in the input that are used for
      * creating/customizing workload resources.
      * 
* - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearResourceSettings() { if (resourceSettingsBuilder_ == null) { @@ -1428,12 +1695,16 @@ public Builder clearResourceSettings() { return this; } /** + * + * *
      * Optional. Resource properties in the input that are used for
      * creating/customizing workload resources.
      * 
* - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder removeResourceSettings(int index) { if (resourceSettingsBuilder_ == null) { @@ -1446,42 +1717,56 @@ public Builder removeResourceSettings(int index) { return this; } /** + * + * *
      * Optional. Resource properties in the input that are used for
      * creating/customizing workload resources.
      * 
* - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.Builder getResourceSettingsBuilder( - int index) { + public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.Builder + getResourceSettingsBuilder(int index) { return getResourceSettingsFieldBuilder().getBuilder(index); } /** + * + * *
      * Optional. Resource properties in the input that are used for
      * creating/customizing workload resources.
      * 
* - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettingsOrBuilder getResourceSettingsOrBuilder( - int index) { + public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettingsOrBuilder + getResourceSettingsOrBuilder(int index) { if (resourceSettingsBuilder_ == null) { - return resourceSettings_.get(index); } else { + return resourceSettings_.get(index); + } else { return resourceSettingsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Optional. Resource properties in the input that are used for
      * creating/customizing workload resources.
      * 
* - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getResourceSettingsOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettingsOrBuilder> + getResourceSettingsOrBuilderList() { if (resourceSettingsBuilder_ != null) { return resourceSettingsBuilder_.getMessageOrBuilderList(); } else { @@ -1489,48 +1774,73 @@ public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettingsOrBuil } } /** + * + * *
      * Optional. Resource properties in the input that are used for
      * creating/customizing workload resources.
      * 
* - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.Builder addResourceSettingsBuilder() { - return getResourceSettingsFieldBuilder().addBuilder( - com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.getDefaultInstance()); + public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.Builder + addResourceSettingsBuilder() { + return getResourceSettingsFieldBuilder() + .addBuilder( + com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings + .getDefaultInstance()); } /** + * + * *
      * Optional. Resource properties in the input that are used for
      * creating/customizing workload resources.
      * 
* - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.Builder addResourceSettingsBuilder( - int index) { - return getResourceSettingsFieldBuilder().addBuilder( - index, com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.getDefaultInstance()); + public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.Builder + addResourceSettingsBuilder(int index) { + return getResourceSettingsFieldBuilder() + .addBuilder( + index, + com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings + .getDefaultInstance()); } /** + * + * *
      * Optional. Resource properties in the input that are used for
      * creating/customizing workload resources.
      * 
* - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getResourceSettingsBuilderList() { + public java.util.List< + com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.Builder> + getResourceSettingsBuilderList() { return getResourceSettingsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings, com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.Builder, com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettingsOrBuilder> + com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings, + com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.Builder, + com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettingsOrBuilder> getResourceSettingsFieldBuilder() { if (resourceSettingsBuilder_ == null) { - resourceSettingsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings, com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.Builder, com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettingsOrBuilder>( + resourceSettingsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings, + com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.Builder, + com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettingsOrBuilder>( resourceSettings_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1539,9 +1849,9 @@ public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.Build } return resourceSettingsBuilder_; } + @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); } @@ -1551,30 +1861,33 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata) - private static final com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata DEFAULT_INSTANCE; + private static final com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata(); + DEFAULT_INSTANCE = + new com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata(); } - public static com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata getDefaultInstance() { + public static com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateWorkloadOperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateWorkloadOperationMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateWorkloadOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateWorkloadOperationMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1586,9 +1899,8 @@ public com.google.protobuf.Parser getParserForT } @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata getDefaultInstanceForType() { + public com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/CreateWorkloadOperationMetadataOrBuilder.java b/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/CreateWorkloadOperationMetadataOrBuilder.java similarity index 58% rename from owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/CreateWorkloadOperationMetadataOrBuilder.java rename to proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/CreateWorkloadOperationMetadataOrBuilder.java index f840077d..bcfe9418 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/CreateWorkloadOperationMetadataOrBuilder.java +++ b/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/CreateWorkloadOperationMetadataOrBuilder.java @@ -1,146 +1,215 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto package com.google.cloud.assuredworkloads.v1beta1; -public interface CreateWorkloadOperationMetadataOrBuilder extends +public interface CreateWorkloadOperationMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. Time when the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Optional. Time when the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Optional. Time when the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Optional. The display name of the workload.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * Optional. The display name of the workload.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * Optional. The parent of the workload.
    * 
* * string parent = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Optional. The parent of the workload.
    * 
* * string parent = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Optional. Compliance controls that should be applied to the resources
    * managed by the workload.
    * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for complianceRegime. */ int getComplianceRegimeValue(); /** + * + * *
    * Optional. Compliance controls that should be applied to the resources
    * managed by the workload.
    * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The complianceRegime. */ com.google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime getComplianceRegime(); /** + * + * *
    * Optional. Resource properties in the input that are used for
    * creating/customizing workload resources.
    * 
* - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List + java.util.List getResourceSettingsList(); /** + * + * *
    * Optional. Resource properties in the input that are used for
    * creating/customizing workload resources.
    * 
* - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings getResourceSettings(int index); + com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings getResourceSettings( + int index); /** + * + * *
    * Optional. Resource properties in the input that are used for
    * creating/customizing workload resources.
    * 
* - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getResourceSettingsCount(); /** + * + * *
    * Optional. Resource properties in the input that are used for
    * creating/customizing workload resources.
    * 
* - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List + java.util.List< + ? extends com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettingsOrBuilder> getResourceSettingsOrBuilderList(); /** + * + * *
    * Optional. Resource properties in the input that are used for
    * creating/customizing workload resources.
    * 
* - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettingsOrBuilder getResourceSettingsOrBuilder( - int index); + com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettingsOrBuilder + getResourceSettingsOrBuilder(int index); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/CreateWorkloadRequest.java b/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/CreateWorkloadRequest.java similarity index 65% rename from owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/CreateWorkloadRequest.java rename to proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/CreateWorkloadRequest.java index 0d65d8f4..fc1a8f1e 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/CreateWorkloadRequest.java +++ b/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/CreateWorkloadRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto package com.google.cloud.assuredworkloads.v1beta1; /** + * + * *
  * Request for creating a workload.
  * 
* * Protobuf type {@code google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest} */ -public final class CreateWorkloadRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateWorkloadRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest) CreateWorkloadRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateWorkloadRequest.newBuilder() to construct. private CreateWorkloadRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateWorkloadRequest() { parent_ = ""; externalId_ = ""; @@ -26,16 +44,15 @@ private CreateWorkloadRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateWorkloadRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CreateWorkloadRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,38 +71,44 @@ private CreateWorkloadRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: { - com.google.cloud.assuredworkloads.v1beta1.Workload.Builder subBuilder = null; - if (workload_ != null) { - subBuilder = workload_.toBuilder(); - } - workload_ = input.readMessage(com.google.cloud.assuredworkloads.v1beta1.Workload.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(workload_); - workload_ = subBuilder.buildPartial(); + parent_ = s; + break; } + case 18: + { + com.google.cloud.assuredworkloads.v1beta1.Workload.Builder subBuilder = null; + if (workload_ != null) { + subBuilder = workload_.toBuilder(); + } + workload_ = + input.readMessage( + com.google.cloud.assuredworkloads.v1beta1.Workload.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(workload_); + workload_ = subBuilder.buildPartial(); + } - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - externalId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + externalId_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -93,35 +116,42 @@ private CreateWorkloadRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_CreateWorkloadRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1beta1_CreateWorkloadRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_CreateWorkloadRequest_fieldAccessorTable + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1beta1_CreateWorkloadRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest.class, com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest.Builder.class); + com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest.class, + com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The resource name of the new Workload's parent.
    * Must be of the form `organizations/{org_id}/locations/{location_id}`.
    * 
* - * 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 @@ -130,30 +160,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 new Workload's parent.
    * Must be of the form `organizations/{org_id}/locations/{location_id}`.
    * 
* - * 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 { @@ -164,11 +196,16 @@ public java.lang.String getParent() { public static final int WORKLOAD_FIELD_NUMBER = 2; private com.google.cloud.assuredworkloads.v1beta1.Workload workload_; /** + * + * *
    * Required. Assured Workload to create
    * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the workload field is set. */ @java.lang.Override @@ -176,23 +213,34 @@ public boolean hasWorkload() { return workload_ != null; } /** + * + * *
    * Required. Assured Workload to create
    * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The workload. */ @java.lang.Override public com.google.cloud.assuredworkloads.v1beta1.Workload getWorkload() { - return workload_ == null ? com.google.cloud.assuredworkloads.v1beta1.Workload.getDefaultInstance() : workload_; + return workload_ == null + ? com.google.cloud.assuredworkloads.v1beta1.Workload.getDefaultInstance() + : workload_; } /** + * + * *
    * Required. Assured Workload to create
    * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.assuredworkloads.v1beta1.WorkloadOrBuilder getWorkloadOrBuilder() { @@ -202,6 +250,8 @@ public com.google.cloud.assuredworkloads.v1beta1.WorkloadOrBuilder getWorkloadOr public static final int EXTERNAL_ID_FIELD_NUMBER = 3; private volatile java.lang.Object externalId_; /** + * + * *
    * Optional. A identifier associated with the workload and underlying projects
    * which allows for the break down of billing costs for a workload. The value
@@ -210,6 +260,7 @@ public com.google.cloud.assuredworkloads.v1beta1.WorkloadOrBuilder getWorkloadOr
    * 
* * string external_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The externalId. */ @java.lang.Override @@ -218,14 +269,15 @@ public java.lang.String getExternalId() { 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(); externalId_ = s; return s; } } /** + * + * *
    * Optional. A identifier associated with the workload and underlying projects
    * which allows for the break down of billing costs for a workload. The value
@@ -234,16 +286,15 @@ public java.lang.String getExternalId() {
    * 
* * string external_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for externalId. */ @java.lang.Override - public com.google.protobuf.ByteString - getExternalIdBytes() { + public com.google.protobuf.ByteString getExternalIdBytes() { java.lang.Object ref = externalId_; 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); externalId_ = b; return b; } else { @@ -252,6 +303,7 @@ public java.lang.String getExternalId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -263,8 +315,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_); } @@ -287,8 +338,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (workload_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getWorkload()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getWorkload()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(externalId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, externalId_); @@ -301,22 +351,20 @@ 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.assuredworkloads.v1beta1.CreateWorkloadRequest)) { return super.equals(obj); } - com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest other = (com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest) obj; + com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest other = + (com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasWorkload() != other.hasWorkload()) return false; if (hasWorkload()) { - if (!getWorkload() - .equals(other.getWorkload())) return false; + if (!getWorkload().equals(other.getWorkload())) return false; } - if (!getExternalId() - .equals(other.getExternalId())) return false; + if (!getExternalId().equals(other.getExternalId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -342,117 +390,127 @@ public int hashCode() { } public static com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest 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.assuredworkloads.v1beta1.CreateWorkloadRequest 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.assuredworkloads.v1beta1.CreateWorkloadRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest 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.assuredworkloads.v1beta1.CreateWorkloadRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest 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.assuredworkloads.v1beta1.CreateWorkloadRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest 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.assuredworkloads.v1beta1.CreateWorkloadRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest 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.assuredworkloads.v1beta1.CreateWorkloadRequest 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.assuredworkloads.v1beta1.CreateWorkloadRequest 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.assuredworkloads.v1beta1.CreateWorkloadRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for creating a workload.
    * 
* * Protobuf type {@code google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest} */ - 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.assuredworkloads.v1beta1.CreateWorkloadRequest) com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_CreateWorkloadRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1beta1_CreateWorkloadRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_CreateWorkloadRequest_fieldAccessorTable + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1beta1_CreateWorkloadRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest.class, com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest.Builder.class); + com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest.class, + com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest.Builder.class); } // Construct using com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest.newBuilder() @@ -460,16 +518,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -487,13 +544,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_CreateWorkloadRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1beta1_CreateWorkloadRequest_descriptor; } @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest getDefaultInstanceForType() { + public com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest + getDefaultInstanceForType() { return com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest.getDefaultInstance(); } @@ -508,7 +566,8 @@ public com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest build() { @java.lang.Override public com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest buildPartial() { - com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest result = new com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest(this); + com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest result = + new com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest(this); result.parent_ = parent_; if (workloadBuilder_ == null) { result.workload_ = workload_; @@ -524,46 +583,50 @@ public com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest buildPart public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest) { - return mergeFrom((com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest)other); + return mergeFrom((com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest other) { - if (other == com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest other) { + if (other + == com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -594,7 +657,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -606,19 +671,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The resource name of the new Workload's parent.
      * Must be of the form `organizations/{org_id}/locations/{location_id}`.
      * 
* - * 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; @@ -627,21 +696,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource name of the new Workload's parent.
      * Must be of the form `organizations/{org_id}/locations/{location_id}`.
      * 
* - * 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 { @@ -649,57 +721,70 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource name of the new Workload's parent.
      * Must be of the form `organizations/{org_id}/locations/{location_id}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name of the new Workload's parent.
      * Must be of the form `organizations/{org_id}/locations/{location_id}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The resource name of the new Workload's parent.
      * Must be of the form `organizations/{org_id}/locations/{location_id}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -707,39 +792,58 @@ public Builder setParentBytes( private com.google.cloud.assuredworkloads.v1beta1.Workload workload_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.assuredworkloads.v1beta1.Workload, com.google.cloud.assuredworkloads.v1beta1.Workload.Builder, com.google.cloud.assuredworkloads.v1beta1.WorkloadOrBuilder> workloadBuilder_; + com.google.cloud.assuredworkloads.v1beta1.Workload, + com.google.cloud.assuredworkloads.v1beta1.Workload.Builder, + com.google.cloud.assuredworkloads.v1beta1.WorkloadOrBuilder> + workloadBuilder_; /** + * + * *
      * Required. Assured Workload to create
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the workload field is set. */ public boolean hasWorkload() { return workloadBuilder_ != null || workload_ != null; } /** + * + * *
      * Required. Assured Workload to create
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The workload. */ public com.google.cloud.assuredworkloads.v1beta1.Workload getWorkload() { if (workloadBuilder_ == null) { - return workload_ == null ? com.google.cloud.assuredworkloads.v1beta1.Workload.getDefaultInstance() : workload_; + return workload_ == null + ? com.google.cloud.assuredworkloads.v1beta1.Workload.getDefaultInstance() + : workload_; } else { return workloadBuilder_.getMessage(); } } /** + * + * *
      * Required. Assured Workload to create
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setWorkload(com.google.cloud.assuredworkloads.v1beta1.Workload value) { if (workloadBuilder_ == null) { @@ -755,11 +859,15 @@ public Builder setWorkload(com.google.cloud.assuredworkloads.v1beta1.Workload va return this; } /** + * + * *
      * Required. Assured Workload to create
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setWorkload( com.google.cloud.assuredworkloads.v1beta1.Workload.Builder builderForValue) { @@ -773,17 +881,23 @@ public Builder setWorkload( return this; } /** + * + * *
      * Required. Assured Workload to create
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeWorkload(com.google.cloud.assuredworkloads.v1beta1.Workload value) { if (workloadBuilder_ == null) { if (workload_ != null) { workload_ = - com.google.cloud.assuredworkloads.v1beta1.Workload.newBuilder(workload_).mergeFrom(value).buildPartial(); + com.google.cloud.assuredworkloads.v1beta1.Workload.newBuilder(workload_) + .mergeFrom(value) + .buildPartial(); } else { workload_ = value; } @@ -795,11 +909,15 @@ public Builder mergeWorkload(com.google.cloud.assuredworkloads.v1beta1.Workload return this; } /** + * + * *
      * Required. Assured Workload to create
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearWorkload() { if (workloadBuilder_ == null) { @@ -813,48 +931,64 @@ public Builder clearWorkload() { return this; } /** + * + * *
      * Required. Assured Workload to create
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.assuredworkloads.v1beta1.Workload.Builder getWorkloadBuilder() { - + onChanged(); return getWorkloadFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Assured Workload to create
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.assuredworkloads.v1beta1.WorkloadOrBuilder getWorkloadOrBuilder() { if (workloadBuilder_ != null) { return workloadBuilder_.getMessageOrBuilder(); } else { - return workload_ == null ? - com.google.cloud.assuredworkloads.v1beta1.Workload.getDefaultInstance() : workload_; + return workload_ == null + ? com.google.cloud.assuredworkloads.v1beta1.Workload.getDefaultInstance() + : workload_; } } /** + * + * *
      * Required. Assured Workload to create
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.assuredworkloads.v1beta1.Workload, com.google.cloud.assuredworkloads.v1beta1.Workload.Builder, com.google.cloud.assuredworkloads.v1beta1.WorkloadOrBuilder> + com.google.cloud.assuredworkloads.v1beta1.Workload, + com.google.cloud.assuredworkloads.v1beta1.Workload.Builder, + com.google.cloud.assuredworkloads.v1beta1.WorkloadOrBuilder> getWorkloadFieldBuilder() { if (workloadBuilder_ == null) { - workloadBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.assuredworkloads.v1beta1.Workload, com.google.cloud.assuredworkloads.v1beta1.Workload.Builder, com.google.cloud.assuredworkloads.v1beta1.WorkloadOrBuilder>( - getWorkload(), - getParentForChildren(), - isClean()); + workloadBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.assuredworkloads.v1beta1.Workload, + com.google.cloud.assuredworkloads.v1beta1.Workload.Builder, + com.google.cloud.assuredworkloads.v1beta1.WorkloadOrBuilder>( + getWorkload(), getParentForChildren(), isClean()); workload_ = null; } return workloadBuilder_; @@ -862,6 +996,8 @@ public com.google.cloud.assuredworkloads.v1beta1.WorkloadOrBuilder getWorkloadOr private java.lang.Object externalId_ = ""; /** + * + * *
      * Optional. A identifier associated with the workload and underlying projects
      * which allows for the break down of billing costs for a workload. The value
@@ -870,13 +1006,13 @@ public com.google.cloud.assuredworkloads.v1beta1.WorkloadOrBuilder getWorkloadOr
      * 
* * string external_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The externalId. */ public java.lang.String getExternalId() { java.lang.Object ref = externalId_; 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(); externalId_ = s; return s; @@ -885,6 +1021,8 @@ public java.lang.String getExternalId() { } } /** + * + * *
      * Optional. A identifier associated with the workload and underlying projects
      * which allows for the break down of billing costs for a workload. The value
@@ -893,15 +1031,14 @@ public java.lang.String getExternalId() {
      * 
* * string external_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for externalId. */ - public com.google.protobuf.ByteString - getExternalIdBytes() { + public com.google.protobuf.ByteString getExternalIdBytes() { java.lang.Object ref = externalId_; 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); externalId_ = b; return b; } else { @@ -909,6 +1046,8 @@ public java.lang.String getExternalId() { } } /** + * + * *
      * Optional. A identifier associated with the workload and underlying projects
      * which allows for the break down of billing costs for a workload. The value
@@ -917,20 +1056,22 @@ public java.lang.String getExternalId() {
      * 
* * string external_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The externalId to set. * @return This builder for chaining. */ - public Builder setExternalId( - java.lang.String value) { + public Builder setExternalId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + externalId_ = value; onChanged(); return this; } /** + * + * *
      * Optional. A identifier associated with the workload and underlying projects
      * which allows for the break down of billing costs for a workload. The value
@@ -939,15 +1080,18 @@ public Builder setExternalId(
      * 
* * string external_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearExternalId() { - + externalId_ = getDefaultInstance().getExternalId(); onChanged(); return this; } /** + * + * *
      * Optional. A identifier associated with the workload and underlying projects
      * which allows for the break down of billing costs for a workload. The value
@@ -956,23 +1100,23 @@ public Builder clearExternalId() {
      * 
* * string external_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for externalId to set. * @return This builder for chaining. */ - public Builder setExternalIdBytes( - com.google.protobuf.ByteString value) { + public Builder setExternalIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + externalId_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -982,30 +1126,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest) } // @@protoc_insertion_point(class_scope:google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest) - private static final com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest DEFAULT_INSTANCE; + private static final com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest(); } - public static com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest getDefaultInstance() { + public static com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateWorkloadRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateWorkloadRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateWorkloadRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateWorkloadRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1017,9 +1163,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest getDefaultInstanceForType() { + public com.google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/CreateWorkloadRequestOrBuilder.java b/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/CreateWorkloadRequestOrBuilder.java similarity index 59% rename from owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/CreateWorkloadRequestOrBuilder.java rename to proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/CreateWorkloadRequestOrBuilder.java index f3a28f86..1c6fdac2 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/CreateWorkloadRequestOrBuilder.java +++ b/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/CreateWorkloadRequestOrBuilder.java @@ -1,62 +1,103 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto package com.google.cloud.assuredworkloads.v1beta1; -public interface CreateWorkloadRequestOrBuilder extends +public interface CreateWorkloadRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource name of the new Workload's parent.
    * Must be of the form `organizations/{org_id}/locations/{location_id}`.
    * 
* - * 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 new Workload's parent.
    * Must be of the form `organizations/{org_id}/locations/{location_id}`.
    * 
* - * 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. Assured Workload to create
    * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the workload field is set. */ boolean hasWorkload(); /** + * + * *
    * Required. Assured Workload to create
    * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The workload. */ com.google.cloud.assuredworkloads.v1beta1.Workload getWorkload(); /** + * + * *
    * Required. Assured Workload to create
    * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.assuredworkloads.v1beta1.WorkloadOrBuilder getWorkloadOrBuilder(); /** + * + * *
    * Optional. A identifier associated with the workload and underlying projects
    * which allows for the break down of billing costs for a workload. The value
@@ -65,10 +106,13 @@ public interface CreateWorkloadRequestOrBuilder extends
    * 
* * string external_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The externalId. */ java.lang.String getExternalId(); /** + * + * *
    * Optional. A identifier associated with the workload and underlying projects
    * which allows for the break down of billing costs for a workload. The value
@@ -77,8 +121,8 @@ public interface CreateWorkloadRequestOrBuilder extends
    * 
* * string external_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for externalId. */ - com.google.protobuf.ByteString - getExternalIdBytes(); + com.google.protobuf.ByteString getExternalIdBytes(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/DeleteWorkloadRequest.java b/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/DeleteWorkloadRequest.java similarity index 67% rename from owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/DeleteWorkloadRequest.java rename to proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/DeleteWorkloadRequest.java index 7d36418d..ea7ce0c3 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/DeleteWorkloadRequest.java +++ b/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/DeleteWorkloadRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto package com.google.cloud.assuredworkloads.v1beta1; /** + * + * *
  * Request for deleting a Workload.
  * 
* * Protobuf type {@code google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest} */ -public final class DeleteWorkloadRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteWorkloadRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest) DeleteWorkloadRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteWorkloadRequest.newBuilder() to construct. private DeleteWorkloadRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteWorkloadRequest() { name_ = ""; etag_ = ""; @@ -26,16 +44,15 @@ private DeleteWorkloadRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteWorkloadRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DeleteWorkloadRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,25 +71,27 @@ private DeleteWorkloadRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - etag_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + etag_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -80,36 +99,43 @@ private DeleteWorkloadRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_DeleteWorkloadRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1beta1_DeleteWorkloadRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_DeleteWorkloadRequest_fieldAccessorTable + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1beta1_DeleteWorkloadRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest.class, com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest.Builder.class); + com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest.class, + com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The `name` field is used to identify the workload.
    * Format:
    * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -118,31 +144,33 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The `name` field is used to identify the workload.
    * Format:
    * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -153,12 +181,15 @@ public java.lang.String getName() { public static final int ETAG_FIELD_NUMBER = 2; private volatile java.lang.Object etag_; /** + * + * *
    * Optional. The etag of the workload.
    * If this is provided, it must match the server's etag.
    * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The etag. */ @java.lang.Override @@ -167,30 +198,30 @@ public java.lang.String getEtag() { 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(); etag_ = s; return s; } } /** + * + * *
    * Optional. The etag of the workload.
    * If this is provided, it must match the server's etag.
    * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -199,6 +230,7 @@ public java.lang.String getEtag() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -210,8 +242,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_); } @@ -241,17 +272,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.assuredworkloads.v1beta1.DeleteWorkloadRequest)) { return super.equals(obj); } - com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest other = (com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest) obj; + com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest other = + (com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getEtag() - .equals(other.getEtag())) return false; + if (!getName().equals(other.getName())) return false; + if (!getEtag().equals(other.getEtag())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -273,117 +303,127 @@ public int hashCode() { } public static com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest 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.assuredworkloads.v1beta1.DeleteWorkloadRequest 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.assuredworkloads.v1beta1.DeleteWorkloadRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest 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.assuredworkloads.v1beta1.DeleteWorkloadRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest 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.assuredworkloads.v1beta1.DeleteWorkloadRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest 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.assuredworkloads.v1beta1.DeleteWorkloadRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest 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.assuredworkloads.v1beta1.DeleteWorkloadRequest 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.assuredworkloads.v1beta1.DeleteWorkloadRequest 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.assuredworkloads.v1beta1.DeleteWorkloadRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for deleting a Workload.
    * 
* * Protobuf type {@code google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest} */ - 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.assuredworkloads.v1beta1.DeleteWorkloadRequest) com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_DeleteWorkloadRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1beta1_DeleteWorkloadRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_DeleteWorkloadRequest_fieldAccessorTable + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1beta1_DeleteWorkloadRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest.class, com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest.Builder.class); + com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest.class, + com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest.Builder.class); } // Construct using com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest.newBuilder() @@ -391,16 +431,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -412,13 +451,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_DeleteWorkloadRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1beta1_DeleteWorkloadRequest_descriptor; } @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest getDefaultInstanceForType() { + public com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest + getDefaultInstanceForType() { return com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest.getDefaultInstance(); } @@ -433,7 +473,8 @@ public com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest build() { @java.lang.Override public com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest buildPartial() { - com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest result = new com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest(this); + com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest result = + new com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest(this); result.name_ = name_; result.etag_ = etag_; onBuilt(); @@ -444,46 +485,50 @@ public com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest buildPart public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest) { - return mergeFrom((com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest)other); + return mergeFrom((com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest other) { - if (other == com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest other) { + if (other + == com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -511,7 +556,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -523,20 +570,24 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The `name` field is used to identify the workload.
      * Format:
      * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -545,22 +596,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The `name` field is used to identify the workload.
      * Format:
      * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -568,60 +622,73 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The `name` field is used to identify the workload.
      * Format:
      * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The `name` field is used to identify the workload.
      * Format:
      * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The `name` field is used to identify the workload.
      * Format:
      * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -629,19 +696,21 @@ public Builder setNameBytes( private java.lang.Object etag_ = ""; /** + * + * *
      * Optional. The etag of the workload.
      * If this is provided, it must match the server's etag.
      * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; 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(); etag_ = s; return s; @@ -650,21 +719,22 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Optional. The etag of the workload.
      * If this is provided, it must match the server's etag.
      * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for etag. */ - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -672,64 +742,71 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Optional. The etag of the workload.
      * If this is provided, it must match the server's etag.
      * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag( - java.lang.String value) { + public Builder setEtag(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + etag_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The etag of the workload.
      * If this is provided, it must match the server's etag.
      * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearEtag() { - + etag_ = getDefaultInstance().getEtag(); onChanged(); return this; } /** + * + * *
      * Optional. The etag of the workload.
      * If this is provided, it must match the server's etag.
      * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes( - com.google.protobuf.ByteString value) { + public Builder setEtagBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -739,30 +816,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest) } // @@protoc_insertion_point(class_scope:google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest) - private static final com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest DEFAULT_INSTANCE; + private static final com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest(); } - public static com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest getDefaultInstance() { + public static com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteWorkloadRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteWorkloadRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteWorkloadRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteWorkloadRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -774,9 +853,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest getDefaultInstanceForType() { + public com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/DeleteWorkloadRequestOrBuilder.java b/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/DeleteWorkloadRequestOrBuilder.java similarity index 55% rename from owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/DeleteWorkloadRequestOrBuilder.java rename to proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/DeleteWorkloadRequestOrBuilder.java index 89a26b3b..08dcd620 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/DeleteWorkloadRequestOrBuilder.java +++ b/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/DeleteWorkloadRequestOrBuilder.java @@ -1,55 +1,85 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto package com.google.cloud.assuredworkloads.v1beta1; -public interface DeleteWorkloadRequestOrBuilder extends +public interface DeleteWorkloadRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The `name` field is used to identify the workload.
    * Format:
    * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The `name` field is used to identify the workload.
    * Format:
    * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Optional. The etag of the workload.
    * If this is provided, it must match the server's etag.
    * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The etag. */ java.lang.String getEtag(); /** + * + * *
    * Optional. The etag of the workload.
    * If this is provided, it must match the server's etag.
    * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for etag. */ - com.google.protobuf.ByteString - getEtagBytes(); + com.google.protobuf.ByteString getEtagBytes(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/GetWorkloadRequest.java b/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/GetWorkloadRequest.java similarity index 67% rename from owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/GetWorkloadRequest.java rename to proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/GetWorkloadRequest.java index 05ef4c8b..c59da5e3 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/GetWorkloadRequest.java +++ b/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/GetWorkloadRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto package com.google.cloud.assuredworkloads.v1beta1; /** + * + * *
  * Request for fetching a workload.
  * 
* * Protobuf type {@code google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest} */ -public final class GetWorkloadRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetWorkloadRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest) GetWorkloadRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetWorkloadRequest.newBuilder() to construct. private GetWorkloadRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetWorkloadRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetWorkloadRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetWorkloadRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GetWorkloadRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,29 +91,33 @@ private GetWorkloadRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_GetWorkloadRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1beta1_GetWorkloadRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_GetWorkloadRequest_fieldAccessorTable + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1beta1_GetWorkloadRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest.class, com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest.Builder.class); + com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest.class, + com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The resource name of the Workload to fetch. This is the
    * workloads's relative path in the API, formatted as
@@ -104,7 +126,10 @@ private GetWorkloadRequest(
    * "organizations/123/locations/us-east1/workloads/assured-workload-1".
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -113,14 +138,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The resource name of the Workload to fetch. This is the
    * workloads's relative path in the API, formatted as
@@ -129,17 +155,18 @@ public java.lang.String getName() {
    * "organizations/123/locations/us-east1/workloads/assured-workload-1".
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -148,6 +175,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -159,8 +187,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_); } @@ -184,15 +211,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.assuredworkloads.v1beta1.GetWorkloadRequest)) { return super.equals(obj); } - com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest other = (com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest) obj; + com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest other = + (com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -212,117 +239,127 @@ public int hashCode() { } public static com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest 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.assuredworkloads.v1beta1.GetWorkloadRequest 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.assuredworkloads.v1beta1.GetWorkloadRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest 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.assuredworkloads.v1beta1.GetWorkloadRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest 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.assuredworkloads.v1beta1.GetWorkloadRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest 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.assuredworkloads.v1beta1.GetWorkloadRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest 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.assuredworkloads.v1beta1.GetWorkloadRequest 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.assuredworkloads.v1beta1.GetWorkloadRequest 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.assuredworkloads.v1beta1.GetWorkloadRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for fetching a workload.
    * 
* * Protobuf type {@code google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest} */ - 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.assuredworkloads.v1beta1.GetWorkloadRequest) com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_GetWorkloadRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1beta1_GetWorkloadRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_GetWorkloadRequest_fieldAccessorTable + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1beta1_GetWorkloadRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest.class, com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest.Builder.class); + com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest.class, + com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest.Builder.class); } // Construct using com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest.newBuilder() @@ -330,16 +367,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -349,13 +385,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_GetWorkloadRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1beta1_GetWorkloadRequest_descriptor; } @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest getDefaultInstanceForType() { + public com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest + getDefaultInstanceForType() { return com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest.getDefaultInstance(); } @@ -370,7 +407,8 @@ public com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest build() { @java.lang.Override public com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest buildPartial() { - com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest result = new com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest(this); + com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest result = + new com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest(this); result.name_ = name_; onBuilt(); return result; @@ -380,38 +418,39 @@ public com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest buildPartial public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest) { - return mergeFrom((com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest)other); + return mergeFrom((com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest) other); } else { super.mergeFrom(other); return this; @@ -419,7 +458,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest other) { - if (other == com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -443,7 +484,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -455,6 +497,8 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name of the Workload to fetch. This is the
      * workloads's relative path in the API, formatted as
@@ -463,14 +507,16 @@ public Builder mergeFrom(
      * "organizations/123/locations/us-east1/workloads/assured-workload-1".
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -479,6 +525,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the Workload to fetch. This is the
      * workloads's relative path in the API, formatted as
@@ -487,16 +535,17 @@ public java.lang.String getName() {
      * "organizations/123/locations/us-east1/workloads/assured-workload-1".
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -504,6 +553,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the Workload to fetch. This is the
      * workloads's relative path in the API, formatted as
@@ -512,21 +563,25 @@ public java.lang.String getName() {
      * "organizations/123/locations/us-east1/workloads/assured-workload-1".
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name of the Workload to fetch. This is the
      * workloads's relative path in the API, formatted as
@@ -535,16 +590,21 @@ public Builder setName(
      * "organizations/123/locations/us-east1/workloads/assured-workload-1".
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The resource name of the Workload to fetch. This is the
      * workloads's relative path in the API, formatted as
@@ -553,24 +613,26 @@ public Builder clearName() {
      * "organizations/123/locations/us-east1/workloads/assured-workload-1".
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -580,12 +642,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest) } // @@protoc_insertion_point(class_scope:google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest) - private static final com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest DEFAULT_INSTANCE; + private static final com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest(); } @@ -594,16 +657,16 @@ public static com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetWorkloadRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetWorkloadRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetWorkloadRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetWorkloadRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -618,6 +681,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/GetWorkloadRequestOrBuilder.java b/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/GetWorkloadRequestOrBuilder.java similarity index 52% rename from owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/GetWorkloadRequestOrBuilder.java rename to proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/GetWorkloadRequestOrBuilder.java index 94a3945c..91f4d12c 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/GetWorkloadRequestOrBuilder.java +++ b/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/GetWorkloadRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto package com.google.cloud.assuredworkloads.v1beta1; -public interface GetWorkloadRequestOrBuilder extends +public interface GetWorkloadRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource name of the Workload to fetch. This is the
    * workloads's relative path in the API, formatted as
@@ -16,11 +34,16 @@ public interface GetWorkloadRequestOrBuilder extends
    * "organizations/123/locations/us-east1/workloads/assured-workload-1".
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The resource name of the Workload to fetch. This is the
    * workloads's relative path in the API, formatted as
@@ -29,9 +52,11 @@ public interface GetWorkloadRequestOrBuilder extends
    * "organizations/123/locations/us-east1/workloads/assured-workload-1".
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/ListWorkloadsRequest.java b/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/ListWorkloadsRequest.java similarity index 69% rename from owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/ListWorkloadsRequest.java rename to proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/ListWorkloadsRequest.java index 9e8d769a..2b09c8ea 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/ListWorkloadsRequest.java +++ b/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/ListWorkloadsRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto package com.google.cloud.assuredworkloads.v1beta1; /** + * + * *
  * Request for fetching workloads in an organization.
  * 
* * Protobuf type {@code google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest} */ -public final class ListWorkloadsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListWorkloadsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest) ListWorkloadsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListWorkloadsRequest.newBuilder() to construct. private ListWorkloadsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListWorkloadsRequest() { parent_ = ""; pageToken_ = ""; @@ -27,16 +45,15 @@ private ListWorkloadsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListWorkloadsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListWorkloadsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,36 +72,39 @@ private ListWorkloadsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 16: { - - pageSize_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + pageToken_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + filter_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -92,35 +112,42 @@ private ListWorkloadsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_ListWorkloadsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1beta1_ListWorkloadsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_ListWorkloadsRequest_fieldAccessorTable + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1beta1_ListWorkloadsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest.class, com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest.Builder.class); + com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest.class, + com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Parent Resource to list workloads from.
    * Must be of the form `organizations/{org_id}/locations/{location}`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -129,30 +156,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. Parent Resource to list workloads from.
    * Must be of the form `organizations/{org_id}/locations/{location}`.
    * 
* - * 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 { @@ -163,11 +192,14 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * Page size.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -178,6 +210,8 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * Page token returned from previous request. Page token contains context from
    * previous request. Page token needs to be passed in the second and following
@@ -185,6 +219,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -193,14 +228,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * Page token returned from previous request. Page token contains context from
    * previous request. Page token needs to be passed in the second and following
@@ -208,16 +244,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -228,12 +263,15 @@ public java.lang.String getPageToken() { public static final int FILTER_FIELD_NUMBER = 4; private volatile java.lang.Object filter_; /** + * + * *
    * A custom filter for filtering by properties of a workload. At this time,
    * only filtering by labels is supported.
    * 
* * string filter = 4; + * * @return The filter. */ @java.lang.Override @@ -242,30 +280,30 @@ public java.lang.String getFilter() { 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(); filter_ = s; return s; } } /** + * + * *
    * A custom filter for filtering by properties of a workload. At this time,
    * only filtering by labels is supported.
    * 
* * string filter = 4; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; 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); filter_ = b; return b; } else { @@ -274,6 +312,7 @@ public java.lang.String getFilter() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -285,8 +324,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_); } @@ -312,8 +350,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -329,21 +366,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.assuredworkloads.v1beta1.ListWorkloadsRequest)) { return super.equals(obj); } - com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest other = (com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; + com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest other = + (com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -369,117 +403,127 @@ public int hashCode() { } public static com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest 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.assuredworkloads.v1beta1.ListWorkloadsRequest 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.assuredworkloads.v1beta1.ListWorkloadsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest 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.assuredworkloads.v1beta1.ListWorkloadsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest 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.assuredworkloads.v1beta1.ListWorkloadsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest 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.assuredworkloads.v1beta1.ListWorkloadsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest 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.assuredworkloads.v1beta1.ListWorkloadsRequest 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.assuredworkloads.v1beta1.ListWorkloadsRequest 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.assuredworkloads.v1beta1.ListWorkloadsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for fetching workloads in an organization.
    * 
* * Protobuf type {@code google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest} */ - 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.assuredworkloads.v1beta1.ListWorkloadsRequest) com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_ListWorkloadsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1beta1_ListWorkloadsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_ListWorkloadsRequest_fieldAccessorTable + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1beta1_ListWorkloadsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest.class, com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest.Builder.class); + com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest.class, + com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest.Builder.class); } // Construct using com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest.newBuilder() @@ -487,16 +531,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -512,13 +555,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_ListWorkloadsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1beta1_ListWorkloadsRequest_descriptor; } @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest getDefaultInstanceForType() { + public com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest + getDefaultInstanceForType() { return com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest.getDefaultInstance(); } @@ -533,7 +577,8 @@ public com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest build() { @java.lang.Override public com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest buildPartial() { - com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest result = new com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest(this); + com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest result = + new com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -546,38 +591,39 @@ public com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest buildParti public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest) { - return mergeFrom((com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest)other); + return mergeFrom((com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest) other); } else { super.mergeFrom(other); return this; @@ -585,7 +631,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest other) { - if (other == com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -620,7 +668,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -632,19 +682,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Parent Resource to list workloads from.
      * Must be of the form `organizations/{org_id}/locations/{location}`.
      * 
* - * 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; @@ -653,21 +707,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent Resource to list workloads from.
      * Must be of the form `organizations/{org_id}/locations/{location}`.
      * 
* - * 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 { @@ -675,69 +732,85 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent Resource to list workloads from.
      * Must be of the form `organizations/{org_id}/locations/{location}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. Parent Resource to list workloads from.
      * Must be of the form `organizations/{org_id}/locations/{location}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. Parent Resource to list workloads from.
      * Must be of the form `organizations/{org_id}/locations/{location}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Page size.
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -745,30 +818,36 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Page size.
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * Page size.
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -776,6 +855,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Page token returned from previous request. Page token contains context from
      * previous request. Page token needs to be passed in the second and following
@@ -783,13 +864,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -798,6 +879,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Page token returned from previous request. Page token contains context from
      * previous request. Page token needs to be passed in the second and following
@@ -805,15 +888,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -821,6 +903,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Page token returned from previous request. Page token contains context from
      * previous request. Page token needs to be passed in the second and following
@@ -828,20 +912,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * Page token returned from previous request. Page token contains context from
      * previous request. Page token needs to be passed in the second and following
@@ -849,15 +935,18 @@ public Builder setPageToken(
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * Page token returned from previous request. Page token contains context from
      * previous request. Page token needs to be passed in the second and following
@@ -865,16 +954,16 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; @@ -882,19 +971,21 @@ public Builder setPageTokenBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * A custom filter for filtering by properties of a workload. At this time,
      * only filtering by labels is supported.
      * 
* * string filter = 4; + * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; 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(); filter_ = s; return s; @@ -903,21 +994,22 @@ public java.lang.String getFilter() { } } /** + * + * *
      * A custom filter for filtering by properties of a workload. At this time,
      * only filtering by labels is supported.
      * 
* * string filter = 4; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; 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); filter_ = b; return b; } else { @@ -925,64 +1017,71 @@ public java.lang.String getFilter() { } } /** + * + * *
      * A custom filter for filtering by properties of a workload. At this time,
      * only filtering by labels is supported.
      * 
* * string filter = 4; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { + public Builder setFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** + * + * *
      * A custom filter for filtering by properties of a workload. At this time,
      * only filtering by labels is supported.
      * 
* * string filter = 4; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
      * A custom filter for filtering by properties of a workload. At this time,
      * only filtering by labels is supported.
      * 
* * string filter = 4; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { + public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -992,30 +1091,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest) - private static final com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest DEFAULT_INSTANCE; + private static final com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest(); } - public static com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest getDefaultInstance() { + public static com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListWorkloadsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListWorkloadsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListWorkloadsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListWorkloadsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1027,9 +1128,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest getDefaultInstanceForType() { + public com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/ListWorkloadsRequestOrBuilder.java b/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/ListWorkloadsRequestOrBuilder.java similarity index 63% rename from owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/ListWorkloadsRequestOrBuilder.java rename to proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/ListWorkloadsRequestOrBuilder.java index ea8648ef..14ced5a9 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/ListWorkloadsRequestOrBuilder.java +++ b/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/ListWorkloadsRequestOrBuilder.java @@ -1,45 +1,75 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto package com.google.cloud.assuredworkloads.v1beta1; -public interface ListWorkloadsRequestOrBuilder extends +public interface ListWorkloadsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Parent Resource to list workloads from.
    * Must be of the form `organizations/{org_id}/locations/{location}`.
    * 
* - * 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. Parent Resource to list workloads from.
    * Must be of the form `organizations/{org_id}/locations/{location}`.
    * 
* - * 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(); /** + * + * *
    * Page size.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * Page token returned from previous request. Page token contains context from
    * previous request. Page token needs to be passed in the second and following
@@ -47,10 +77,13 @@ public interface ListWorkloadsRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * Page token returned from previous request. Page token contains context from
    * previous request. Page token needs to be passed in the second and following
@@ -58,30 +91,35 @@ public interface ListWorkloadsRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * A custom filter for filtering by properties of a workload. At this time,
    * only filtering by labels is supported.
    * 
* * string filter = 4; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * A custom filter for filtering by properties of a workload. At this time,
    * only filtering by labels is supported.
    * 
* * string filter = 4; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/ListWorkloadsResponse.java b/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/ListWorkloadsResponse.java similarity index 73% rename from owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/ListWorkloadsResponse.java rename to proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/ListWorkloadsResponse.java index 03ab73f7..40737ded 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/ListWorkloadsResponse.java +++ b/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/ListWorkloadsResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto package com.google.cloud.assuredworkloads.v1beta1; /** + * + * *
  * Response of ListWorkloads endpoint.
  * 
* * Protobuf type {@code google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse} */ -public final class ListWorkloadsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListWorkloadsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse) ListWorkloadsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListWorkloadsResponse.newBuilder() to construct. private ListWorkloadsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListWorkloadsResponse() { workloads_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,16 +44,15 @@ private ListWorkloadsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListWorkloadsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListWorkloadsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,28 +72,33 @@ private ListWorkloadsResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - workloads_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + workloads_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + workloads_.add( + input.readMessage( + com.google.cloud.assuredworkloads.v1beta1.Workload.parser(), + extensionRegistry)); + break; } - workloads_.add( - input.readMessage(com.google.cloud.assuredworkloads.v1beta1.Workload.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,8 +106,7 @@ private ListWorkloadsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { workloads_ = java.util.Collections.unmodifiableList(workloads_); @@ -94,22 +115,27 @@ private ListWorkloadsResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_ListWorkloadsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1beta1_ListWorkloadsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_ListWorkloadsResponse_fieldAccessorTable + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1beta1_ListWorkloadsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse.class, com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse.Builder.class); + com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse.class, + com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse.Builder.class); } public static final int WORKLOADS_FIELD_NUMBER = 1; private java.util.List workloads_; /** + * + * *
    * List of Workloads under a given parent.
    * 
@@ -121,6 +147,8 @@ public java.util.List getWor return workloads_; } /** + * + * *
    * List of Workloads under a given parent.
    * 
@@ -128,11 +156,13 @@ public java.util.List getWor * repeated .google.cloud.assuredworkloads.v1beta1.Workload workloads = 1; */ @java.lang.Override - public java.util.List + public java.util.List getWorkloadsOrBuilderList() { return workloads_; } /** + * + * *
    * List of Workloads under a given parent.
    * 
@@ -144,6 +174,8 @@ public int getWorkloadsCount() { return workloads_.size(); } /** + * + * *
    * List of Workloads under a given parent.
    * 
@@ -155,6 +187,8 @@ public com.google.cloud.assuredworkloads.v1beta1.Workload getWorkloads(int index return workloads_.get(index); } /** + * + * *
    * List of Workloads under a given parent.
    * 
@@ -170,11 +204,14 @@ public com.google.cloud.assuredworkloads.v1beta1.WorkloadOrBuilder getWorkloadsO public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * The next page token. Return empty if reached the last page.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -183,29 +220,29 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * The next page token. Return empty if reached the last page.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -214,6 +251,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -225,8 +263,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 < workloads_.size(); i++) { output.writeMessage(1, workloads_.get(i)); } @@ -243,8 +280,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < workloads_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, workloads_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, workloads_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -257,17 +293,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.assuredworkloads.v1beta1.ListWorkloadsResponse)) { return super.equals(obj); } - com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse other = (com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse) obj; + com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse other = + (com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse) obj; - if (!getWorkloadsList() - .equals(other.getWorkloadsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getWorkloadsList().equals(other.getWorkloadsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -291,117 +326,127 @@ public int hashCode() { } public static com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse 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.assuredworkloads.v1beta1.ListWorkloadsResponse 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.assuredworkloads.v1beta1.ListWorkloadsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse 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.assuredworkloads.v1beta1.ListWorkloadsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse 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.assuredworkloads.v1beta1.ListWorkloadsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse 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.assuredworkloads.v1beta1.ListWorkloadsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse 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.assuredworkloads.v1beta1.ListWorkloadsResponse 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.assuredworkloads.v1beta1.ListWorkloadsResponse 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.assuredworkloads.v1beta1.ListWorkloadsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response of ListWorkloads endpoint.
    * 
* * Protobuf type {@code google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse} */ - 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.assuredworkloads.v1beta1.ListWorkloadsResponse) com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_ListWorkloadsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1beta1_ListWorkloadsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_ListWorkloadsResponse_fieldAccessorTable + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1beta1_ListWorkloadsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse.class, com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse.Builder.class); + com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse.class, + com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse.Builder.class); } // Construct using com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse.newBuilder() @@ -409,17 +454,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getWorkloadsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -435,13 +480,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_ListWorkloadsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1beta1_ListWorkloadsResponse_descriptor; } @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse getDefaultInstanceForType() { + public com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse + getDefaultInstanceForType() { return com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse.getDefaultInstance(); } @@ -456,7 +502,8 @@ public com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse build() { @java.lang.Override public com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse buildPartial() { - com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse result = new com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse(this); + com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse result = + new com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse(this); int from_bitField0_ = bitField0_; if (workloadsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -476,46 +523,50 @@ public com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse buildPart public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse) { - return mergeFrom((com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse)other); + return mergeFrom((com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse other) { - if (other == com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse other) { + if (other + == com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse.getDefaultInstance()) + return this; if (workloadsBuilder_ == null) { if (!other.workloads_.isEmpty()) { if (workloads_.isEmpty()) { @@ -534,9 +585,10 @@ public Builder mergeFrom(com.google.cloud.assuredworkloads.v1beta1.ListWorkloads workloadsBuilder_ = null; workloads_ = other.workloads_; bitField0_ = (bitField0_ & ~0x00000001); - workloadsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getWorkloadsFieldBuilder() : null; + workloadsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getWorkloadsFieldBuilder() + : null; } else { workloadsBuilder_.addAllMessages(other.workloads_); } @@ -565,7 +617,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -574,21 +628,29 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List workloads_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureWorkloadsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - workloads_ = new java.util.ArrayList(workloads_); + workloads_ = + new java.util.ArrayList(workloads_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.assuredworkloads.v1beta1.Workload, com.google.cloud.assuredworkloads.v1beta1.Workload.Builder, com.google.cloud.assuredworkloads.v1beta1.WorkloadOrBuilder> workloadsBuilder_; + com.google.cloud.assuredworkloads.v1beta1.Workload, + com.google.cloud.assuredworkloads.v1beta1.Workload.Builder, + com.google.cloud.assuredworkloads.v1beta1.WorkloadOrBuilder> + workloadsBuilder_; /** + * + * *
      * List of Workloads under a given parent.
      * 
@@ -603,6 +665,8 @@ public java.util.List getWor } } /** + * + * *
      * List of Workloads under a given parent.
      * 
@@ -617,6 +681,8 @@ public int getWorkloadsCount() { } } /** + * + * *
      * List of Workloads under a given parent.
      * 
@@ -631,6 +697,8 @@ public com.google.cloud.assuredworkloads.v1beta1.Workload getWorkloads(int index } } /** + * + * *
      * List of Workloads under a given parent.
      * 
@@ -652,6 +720,8 @@ public Builder setWorkloads( return this; } /** + * + * *
      * List of Workloads under a given parent.
      * 
@@ -670,6 +740,8 @@ public Builder setWorkloads( return this; } /** + * + * *
      * List of Workloads under a given parent.
      * 
@@ -690,6 +762,8 @@ public Builder addWorkloads(com.google.cloud.assuredworkloads.v1beta1.Workload v return this; } /** + * + * *
      * List of Workloads under a given parent.
      * 
@@ -711,6 +785,8 @@ public Builder addWorkloads( return this; } /** + * + * *
      * List of Workloads under a given parent.
      * 
@@ -729,6 +805,8 @@ public Builder addWorkloads( return this; } /** + * + * *
      * List of Workloads under a given parent.
      * 
@@ -747,6 +825,8 @@ public Builder addWorkloads( return this; } /** + * + * *
      * List of Workloads under a given parent.
      * 
@@ -757,8 +837,7 @@ public Builder addAllWorkloads( java.lang.Iterable values) { if (workloadsBuilder_ == null) { ensureWorkloadsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, workloads_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, workloads_); onChanged(); } else { workloadsBuilder_.addAllMessages(values); @@ -766,6 +845,8 @@ public Builder addAllWorkloads( return this; } /** + * + * *
      * List of Workloads under a given parent.
      * 
@@ -783,6 +864,8 @@ public Builder clearWorkloads() { return this; } /** + * + * *
      * List of Workloads under a given parent.
      * 
@@ -800,6 +883,8 @@ public Builder removeWorkloads(int index) { return this; } /** + * + * *
      * List of Workloads under a given parent.
      * 
@@ -811,6 +896,8 @@ public com.google.cloud.assuredworkloads.v1beta1.Workload.Builder getWorkloadsBu return getWorkloadsFieldBuilder().getBuilder(index); } /** + * + * *
      * List of Workloads under a given parent.
      * 
@@ -820,19 +907,22 @@ public com.google.cloud.assuredworkloads.v1beta1.Workload.Builder getWorkloadsBu public com.google.cloud.assuredworkloads.v1beta1.WorkloadOrBuilder getWorkloadsOrBuilder( int index) { if (workloadsBuilder_ == null) { - return workloads_.get(index); } else { + return workloads_.get(index); + } else { return workloadsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * List of Workloads under a given parent.
      * 
* * repeated .google.cloud.assuredworkloads.v1beta1.Workload workloads = 1; */ - public java.util.List - getWorkloadsOrBuilderList() { + public java.util.List + getWorkloadsOrBuilderList() { if (workloadsBuilder_ != null) { return workloadsBuilder_.getMessageOrBuilderList(); } else { @@ -840,6 +930,8 @@ public com.google.cloud.assuredworkloads.v1beta1.WorkloadOrBuilder getWorkloadsO } } /** + * + * *
      * List of Workloads under a given parent.
      * 
@@ -847,10 +939,12 @@ public com.google.cloud.assuredworkloads.v1beta1.WorkloadOrBuilder getWorkloadsO * repeated .google.cloud.assuredworkloads.v1beta1.Workload workloads = 1; */ public com.google.cloud.assuredworkloads.v1beta1.Workload.Builder addWorkloadsBuilder() { - return getWorkloadsFieldBuilder().addBuilder( - com.google.cloud.assuredworkloads.v1beta1.Workload.getDefaultInstance()); + return getWorkloadsFieldBuilder() + .addBuilder(com.google.cloud.assuredworkloads.v1beta1.Workload.getDefaultInstance()); } /** + * + * *
      * List of Workloads under a given parent.
      * 
@@ -859,30 +953,36 @@ public com.google.cloud.assuredworkloads.v1beta1.Workload.Builder addWorkloadsBu */ public com.google.cloud.assuredworkloads.v1beta1.Workload.Builder addWorkloadsBuilder( int index) { - return getWorkloadsFieldBuilder().addBuilder( - index, com.google.cloud.assuredworkloads.v1beta1.Workload.getDefaultInstance()); + return getWorkloadsFieldBuilder() + .addBuilder( + index, com.google.cloud.assuredworkloads.v1beta1.Workload.getDefaultInstance()); } /** + * + * *
      * List of Workloads under a given parent.
      * 
* * repeated .google.cloud.assuredworkloads.v1beta1.Workload workloads = 1; */ - public java.util.List - getWorkloadsBuilderList() { + public java.util.List + getWorkloadsBuilderList() { return getWorkloadsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.assuredworkloads.v1beta1.Workload, com.google.cloud.assuredworkloads.v1beta1.Workload.Builder, com.google.cloud.assuredworkloads.v1beta1.WorkloadOrBuilder> + com.google.cloud.assuredworkloads.v1beta1.Workload, + com.google.cloud.assuredworkloads.v1beta1.Workload.Builder, + com.google.cloud.assuredworkloads.v1beta1.WorkloadOrBuilder> getWorkloadsFieldBuilder() { if (workloadsBuilder_ == null) { - workloadsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.assuredworkloads.v1beta1.Workload, com.google.cloud.assuredworkloads.v1beta1.Workload.Builder, com.google.cloud.assuredworkloads.v1beta1.WorkloadOrBuilder>( - workloads_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + workloadsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.assuredworkloads.v1beta1.Workload, + com.google.cloud.assuredworkloads.v1beta1.Workload.Builder, + com.google.cloud.assuredworkloads.v1beta1.WorkloadOrBuilder>( + workloads_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); workloads_ = null; } return workloadsBuilder_; @@ -890,18 +990,20 @@ public com.google.cloud.assuredworkloads.v1beta1.Workload.Builder addWorkloadsBu private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * The next page token. Return empty if reached the last page.
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -910,20 +1012,21 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * The next page token. Return empty if reached the last page.
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -931,61 +1034,68 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * The next page token. Return empty if reached the last page.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * The next page token. Return empty if reached the last page.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * The next page token. Return empty if reached the last page.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -995,30 +1105,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse) - private static final com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse DEFAULT_INSTANCE; + private static final com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse(); } - public static com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse getDefaultInstance() { + public static com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListWorkloadsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListWorkloadsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListWorkloadsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListWorkloadsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1030,9 +1142,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse getDefaultInstanceForType() { + public com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/ListWorkloadsResponseOrBuilder.java b/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/ListWorkloadsResponseOrBuilder.java similarity index 69% rename from owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/ListWorkloadsResponseOrBuilder.java rename to proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/ListWorkloadsResponseOrBuilder.java index 044893ba..047a178e 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/ListWorkloadsResponseOrBuilder.java +++ b/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/ListWorkloadsResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto package com.google.cloud.assuredworkloads.v1beta1; -public interface ListWorkloadsResponseOrBuilder extends +public interface ListWorkloadsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * List of Workloads under a given parent.
    * 
* * repeated .google.cloud.assuredworkloads.v1beta1.Workload workloads = 1; */ - java.util.List - getWorkloadsList(); + java.util.List getWorkloadsList(); /** + * + * *
    * List of Workloads under a given parent.
    * 
@@ -25,6 +44,8 @@ public interface ListWorkloadsResponseOrBuilder extends */ com.google.cloud.assuredworkloads.v1beta1.Workload getWorkloads(int index); /** + * + * *
    * List of Workloads under a given parent.
    * 
@@ -33,41 +54,49 @@ public interface ListWorkloadsResponseOrBuilder extends */ int getWorkloadsCount(); /** + * + * *
    * List of Workloads under a given parent.
    * 
* * repeated .google.cloud.assuredworkloads.v1beta1.Workload workloads = 1; */ - java.util.List + java.util.List getWorkloadsOrBuilderList(); /** + * + * *
    * List of Workloads under a given parent.
    * 
* * repeated .google.cloud.assuredworkloads.v1beta1.Workload workloads = 1; */ - com.google.cloud.assuredworkloads.v1beta1.WorkloadOrBuilder getWorkloadsOrBuilder( - int index); + com.google.cloud.assuredworkloads.v1beta1.WorkloadOrBuilder getWorkloadsOrBuilder(int index); /** + * + * *
    * The next page token. Return empty if reached the last page.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * The next page token. Return empty if reached the last page.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/LocationName.java b/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/LocationName.java similarity index 100% rename from owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/LocationName.java rename to proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/LocationName.java diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/UpdateWorkloadRequest.java b/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/UpdateWorkloadRequest.java similarity index 65% rename from owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/UpdateWorkloadRequest.java rename to proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/UpdateWorkloadRequest.java index 5cf17b2a..cb251925 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/UpdateWorkloadRequest.java +++ b/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/UpdateWorkloadRequest.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto package com.google.cloud.assuredworkloads.v1beta1; /** + * + * *
  * Request for Updating a workload.
  * 
* * Protobuf type {@code google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest} */ -public final class UpdateWorkloadRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateWorkloadRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest) UpdateWorkloadRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateWorkloadRequest.newBuilder() to construct. private UpdateWorkloadRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateWorkloadRequest() { - } + + private UpdateWorkloadRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateWorkloadRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UpdateWorkloadRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,39 +68,45 @@ private UpdateWorkloadRequest( case 0: done = true; break; - case 10: { - com.google.cloud.assuredworkloads.v1beta1.Workload.Builder subBuilder = null; - if (workload_ != null) { - subBuilder = workload_.toBuilder(); - } - workload_ = input.readMessage(com.google.cloud.assuredworkloads.v1beta1.Workload.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(workload_); - workload_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.cloud.assuredworkloads.v1beta1.Workload.Builder subBuilder = null; + if (workload_ != null) { + subBuilder = workload_.toBuilder(); + } + workload_ = + input.readMessage( + com.google.cloud.assuredworkloads.v1beta1.Workload.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(workload_); + workload_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); + break; } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -92,29 +114,33 @@ private UpdateWorkloadRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_UpdateWorkloadRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1beta1_UpdateWorkloadRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_UpdateWorkloadRequest_fieldAccessorTable + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1beta1_UpdateWorkloadRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest.class, com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest.Builder.class); + com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest.class, + com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest.Builder.class); } public static final int WORKLOAD_FIELD_NUMBER = 1; private com.google.cloud.assuredworkloads.v1beta1.Workload workload_; /** + * + * *
    * Required. The workload to update.
    * The workload’s `name` field is used to identify the workload to be updated.
@@ -122,7 +148,10 @@ private UpdateWorkloadRequest(
    * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
    * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the workload field is set. */ @java.lang.Override @@ -130,6 +159,8 @@ public boolean hasWorkload() { return workload_ != null; } /** + * + * *
    * Required. The workload to update.
    * The workload’s `name` field is used to identify the workload to be updated.
@@ -137,14 +168,21 @@ public boolean hasWorkload() {
    * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
    * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The workload. */ @java.lang.Override public com.google.cloud.assuredworkloads.v1beta1.Workload getWorkload() { - return workload_ == null ? com.google.cloud.assuredworkloads.v1beta1.Workload.getDefaultInstance() : workload_; + return workload_ == null + ? com.google.cloud.assuredworkloads.v1beta1.Workload.getDefaultInstance() + : workload_; } /** + * + * *
    * Required. The workload to update.
    * The workload’s `name` field is used to identify the workload to be updated.
@@ -152,7 +190,9 @@ public com.google.cloud.assuredworkloads.v1beta1.Workload getWorkload() {
    * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
    * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.assuredworkloads.v1beta1.WorkloadOrBuilder getWorkloadOrBuilder() { @@ -162,11 +202,15 @@ public com.google.cloud.assuredworkloads.v1beta1.WorkloadOrBuilder getWorkloadOr public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * Required. The list of fields to be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -174,11 +218,15 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * Required. The list of fields to be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ @java.lang.Override @@ -186,11 +234,14 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * Required. The list of fields to be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -198,6 +249,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -209,8 +261,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 (workload_ != null) { output.writeMessage(1, getWorkload()); } @@ -227,12 +278,10 @@ public int getSerializedSize() { size = 0; if (workload_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getWorkload()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getWorkload()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -242,22 +291,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.assuredworkloads.v1beta1.UpdateWorkloadRequest)) { return super.equals(obj); } - com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest other = (com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest) obj; + com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest other = + (com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest) obj; if (hasWorkload() != other.hasWorkload()) return false; if (hasWorkload()) { - if (!getWorkload() - .equals(other.getWorkload())) return false; + if (!getWorkload().equals(other.getWorkload())) return false; } if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) return false; + if (!getUpdateMask().equals(other.getUpdateMask())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -284,117 +332,127 @@ public int hashCode() { } public static com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest 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.assuredworkloads.v1beta1.UpdateWorkloadRequest 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.assuredworkloads.v1beta1.UpdateWorkloadRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest 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.assuredworkloads.v1beta1.UpdateWorkloadRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest 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.assuredworkloads.v1beta1.UpdateWorkloadRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest 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.assuredworkloads.v1beta1.UpdateWorkloadRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest 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.assuredworkloads.v1beta1.UpdateWorkloadRequest 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.assuredworkloads.v1beta1.UpdateWorkloadRequest 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.assuredworkloads.v1beta1.UpdateWorkloadRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for Updating a workload.
    * 
* * Protobuf type {@code google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest} */ - 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.assuredworkloads.v1beta1.UpdateWorkloadRequest) com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_UpdateWorkloadRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1beta1_UpdateWorkloadRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_UpdateWorkloadRequest_fieldAccessorTable + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1beta1_UpdateWorkloadRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest.class, com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest.Builder.class); + com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest.class, + com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest.Builder.class); } // Construct using com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest.newBuilder() @@ -402,16 +460,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -431,13 +488,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_UpdateWorkloadRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1beta1_UpdateWorkloadRequest_descriptor; } @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest getDefaultInstanceForType() { + public com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest + getDefaultInstanceForType() { return com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest.getDefaultInstance(); } @@ -452,7 +510,8 @@ public com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest build() { @java.lang.Override public com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest buildPartial() { - com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest result = new com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest(this); + com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest result = + new com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest(this); if (workloadBuilder_ == null) { result.workload_ = workload_; } else { @@ -471,46 +530,50 @@ public com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest buildPart public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest) { - return mergeFrom((com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest)other); + return mergeFrom((com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest other) { - if (other == com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest other) { + if (other + == com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest.getDefaultInstance()) + return this; if (other.hasWorkload()) { mergeWorkload(other.getWorkload()); } @@ -536,7 +599,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -548,8 +613,13 @@ public Builder mergeFrom( private com.google.cloud.assuredworkloads.v1beta1.Workload workload_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.assuredworkloads.v1beta1.Workload, com.google.cloud.assuredworkloads.v1beta1.Workload.Builder, com.google.cloud.assuredworkloads.v1beta1.WorkloadOrBuilder> workloadBuilder_; + com.google.cloud.assuredworkloads.v1beta1.Workload, + com.google.cloud.assuredworkloads.v1beta1.Workload.Builder, + com.google.cloud.assuredworkloads.v1beta1.WorkloadOrBuilder> + workloadBuilder_; /** + * + * *
      * Required. The workload to update.
      * The workload’s `name` field is used to identify the workload to be updated.
@@ -557,13 +627,18 @@ public Builder mergeFrom(
      * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the workload field is set. */ public boolean hasWorkload() { return workloadBuilder_ != null || workload_ != null; } /** + * + * *
      * Required. The workload to update.
      * The workload’s `name` field is used to identify the workload to be updated.
@@ -571,17 +646,24 @@ public boolean hasWorkload() {
      * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The workload. */ public com.google.cloud.assuredworkloads.v1beta1.Workload getWorkload() { if (workloadBuilder_ == null) { - return workload_ == null ? com.google.cloud.assuredworkloads.v1beta1.Workload.getDefaultInstance() : workload_; + return workload_ == null + ? com.google.cloud.assuredworkloads.v1beta1.Workload.getDefaultInstance() + : workload_; } else { return workloadBuilder_.getMessage(); } } /** + * + * *
      * Required. The workload to update.
      * The workload’s `name` field is used to identify the workload to be updated.
@@ -589,7 +671,9 @@ public com.google.cloud.assuredworkloads.v1beta1.Workload getWorkload() {
      * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setWorkload(com.google.cloud.assuredworkloads.v1beta1.Workload value) { if (workloadBuilder_ == null) { @@ -605,6 +689,8 @@ public Builder setWorkload(com.google.cloud.assuredworkloads.v1beta1.Workload va return this; } /** + * + * *
      * Required. The workload to update.
      * The workload’s `name` field is used to identify the workload to be updated.
@@ -612,7 +698,9 @@ public Builder setWorkload(com.google.cloud.assuredworkloads.v1beta1.Workload va
      * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setWorkload( com.google.cloud.assuredworkloads.v1beta1.Workload.Builder builderForValue) { @@ -626,6 +714,8 @@ public Builder setWorkload( return this; } /** + * + * *
      * Required. The workload to update.
      * The workload’s `name` field is used to identify the workload to be updated.
@@ -633,13 +723,17 @@ public Builder setWorkload(
      * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeWorkload(com.google.cloud.assuredworkloads.v1beta1.Workload value) { if (workloadBuilder_ == null) { if (workload_ != null) { workload_ = - com.google.cloud.assuredworkloads.v1beta1.Workload.newBuilder(workload_).mergeFrom(value).buildPartial(); + com.google.cloud.assuredworkloads.v1beta1.Workload.newBuilder(workload_) + .mergeFrom(value) + .buildPartial(); } else { workload_ = value; } @@ -651,6 +745,8 @@ public Builder mergeWorkload(com.google.cloud.assuredworkloads.v1beta1.Workload return this; } /** + * + * *
      * Required. The workload to update.
      * The workload’s `name` field is used to identify the workload to be updated.
@@ -658,7 +754,9 @@ public Builder mergeWorkload(com.google.cloud.assuredworkloads.v1beta1.Workload
      * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearWorkload() { if (workloadBuilder_ == null) { @@ -672,6 +770,8 @@ public Builder clearWorkload() { return this; } /** + * + * *
      * Required. The workload to update.
      * The workload’s `name` field is used to identify the workload to be updated.
@@ -679,14 +779,18 @@ public Builder clearWorkload() {
      * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.assuredworkloads.v1beta1.Workload.Builder getWorkloadBuilder() { - + onChanged(); return getWorkloadFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The workload to update.
      * The workload’s `name` field is used to identify the workload to be updated.
@@ -694,17 +798,22 @@ public com.google.cloud.assuredworkloads.v1beta1.Workload.Builder getWorkloadBui
      * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.assuredworkloads.v1beta1.WorkloadOrBuilder getWorkloadOrBuilder() { if (workloadBuilder_ != null) { return workloadBuilder_.getMessageOrBuilder(); } else { - return workload_ == null ? - com.google.cloud.assuredworkloads.v1beta1.Workload.getDefaultInstance() : workload_; + return workload_ == null + ? com.google.cloud.assuredworkloads.v1beta1.Workload.getDefaultInstance() + : workload_; } } /** + * + * *
      * Required. The workload to update.
      * The workload’s `name` field is used to identify the workload to be updated.
@@ -712,17 +821,22 @@ public com.google.cloud.assuredworkloads.v1beta1.WorkloadOrBuilder getWorkloadOr
      * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.assuredworkloads.v1beta1.Workload, com.google.cloud.assuredworkloads.v1beta1.Workload.Builder, com.google.cloud.assuredworkloads.v1beta1.WorkloadOrBuilder> + com.google.cloud.assuredworkloads.v1beta1.Workload, + com.google.cloud.assuredworkloads.v1beta1.Workload.Builder, + com.google.cloud.assuredworkloads.v1beta1.WorkloadOrBuilder> getWorkloadFieldBuilder() { if (workloadBuilder_ == null) { - workloadBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.assuredworkloads.v1beta1.Workload, com.google.cloud.assuredworkloads.v1beta1.Workload.Builder, com.google.cloud.assuredworkloads.v1beta1.WorkloadOrBuilder>( - getWorkload(), - getParentForChildren(), - isClean()); + workloadBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.assuredworkloads.v1beta1.Workload, + com.google.cloud.assuredworkloads.v1beta1.Workload.Builder, + com.google.cloud.assuredworkloads.v1beta1.WorkloadOrBuilder>( + getWorkload(), getParentForChildren(), isClean()); workload_ = null; } return workloadBuilder_; @@ -730,39 +844,55 @@ public com.google.cloud.assuredworkloads.v1beta1.WorkloadOrBuilder getWorkloadOr private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; /** + * + * *
      * Required. The list of fields to be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** + * + * *
      * Required. The list of fields to be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** + * + * *
      * Required. The list of fields to be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -778,14 +908,16 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. The list of fields to be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); @@ -796,17 +928,20 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * Required. The list of fields to be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -818,11 +953,14 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. The list of fields to be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearUpdateMask() { if (updateMaskBuilder_ == null) { @@ -836,55 +974,68 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * Required. The list of fields to be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The list of fields to be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } } /** + * + * *
      * Required. The list of fields to be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); updateMask_ = null; } return updateMaskBuilder_; } + @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); } @@ -894,30 +1045,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest) } // @@protoc_insertion_point(class_scope:google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest) - private static final com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest DEFAULT_INSTANCE; + private static final com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest(); } - public static com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest getDefaultInstance() { + public static com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateWorkloadRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateWorkloadRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateWorkloadRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateWorkloadRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -929,9 +1082,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest getDefaultInstanceForType() { + public com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/UpdateWorkloadRequestOrBuilder.java b/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/UpdateWorkloadRequestOrBuilder.java similarity index 61% rename from owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/UpdateWorkloadRequestOrBuilder.java rename to proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/UpdateWorkloadRequestOrBuilder.java index a21f9393..6b6c0921 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/UpdateWorkloadRequestOrBuilder.java +++ b/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/UpdateWorkloadRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto package com.google.cloud.assuredworkloads.v1beta1; -public interface UpdateWorkloadRequestOrBuilder extends +public interface UpdateWorkloadRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The workload to update.
    * The workload’s `name` field is used to identify the workload to be updated.
@@ -15,11 +33,16 @@ public interface UpdateWorkloadRequestOrBuilder extends
    * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
    * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the workload field is set. */ boolean hasWorkload(); /** + * + * *
    * Required. The workload to update.
    * The workload’s `name` field is used to identify the workload to be updated.
@@ -27,11 +50,16 @@ public interface UpdateWorkloadRequestOrBuilder extends
    * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
    * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The workload. */ com.google.cloud.assuredworkloads.v1beta1.Workload getWorkload(); /** + * + * *
    * Required. The workload to update.
    * The workload’s `name` field is used to identify the workload to be updated.
@@ -39,34 +67,47 @@ public interface UpdateWorkloadRequestOrBuilder extends
    * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
    * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.assuredworkloads.v1beta1.WorkloadOrBuilder getWorkloadOrBuilder(); /** + * + * *
    * Required. The list of fields to be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * Required. The list of fields to be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * Required. The list of fields to be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/Workload.java b/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/Workload.java similarity index 62% rename from owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/Workload.java rename to proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/Workload.java index 4402f4c1..d588da1e 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/Workload.java +++ b/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/Workload.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto package com.google.cloud.assuredworkloads.v1beta1; /** + * + * *
  * An Workload object for managing highly regulated workloads of cloud
  * customers.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.assuredworkloads.v1beta1.Workload}
  */
-public final class Workload extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Workload extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.assuredworkloads.v1beta1.Workload)
     WorkloadOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Workload.newBuilder() to construct.
   private Workload(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private Workload() {
     name_ = "";
     displayName_ = "";
@@ -34,16 +52,15 @@ private Workload() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Workload();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private Workload(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -63,186 +80,254 @@ private Workload(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            name_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            displayName_ = s;
-            break;
-          }
-          case 26: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              resources_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+              name_ = s;
+              break;
             }
-            resources_.add(
-                input.readMessage(com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.parser(), extensionRegistry));
-            break;
-          }
-          case 32: {
-            int rawValue = input.readEnum();
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            complianceRegime_ = rawValue;
-            break;
-          }
-          case 42: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (createTime_ != null) {
-              subBuilder = createTime_.toBuilder();
+              displayName_ = s;
+              break;
             }
-            createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(createTime_);
-              createTime_ = subBuilder.buildPartial();
+          case 26:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                resources_ =
+                    new java.util.ArrayList<
+                        com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo>();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              resources_.add(
+                  input.readMessage(
+                      com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.parser(),
+                      extensionRegistry));
+              break;
             }
+          case 32:
+            {
+              int rawValue = input.readEnum();
 
-            break;
-          }
-          case 50: {
-            java.lang.String s = input.readStringRequireUtf8();
+              complianceRegime_ = rawValue;
+              break;
+            }
+          case 42:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (createTime_ != null) {
+                subBuilder = createTime_.toBuilder();
+              }
+              createTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(createTime_);
+                createTime_ = subBuilder.buildPartial();
+              }
 
-            billingAccount_ = s;
-            break;
-          }
-          case 58: {
-            com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings.Builder subBuilder = null;
-            if (complianceRegimeSettingsCase_ == 7) {
-              subBuilder = ((com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings) complianceRegimeSettings_).toBuilder();
+              break;
             }
-            complianceRegimeSettings_ =
-                input.readMessage(com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom((com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings) complianceRegimeSettings_);
-              complianceRegimeSettings_ = subBuilder.buildPartial();
+          case 50:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+
+              billingAccount_ = s;
+              break;
             }
-            complianceRegimeSettingsCase_ = 7;
-            break;
-          }
-          case 66: {
-            com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings.Builder subBuilder = null;
-            if (complianceRegimeSettingsCase_ == 8) {
-              subBuilder = ((com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings) complianceRegimeSettings_).toBuilder();
+          case 58:
+            {
+              com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings.Builder subBuilder =
+                  null;
+              if (complianceRegimeSettingsCase_ == 7) {
+                subBuilder =
+                    ((com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings)
+                            complianceRegimeSettings_)
+                        .toBuilder();
+              }
+              complianceRegimeSettings_ =
+                  input.readMessage(
+                      com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(
+                    (com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings)
+                        complianceRegimeSettings_);
+                complianceRegimeSettings_ = subBuilder.buildPartial();
+              }
+              complianceRegimeSettingsCase_ = 7;
+              break;
             }
-            complianceRegimeSettings_ =
-                input.readMessage(com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom((com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings) complianceRegimeSettings_);
-              complianceRegimeSettings_ = subBuilder.buildPartial();
+          case 66:
+            {
+              com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings.Builder subBuilder =
+                  null;
+              if (complianceRegimeSettingsCase_ == 8) {
+                subBuilder =
+                    ((com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings)
+                            complianceRegimeSettings_)
+                        .toBuilder();
+              }
+              complianceRegimeSettings_ =
+                  input.readMessage(
+                      com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(
+                    (com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings)
+                        complianceRegimeSettings_);
+                complianceRegimeSettings_ = subBuilder.buildPartial();
+              }
+              complianceRegimeSettingsCase_ = 8;
+              break;
             }
-            complianceRegimeSettingsCase_ = 8;
-            break;
-          }
-          case 74: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 74:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            etag_ = s;
-            break;
-          }
-          case 82: {
-            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-              labels_ = com.google.protobuf.MapField.newMapField(
-                  LabelsDefaultEntryHolder.defaultEntry);
-              mutable_bitField0_ |= 0x00000002;
-            }
-            com.google.protobuf.MapEntry
-            labels__ = input.readMessage(
-                LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-            labels_.getMutableMap().put(
-                labels__.getKey(), labels__.getValue());
-            break;
-          }
-          case 90: {
-            com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings.Builder subBuilder = null;
-            if (complianceRegimeSettingsCase_ == 11) {
-              subBuilder = ((com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings) complianceRegimeSettings_).toBuilder();
+              etag_ = s;
+              break;
             }
-            complianceRegimeSettings_ =
-                input.readMessage(com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom((com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings) complianceRegimeSettings_);
-              complianceRegimeSettings_ = subBuilder.buildPartial();
+          case 82:
+            {
+              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+                labels_ =
+                    com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
+                mutable_bitField0_ |= 0x00000002;
+              }
+              com.google.protobuf.MapEntry labels__ =
+                  input.readMessage(
+                      LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              labels_.getMutableMap().put(labels__.getKey(), labels__.getValue());
+              break;
             }
-            complianceRegimeSettingsCase_ = 11;
-            break;
-          }
-          case 98: {
-            com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings.Builder subBuilder = null;
-            if (complianceRegimeSettingsCase_ == 12) {
-              subBuilder = ((com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings) complianceRegimeSettings_).toBuilder();
+          case 90:
+            {
+              com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings.Builder
+                  subBuilder = null;
+              if (complianceRegimeSettingsCase_ == 11) {
+                subBuilder =
+                    ((com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings)
+                            complianceRegimeSettings_)
+                        .toBuilder();
+              }
+              complianceRegimeSettings_ =
+                  input.readMessage(
+                      com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings
+                          .parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(
+                    (com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings)
+                        complianceRegimeSettings_);
+                complianceRegimeSettings_ = subBuilder.buildPartial();
+              }
+              complianceRegimeSettingsCase_ = 11;
+              break;
             }
-            complianceRegimeSettings_ =
-                input.readMessage(com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom((com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings) complianceRegimeSettings_);
-              complianceRegimeSettings_ = subBuilder.buildPartial();
+          case 98:
+            {
+              com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings.Builder
+                  subBuilder = null;
+              if (complianceRegimeSettingsCase_ == 12) {
+                subBuilder =
+                    ((com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings)
+                            complianceRegimeSettings_)
+                        .toBuilder();
+              }
+              complianceRegimeSettings_ =
+                  input.readMessage(
+                      com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings
+                          .parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(
+                    (com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings)
+                        complianceRegimeSettings_);
+                complianceRegimeSettings_ = subBuilder.buildPartial();
+              }
+              complianceRegimeSettingsCase_ = 12;
+              break;
             }
-            complianceRegimeSettingsCase_ = 12;
-            break;
-          }
-          case 106: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 106:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            provisionedResourcesParent_ = s;
-            break;
-          }
-          case 114: {
-            com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder subBuilder = null;
-            if (kmsSettings_ != null) {
-              subBuilder = kmsSettings_.toBuilder();
-            }
-            kmsSettings_ = input.readMessage(com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(kmsSettings_);
-              kmsSettings_ = subBuilder.buildPartial();
+              provisionedResourcesParent_ = s;
+              break;
             }
+          case 114:
+            {
+              com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder subBuilder =
+                  null;
+              if (kmsSettings_ != null) {
+                subBuilder = kmsSettings_.toBuilder();
+              }
+              kmsSettings_ =
+                  input.readMessage(
+                      com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(kmsSettings_);
+                kmsSettings_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 122: {
-            if (!((mutable_bitField0_ & 0x00000004) != 0)) {
-              resourceSettings_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000004;
+              break;
             }
-            resourceSettings_.add(
-                input.readMessage(com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.parser(), extensionRegistry));
-            break;
-          }
-          case 136: {
-            int rawValue = input.readEnum();
-
-            kajEnrollmentState_ = rawValue;
-            break;
-          }
-          case 144: {
+          case 122:
+            {
+              if (!((mutable_bitField0_ & 0x00000004) != 0)) {
+                resourceSettings_ =
+                    new java.util.ArrayList<
+                        com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings>();
+                mutable_bitField0_ |= 0x00000004;
+              }
+              resourceSettings_.add(
+                  input.readMessage(
+                      com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.parser(),
+                      extensionRegistry));
+              break;
+            }
+          case 136:
+            {
+              int rawValue = input.readEnum();
 
-            enableSovereignControls_ = input.readBool();
-            break;
-          }
-          case 162: {
-            com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.Builder subBuilder = null;
-            if (saaEnrollmentResponse_ != null) {
-              subBuilder = saaEnrollmentResponse_.toBuilder();
+              kajEnrollmentState_ = rawValue;
+              break;
             }
-            saaEnrollmentResponse_ = input.readMessage(com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(saaEnrollmentResponse_);
-              saaEnrollmentResponse_ = subBuilder.buildPartial();
+          case 144:
+            {
+              enableSovereignControls_ = input.readBool();
+              break;
             }
+          case 162:
+            {
+              com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.Builder
+                  subBuilder = null;
+              if (saaEnrollmentResponse_ != null) {
+                subBuilder = saaEnrollmentResponse_.toBuilder();
+              }
+              saaEnrollmentResponse_ =
+                  input.readMessage(
+                      com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse
+                          .parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(saaEnrollmentResponse_);
+                saaEnrollmentResponse_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -250,8 +335,7 @@ private Workload(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         resources_ = java.util.Collections.unmodifiableList(resources_);
@@ -263,41 +347,46 @@ private Workload(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_Workload_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto
+        .internal_static_google_cloud_assuredworkloads_v1beta1_Workload_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 10:
         return internalGetLabels();
       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.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_Workload_fieldAccessorTable
+    return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto
+        .internal_static_google_cloud_assuredworkloads_v1beta1_Workload_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.assuredworkloads.v1beta1.Workload.class, com.google.cloud.assuredworkloads.v1beta1.Workload.Builder.class);
+            com.google.cloud.assuredworkloads.v1beta1.Workload.class,
+            com.google.cloud.assuredworkloads.v1beta1.Workload.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * Supported Compliance Regimes.
    * 
* * Protobuf enum {@code google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime} */ - public enum ComplianceRegime - implements com.google.protobuf.ProtocolMessageEnum { + public enum ComplianceRegime implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Unknown compliance regime.
      * 
@@ -306,6 +395,8 @@ public enum ComplianceRegime */ COMPLIANCE_REGIME_UNSPECIFIED(0), /** + * + * *
      * Information protection as per DoD IL4 requirements.
      * 
@@ -314,6 +405,8 @@ public enum ComplianceRegime */ IL4(1), /** + * + * *
      * Criminal Justice Information Services (CJIS) Security policies.
      * 
@@ -322,6 +415,8 @@ public enum ComplianceRegime */ CJIS(2), /** + * + * *
      * FedRAMP High data protection controls
      * 
@@ -330,6 +425,8 @@ public enum ComplianceRegime */ FEDRAMP_HIGH(3), /** + * + * *
      * FedRAMP Moderate data protection controls
      * 
@@ -338,6 +435,8 @@ public enum ComplianceRegime */ FEDRAMP_MODERATE(4), /** + * + * *
      * Assured Workloads For US Regions data protection controls
      * 
@@ -346,6 +445,8 @@ public enum ComplianceRegime */ US_REGIONAL_ACCESS(5), /** + * + * *
      * Health Insurance Portability and Accountability Act controls
      * 
@@ -354,6 +455,8 @@ public enum ComplianceRegime */ HIPAA(6), /** + * + * *
      * Health Information Trust Alliance controls
      * 
@@ -362,6 +465,8 @@ public enum ComplianceRegime */ HITRUST(7), /** + * + * *
      * Assured Workloads For EU Regions and Support controls
      * 
@@ -370,6 +475,8 @@ public enum ComplianceRegime */ EU_REGIONS_AND_SUPPORT(8), /** + * + * *
      * Assured Workloads For Canada Regions and Support controls
      * 
@@ -381,6 +488,8 @@ public enum ComplianceRegime ; /** + * + * *
      * Unknown compliance regime.
      * 
@@ -389,6 +498,8 @@ public enum ComplianceRegime */ public static final int COMPLIANCE_REGIME_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Information protection as per DoD IL4 requirements.
      * 
@@ -397,6 +508,8 @@ public enum ComplianceRegime */ public static final int IL4_VALUE = 1; /** + * + * *
      * Criminal Justice Information Services (CJIS) Security policies.
      * 
@@ -405,6 +518,8 @@ public enum ComplianceRegime */ public static final int CJIS_VALUE = 2; /** + * + * *
      * FedRAMP High data protection controls
      * 
@@ -413,6 +528,8 @@ public enum ComplianceRegime */ public static final int FEDRAMP_HIGH_VALUE = 3; /** + * + * *
      * FedRAMP Moderate data protection controls
      * 
@@ -421,6 +538,8 @@ public enum ComplianceRegime */ public static final int FEDRAMP_MODERATE_VALUE = 4; /** + * + * *
      * Assured Workloads For US Regions data protection controls
      * 
@@ -429,6 +548,8 @@ public enum ComplianceRegime */ public static final int US_REGIONAL_ACCESS_VALUE = 5; /** + * + * *
      * Health Insurance Portability and Accountability Act controls
      * 
@@ -437,6 +558,8 @@ public enum ComplianceRegime */ public static final int HIPAA_VALUE = 6; /** + * + * *
      * Health Information Trust Alliance controls
      * 
@@ -445,6 +568,8 @@ public enum ComplianceRegime */ public static final int HITRUST_VALUE = 7; /** + * + * *
      * Assured Workloads For EU Regions and Support controls
      * 
@@ -453,6 +578,8 @@ public enum ComplianceRegime */ public static final int EU_REGIONS_AND_SUPPORT_VALUE = 8; /** + * + * *
      * Assured Workloads For Canada Regions and Support controls
      * 
@@ -461,7 +588,6 @@ public enum ComplianceRegime */ public static final int CA_REGIONS_AND_SUPPORT_VALUE = 9; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -486,47 +612,59 @@ public static ComplianceRegime valueOf(int value) { */ public static ComplianceRegime forNumber(int value) { switch (value) { - case 0: return COMPLIANCE_REGIME_UNSPECIFIED; - case 1: return IL4; - case 2: return CJIS; - case 3: return FEDRAMP_HIGH; - case 4: return FEDRAMP_MODERATE; - case 5: return US_REGIONAL_ACCESS; - case 6: return HIPAA; - case 7: return HITRUST; - case 8: return EU_REGIONS_AND_SUPPORT; - case 9: return CA_REGIONS_AND_SUPPORT; - default: return null; + case 0: + return COMPLIANCE_REGIME_UNSPECIFIED; + case 1: + return IL4; + case 2: + return CJIS; + case 3: + return FEDRAMP_HIGH; + case 4: + return FEDRAMP_MODERATE; + case 5: + return US_REGIONAL_ACCESS; + case 6: + return HIPAA; + case 7: + return HITRUST; + case 8: + return EU_REGIONS_AND_SUPPORT; + case 9: + return CA_REGIONS_AND_SUPPORT; + 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< - ComplianceRegime> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ComplianceRegime findValueByNumber(int number) { - return ComplianceRegime.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 ComplianceRegime findValueByNumber(int number) { + return ComplianceRegime.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.assuredworkloads.v1beta1.Workload.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.assuredworkloads.v1beta1.Workload.getDescriptor() + .getEnumTypes() + .get(0); } private static final ComplianceRegime[] VALUES = values(); @@ -534,8 +672,7 @@ public ComplianceRegime findValueByNumber(int number) { public static ComplianceRegime 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; @@ -553,15 +690,18 @@ private ComplianceRegime(int value) { } /** + * + * *
    * Key Access Justifications(KAJ) Enrollment State.
    * 
* * Protobuf enum {@code google.cloud.assuredworkloads.v1beta1.Workload.KajEnrollmentState} */ - public enum KajEnrollmentState - implements com.google.protobuf.ProtocolMessageEnum { + public enum KajEnrollmentState implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Default State for KAJ Enrollment.
      * 
@@ -570,6 +710,8 @@ public enum KajEnrollmentState */ KAJ_ENROLLMENT_STATE_UNSPECIFIED(0), /** + * + * *
      * Pending State for KAJ Enrollment.
      * 
@@ -578,6 +720,8 @@ public enum KajEnrollmentState */ KAJ_ENROLLMENT_STATE_PENDING(1), /** + * + * *
      * Complete State for KAJ Enrollment.
      * 
@@ -589,6 +733,8 @@ public enum KajEnrollmentState ; /** + * + * *
      * Default State for KAJ Enrollment.
      * 
@@ -597,6 +743,8 @@ public enum KajEnrollmentState */ public static final int KAJ_ENROLLMENT_STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Pending State for KAJ Enrollment.
      * 
@@ -605,6 +753,8 @@ public enum KajEnrollmentState */ public static final int KAJ_ENROLLMENT_STATE_PENDING_VALUE = 1; /** + * + * *
      * Complete State for KAJ Enrollment.
      * 
@@ -613,7 +763,6 @@ public enum KajEnrollmentState */ public static final int KAJ_ENROLLMENT_STATE_COMPLETE_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -638,10 +787,14 @@ public static KajEnrollmentState valueOf(int value) { */ public static KajEnrollmentState forNumber(int value) { switch (value) { - case 0: return KAJ_ENROLLMENT_STATE_UNSPECIFIED; - case 1: return KAJ_ENROLLMENT_STATE_PENDING; - case 2: return KAJ_ENROLLMENT_STATE_COMPLETE; - default: return null; + case 0: + return KAJ_ENROLLMENT_STATE_UNSPECIFIED; + case 1: + return KAJ_ENROLLMENT_STATE_PENDING; + case 2: + return KAJ_ENROLLMENT_STATE_COMPLETE; + default: + return null; } } @@ -649,29 +802,31 @@ public static KajEnrollmentState forNumber(int value) { internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - KajEnrollmentState> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public KajEnrollmentState findValueByNumber(int number) { - return KajEnrollmentState.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 KajEnrollmentState findValueByNumber(int number) { + return KajEnrollmentState.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.assuredworkloads.v1beta1.Workload.getDescriptor().getEnumTypes().get(1); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.assuredworkloads.v1beta1.Workload.getDescriptor() + .getEnumTypes() + .get(1); } private static final KajEnrollmentState[] VALUES = values(); @@ -679,8 +834,7 @@ public KajEnrollmentState findValueByNumber(int number) { public static KajEnrollmentState 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; @@ -697,72 +851,88 @@ private KajEnrollmentState(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.assuredworkloads.v1beta1.Workload.KajEnrollmentState) } - public interface ResourceInfoOrBuilder extends + public interface ResourceInfoOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Resource identifier.
      * For a project this represents project_number.
      * 
* * int64 resource_id = 1; + * * @return The resourceId. */ long getResourceId(); /** + * + * *
      * Indicates the type of resource.
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType resource_type = 2; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType resource_type = 2; + * + * * @return The enum numeric value on the wire for resourceType. */ int getResourceTypeValue(); /** + * + * *
      * Indicates the type of resource.
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType resource_type = 2; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType resource_type = 2; + * + * * @return The resourceType. */ com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType getResourceType(); } /** + * + * *
    * Represent the resources that are children of this Workload.
    * 
* * Protobuf type {@code google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo} */ - public static final class ResourceInfo extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class ResourceInfo extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo) ResourceInfoOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ResourceInfo.newBuilder() to construct. private ResourceInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ResourceInfo() { resourceType_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ResourceInfo(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ResourceInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -781,24 +951,25 @@ private ResourceInfo( case 0: done = true; break; - case 8: { - - resourceId_ = input.readInt64(); - break; - } - case 16: { - int rawValue = input.readEnum(); + case 8: + { + resourceId_ = input.readInt64(); + break; + } + case 16: + { + int rawValue = input.readEnum(); - resourceType_ = rawValue; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + resourceType_ = rawValue; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -806,36 +977,42 @@ private ResourceInfo( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_Workload_ResourceInfo_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1beta1_Workload_ResourceInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_Workload_ResourceInfo_fieldAccessorTable + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1beta1_Workload_ResourceInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.class, com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.Builder.class); + com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.class, + com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.Builder.class); } /** + * + * *
      * The type of resource.
      * 
* - * Protobuf enum {@code google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType} + * Protobuf enum {@code + * google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType} */ - public enum ResourceType - implements com.google.protobuf.ProtocolMessageEnum { + public enum ResourceType implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
        * Unknown resource type.
        * 
@@ -844,6 +1021,8 @@ public enum ResourceType */ RESOURCE_TYPE_UNSPECIFIED(0), /** + * + * *
        * Deprecated. Existing workloads will continue to support this, but new
        * CreateWorkloadRequests should not specify this as an input value.
@@ -854,6 +1033,8 @@ public enum ResourceType
       @java.lang.Deprecated
       CONSUMER_PROJECT(1),
       /**
+       *
+       *
        * 
        * Consumer Folder.
        * 
@@ -862,6 +1043,8 @@ public enum ResourceType */ CONSUMER_FOLDER(4), /** + * + * *
        * Consumer project containing encryption keys.
        * 
@@ -870,6 +1053,8 @@ public enum ResourceType */ ENCRYPTION_KEYS_PROJECT(2), /** + * + * *
        * Keyring resource that hosts encryption keys.
        * 
@@ -881,6 +1066,8 @@ public enum ResourceType ; /** + * + * *
        * Unknown resource type.
        * 
@@ -889,6 +1076,8 @@ public enum ResourceType */ public static final int RESOURCE_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
        * Deprecated. Existing workloads will continue to support this, but new
        * CreateWorkloadRequests should not specify this as an input value.
@@ -898,6 +1087,8 @@ public enum ResourceType
        */
       @java.lang.Deprecated public static final int CONSUMER_PROJECT_VALUE = 1;
       /**
+       *
+       *
        * 
        * Consumer Folder.
        * 
@@ -906,6 +1097,8 @@ public enum ResourceType */ public static final int CONSUMER_FOLDER_VALUE = 4; /** + * + * *
        * Consumer project containing encryption keys.
        * 
@@ -914,6 +1107,8 @@ public enum ResourceType */ public static final int ENCRYPTION_KEYS_PROJECT_VALUE = 2; /** + * + * *
        * Keyring resource that hosts encryption keys.
        * 
@@ -922,7 +1117,6 @@ public enum ResourceType */ public static final int KEYRING_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -947,51 +1141,55 @@ public static ResourceType valueOf(int value) { */ public static ResourceType forNumber(int value) { switch (value) { - case 0: return RESOURCE_TYPE_UNSPECIFIED; - case 1: return CONSUMER_PROJECT; - case 4: return CONSUMER_FOLDER; - case 2: return ENCRYPTION_KEYS_PROJECT; - case 3: return KEYRING; - default: return null; + case 0: + return RESOURCE_TYPE_UNSPECIFIED; + case 1: + return CONSUMER_PROJECT; + case 4: + return CONSUMER_FOLDER; + case 2: + return ENCRYPTION_KEYS_PROJECT; + case 3: + return KEYRING; + 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< - ResourceType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ResourceType findValueByNumber(int number) { - return ResourceType.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 ResourceType findValueByNumber(int number) { + return ResourceType.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.assuredworkloads.v1beta1.Workload.ResourceInfo.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.getDescriptor() + .getEnumTypes() + .get(0); } private static final ResourceType[] VALUES = values(); - public static ResourceType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static ResourceType 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; @@ -1011,12 +1209,15 @@ private ResourceType(int value) { public static final int RESOURCE_ID_FIELD_NUMBER = 1; private long resourceId_; /** + * + * *
      * Resource identifier.
      * For a project this represents project_number.
      * 
* * int64 resource_id = 1; + * * @return The resourceId. */ @java.lang.Override @@ -1027,31 +1228,50 @@ public long getResourceId() { public static final int RESOURCE_TYPE_FIELD_NUMBER = 2; private int resourceType_; /** + * + * *
      * Indicates the type of resource.
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType resource_type = 2; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType resource_type = 2; + * + * * @return The enum numeric value on the wire for resourceType. */ - @java.lang.Override public int getResourceTypeValue() { + @java.lang.Override + public int getResourceTypeValue() { return resourceType_; } /** + * + * *
      * Indicates the type of resource.
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType resource_type = 2; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType resource_type = 2; + * + * * @return The resourceType. */ - @java.lang.Override public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType getResourceType() { + @java.lang.Override + public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType + getResourceType() { @SuppressWarnings("deprecation") - com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType result = com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType.valueOf(resourceType_); - return result == null ? com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType.UNRECOGNIZED : result; + com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType result = + com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType.valueOf( + resourceType_); + return result == null + ? com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType + .UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1063,12 +1283,14 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (resourceId_ != 0L) { output.writeInt64(1, resourceId_); } - if (resourceType_ != com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType.RESOURCE_TYPE_UNSPECIFIED.getNumber()) { + if (resourceType_ + != com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType + .RESOURCE_TYPE_UNSPECIFIED + .getNumber()) { output.writeEnum(2, resourceType_); } unknownFields.writeTo(output); @@ -1081,12 +1303,13 @@ public int getSerializedSize() { size = 0; if (resourceId_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, resourceId_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, resourceId_); } - if (resourceType_ != com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType.RESOURCE_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, resourceType_); + if (resourceType_ + != com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType + .RESOURCE_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, resourceType_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1096,15 +1319,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.assuredworkloads.v1beta1.Workload.ResourceInfo)) { return super.equals(obj); } - com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo other = (com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo) obj; + com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo other = + (com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo) obj; - if (getResourceId() - != other.getResourceId()) return false; + if (getResourceId() != other.getResourceId()) return false; if (resourceType_ != other.resourceType_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -1118,8 +1341,7 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + RESOURCE_ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getResourceId()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getResourceId()); hash = (37 * hash) + RESOURCE_TYPE_FIELD_NUMBER; hash = (53 * hash) + resourceType_; hash = (29 * hash) + unknownFields.hashCode(); @@ -1128,87 +1350,95 @@ public int hashCode() { } public static com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo 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.assuredworkloads.v1beta1.Workload.ResourceInfo 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.assuredworkloads.v1beta1.Workload.ResourceInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo 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.assuredworkloads.v1beta1.Workload.ResourceInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo 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.assuredworkloads.v1beta1.Workload.ResourceInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo 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.assuredworkloads.v1beta1.Workload.ResourceInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo parseDelimitedFrom( - java.io.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.assuredworkloads.v1beta1.Workload.ResourceInfo + parseDelimitedFrom( + java.io.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.assuredworkloads.v1beta1.Workload.ResourceInfo 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.assuredworkloads.v1beta1.Workload.ResourceInfo 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.assuredworkloads.v1beta1.Workload.ResourceInfo prototype) { + + public static Builder newBuilder( + com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo 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 @@ -1218,44 +1448,49 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Represent the resources that are children of this Workload.
      * 
* * Protobuf type {@code google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo} */ - 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.assuredworkloads.v1beta1.Workload.ResourceInfo) com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_Workload_ResourceInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1beta1_Workload_ResourceInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_Workload_ResourceInfo_fieldAccessorTable + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1beta1_Workload_ResourceInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.class, com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.Builder.class); + com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.class, + com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.Builder.class); } - // Construct using com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.newBuilder() + // Construct using + // com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -1267,13 +1502,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_Workload_ResourceInfo_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1beta1_Workload_ResourceInfo_descriptor; } @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo getDefaultInstanceForType() { + public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo + getDefaultInstanceForType() { return com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.getDefaultInstance(); } @@ -1288,7 +1524,8 @@ public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo build() { @java.lang.Override public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo buildPartial() { - com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo result = new com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo(this); + com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo result = + new com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo(this); result.resourceId_ = resourceId_; result.resourceType_ = resourceType_; onBuilt(); @@ -1299,46 +1536,52 @@ public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo buildPart public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + 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.assuredworkloads.v1beta1.Workload.ResourceInfo) { - return mergeFrom((com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo)other); + return mergeFrom((com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo other) { - if (other == com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo other) { + if (other + == com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.getDefaultInstance()) + return this; if (other.getResourceId() != 0L) { setResourceId(other.getResourceId()); } @@ -1364,7 +1607,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1374,14 +1619,17 @@ public Builder mergeFrom( return this; } - private long resourceId_ ; + private long resourceId_; /** + * + * *
        * Resource identifier.
        * For a project this represents project_number.
        * 
* * int64 resource_id = 1; + * * @return The resourceId. */ @java.lang.Override @@ -1389,32 +1637,38 @@ public long getResourceId() { return resourceId_; } /** + * + * *
        * Resource identifier.
        * For a project this represents project_number.
        * 
* * int64 resource_id = 1; + * * @param value The resourceId to set. * @return This builder for chaining. */ public Builder setResourceId(long value) { - + resourceId_ = value; onChanged(); return this; } /** + * + * *
        * Resource identifier.
        * For a project this represents project_number.
        * 
* * int64 resource_id = 1; + * * @return This builder for chaining. */ public Builder clearResourceId() { - + resourceId_ = 0L; onChanged(); return this; @@ -1422,77 +1676,111 @@ public Builder clearResourceId() { private int resourceType_ = 0; /** + * + * *
        * Indicates the type of resource.
        * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType resource_type = 2; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType resource_type = 2; + * + * * @return The enum numeric value on the wire for resourceType. */ - @java.lang.Override public int getResourceTypeValue() { + @java.lang.Override + public int getResourceTypeValue() { return resourceType_; } /** + * + * *
        * Indicates the type of resource.
        * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType resource_type = 2; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType resource_type = 2; + * + * * @param value The enum numeric value on the wire for resourceType to set. * @return This builder for chaining. */ public Builder setResourceTypeValue(int value) { - + resourceType_ = value; onChanged(); return this; } /** + * + * *
        * Indicates the type of resource.
        * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType resource_type = 2; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType resource_type = 2; + * + * * @return The resourceType. */ @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType getResourceType() { + public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType + getResourceType() { @SuppressWarnings("deprecation") - com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType result = com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType.valueOf(resourceType_); - return result == null ? com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType.UNRECOGNIZED : result; + com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType result = + com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType.valueOf( + resourceType_); + return result == null + ? com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType + .UNRECOGNIZED + : result; } /** + * + * *
        * Indicates the type of resource.
        * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType resource_type = 2; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType resource_type = 2; + * + * * @param value The resourceType to set. * @return This builder for chaining. */ - public Builder setResourceType(com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType value) { + public Builder setResourceType( + com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType value) { if (value == null) { throw new NullPointerException(); } - + resourceType_ = value.getNumber(); onChanged(); return this; } /** + * + * *
        * Indicates the type of resource.
        * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType resource_type = 2; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType resource_type = 2; + * + * * @return This builder for chaining. */ public Builder clearResourceType() { - + resourceType_ = 0; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1505,30 +1793,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo) } // @@protoc_insertion_point(class_scope:google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo) - private static final com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo DEFAULT_INSTANCE; + private static final com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo(); } - public static com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo getDefaultInstance() { + public static com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ResourceInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ResourceInfo(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResourceInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ResourceInfo(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1540,113 +1830,143 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo getDefaultInstanceForType() { + public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface KMSSettingsOrBuilder extends + public interface KMSSettingsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Required. Input only. Immutable. The time at which the Key Management
      * Service will automatically create a new version of the crypto key and
      * mark it as the primary.
      * 
* - * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return Whether the nextRotationTime field is set. */ boolean hasNextRotationTime(); /** + * + * *
      * Required. Input only. Immutable. The time at which the Key Management
      * Service will automatically create a new version of the crypto key and
      * mark it as the primary.
      * 
* - * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The nextRotationTime. */ com.google.protobuf.Timestamp getNextRotationTime(); /** + * + * *
      * Required. Input only. Immutable. The time at which the Key Management
      * Service will automatically create a new version of the crypto key and
      * mark it as the primary.
      * 
* - * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ com.google.protobuf.TimestampOrBuilder getNextRotationTimeOrBuilder(); /** + * + * *
      * Required. Input only. Immutable. [next_rotation_time] will be advanced by
      * this period when the Key Management Service automatically rotates a key.
      * Must be at least 24 hours and at most 876,000 hours.
      * 
* - * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return Whether the rotationPeriod field is set. */ boolean hasRotationPeriod(); /** + * + * *
      * Required. Input only. Immutable. [next_rotation_time] will be advanced by
      * this period when the Key Management Service automatically rotates a key.
      * Must be at least 24 hours and at most 876,000 hours.
      * 
* - * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The rotationPeriod. */ com.google.protobuf.Duration getRotationPeriod(); /** + * + * *
      * Required. Input only. Immutable. [next_rotation_time] will be advanced by
      * this period when the Key Management Service automatically rotates a key.
      * Must be at least 24 hours and at most 876,000 hours.
      * 
* - * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ com.google.protobuf.DurationOrBuilder getRotationPeriodOrBuilder(); } /** + * + * *
    * Settings specific to the Key Management Service.
    * 
* * Protobuf type {@code google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings} */ - public static final class KMSSettings extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class KMSSettings extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings) KMSSettingsOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use KMSSettings.newBuilder() to construct. private KMSSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private KMSSettings() { - } + + private KMSSettings() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new KMSSettings(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private KMSSettings( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1665,39 +1985,43 @@ private KMSSettings( case 0: done = true; break; - case 10: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (nextRotationTime_ != null) { - subBuilder = nextRotationTime_.toBuilder(); - } - nextRotationTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(nextRotationTime_); - nextRotationTime_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - com.google.protobuf.Duration.Builder subBuilder = null; - if (rotationPeriod_ != null) { - subBuilder = rotationPeriod_.toBuilder(); - } - rotationPeriod_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(rotationPeriod_); - rotationPeriod_ = subBuilder.buildPartial(); + case 10: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (nextRotationTime_ != null) { + subBuilder = nextRotationTime_.toBuilder(); + } + nextRotationTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(nextRotationTime_); + nextRotationTime_ = subBuilder.buildPartial(); + } + + break; } + case 18: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (rotationPeriod_ != null) { + subBuilder = rotationPeriod_.toBuilder(); + } + rotationPeriod_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(rotationPeriod_); + rotationPeriod_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1705,36 +2029,43 @@ private KMSSettings( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_Workload_KMSSettings_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1beta1_Workload_KMSSettings_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_Workload_KMSSettings_fieldAccessorTable + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1beta1_Workload_KMSSettings_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.class, com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder.class); + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.class, + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder.class); } public static final int NEXT_ROTATION_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp nextRotationTime_; /** + * + * *
      * Required. Input only. Immutable. The time at which the Key Management
      * Service will automatically create a new version of the crypto key and
      * mark it as the primary.
      * 
* - * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return Whether the nextRotationTime field is set. */ @java.lang.Override @@ -1742,27 +2073,38 @@ public boolean hasNextRotationTime() { return nextRotationTime_ != null; } /** + * + * *
      * Required. Input only. Immutable. The time at which the Key Management
      * Service will automatically create a new version of the crypto key and
      * mark it as the primary.
      * 
* - * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The nextRotationTime. */ @java.lang.Override public com.google.protobuf.Timestamp getNextRotationTime() { - return nextRotationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : nextRotationTime_; + return nextRotationTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : nextRotationTime_; } /** + * + * *
      * Required. Input only. Immutable. The time at which the Key Management
      * Service will automatically create a new version of the crypto key and
      * mark it as the primary.
      * 
* - * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getNextRotationTimeOrBuilder() { @@ -1772,13 +2114,18 @@ public com.google.protobuf.TimestampOrBuilder getNextRotationTimeOrBuilder() { public static final int ROTATION_PERIOD_FIELD_NUMBER = 2; private com.google.protobuf.Duration rotationPeriod_; /** + * + * *
      * Required. Input only. Immutable. [next_rotation_time] will be advanced by
      * this period when the Key Management Service automatically rotates a key.
      * Must be at least 24 hours and at most 876,000 hours.
      * 
* - * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return Whether the rotationPeriod field is set. */ @java.lang.Override @@ -1786,27 +2133,38 @@ public boolean hasRotationPeriod() { return rotationPeriod_ != null; } /** + * + * *
      * Required. Input only. Immutable. [next_rotation_time] will be advanced by
      * this period when the Key Management Service automatically rotates a key.
      * Must be at least 24 hours and at most 876,000 hours.
      * 
* - * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The rotationPeriod. */ @java.lang.Override public com.google.protobuf.Duration getRotationPeriod() { - return rotationPeriod_ == null ? com.google.protobuf.Duration.getDefaultInstance() : rotationPeriod_; + return rotationPeriod_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : rotationPeriod_; } /** + * + * *
      * Required. Input only. Immutable. [next_rotation_time] will be advanced by
      * this period when the Key Management Service automatically rotates a key.
      * Must be at least 24 hours and at most 876,000 hours.
      * 
* - * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getRotationPeriodOrBuilder() { @@ -1814,6 +2172,7 @@ public com.google.protobuf.DurationOrBuilder getRotationPeriodOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1825,8 +2184,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 (nextRotationTime_ != null) { output.writeMessage(1, getNextRotationTime()); } @@ -1843,12 +2201,10 @@ public int getSerializedSize() { size = 0; if (nextRotationTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getNextRotationTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getNextRotationTime()); } if (rotationPeriod_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getRotationPeriod()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRotationPeriod()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1858,22 +2214,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.assuredworkloads.v1beta1.Workload.KMSSettings)) { return super.equals(obj); } - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings other = (com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings) obj; + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings other = + (com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings) obj; if (hasNextRotationTime() != other.hasNextRotationTime()) return false; if (hasNextRotationTime()) { - if (!getNextRotationTime() - .equals(other.getNextRotationTime())) return false; + if (!getNextRotationTime().equals(other.getNextRotationTime())) return false; } if (hasRotationPeriod() != other.hasRotationPeriod()) return false; if (hasRotationPeriod()) { - if (!getRotationPeriod() - .equals(other.getRotationPeriod())) return false; + if (!getRotationPeriod().equals(other.getRotationPeriod())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -1900,87 +2255,94 @@ public int hashCode() { } public static com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings 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.assuredworkloads.v1beta1.Workload.KMSSettings 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.assuredworkloads.v1beta1.Workload.KMSSettings parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings 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.assuredworkloads.v1beta1.Workload.KMSSettings parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings 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.assuredworkloads.v1beta1.Workload.KMSSettings parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings 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.assuredworkloads.v1beta1.Workload.KMSSettings parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings 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.assuredworkloads.v1beta1.Workload.KMSSettings 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.assuredworkloads.v1beta1.Workload.KMSSettings 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.assuredworkloads.v1beta1.Workload.KMSSettings prototype) { + + public static Builder newBuilder( + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings 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 @@ -1990,27 +2352,32 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Settings specific to the Key Management Service.
      * 
* * Protobuf type {@code google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings} */ - 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.assuredworkloads.v1beta1.Workload.KMSSettings) com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_Workload_KMSSettings_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1beta1_Workload_KMSSettings_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_Workload_KMSSettings_fieldAccessorTable + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1beta1_Workload_KMSSettings_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.class, com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder.class); + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.class, + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder.class); } // Construct using com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.newBuilder() @@ -2018,16 +2385,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -2047,13 +2413,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_Workload_KMSSettings_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1beta1_Workload_KMSSettings_descriptor; } @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings getDefaultInstanceForType() { + public com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings + getDefaultInstanceForType() { return com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.getDefaultInstance(); } @@ -2068,7 +2435,8 @@ public com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings build() { @java.lang.Override public com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings buildPartial() { - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings result = new com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings(this); + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings result = + new com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings(this); if (nextRotationTimeBuilder_ == null) { result.nextRotationTime_ = nextRotationTime_; } else { @@ -2087,46 +2455,52 @@ public com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings buildParti public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + 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.assuredworkloads.v1beta1.Workload.KMSSettings) { - return mergeFrom((com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings)other); + return mergeFrom((com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings other) { - if (other == com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings other) { + if (other + == com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.getDefaultInstance()) + return this; if (other.hasNextRotationTime()) { mergeNextRotationTime(other.getNextRotationTime()); } @@ -2152,7 +2526,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -2164,45 +2540,64 @@ public Builder mergeFrom( private com.google.protobuf.Timestamp nextRotationTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> nextRotationTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + nextRotationTimeBuilder_; /** + * + * *
        * Required. Input only. Immutable. The time at which the Key Management
        * Service will automatically create a new version of the crypto key and
        * mark it as the primary.
        * 
* - * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return Whether the nextRotationTime field is set. */ public boolean hasNextRotationTime() { return nextRotationTimeBuilder_ != null || nextRotationTime_ != null; } /** + * + * *
        * Required. Input only. Immutable. The time at which the Key Management
        * Service will automatically create a new version of the crypto key and
        * mark it as the primary.
        * 
* - * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The nextRotationTime. */ public com.google.protobuf.Timestamp getNextRotationTime() { if (nextRotationTimeBuilder_ == null) { - return nextRotationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : nextRotationTime_; + return nextRotationTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : nextRotationTime_; } else { return nextRotationTimeBuilder_.getMessage(); } } /** + * + * *
        * Required. Input only. Immutable. The time at which the Key Management
        * Service will automatically create a new version of the crypto key and
        * mark it as the primary.
        * 
* - * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ public Builder setNextRotationTime(com.google.protobuf.Timestamp value) { if (nextRotationTimeBuilder_ == null) { @@ -2218,16 +2613,19 @@ public Builder setNextRotationTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
        * Required. Input only. Immutable. The time at which the Key Management
        * Service will automatically create a new version of the crypto key and
        * mark it as the primary.
        * 
* - * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ - public Builder setNextRotationTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setNextRotationTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (nextRotationTimeBuilder_ == null) { nextRotationTime_ = builderForValue.build(); onChanged(); @@ -2238,19 +2636,25 @@ public Builder setNextRotationTime( return this; } /** + * + * *
        * Required. Input only. Immutable. The time at which the Key Management
        * Service will automatically create a new version of the crypto key and
        * mark it as the primary.
        * 
* - * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ public Builder mergeNextRotationTime(com.google.protobuf.Timestamp value) { if (nextRotationTimeBuilder_ == null) { if (nextRotationTime_ != null) { nextRotationTime_ = - com.google.protobuf.Timestamp.newBuilder(nextRotationTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(nextRotationTime_) + .mergeFrom(value) + .buildPartial(); } else { nextRotationTime_ = value; } @@ -2262,13 +2666,17 @@ public Builder mergeNextRotationTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
        * Required. Input only. Immutable. The time at which the Key Management
        * Service will automatically create a new version of the crypto key and
        * mark it as the primary.
        * 
* - * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ public Builder clearNextRotationTime() { if (nextRotationTimeBuilder_ == null) { @@ -2282,54 +2690,70 @@ public Builder clearNextRotationTime() { return this; } /** + * + * *
        * Required. Input only. Immutable. The time at which the Key Management
        * Service will automatically create a new version of the crypto key and
        * mark it as the primary.
        * 
* - * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ public com.google.protobuf.Timestamp.Builder getNextRotationTimeBuilder() { - + onChanged(); return getNextRotationTimeFieldBuilder().getBuilder(); } /** + * + * *
        * Required. Input only. Immutable. The time at which the Key Management
        * Service will automatically create a new version of the crypto key and
        * mark it as the primary.
        * 
* - * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ public com.google.protobuf.TimestampOrBuilder getNextRotationTimeOrBuilder() { if (nextRotationTimeBuilder_ != null) { return nextRotationTimeBuilder_.getMessageOrBuilder(); } else { - return nextRotationTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : nextRotationTime_; + return nextRotationTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : nextRotationTime_; } } /** + * + * *
        * Required. Input only. Immutable. The time at which the Key Management
        * Service will automatically create a new version of the crypto key and
        * mark it as the primary.
        * 
* - * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ 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> getNextRotationTimeFieldBuilder() { if (nextRotationTimeBuilder_ == null) { - nextRotationTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getNextRotationTime(), - getParentForChildren(), - isClean()); + nextRotationTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getNextRotationTime(), getParentForChildren(), isClean()); nextRotationTime_ = null; } return nextRotationTimeBuilder_; @@ -2337,45 +2761,64 @@ public com.google.protobuf.TimestampOrBuilder getNextRotationTimeOrBuilder() { private com.google.protobuf.Duration rotationPeriod_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> rotationPeriodBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + rotationPeriodBuilder_; /** + * + * *
        * Required. Input only. Immutable. [next_rotation_time] will be advanced by
        * this period when the Key Management Service automatically rotates a key.
        * Must be at least 24 hours and at most 876,000 hours.
        * 
* - * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return Whether the rotationPeriod field is set. */ public boolean hasRotationPeriod() { return rotationPeriodBuilder_ != null || rotationPeriod_ != null; } /** + * + * *
        * Required. Input only. Immutable. [next_rotation_time] will be advanced by
        * this period when the Key Management Service automatically rotates a key.
        * Must be at least 24 hours and at most 876,000 hours.
        * 
* - * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The rotationPeriod. */ public com.google.protobuf.Duration getRotationPeriod() { if (rotationPeriodBuilder_ == null) { - return rotationPeriod_ == null ? com.google.protobuf.Duration.getDefaultInstance() : rotationPeriod_; + return rotationPeriod_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : rotationPeriod_; } else { return rotationPeriodBuilder_.getMessage(); } } /** + * + * *
        * Required. Input only. Immutable. [next_rotation_time] will be advanced by
        * this period when the Key Management Service automatically rotates a key.
        * Must be at least 24 hours and at most 876,000 hours.
        * 
* - * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ public Builder setRotationPeriod(com.google.protobuf.Duration value) { if (rotationPeriodBuilder_ == null) { @@ -2391,16 +2834,19 @@ public Builder setRotationPeriod(com.google.protobuf.Duration value) { return this; } /** + * + * *
        * Required. Input only. Immutable. [next_rotation_time] will be advanced by
        * this period when the Key Management Service automatically rotates a key.
        * Must be at least 24 hours and at most 876,000 hours.
        * 
* - * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ - public Builder setRotationPeriod( - com.google.protobuf.Duration.Builder builderForValue) { + public Builder setRotationPeriod(com.google.protobuf.Duration.Builder builderForValue) { if (rotationPeriodBuilder_ == null) { rotationPeriod_ = builderForValue.build(); onChanged(); @@ -2411,19 +2857,25 @@ public Builder setRotationPeriod( return this; } /** + * + * *
        * Required. Input only. Immutable. [next_rotation_time] will be advanced by
        * this period when the Key Management Service automatically rotates a key.
        * Must be at least 24 hours and at most 876,000 hours.
        * 
* - * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ public Builder mergeRotationPeriod(com.google.protobuf.Duration value) { if (rotationPeriodBuilder_ == null) { if (rotationPeriod_ != null) { rotationPeriod_ = - com.google.protobuf.Duration.newBuilder(rotationPeriod_).mergeFrom(value).buildPartial(); + com.google.protobuf.Duration.newBuilder(rotationPeriod_) + .mergeFrom(value) + .buildPartial(); } else { rotationPeriod_ = value; } @@ -2435,13 +2887,17 @@ public Builder mergeRotationPeriod(com.google.protobuf.Duration value) { return this; } /** + * + * *
        * Required. Input only. Immutable. [next_rotation_time] will be advanced by
        * this period when the Key Management Service automatically rotates a key.
        * Must be at least 24 hours and at most 876,000 hours.
        * 
* - * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ public Builder clearRotationPeriod() { if (rotationPeriodBuilder_ == null) { @@ -2455,58 +2911,75 @@ public Builder clearRotationPeriod() { return this; } /** + * + * *
        * Required. Input only. Immutable. [next_rotation_time] will be advanced by
        * this period when the Key Management Service automatically rotates a key.
        * Must be at least 24 hours and at most 876,000 hours.
        * 
* - * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ public com.google.protobuf.Duration.Builder getRotationPeriodBuilder() { - + onChanged(); return getRotationPeriodFieldBuilder().getBuilder(); } /** + * + * *
        * Required. Input only. Immutable. [next_rotation_time] will be advanced by
        * this period when the Key Management Service automatically rotates a key.
        * Must be at least 24 hours and at most 876,000 hours.
        * 
* - * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ public com.google.protobuf.DurationOrBuilder getRotationPeriodOrBuilder() { if (rotationPeriodBuilder_ != null) { return rotationPeriodBuilder_.getMessageOrBuilder(); } else { - return rotationPeriod_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : rotationPeriod_; + return rotationPeriod_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : rotationPeriod_; } } /** + * + * *
        * Required. Input only. Immutable. [next_rotation_time] will be advanced by
        * this period when the Key Management Service automatically rotates a key.
        * Must be at least 24 hours and at most 876,000 hours.
        * 
* - * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> getRotationPeriodFieldBuilder() { if (rotationPeriodBuilder_ == null) { - rotationPeriodBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getRotationPeriod(), - getParentForChildren(), - isClean()); + rotationPeriodBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getRotationPeriod(), getParentForChildren(), isClean()); rotationPeriod_ = null; } return rotationPeriodBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2519,30 +2992,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings) } // @@protoc_insertion_point(class_scope:google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings) - private static final com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings DEFAULT_INSTANCE; + private static final com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings(); } - public static com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings getDefaultInstance() { + public static com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public KMSSettings parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new KMSSettings(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public KMSSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new KMSSettings(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2554,77 +3029,96 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings getDefaultInstanceForType() { + public com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - @java.lang.Deprecated public interface IL4SettingsOrBuilder extends + @java.lang.Deprecated + public interface IL4SettingsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Required. Input only. Immutable. Settings used to create a CMEK crypto
      * key.
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return Whether the kmsSettings field is set. */ boolean hasKmsSettings(); /** + * + * *
      * Required. Input only. Immutable. Settings used to create a CMEK crypto
      * key.
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The kmsSettings. */ com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings getKmsSettings(); /** + * + * *
      * Required. Input only. Immutable. Settings used to create a CMEK crypto
      * key.
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder getKmsSettingsOrBuilder(); + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder + getKmsSettingsOrBuilder(); } /** + * + * *
    * Settings specific to resources needed for IL4.
    * 
* * Protobuf type {@code google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings} */ - @java.lang.Deprecated public static final class IL4Settings extends - com.google.protobuf.GeneratedMessageV3 implements + @java.lang.Deprecated + public static final class IL4Settings extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings) IL4SettingsOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use IL4Settings.newBuilder() to construct. private IL4Settings(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private IL4Settings() { - } + + private IL4Settings() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new IL4Settings(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private IL4Settings( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -2643,26 +3137,31 @@ private IL4Settings( case 0: done = true; break; - case 10: { - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder subBuilder = null; - if (kmsSettings_ != null) { - subBuilder = kmsSettings_.toBuilder(); - } - kmsSettings_ = input.readMessage(com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(kmsSettings_); - kmsSettings_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder subBuilder = + null; + if (kmsSettings_ != null) { + subBuilder = kmsSettings_.toBuilder(); + } + kmsSettings_ = + input.readMessage( + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(kmsSettings_); + kmsSettings_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2670,35 +3169,42 @@ private IL4Settings( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_Workload_IL4Settings_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1beta1_Workload_IL4Settings_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_Workload_IL4Settings_fieldAccessorTable + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1beta1_Workload_IL4Settings_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings.class, com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings.Builder.class); + com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings.class, + com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings.Builder.class); } public static final int KMS_SETTINGS_FIELD_NUMBER = 1; private com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kmsSettings_; /** + * + * *
      * Required. Input only. Immutable. Settings used to create a CMEK crypto
      * key.
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return Whether the kmsSettings field is set. */ @java.lang.Override @@ -2706,32 +3212,45 @@ public boolean hasKmsSettings() { return kmsSettings_ != null; } /** + * + * *
      * Required. Input only. Immutable. Settings used to create a CMEK crypto
      * key.
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The kmsSettings. */ @java.lang.Override public com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings getKmsSettings() { - return kmsSettings_ == null ? com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.getDefaultInstance() : kmsSettings_; + return kmsSettings_ == null + ? com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.getDefaultInstance() + : kmsSettings_; } /** + * + * *
      * Required. Input only. Immutable. Settings used to create a CMEK crypto
      * key.
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder getKmsSettingsOrBuilder() { + public com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder + getKmsSettingsOrBuilder() { return getKmsSettings(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2743,8 +3262,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 (kmsSettings_ != null) { output.writeMessage(1, getKmsSettings()); } @@ -2758,8 +3276,7 @@ public int getSerializedSize() { size = 0; if (kmsSettings_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getKmsSettings()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getKmsSettings()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2769,17 +3286,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.assuredworkloads.v1beta1.Workload.IL4Settings)) { return super.equals(obj); } - com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings other = (com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings) obj; + com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings other = + (com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings) obj; if (hasKmsSettings() != other.hasKmsSettings()) return false; if (hasKmsSettings()) { - if (!getKmsSettings() - .equals(other.getKmsSettings())) return false; + if (!getKmsSettings().equals(other.getKmsSettings())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -2802,87 +3319,94 @@ public int hashCode() { } public static com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings 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.assuredworkloads.v1beta1.Workload.IL4Settings 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.assuredworkloads.v1beta1.Workload.IL4Settings parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings 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.assuredworkloads.v1beta1.Workload.IL4Settings parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings 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.assuredworkloads.v1beta1.Workload.IL4Settings parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings 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.assuredworkloads.v1beta1.Workload.IL4Settings parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings 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.assuredworkloads.v1beta1.Workload.IL4Settings 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.assuredworkloads.v1beta1.Workload.IL4Settings 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.assuredworkloads.v1beta1.Workload.IL4Settings prototype) { + + public static Builder newBuilder( + com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings 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 @@ -2892,27 +3416,32 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Settings specific to resources needed for IL4.
      * 
* * Protobuf type {@code google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings} */ - 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.assuredworkloads.v1beta1.Workload.IL4Settings) com.google.cloud.assuredworkloads.v1beta1.Workload.IL4SettingsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_Workload_IL4Settings_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1beta1_Workload_IL4Settings_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_Workload_IL4Settings_fieldAccessorTable + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1beta1_Workload_IL4Settings_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings.class, com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings.Builder.class); + com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings.class, + com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings.Builder.class); } // Construct using com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings.newBuilder() @@ -2920,16 +3449,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -2943,13 +3471,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_Workload_IL4Settings_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1beta1_Workload_IL4Settings_descriptor; } @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings getDefaultInstanceForType() { + public com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings + getDefaultInstanceForType() { return com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings.getDefaultInstance(); } @@ -2964,7 +3493,8 @@ public com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings build() { @java.lang.Override public com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings buildPartial() { - com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings result = new com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings(this); + com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings result = + new com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings(this); if (kmsSettingsBuilder_ == null) { result.kmsSettings_ = kmsSettings_; } else { @@ -2978,46 +3508,52 @@ public com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings buildParti public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + 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.assuredworkloads.v1beta1.Workload.IL4Settings) { - return mergeFrom((com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings)other); + return mergeFrom((com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings other) { - if (other == com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings other) { + if (other + == com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings.getDefaultInstance()) + return this; if (other.hasKmsSettings()) { mergeKmsSettings(other.getKmsSettings()); } @@ -3040,7 +3576,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -3052,44 +3590,64 @@ public Builder mergeFrom( private com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kmsSettings_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings, com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder, com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder> kmsSettingsBuilder_; + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings, + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder, + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder> + kmsSettingsBuilder_; /** + * + * *
        * Required. Input only. Immutable. Settings used to create a CMEK crypto
        * key.
        * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return Whether the kmsSettings field is set. */ public boolean hasKmsSettings() { return kmsSettingsBuilder_ != null || kmsSettings_ != null; } /** + * + * *
        * Required. Input only. Immutable. Settings used to create a CMEK crypto
        * key.
        * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The kmsSettings. */ public com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings getKmsSettings() { if (kmsSettingsBuilder_ == null) { - return kmsSettings_ == null ? com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.getDefaultInstance() : kmsSettings_; + return kmsSettings_ == null + ? com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.getDefaultInstance() + : kmsSettings_; } else { return kmsSettingsBuilder_.getMessage(); } } /** + * + * *
        * Required. Input only. Immutable. Settings used to create a CMEK crypto
        * key.
        * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ - public Builder setKmsSettings(com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings value) { + public Builder setKmsSettings( + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings value) { if (kmsSettingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3103,12 +3661,16 @@ public Builder setKmsSettings(com.google.cloud.assuredworkloads.v1beta1.Workload return this; } /** + * + * *
        * Required. Input only. Immutable. Settings used to create a CMEK crypto
        * key.
        * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ public Builder setKmsSettings( com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder builderForValue) { @@ -3122,18 +3684,26 @@ public Builder setKmsSettings( return this; } /** + * + * *
        * Required. Input only. Immutable. Settings used to create a CMEK crypto
        * key.
        * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ - public Builder mergeKmsSettings(com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings value) { + public Builder mergeKmsSettings( + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings value) { if (kmsSettingsBuilder_ == null) { if (kmsSettings_ != null) { kmsSettings_ = - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.newBuilder(kmsSettings_).mergeFrom(value).buildPartial(); + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.newBuilder( + kmsSettings_) + .mergeFrom(value) + .buildPartial(); } else { kmsSettings_ = value; } @@ -3145,12 +3715,16 @@ public Builder mergeKmsSettings(com.google.cloud.assuredworkloads.v1beta1.Worklo return this; } /** + * + * *
        * Required. Input only. Immutable. Settings used to create a CMEK crypto
        * key.
        * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ public Builder clearKmsSettings() { if (kmsSettingsBuilder_ == null) { @@ -3164,55 +3738,74 @@ public Builder clearKmsSettings() { return this; } /** + * + * *
        * Required. Input only. Immutable. Settings used to create a CMEK crypto
        * key.
        * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ - public com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder getKmsSettingsBuilder() { - + public com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder + getKmsSettingsBuilder() { + onChanged(); return getKmsSettingsFieldBuilder().getBuilder(); } /** + * + * *
        * Required. Input only. Immutable. Settings used to create a CMEK crypto
        * key.
        * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ - public com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder getKmsSettingsOrBuilder() { + public com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder + getKmsSettingsOrBuilder() { if (kmsSettingsBuilder_ != null) { return kmsSettingsBuilder_.getMessageOrBuilder(); } else { - return kmsSettings_ == null ? - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.getDefaultInstance() : kmsSettings_; + return kmsSettings_ == null + ? com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.getDefaultInstance() + : kmsSettings_; } } /** + * + * *
        * Required. Input only. Immutable. Settings used to create a CMEK crypto
        * key.
        * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings, com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder, com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder> + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings, + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder, + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder> getKmsSettingsFieldBuilder() { if (kmsSettingsBuilder_ == null) { - kmsSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings, com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder, com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder>( - getKmsSettings(), - getParentForChildren(), - isClean()); + kmsSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings, + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder, + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder>( + getKmsSettings(), getParentForChildren(), isClean()); kmsSettings_ = null; } return kmsSettingsBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3225,30 +3818,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings) } // @@protoc_insertion_point(class_scope:google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings) - private static final com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings DEFAULT_INSTANCE; + private static final com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings(); } - public static com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings getDefaultInstance() { + public static com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IL4Settings parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new IL4Settings(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IL4Settings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new IL4Settings(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3260,77 +3855,96 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings getDefaultInstanceForType() { + public com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - @java.lang.Deprecated public interface CJISSettingsOrBuilder extends + @java.lang.Deprecated + public interface CJISSettingsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Required. Input only. Immutable. Settings used to create a CMEK crypto
      * key.
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return Whether the kmsSettings field is set. */ boolean hasKmsSettings(); /** + * + * *
      * Required. Input only. Immutable. Settings used to create a CMEK crypto
      * key.
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The kmsSettings. */ com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings getKmsSettings(); /** + * + * *
      * Required. Input only. Immutable. Settings used to create a CMEK crypto
      * key.
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder getKmsSettingsOrBuilder(); + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder + getKmsSettingsOrBuilder(); } /** + * + * *
    * Settings specific to resources needed for CJIS.
    * 
* * Protobuf type {@code google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings} */ - @java.lang.Deprecated public static final class CJISSettings extends - com.google.protobuf.GeneratedMessageV3 implements + @java.lang.Deprecated + public static final class CJISSettings extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings) CJISSettingsOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CJISSettings.newBuilder() to construct. private CJISSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CJISSettings() { - } + + private CJISSettings() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CJISSettings(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CJISSettings( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -3349,26 +3963,31 @@ private CJISSettings( case 0: done = true; break; - case 10: { - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder subBuilder = null; - if (kmsSettings_ != null) { - subBuilder = kmsSettings_.toBuilder(); - } - kmsSettings_ = input.readMessage(com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(kmsSettings_); - kmsSettings_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder subBuilder = + null; + if (kmsSettings_ != null) { + subBuilder = kmsSettings_.toBuilder(); + } + kmsSettings_ = + input.readMessage( + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(kmsSettings_); + kmsSettings_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -3376,35 +3995,42 @@ private CJISSettings( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_Workload_CJISSettings_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1beta1_Workload_CJISSettings_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_Workload_CJISSettings_fieldAccessorTable + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1beta1_Workload_CJISSettings_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings.class, com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings.Builder.class); + com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings.class, + com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings.Builder.class); } public static final int KMS_SETTINGS_FIELD_NUMBER = 1; private com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kmsSettings_; /** + * + * *
      * Required. Input only. Immutable. Settings used to create a CMEK crypto
      * key.
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return Whether the kmsSettings field is set. */ @java.lang.Override @@ -3412,32 +4038,45 @@ public boolean hasKmsSettings() { return kmsSettings_ != null; } /** + * + * *
      * Required. Input only. Immutable. Settings used to create a CMEK crypto
      * key.
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The kmsSettings. */ @java.lang.Override public com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings getKmsSettings() { - return kmsSettings_ == null ? com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.getDefaultInstance() : kmsSettings_; + return kmsSettings_ == null + ? com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.getDefaultInstance() + : kmsSettings_; } /** + * + * *
      * Required. Input only. Immutable. Settings used to create a CMEK crypto
      * key.
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder getKmsSettingsOrBuilder() { + public com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder + getKmsSettingsOrBuilder() { return getKmsSettings(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3449,8 +4088,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 (kmsSettings_ != null) { output.writeMessage(1, getKmsSettings()); } @@ -3464,8 +4102,7 @@ public int getSerializedSize() { size = 0; if (kmsSettings_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getKmsSettings()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getKmsSettings()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -3475,17 +4112,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.assuredworkloads.v1beta1.Workload.CJISSettings)) { return super.equals(obj); } - com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings other = (com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings) obj; + com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings other = + (com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings) obj; if (hasKmsSettings() != other.hasKmsSettings()) return false; if (hasKmsSettings()) { - if (!getKmsSettings() - .equals(other.getKmsSettings())) return false; + if (!getKmsSettings().equals(other.getKmsSettings())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -3508,87 +4145,95 @@ public int hashCode() { } public static com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings 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.assuredworkloads.v1beta1.Workload.CJISSettings 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.assuredworkloads.v1beta1.Workload.CJISSettings parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings 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.assuredworkloads.v1beta1.Workload.CJISSettings parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings 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.assuredworkloads.v1beta1.Workload.CJISSettings parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings 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.assuredworkloads.v1beta1.Workload.CJISSettings parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings parseDelimitedFrom( - java.io.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.assuredworkloads.v1beta1.Workload.CJISSettings + parseDelimitedFrom( + java.io.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.assuredworkloads.v1beta1.Workload.CJISSettings 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.assuredworkloads.v1beta1.Workload.CJISSettings 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.assuredworkloads.v1beta1.Workload.CJISSettings prototype) { + + public static Builder newBuilder( + com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings 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 @@ -3598,44 +4243,49 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Settings specific to resources needed for CJIS.
      * 
* * Protobuf type {@code google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings} */ - 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.assuredworkloads.v1beta1.Workload.CJISSettings) com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettingsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_Workload_CJISSettings_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1beta1_Workload_CJISSettings_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_Workload_CJISSettings_fieldAccessorTable + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1beta1_Workload_CJISSettings_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings.class, com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings.Builder.class); + com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings.class, + com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings.Builder.class); } - // Construct using com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings.newBuilder() + // Construct using + // com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -3649,13 +4299,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_Workload_CJISSettings_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1beta1_Workload_CJISSettings_descriptor; } @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings getDefaultInstanceForType() { + public com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings + getDefaultInstanceForType() { return com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings.getDefaultInstance(); } @@ -3670,7 +4321,8 @@ public com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings build() { @java.lang.Override public com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings buildPartial() { - com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings result = new com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings(this); + com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings result = + new com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings(this); if (kmsSettingsBuilder_ == null) { result.kmsSettings_ = kmsSettings_; } else { @@ -3684,46 +4336,52 @@ public com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings buildPart public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + 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.assuredworkloads.v1beta1.Workload.CJISSettings) { - return mergeFrom((com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings)other); + return mergeFrom((com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings other) { - if (other == com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings other) { + if (other + == com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings.getDefaultInstance()) + return this; if (other.hasKmsSettings()) { mergeKmsSettings(other.getKmsSettings()); } @@ -3746,7 +4404,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -3758,44 +4418,64 @@ public Builder mergeFrom( private com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kmsSettings_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings, com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder, com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder> kmsSettingsBuilder_; + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings, + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder, + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder> + kmsSettingsBuilder_; /** + * + * *
        * Required. Input only. Immutable. Settings used to create a CMEK crypto
        * key.
        * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return Whether the kmsSettings field is set. */ public boolean hasKmsSettings() { return kmsSettingsBuilder_ != null || kmsSettings_ != null; } /** + * + * *
        * Required. Input only. Immutable. Settings used to create a CMEK crypto
        * key.
        * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The kmsSettings. */ public com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings getKmsSettings() { if (kmsSettingsBuilder_ == null) { - return kmsSettings_ == null ? com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.getDefaultInstance() : kmsSettings_; + return kmsSettings_ == null + ? com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.getDefaultInstance() + : kmsSettings_; } else { return kmsSettingsBuilder_.getMessage(); } } /** + * + * *
        * Required. Input only. Immutable. Settings used to create a CMEK crypto
        * key.
        * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ - public Builder setKmsSettings(com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings value) { + public Builder setKmsSettings( + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings value) { if (kmsSettingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3809,12 +4489,16 @@ public Builder setKmsSettings(com.google.cloud.assuredworkloads.v1beta1.Workload return this; } /** + * + * *
        * Required. Input only. Immutable. Settings used to create a CMEK crypto
        * key.
        * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ public Builder setKmsSettings( com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder builderForValue) { @@ -3828,18 +4512,26 @@ public Builder setKmsSettings( return this; } /** + * + * *
        * Required. Input only. Immutable. Settings used to create a CMEK crypto
        * key.
        * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ - public Builder mergeKmsSettings(com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings value) { + public Builder mergeKmsSettings( + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings value) { if (kmsSettingsBuilder_ == null) { if (kmsSettings_ != null) { kmsSettings_ = - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.newBuilder(kmsSettings_).mergeFrom(value).buildPartial(); + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.newBuilder( + kmsSettings_) + .mergeFrom(value) + .buildPartial(); } else { kmsSettings_ = value; } @@ -3851,12 +4543,16 @@ public Builder mergeKmsSettings(com.google.cloud.assuredworkloads.v1beta1.Worklo return this; } /** + * + * *
        * Required. Input only. Immutable. Settings used to create a CMEK crypto
        * key.
        * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ public Builder clearKmsSettings() { if (kmsSettingsBuilder_ == null) { @@ -3870,55 +4566,74 @@ public Builder clearKmsSettings() { return this; } /** + * + * *
        * Required. Input only. Immutable. Settings used to create a CMEK crypto
        * key.
        * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ - public com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder getKmsSettingsBuilder() { - + public com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder + getKmsSettingsBuilder() { + onChanged(); return getKmsSettingsFieldBuilder().getBuilder(); } /** + * + * *
        * Required. Input only. Immutable. Settings used to create a CMEK crypto
        * key.
        * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ - public com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder getKmsSettingsOrBuilder() { + public com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder + getKmsSettingsOrBuilder() { if (kmsSettingsBuilder_ != null) { return kmsSettingsBuilder_.getMessageOrBuilder(); } else { - return kmsSettings_ == null ? - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.getDefaultInstance() : kmsSettings_; + return kmsSettings_ == null + ? com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.getDefaultInstance() + : kmsSettings_; } } /** + * + * *
        * Required. Input only. Immutable. Settings used to create a CMEK crypto
        * key.
        * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings, com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder, com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder> + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings, + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder, + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder> getKmsSettingsFieldBuilder() { if (kmsSettingsBuilder_ == null) { - kmsSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings, com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder, com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder>( - getKmsSettings(), - getParentForChildren(), - isClean()); + kmsSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings, + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder, + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder>( + getKmsSettings(), getParentForChildren(), isClean()); kmsSettings_ = null; } return kmsSettingsBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3931,30 +4646,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings) } // @@protoc_insertion_point(class_scope:google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings) - private static final com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings DEFAULT_INSTANCE; + private static final com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings(); } - public static com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings getDefaultInstance() { + public static com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CJISSettings parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CJISSettings(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CJISSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CJISSettings(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3966,77 +4683,96 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings getDefaultInstanceForType() { + public com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - @java.lang.Deprecated public interface FedrampHighSettingsOrBuilder extends + @java.lang.Deprecated + public interface FedrampHighSettingsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Required. Input only. Immutable. Settings used to create a CMEK crypto
      * key.
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return Whether the kmsSettings field is set. */ boolean hasKmsSettings(); /** + * + * *
      * Required. Input only. Immutable. Settings used to create a CMEK crypto
      * key.
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The kmsSettings. */ com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings getKmsSettings(); /** + * + * *
      * Required. Input only. Immutable. Settings used to create a CMEK crypto
      * key.
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder getKmsSettingsOrBuilder(); + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder + getKmsSettingsOrBuilder(); } /** + * + * *
    * Settings specific to resources needed for FedRAMP High.
    * 
* * Protobuf type {@code google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings} */ - @java.lang.Deprecated public static final class FedrampHighSettings extends - com.google.protobuf.GeneratedMessageV3 implements + @java.lang.Deprecated + public static final class FedrampHighSettings extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings) FedrampHighSettingsOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use FedrampHighSettings.newBuilder() to construct. private FedrampHighSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private FedrampHighSettings() { - } + + private FedrampHighSettings() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new FedrampHighSettings(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private FedrampHighSettings( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -4055,26 +4791,31 @@ private FedrampHighSettings( case 0: done = true; break; - case 10: { - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder subBuilder = null; - if (kmsSettings_ != null) { - subBuilder = kmsSettings_.toBuilder(); - } - kmsSettings_ = input.readMessage(com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(kmsSettings_); - kmsSettings_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder subBuilder = + null; + if (kmsSettings_ != null) { + subBuilder = kmsSettings_.toBuilder(); + } + kmsSettings_ = + input.readMessage( + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(kmsSettings_); + kmsSettings_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -4082,35 +4823,42 @@ private FedrampHighSettings( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_Workload_FedrampHighSettings_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1beta1_Workload_FedrampHighSettings_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_Workload_FedrampHighSettings_fieldAccessorTable + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1beta1_Workload_FedrampHighSettings_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings.class, com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings.Builder.class); + com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings.class, + com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings.Builder.class); } public static final int KMS_SETTINGS_FIELD_NUMBER = 1; private com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kmsSettings_; /** + * + * *
      * Required. Input only. Immutable. Settings used to create a CMEK crypto
      * key.
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return Whether the kmsSettings field is set. */ @java.lang.Override @@ -4118,32 +4866,45 @@ public boolean hasKmsSettings() { return kmsSettings_ != null; } /** + * + * *
      * Required. Input only. Immutable. Settings used to create a CMEK crypto
      * key.
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The kmsSettings. */ @java.lang.Override public com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings getKmsSettings() { - return kmsSettings_ == null ? com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.getDefaultInstance() : kmsSettings_; + return kmsSettings_ == null + ? com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.getDefaultInstance() + : kmsSettings_; } /** + * + * *
      * Required. Input only. Immutable. Settings used to create a CMEK crypto
      * key.
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder getKmsSettingsOrBuilder() { + public com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder + getKmsSettingsOrBuilder() { return getKmsSettings(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -4155,8 +4916,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 (kmsSettings_ != null) { output.writeMessage(1, getKmsSettings()); } @@ -4170,8 +4930,7 @@ public int getSerializedSize() { size = 0; if (kmsSettings_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getKmsSettings()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getKmsSettings()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -4181,17 +4940,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.assuredworkloads.v1beta1.Workload.FedrampHighSettings)) { + if (!(obj + instanceof com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings)) { return super.equals(obj); } - com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings other = (com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings) obj; + com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings other = + (com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings) obj; if (hasKmsSettings() != other.hasKmsSettings()) return false; if (hasKmsSettings()) { - if (!getKmsSettings() - .equals(other.getKmsSettings())) return false; + if (!getKmsSettings().equals(other.getKmsSettings())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -4214,87 +4974,95 @@ public int hashCode() { } public static com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings 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.assuredworkloads.v1beta1.Workload.FedrampHighSettings 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.assuredworkloads.v1beta1.Workload.FedrampHighSettings parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings 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.assuredworkloads.v1beta1.Workload.FedrampHighSettings parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings 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.assuredworkloads.v1beta1.Workload.FedrampHighSettings parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings 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.assuredworkloads.v1beta1.Workload.FedrampHighSettings parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings parseDelimitedFrom( - java.io.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.assuredworkloads.v1beta1.Workload.FedrampHighSettings + parseDelimitedFrom( + java.io.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.assuredworkloads.v1beta1.Workload.FedrampHighSettings 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.assuredworkloads.v1beta1.Workload.FedrampHighSettings 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.assuredworkloads.v1beta1.Workload.FedrampHighSettings prototype) { + + public static Builder newBuilder( + com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings 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 @@ -4304,44 +5072,50 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Settings specific to resources needed for FedRAMP High.
      * 
* * Protobuf type {@code google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings} */ - 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.assuredworkloads.v1beta1.Workload.FedrampHighSettings) com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettingsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_Workload_FedrampHighSettings_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1beta1_Workload_FedrampHighSettings_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_Workload_FedrampHighSettings_fieldAccessorTable + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1beta1_Workload_FedrampHighSettings_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings.class, com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings.Builder.class); + com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings.class, + com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings.Builder + .class); } - // Construct using com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings.newBuilder() + // Construct using + // com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -4355,19 +5129,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_Workload_FedrampHighSettings_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1beta1_Workload_FedrampHighSettings_descriptor; } @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings getDefaultInstanceForType() { - return com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings.getDefaultInstance(); + public com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings + getDefaultInstanceForType() { + return com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings build() { - com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings result = buildPartial(); + com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -4376,7 +5153,8 @@ public com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings bu @java.lang.Override public com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings buildPartial() { - com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings result = new com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings(this); + com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings result = + new com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings(this); if (kmsSettingsBuilder_ == null) { result.kmsSettings_ = kmsSettings_; } else { @@ -4390,46 +5168,54 @@ public com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings bu public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings) { - return mergeFrom((com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings)other); + if (other + instanceof com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings) { + return mergeFrom( + (com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings other) { - if (other == com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings other) { + if (other + == com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings + .getDefaultInstance()) return this; if (other.hasKmsSettings()) { mergeKmsSettings(other.getKmsSettings()); } @@ -4452,7 +5238,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -4464,44 +5252,64 @@ public Builder mergeFrom( private com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kmsSettings_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings, com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder, com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder> kmsSettingsBuilder_; + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings, + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder, + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder> + kmsSettingsBuilder_; /** + * + * *
        * Required. Input only. Immutable. Settings used to create a CMEK crypto
        * key.
        * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return Whether the kmsSettings field is set. */ public boolean hasKmsSettings() { return kmsSettingsBuilder_ != null || kmsSettings_ != null; } /** + * + * *
        * Required. Input only. Immutable. Settings used to create a CMEK crypto
        * key.
        * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The kmsSettings. */ public com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings getKmsSettings() { if (kmsSettingsBuilder_ == null) { - return kmsSettings_ == null ? com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.getDefaultInstance() : kmsSettings_; + return kmsSettings_ == null + ? com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.getDefaultInstance() + : kmsSettings_; } else { return kmsSettingsBuilder_.getMessage(); } } /** + * + * *
        * Required. Input only. Immutable. Settings used to create a CMEK crypto
        * key.
        * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ - public Builder setKmsSettings(com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings value) { + public Builder setKmsSettings( + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings value) { if (kmsSettingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4515,12 +5323,16 @@ public Builder setKmsSettings(com.google.cloud.assuredworkloads.v1beta1.Workload return this; } /** + * + * *
        * Required. Input only. Immutable. Settings used to create a CMEK crypto
        * key.
        * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ public Builder setKmsSettings( com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder builderForValue) { @@ -4534,18 +5346,26 @@ public Builder setKmsSettings( return this; } /** + * + * *
        * Required. Input only. Immutable. Settings used to create a CMEK crypto
        * key.
        * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ - public Builder mergeKmsSettings(com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings value) { + public Builder mergeKmsSettings( + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings value) { if (kmsSettingsBuilder_ == null) { if (kmsSettings_ != null) { kmsSettings_ = - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.newBuilder(kmsSettings_).mergeFrom(value).buildPartial(); + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.newBuilder( + kmsSettings_) + .mergeFrom(value) + .buildPartial(); } else { kmsSettings_ = value; } @@ -4557,12 +5377,16 @@ public Builder mergeKmsSettings(com.google.cloud.assuredworkloads.v1beta1.Worklo return this; } /** + * + * *
        * Required. Input only. Immutable. Settings used to create a CMEK crypto
        * key.
        * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ public Builder clearKmsSettings() { if (kmsSettingsBuilder_ == null) { @@ -4576,55 +5400,74 @@ public Builder clearKmsSettings() { return this; } /** + * + * *
        * Required. Input only. Immutable. Settings used to create a CMEK crypto
        * key.
        * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ - public com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder getKmsSettingsBuilder() { - + public com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder + getKmsSettingsBuilder() { + onChanged(); return getKmsSettingsFieldBuilder().getBuilder(); } /** + * + * *
        * Required. Input only. Immutable. Settings used to create a CMEK crypto
        * key.
        * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ - public com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder getKmsSettingsOrBuilder() { + public com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder + getKmsSettingsOrBuilder() { if (kmsSettingsBuilder_ != null) { return kmsSettingsBuilder_.getMessageOrBuilder(); } else { - return kmsSettings_ == null ? - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.getDefaultInstance() : kmsSettings_; + return kmsSettings_ == null + ? com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.getDefaultInstance() + : kmsSettings_; } } /** + * + * *
        * Required. Input only. Immutable. Settings used to create a CMEK crypto
        * key.
        * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings, com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder, com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder> + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings, + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder, + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder> getKmsSettingsFieldBuilder() { if (kmsSettingsBuilder_ == null) { - kmsSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings, com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder, com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder>( - getKmsSettings(), - getParentForChildren(), - isClean()); + kmsSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings, + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder, + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder>( + getKmsSettings(), getParentForChildren(), isClean()); kmsSettings_ = null; } return kmsSettingsBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -4637,30 +5480,33 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings) } // @@protoc_insertion_point(class_scope:google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings) - private static final com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings DEFAULT_INSTANCE; + private static final com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings(); + DEFAULT_INSTANCE = + new com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings(); } - public static com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings getDefaultInstance() { + public static com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FedrampHighSettings parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FedrampHighSettings(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FedrampHighSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FedrampHighSettings(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4672,77 +5518,96 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings getDefaultInstanceForType() { + public com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - @java.lang.Deprecated public interface FedrampModerateSettingsOrBuilder extends + @java.lang.Deprecated + public interface FedrampModerateSettingsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Required. Input only. Immutable. Settings used to create a CMEK crypto
      * key.
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return Whether the kmsSettings field is set. */ boolean hasKmsSettings(); /** + * + * *
      * Required. Input only. Immutable. Settings used to create a CMEK crypto
      * key.
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The kmsSettings. */ com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings getKmsSettings(); /** + * + * *
      * Required. Input only. Immutable. Settings used to create a CMEK crypto
      * key.
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder getKmsSettingsOrBuilder(); + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder + getKmsSettingsOrBuilder(); } /** + * + * *
    * Settings specific to resources needed for FedRAMP Moderate.
    * 
* * Protobuf type {@code google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings} */ - @java.lang.Deprecated public static final class FedrampModerateSettings extends - com.google.protobuf.GeneratedMessageV3 implements + @java.lang.Deprecated + public static final class FedrampModerateSettings extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings) FedrampModerateSettingsOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use FedrampModerateSettings.newBuilder() to construct. private FedrampModerateSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private FedrampModerateSettings() { - } + + private FedrampModerateSettings() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new FedrampModerateSettings(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private FedrampModerateSettings( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -4759,28 +5624,33 @@ private FedrampModerateSettings( int tag = input.readTag(); switch (tag) { case 0: - done = true; - break; - case 10: { - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder subBuilder = null; - if (kmsSettings_ != null) { - subBuilder = kmsSettings_.toBuilder(); - } - kmsSettings_ = input.readMessage(com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(kmsSettings_); - kmsSettings_ = subBuilder.buildPartial(); - } - + done = true; break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 10: + { + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder subBuilder = + null; + if (kmsSettings_ != null) { + subBuilder = kmsSettings_.toBuilder(); + } + kmsSettings_ = + input.readMessage( + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(kmsSettings_); + kmsSettings_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -4788,35 +5658,43 @@ private FedrampModerateSettings( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_Workload_FedrampModerateSettings_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1beta1_Workload_FedrampModerateSettings_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_Workload_FedrampModerateSettings_fieldAccessorTable + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1beta1_Workload_FedrampModerateSettings_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings.class, com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings.Builder.class); + com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings.class, + com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings.Builder + .class); } public static final int KMS_SETTINGS_FIELD_NUMBER = 1; private com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kmsSettings_; /** + * + * *
      * Required. Input only. Immutable. Settings used to create a CMEK crypto
      * key.
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return Whether the kmsSettings field is set. */ @java.lang.Override @@ -4824,32 +5702,45 @@ public boolean hasKmsSettings() { return kmsSettings_ != null; } /** + * + * *
      * Required. Input only. Immutable. Settings used to create a CMEK crypto
      * key.
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The kmsSettings. */ @java.lang.Override public com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings getKmsSettings() { - return kmsSettings_ == null ? com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.getDefaultInstance() : kmsSettings_; + return kmsSettings_ == null + ? com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.getDefaultInstance() + : kmsSettings_; } /** + * + * *
      * Required. Input only. Immutable. Settings used to create a CMEK crypto
      * key.
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder getKmsSettingsOrBuilder() { + public com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder + getKmsSettingsOrBuilder() { return getKmsSettings(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -4861,8 +5752,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 (kmsSettings_ != null) { output.writeMessage(1, getKmsSettings()); } @@ -4876,8 +5766,7 @@ public int getSerializedSize() { size = 0; if (kmsSettings_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getKmsSettings()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getKmsSettings()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -4887,17 +5776,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.assuredworkloads.v1beta1.Workload.FedrampModerateSettings)) { + if (!(obj + instanceof com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings)) { return super.equals(obj); } - com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings other = (com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings) obj; + com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings other = + (com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings) obj; if (hasKmsSettings() != other.hasKmsSettings()) return false; if (hasKmsSettings()) { - if (!getKmsSettings() - .equals(other.getKmsSettings())) return false; + if (!getKmsSettings().equals(other.getKmsSettings())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -4919,88 +5809,101 @@ public int hashCode() { return hash; } - public static com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings + 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.assuredworkloads.v1beta1.Workload.FedrampModerateSettings parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings + 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.assuredworkloads.v1beta1.Workload.FedrampModerateSettings parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings 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.assuredworkloads.v1beta1.Workload.FedrampModerateSettings + 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.assuredworkloads.v1beta1.Workload.FedrampModerateSettings parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings parseDelimitedFrom( - java.io.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.assuredworkloads.v1beta1.Workload.FedrampModerateSettings + parseDelimitedFrom( + java.io.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.assuredworkloads.v1beta1.Workload.FedrampModerateSettings parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings prototype) { + + public static Builder newBuilder( + com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings 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 @@ -5010,44 +5913,50 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Settings specific to resources needed for FedRAMP Moderate.
      * 
* * Protobuf type {@code google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings} */ - 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.assuredworkloads.v1beta1.Workload.FedrampModerateSettings) com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettingsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_Workload_FedrampModerateSettings_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1beta1_Workload_FedrampModerateSettings_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_Workload_FedrampModerateSettings_fieldAccessorTable + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1beta1_Workload_FedrampModerateSettings_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings.class, com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings.Builder.class); + com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings.class, + com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings.Builder + .class); } - // Construct using com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings.newBuilder() + // Construct using + // com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -5061,19 +5970,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_Workload_FedrampModerateSettings_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1beta1_Workload_FedrampModerateSettings_descriptor; } @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings getDefaultInstanceForType() { - return com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings.getDefaultInstance(); + public com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings + getDefaultInstanceForType() { + return com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings build() { - com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings result = buildPartial(); + com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -5081,8 +5993,10 @@ public com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSetting } @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings buildPartial() { - com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings result = new com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings(this); + public com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings + buildPartial() { + com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings result = + new com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings(this); if (kmsSettingsBuilder_ == null) { result.kmsSettings_ = kmsSettings_; } else { @@ -5096,46 +6010,54 @@ public com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSetting 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.assuredworkloads.v1beta1.Workload.FedrampModerateSettings) { - return mergeFrom((com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings)other); + if (other + instanceof com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings) { + return mergeFrom( + (com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings other) { - if (other == com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings other) { + if (other + == com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings + .getDefaultInstance()) return this; if (other.hasKmsSettings()) { mergeKmsSettings(other.getKmsSettings()); } @@ -5154,11 +6076,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings parsedMessage = null; + com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings parsedMessage = + null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -5170,44 +6095,64 @@ public Builder mergeFrom( private com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kmsSettings_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings, com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder, com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder> kmsSettingsBuilder_; + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings, + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder, + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder> + kmsSettingsBuilder_; /** + * + * *
        * Required. Input only. Immutable. Settings used to create a CMEK crypto
        * key.
        * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return Whether the kmsSettings field is set. */ public boolean hasKmsSettings() { return kmsSettingsBuilder_ != null || kmsSettings_ != null; } /** + * + * *
        * Required. Input only. Immutable. Settings used to create a CMEK crypto
        * key.
        * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The kmsSettings. */ public com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings getKmsSettings() { if (kmsSettingsBuilder_ == null) { - return kmsSettings_ == null ? com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.getDefaultInstance() : kmsSettings_; + return kmsSettings_ == null + ? com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.getDefaultInstance() + : kmsSettings_; } else { return kmsSettingsBuilder_.getMessage(); } } /** + * + * *
        * Required. Input only. Immutable. Settings used to create a CMEK crypto
        * key.
        * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ - public Builder setKmsSettings(com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings value) { + public Builder setKmsSettings( + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings value) { if (kmsSettingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5221,12 +6166,16 @@ public Builder setKmsSettings(com.google.cloud.assuredworkloads.v1beta1.Workload return this; } /** + * + * *
        * Required. Input only. Immutable. Settings used to create a CMEK crypto
        * key.
        * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ public Builder setKmsSettings( com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder builderForValue) { @@ -5240,18 +6189,26 @@ public Builder setKmsSettings( return this; } /** + * + * *
        * Required. Input only. Immutable. Settings used to create a CMEK crypto
        * key.
        * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ - public Builder mergeKmsSettings(com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings value) { + public Builder mergeKmsSettings( + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings value) { if (kmsSettingsBuilder_ == null) { if (kmsSettings_ != null) { kmsSettings_ = - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.newBuilder(kmsSettings_).mergeFrom(value).buildPartial(); + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.newBuilder( + kmsSettings_) + .mergeFrom(value) + .buildPartial(); } else { kmsSettings_ = value; } @@ -5263,12 +6220,16 @@ public Builder mergeKmsSettings(com.google.cloud.assuredworkloads.v1beta1.Worklo return this; } /** + * + * *
        * Required. Input only. Immutable. Settings used to create a CMEK crypto
        * key.
        * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ public Builder clearKmsSettings() { if (kmsSettingsBuilder_ == null) { @@ -5282,55 +6243,74 @@ public Builder clearKmsSettings() { return this; } /** + * + * *
        * Required. Input only. Immutable. Settings used to create a CMEK crypto
        * key.
        * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ - public com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder getKmsSettingsBuilder() { - + public com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder + getKmsSettingsBuilder() { + onChanged(); return getKmsSettingsFieldBuilder().getBuilder(); } /** + * + * *
        * Required. Input only. Immutable. Settings used to create a CMEK crypto
        * key.
        * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ - public com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder getKmsSettingsOrBuilder() { + public com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder + getKmsSettingsOrBuilder() { if (kmsSettingsBuilder_ != null) { return kmsSettingsBuilder_.getMessageOrBuilder(); } else { - return kmsSettings_ == null ? - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.getDefaultInstance() : kmsSettings_; + return kmsSettings_ == null + ? com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.getDefaultInstance() + : kmsSettings_; } } /** + * + * *
        * Required. Input only. Immutable. Settings used to create a CMEK crypto
        * key.
        * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings, com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder, com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder> + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings, + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder, + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder> getKmsSettingsFieldBuilder() { if (kmsSettingsBuilder_ == null) { - kmsSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings, com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder, com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder>( - getKmsSettings(), - getParentForChildren(), - isClean()); + kmsSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings, + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder, + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder>( + getKmsSettings(), getParentForChildren(), isClean()); kmsSettings_ = null; } return kmsSettingsBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -5343,30 +6323,33 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings) } // @@protoc_insertion_point(class_scope:google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings) - private static final com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings DEFAULT_INSTANCE; + private static final com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings(); + DEFAULT_INSTANCE = + new com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings(); } - public static com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings getDefaultInstance() { + public static com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FedrampModerateSettings parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FedrampModerateSettings(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FedrampModerateSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FedrampModerateSettings(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5378,17 +6361,20 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings getDefaultInstanceForType() { + public com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface ResourceSettingsOrBuilder extends + public interface ResourceSettingsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Resource identifier.
      * For a project this represents project_id. If the project is already
@@ -5396,10 +6382,13 @@ public interface ResourceSettingsOrBuilder extends
      * 
* * string resource_id = 1; + * * @return The resourceId. */ java.lang.String getResourceId(); /** + * + * *
      * Resource identifier.
      * For a project this represents project_id. If the project is already
@@ -5407,35 +6396,47 @@ public interface ResourceSettingsOrBuilder extends
      * 
* * string resource_id = 1; + * * @return The bytes for resourceId. */ - com.google.protobuf.ByteString - getResourceIdBytes(); + com.google.protobuf.ByteString getResourceIdBytes(); /** + * + * *
      * Indicates the type of resource. This field should be specified to
      * correspond the id to the right project type (CONSUMER_PROJECT or
      * ENCRYPTION_KEYS_PROJECT)
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType resource_type = 2; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType resource_type = 2; + * + * * @return The enum numeric value on the wire for resourceType. */ int getResourceTypeValue(); /** + * + * *
      * Indicates the type of resource. This field should be specified to
      * correspond the id to the right project type (CONSUMER_PROJECT or
      * ENCRYPTION_KEYS_PROJECT)
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType resource_type = 2; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType resource_type = 2; + * + * * @return The resourceType. */ com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType getResourceType(); /** + * + * *
      * User-assigned resource display name.
      * If not empty it will be used to create a resource with the specified
@@ -5443,10 +6444,13 @@ public interface ResourceSettingsOrBuilder extends
      * 
* * string display_name = 3; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
      * User-assigned resource display name.
      * If not empty it will be used to create a resource with the specified
@@ -5454,27 +6458,30 @@ public interface ResourceSettingsOrBuilder extends
      * 
* * string display_name = 3; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); } /** + * + * *
    * Represent the custom settings for the resources to be created.
    * 
* * Protobuf type {@code google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings} */ - public static final class ResourceSettings extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class ResourceSettings extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings) ResourceSettingsOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ResourceSettings.newBuilder() to construct. private ResourceSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ResourceSettings() { resourceId_ = ""; resourceType_ = 0; @@ -5483,16 +6490,15 @@ private ResourceSettings() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ResourceSettings(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ResourceSettings( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -5511,31 +6517,34 @@ private ResourceSettings( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - resourceId_ = s; - break; - } - case 16: { - int rawValue = input.readEnum(); + resourceId_ = s; + break; + } + case 16: + { + int rawValue = input.readEnum(); - resourceType_ = rawValue; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + resourceType_ = rawValue; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - displayName_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + displayName_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -5543,29 +6552,33 @@ private ResourceSettings( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_Workload_ResourceSettings_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1beta1_Workload_ResourceSettings_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_Workload_ResourceSettings_fieldAccessorTable + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1beta1_Workload_ResourceSettings_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.class, com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.Builder.class); + com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.class, + com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.Builder.class); } public static final int RESOURCE_ID_FIELD_NUMBER = 1; private volatile java.lang.Object resourceId_; /** + * + * *
      * Resource identifier.
      * For a project this represents project_id. If the project is already
@@ -5573,6 +6586,7 @@ private ResourceSettings(
      * 
* * string resource_id = 1; + * * @return The resourceId. */ @java.lang.Override @@ -5581,14 +6595,15 @@ public java.lang.String getResourceId() { 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(); resourceId_ = s; return s; } } /** + * + * *
      * Resource identifier.
      * For a project this represents project_id. If the project is already
@@ -5596,16 +6611,15 @@ public java.lang.String getResourceId() {
      * 
* * string resource_id = 1; + * * @return The bytes for resourceId. */ @java.lang.Override - public com.google.protobuf.ByteString - getResourceIdBytes() { + public com.google.protobuf.ByteString getResourceIdBytes() { java.lang.Object ref = resourceId_; 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); resourceId_ = b; return b; } else { @@ -5616,37 +6630,57 @@ public java.lang.String getResourceId() { public static final int RESOURCE_TYPE_FIELD_NUMBER = 2; private int resourceType_; /** + * + * *
      * Indicates the type of resource. This field should be specified to
      * correspond the id to the right project type (CONSUMER_PROJECT or
      * ENCRYPTION_KEYS_PROJECT)
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType resource_type = 2; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType resource_type = 2; + * + * * @return The enum numeric value on the wire for resourceType. */ - @java.lang.Override public int getResourceTypeValue() { + @java.lang.Override + public int getResourceTypeValue() { return resourceType_; } /** + * + * *
      * Indicates the type of resource. This field should be specified to
      * correspond the id to the right project type (CONSUMER_PROJECT or
      * ENCRYPTION_KEYS_PROJECT)
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType resource_type = 2; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType resource_type = 2; + * + * * @return The resourceType. */ - @java.lang.Override public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType getResourceType() { + @java.lang.Override + public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType + getResourceType() { @SuppressWarnings("deprecation") - com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType result = com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType.valueOf(resourceType_); - return result == null ? com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType.UNRECOGNIZED : result; + com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType result = + com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType.valueOf( + resourceType_); + return result == null + ? com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType + .UNRECOGNIZED + : result; } public static final int DISPLAY_NAME_FIELD_NUMBER = 3; private volatile java.lang.Object displayName_; /** + * + * *
      * User-assigned resource display name.
      * If not empty it will be used to create a resource with the specified
@@ -5654,6 +6688,7 @@ public java.lang.String getResourceId() {
      * 
* * string display_name = 3; + * * @return The displayName. */ @java.lang.Override @@ -5662,14 +6697,15 @@ public java.lang.String getDisplayName() { 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(); displayName_ = s; return s; } } /** + * + * *
      * User-assigned resource display name.
      * If not empty it will be used to create a resource with the specified
@@ -5677,16 +6713,15 @@ public java.lang.String getDisplayName() {
      * 
* * string display_name = 3; + * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; 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); displayName_ = b; return b; } else { @@ -5695,6 +6730,7 @@ public java.lang.String getDisplayName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -5706,12 +6742,14 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceId_); } - if (resourceType_ != com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType.RESOURCE_TYPE_UNSPECIFIED.getNumber()) { + if (resourceType_ + != com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType + .RESOURCE_TYPE_UNSPECIFIED + .getNumber()) { output.writeEnum(2, resourceType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { @@ -5729,9 +6767,11 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resourceId_); } - if (resourceType_ != com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType.RESOURCE_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, resourceType_); + if (resourceType_ + != com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType + .RESOURCE_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, resourceType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, displayName_); @@ -5744,18 +6784,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.assuredworkloads.v1beta1.Workload.ResourceSettings)) { return super.equals(obj); } - com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings other = (com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings) obj; + com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings other = + (com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings) obj; - if (!getResourceId() - .equals(other.getResourceId())) return false; + if (!getResourceId().equals(other.getResourceId())) return false; if (resourceType_ != other.resourceType_) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -5779,87 +6818,95 @@ public int hashCode() { } public static com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings 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.assuredworkloads.v1beta1.Workload.ResourceSettings 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.assuredworkloads.v1beta1.Workload.ResourceSettings parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings 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.assuredworkloads.v1beta1.Workload.ResourceSettings parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings 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.assuredworkloads.v1beta1.Workload.ResourceSettings parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings 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.assuredworkloads.v1beta1.Workload.ResourceSettings parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings parseDelimitedFrom( - java.io.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.assuredworkloads.v1beta1.Workload.ResourceSettings + parseDelimitedFrom( + java.io.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.assuredworkloads.v1beta1.Workload.ResourceSettings 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.assuredworkloads.v1beta1.Workload.ResourceSettings 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.assuredworkloads.v1beta1.Workload.ResourceSettings prototype) { + + public static Builder newBuilder( + com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings 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 @@ -5869,44 +6916,49 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Represent the custom settings for the resources to be created.
      * 
* * Protobuf type {@code google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings} */ - 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.assuredworkloads.v1beta1.Workload.ResourceSettings) com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettingsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_Workload_ResourceSettings_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1beta1_Workload_ResourceSettings_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_Workload_ResourceSettings_fieldAccessorTable + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1beta1_Workload_ResourceSettings_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.class, com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.Builder.class); + com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.class, + com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.Builder.class); } - // Construct using com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.newBuilder() + // Construct using + // com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -5920,14 +6972,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_Workload_ResourceSettings_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1beta1_Workload_ResourceSettings_descriptor; } @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings getDefaultInstanceForType() { - return com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.getDefaultInstance(); + public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings + getDefaultInstanceForType() { + return com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings + .getDefaultInstance(); } @java.lang.Override @@ -5941,7 +6995,8 @@ public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings build @java.lang.Override public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings buildPartial() { - com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings result = new com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings(this); + com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings result = + new com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings(this); result.resourceId_ = resourceId_; result.resourceType_ = resourceType_; result.displayName_ = displayName_; @@ -5953,46 +7008,53 @@ public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings build public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + 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.assuredworkloads.v1beta1.Workload.ResourceSettings) { - return mergeFrom((com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings)other); + return mergeFrom( + (com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings other) { - if (other == com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings other) { + if (other + == com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings + .getDefaultInstance()) return this; if (!other.getResourceId().isEmpty()) { resourceId_ = other.resourceId_; onChanged(); @@ -6023,7 +7085,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -6035,6 +7099,8 @@ public Builder mergeFrom( private java.lang.Object resourceId_ = ""; /** + * + * *
        * Resource identifier.
        * For a project this represents project_id. If the project is already
@@ -6042,13 +7108,13 @@ public Builder mergeFrom(
        * 
* * string resource_id = 1; + * * @return The resourceId. */ public java.lang.String getResourceId() { java.lang.Object ref = resourceId_; 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(); resourceId_ = s; return s; @@ -6057,6 +7123,8 @@ public java.lang.String getResourceId() { } } /** + * + * *
        * Resource identifier.
        * For a project this represents project_id. If the project is already
@@ -6064,15 +7132,14 @@ public java.lang.String getResourceId() {
        * 
* * string resource_id = 1; + * * @return The bytes for resourceId. */ - public com.google.protobuf.ByteString - getResourceIdBytes() { + public com.google.protobuf.ByteString getResourceIdBytes() { java.lang.Object ref = resourceId_; 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); resourceId_ = b; return b; } else { @@ -6080,6 +7147,8 @@ public java.lang.String getResourceId() { } } /** + * + * *
        * Resource identifier.
        * For a project this represents project_id. If the project is already
@@ -6087,20 +7156,22 @@ public java.lang.String getResourceId() {
        * 
* * string resource_id = 1; + * * @param value The resourceId to set. * @return This builder for chaining. */ - public Builder setResourceId( - java.lang.String value) { + public Builder setResourceId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resourceId_ = value; onChanged(); return this; } /** + * + * *
        * Resource identifier.
        * For a project this represents project_id. If the project is already
@@ -6108,15 +7179,18 @@ public Builder setResourceId(
        * 
* * string resource_id = 1; + * * @return This builder for chaining. */ public Builder clearResourceId() { - + resourceId_ = getDefaultInstance().getResourceId(); onChanged(); return this; } /** + * + * *
        * Resource identifier.
        * For a project this represents project_id. If the project is already
@@ -6124,16 +7198,16 @@ public Builder clearResourceId() {
        * 
* * string resource_id = 1; + * * @param value The bytes for resourceId to set. * @return This builder for chaining. */ - public Builder setResourceIdBytes( - com.google.protobuf.ByteString value) { + public Builder setResourceIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceId_ = value; onChanged(); return this; @@ -6141,83 +7215,116 @@ public Builder setResourceIdBytes( private int resourceType_ = 0; /** + * + * *
        * Indicates the type of resource. This field should be specified to
        * correspond the id to the right project type (CONSUMER_PROJECT or
        * ENCRYPTION_KEYS_PROJECT)
        * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType resource_type = 2; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType resource_type = 2; + * + * * @return The enum numeric value on the wire for resourceType. */ - @java.lang.Override public int getResourceTypeValue() { + @java.lang.Override + public int getResourceTypeValue() { return resourceType_; } /** + * + * *
        * Indicates the type of resource. This field should be specified to
        * correspond the id to the right project type (CONSUMER_PROJECT or
        * ENCRYPTION_KEYS_PROJECT)
        * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType resource_type = 2; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType resource_type = 2; + * + * * @param value The enum numeric value on the wire for resourceType to set. * @return This builder for chaining. */ public Builder setResourceTypeValue(int value) { - + resourceType_ = value; onChanged(); return this; } /** + * + * *
        * Indicates the type of resource. This field should be specified to
        * correspond the id to the right project type (CONSUMER_PROJECT or
        * ENCRYPTION_KEYS_PROJECT)
        * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType resource_type = 2; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType resource_type = 2; + * + * * @return The resourceType. */ @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType getResourceType() { + public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType + getResourceType() { @SuppressWarnings("deprecation") - com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType result = com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType.valueOf(resourceType_); - return result == null ? com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType.UNRECOGNIZED : result; + com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType result = + com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType.valueOf( + resourceType_); + return result == null + ? com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType + .UNRECOGNIZED + : result; } /** + * + * *
        * Indicates the type of resource. This field should be specified to
        * correspond the id to the right project type (CONSUMER_PROJECT or
        * ENCRYPTION_KEYS_PROJECT)
        * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType resource_type = 2; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType resource_type = 2; + * + * * @param value The resourceType to set. * @return This builder for chaining. */ - public Builder setResourceType(com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType value) { + public Builder setResourceType( + com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType value) { if (value == null) { throw new NullPointerException(); } - + resourceType_ = value.getNumber(); onChanged(); return this; } /** + * + * *
        * Indicates the type of resource. This field should be specified to
        * correspond the id to the right project type (CONSUMER_PROJECT or
        * ENCRYPTION_KEYS_PROJECT)
        * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType resource_type = 2; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType resource_type = 2; + * + * * @return This builder for chaining. */ public Builder clearResourceType() { - + resourceType_ = 0; onChanged(); return this; @@ -6225,6 +7332,8 @@ public Builder clearResourceType() { private java.lang.Object displayName_ = ""; /** + * + * *
        * User-assigned resource display name.
        * If not empty it will be used to create a resource with the specified
@@ -6232,13 +7341,13 @@ public Builder clearResourceType() {
        * 
* * string display_name = 3; + * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; 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(); displayName_ = s; return s; @@ -6247,6 +7356,8 @@ public java.lang.String getDisplayName() { } } /** + * + * *
        * User-assigned resource display name.
        * If not empty it will be used to create a resource with the specified
@@ -6254,15 +7365,14 @@ public java.lang.String getDisplayName() {
        * 
* * string display_name = 3; + * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; 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); displayName_ = b; return b; } else { @@ -6270,6 +7380,8 @@ public java.lang.String getDisplayName() { } } /** + * + * *
        * User-assigned resource display name.
        * If not empty it will be used to create a resource with the specified
@@ -6277,20 +7389,22 @@ public java.lang.String getDisplayName() {
        * 
* * string display_name = 3; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { + public Builder setDisplayName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** + * + * *
        * User-assigned resource display name.
        * If not empty it will be used to create a resource with the specified
@@ -6298,15 +7412,18 @@ public Builder setDisplayName(
        * 
* * string display_name = 3; + * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** + * + * *
        * User-assigned resource display name.
        * If not empty it will be used to create a resource with the specified
@@ -6314,20 +7431,21 @@ public Builder clearDisplayName() {
        * 
* * string display_name = 3; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -6340,30 +7458,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings) } // @@protoc_insertion_point(class_scope:google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings) - private static final com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings DEFAULT_INSTANCE; + private static final com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings(); } - public static com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings getDefaultInstance() { + public static com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ResourceSettings parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ResourceSettings(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResourceSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ResourceSettings(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -6375,109 +7495,156 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings getDefaultInstanceForType() { + public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface SaaEnrollmentResponseOrBuilder extends + public interface SaaEnrollmentResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Indicates SAA enrollment status of a given workload.
      * 
* - * optional .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1; + * + * optional .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1; + * + * * @return Whether the setupStatus field is set. */ boolean hasSetupStatus(); /** + * + * *
      * Indicates SAA enrollment status of a given workload.
      * 
* - * optional .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1; + * + * optional .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1; + * + * * @return The enum numeric value on the wire for setupStatus. */ int getSetupStatusValue(); /** + * + * *
      * Indicates SAA enrollment status of a given workload.
      * 
* - * optional .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1; + * + * optional .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1; + * + * * @return The setupStatus. */ - com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupState getSetupStatus(); + com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupState + getSetupStatus(); /** + * + * *
      * Indicates SAA enrollment setup error if any.
      * 
* - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; + * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; + * + * * @return A list containing the setupErrors. */ - java.util.List getSetupErrorsList(); + java.util.List< + com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError> + getSetupErrorsList(); /** + * + * *
      * Indicates SAA enrollment setup error if any.
      * 
* - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; + * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; + * + * * @return The count of setupErrors. */ int getSetupErrorsCount(); /** + * + * *
      * Indicates SAA enrollment setup error if any.
      * 
* - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; + * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; + * + * * @param index The index of the element to return. * @return The setupErrors at the given index. */ - com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError getSetupErrors(int index); + com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError + getSetupErrors(int index); /** + * + * *
      * Indicates SAA enrollment setup error if any.
      * 
* - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; + * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; + * + * * @return A list containing the enum numeric values on the wire for setupErrors. */ - java.util.List - getSetupErrorsValueList(); + java.util.List getSetupErrorsValueList(); /** + * + * *
      * Indicates SAA enrollment setup error if any.
      * 
* - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; + * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; + * + * * @param index The index of the value to return. * @return The enum numeric value on the wire of setupErrors at the given index. */ int getSetupErrorsValue(int index); } /** + * + * *
    * Signed Access Approvals (SAA) enrollment response.
    * 
* * Protobuf type {@code google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse} */ - public static final class SaaEnrollmentResponse extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class SaaEnrollmentResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse) SaaEnrollmentResponseOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SaaEnrollmentResponse.newBuilder() to construct. private SaaEnrollmentResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private SaaEnrollmentResponse() { setupStatus_ = 0; setupErrors_ = java.util.Collections.emptyList(); @@ -6485,16 +7652,15 @@ private SaaEnrollmentResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SaaEnrollmentResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private SaaEnrollmentResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -6514,42 +7680,45 @@ private SaaEnrollmentResponse( case 0: done = true; break; - case 8: { - int rawValue = input.readEnum(); - bitField0_ |= 0x00000001; - setupStatus_ = rawValue; - break; - } - case 16: { - int rawValue = input.readEnum(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - setupErrors_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; + case 8: + { + int rawValue = input.readEnum(); + bitField0_ |= 0x00000001; + setupStatus_ = rawValue; + break; } - setupErrors_.add(rawValue); - break; - } - case 18: { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while(input.getBytesUntilLimit() > 0) { + case 16: + { int rawValue = input.readEnum(); if (!((mutable_bitField0_ & 0x00000002) != 0)) { setupErrors_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } setupErrors_.add(rawValue); + break; } - input.popLimit(oldLimit); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 18: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int rawValue = input.readEnum(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + setupErrors_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + setupErrors_.add(rawValue); + } + input.popLimit(oldLimit); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -6557,8 +7726,7 @@ private SaaEnrollmentResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) != 0)) { setupErrors_ = java.util.Collections.unmodifiableList(setupErrors_); @@ -6567,29 +7735,37 @@ private SaaEnrollmentResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_Workload_SaaEnrollmentResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1beta1_Workload_SaaEnrollmentResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_Workload_SaaEnrollmentResponse_fieldAccessorTable + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1beta1_Workload_SaaEnrollmentResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.class, com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.Builder.class); + com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.class, + com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.Builder + .class); } /** + * + * *
      * Setup state of SAA enrollment.
      * 
* - * Protobuf enum {@code google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupState} + * Protobuf enum {@code + * google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupState} */ - public enum SetupState - implements com.google.protobuf.ProtocolMessageEnum { + public enum SetupState implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
        * Unspecified.
        * 
@@ -6598,6 +7774,8 @@ public enum SetupState */ SETUP_STATE_UNSPECIFIED(0), /** + * + * *
        * SAA enrollment pending.
        * 
@@ -6606,6 +7784,8 @@ public enum SetupState */ STATUS_PENDING(1), /** + * + * *
        * SAA enrollment comopleted.
        * 
@@ -6617,6 +7797,8 @@ public enum SetupState ; /** + * + * *
        * Unspecified.
        * 
@@ -6625,6 +7807,8 @@ public enum SetupState */ public static final int SETUP_STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
        * SAA enrollment pending.
        * 
@@ -6633,6 +7817,8 @@ public enum SetupState */ public static final int STATUS_PENDING_VALUE = 1; /** + * + * *
        * SAA enrollment comopleted.
        * 
@@ -6641,7 +7827,6 @@ public enum SetupState */ public static final int STATUS_COMPLETE_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -6666,49 +7851,52 @@ public static SetupState valueOf(int value) { */ public static SetupState forNumber(int value) { switch (value) { - case 0: return SETUP_STATE_UNSPECIFIED; - case 1: return STATUS_PENDING; - case 2: return STATUS_COMPLETE; - default: return null; + case 0: + return SETUP_STATE_UNSPECIFIED; + case 1: + return STATUS_PENDING; + case 2: + return STATUS_COMPLETE; + 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< - SetupState> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public SetupState findValueByNumber(int number) { - return SetupState.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 SetupState findValueByNumber(int number) { + return SetupState.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.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse + .getDescriptor() + .getEnumTypes() + .get(0); } private static final SetupState[] VALUES = values(); - public static SetupState valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static SetupState 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; @@ -6726,15 +7914,19 @@ private SetupState(int value) { } /** + * + * *
      * Setup error of SAA enrollment.
      * 
* - * Protobuf enum {@code google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError} + * Protobuf enum {@code + * google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError} */ - public enum SetupError - implements com.google.protobuf.ProtocolMessageEnum { + public enum SetupError implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
        * Unspecified.
        * 
@@ -6743,6 +7935,8 @@ public enum SetupError */ SETUP_ERROR_UNSPECIFIED(0), /** + * + * *
        * Invalid states for all customers, to be redirected to AA UI for
        * additional details.
@@ -6752,6 +7946,8 @@ public enum SetupError
        */
       ERROR_INVALID_BASE_SETUP(1),
       /**
+       *
+       *
        * 
        * Returned when there is not an EKM key configured.
        * 
@@ -6760,6 +7956,8 @@ public enum SetupError */ ERROR_MISSING_EXTERNAL_SIGNING_KEY(2), /** + * + * *
        * Returned when there are no enrolled services or the customer is
        * enrolled in CAA only for a subset of services.
@@ -6769,6 +7967,8 @@ public enum SetupError
        */
       ERROR_NOT_ALL_SERVICES_ENROLLED(3),
       /**
+       *
+       *
        * 
        * Returned when exception was encountered during evaluation of other
        * criteria.
@@ -6781,6 +7981,8 @@ public enum SetupError
       ;
 
       /**
+       *
+       *
        * 
        * Unspecified.
        * 
@@ -6789,6 +7991,8 @@ public enum SetupError */ public static final int SETUP_ERROR_UNSPECIFIED_VALUE = 0; /** + * + * *
        * Invalid states for all customers, to be redirected to AA UI for
        * additional details.
@@ -6798,6 +8002,8 @@ public enum SetupError
        */
       public static final int ERROR_INVALID_BASE_SETUP_VALUE = 1;
       /**
+       *
+       *
        * 
        * Returned when there is not an EKM key configured.
        * 
@@ -6806,6 +8012,8 @@ public enum SetupError */ public static final int ERROR_MISSING_EXTERNAL_SIGNING_KEY_VALUE = 2; /** + * + * *
        * Returned when there are no enrolled services or the customer is
        * enrolled in CAA only for a subset of services.
@@ -6815,6 +8023,8 @@ public enum SetupError
        */
       public static final int ERROR_NOT_ALL_SERVICES_ENROLLED_VALUE = 3;
       /**
+       *
+       *
        * 
        * Returned when exception was encountered during evaluation of other
        * criteria.
@@ -6824,7 +8034,6 @@ public enum SetupError
        */
       public static final int ERROR_SETUP_CHECK_FAILED_VALUE = 4;
 
-
       public final int getNumber() {
         if (this == UNRECOGNIZED) {
           throw new java.lang.IllegalArgumentException(
@@ -6849,51 +8058,56 @@ public static SetupError valueOf(int value) {
        */
       public static SetupError forNumber(int value) {
         switch (value) {
-          case 0: return SETUP_ERROR_UNSPECIFIED;
-          case 1: return ERROR_INVALID_BASE_SETUP;
-          case 2: return ERROR_MISSING_EXTERNAL_SIGNING_KEY;
-          case 3: return ERROR_NOT_ALL_SERVICES_ENROLLED;
-          case 4: return ERROR_SETUP_CHECK_FAILED;
-          default: return null;
+          case 0:
+            return SETUP_ERROR_UNSPECIFIED;
+          case 1:
+            return ERROR_INVALID_BASE_SETUP;
+          case 2:
+            return ERROR_MISSING_EXTERNAL_SIGNING_KEY;
+          case 3:
+            return ERROR_NOT_ALL_SERVICES_ENROLLED;
+          case 4:
+            return ERROR_SETUP_CHECK_FAILED;
+          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<
-          SetupError> internalValueMap =
-            new com.google.protobuf.Internal.EnumLiteMap() {
-              public SetupError findValueByNumber(int number) {
-                return SetupError.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 SetupError findValueByNumber(int number) {
+              return SetupError.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.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.getDescriptor().getEnumTypes().get(1);
+
+      public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+        return com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse
+            .getDescriptor()
+            .getEnumTypes()
+            .get(1);
       }
 
       private static final SetupError[] VALUES = values();
 
-      public static SetupError valueOf(
-          com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+      public static SetupError 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;
@@ -6914,72 +8128,122 @@ private SetupError(int value) {
     public static final int SETUP_STATUS_FIELD_NUMBER = 1;
     private int setupStatus_;
     /**
+     *
+     *
      * 
      * Indicates SAA enrollment status of a given workload.
      * 
* - * optional .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1; + * + * optional .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1; + * + * * @return Whether the setupStatus field is set. */ - @java.lang.Override public boolean hasSetupStatus() { + @java.lang.Override + public boolean hasSetupStatus() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Indicates SAA enrollment status of a given workload.
      * 
* - * optional .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1; + * + * optional .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1; + * + * * @return The enum numeric value on the wire for setupStatus. */ - @java.lang.Override public int getSetupStatusValue() { + @java.lang.Override + public int getSetupStatusValue() { return setupStatus_; } /** + * + * *
      * Indicates SAA enrollment status of a given workload.
      * 
* - * optional .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1; + * + * optional .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1; + * + * * @return The setupStatus. */ - @java.lang.Override public com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupState getSetupStatus() { + @java.lang.Override + public com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupState + getSetupStatus() { @SuppressWarnings("deprecation") - com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupState result = com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupState.valueOf(setupStatus_); - return result == null ? com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupState.UNRECOGNIZED : result; + com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupState result = + com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupState + .valueOf(setupStatus_); + return result == null + ? com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupState + .UNRECOGNIZED + : result; } public static final int SETUP_ERRORS_FIELD_NUMBER = 2; private java.util.List setupErrors_; private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError> setupErrors_converter_ = + java.lang.Integer, + com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError> + setupErrors_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError>() { - public com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError convert(java.lang.Integer from) { + java.lang.Integer, + com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse + .SetupError>() { + public com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse + .SetupError + convert(java.lang.Integer from) { @SuppressWarnings("deprecation") - com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError result = com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError.valueOf(from); - return result == null ? com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError.UNRECOGNIZED : result; + com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError + result = + com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse + .SetupError.valueOf(from); + return result == null + ? com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse + .SetupError.UNRECOGNIZED + : result; } }; /** + * + * *
      * Indicates SAA enrollment setup error if any.
      * 
* - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; + * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; + * + * * @return A list containing the setupErrors. */ @java.lang.Override - public java.util.List getSetupErrorsList() { + public java.util.List< + com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError> + getSetupErrorsList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError>(setupErrors_, setupErrors_converter_); + java.lang.Integer, + com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError>( + setupErrors_, setupErrors_converter_); } /** + * + * *
      * Indicates SAA enrollment setup error if any.
      * 
* - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; + * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; + * + * * @return The count of setupErrors. */ @java.lang.Override @@ -6987,37 +8251,52 @@ public int getSetupErrorsCount() { return setupErrors_.size(); } /** + * + * *
      * Indicates SAA enrollment setup error if any.
      * 
* - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; + * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; + * + * * @param index The index of the element to return. * @return The setupErrors at the given index. */ @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError getSetupErrors(int index) { + public com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError + getSetupErrors(int index) { return setupErrors_converter_.convert(setupErrors_.get(index)); } /** + * + * *
      * Indicates SAA enrollment setup error if any.
      * 
* - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; + * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; + * + * * @return A list containing the enum numeric values on the wire for setupErrors. */ @java.lang.Override - public java.util.List - getSetupErrorsValueList() { + public java.util.List getSetupErrorsValueList() { return setupErrors_; } /** + * + * *
      * Indicates SAA enrollment setup error if any.
      * 
* - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; + * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; + * + * * @param index The index of the value to return. * @return The enum numeric value on the wire of setupErrors at the given index. */ @@ -7025,9 +8304,11 @@ public com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse. public int getSetupErrorsValue(int index) { return setupErrors_.get(index); } + private int setupErrorsMemoizedSerializedSize; private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -7039,8 +8320,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 { getSerializedSize(); if (((bitField0_ & 0x00000001) != 0)) { output.writeEnum(1, setupStatus_); @@ -7062,20 +8342,20 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, setupStatus_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, setupStatus_); } { int dataSize = 0; for (int i = 0; i < setupErrors_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeEnumSizeNoTag(setupErrors_.get(i)); + dataSize += + com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(setupErrors_.get(i)); } size += dataSize; - if (!getSetupErrorsList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(dataSize); - }setupErrorsMemoizedSerializedSize = dataSize; + if (!getSetupErrorsList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + setupErrorsMemoizedSerializedSize = dataSize; } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -7085,12 +8365,14 @@ 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.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse)) { + if (!(obj + instanceof com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse)) { return super.equals(obj); } - com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse other = (com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse) obj; + com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse other = + (com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse) obj; if (hasSetupStatus() != other.hasSetupStatus()) return false; if (hasSetupStatus()) { @@ -7121,88 +8403,101 @@ public int hashCode() { return hash; } - public static com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse + 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.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse + 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.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse 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.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse + 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.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse parseDelimitedFrom( - java.io.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.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse + parseDelimitedFrom( + java.io.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.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse 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 @@ -7212,44 +8507,50 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Signed Access Approvals (SAA) enrollment response.
      * 
* * Protobuf type {@code google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse} */ - 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.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse) com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_Workload_SaaEnrollmentResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1beta1_Workload_SaaEnrollmentResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_Workload_SaaEnrollmentResponse_fieldAccessorTable + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1beta1_Workload_SaaEnrollmentResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.class, com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.Builder.class); + com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.class, + com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.Builder + .class); } - // Construct using com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.newBuilder() + // Construct using + // com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -7261,19 +8562,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_Workload_SaaEnrollmentResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1beta1_Workload_SaaEnrollmentResponse_descriptor; } @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse getDefaultInstanceForType() { - return com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.getDefaultInstance(); + public com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse + getDefaultInstanceForType() { + return com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse build() { - com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse result = buildPartial(); + com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -7281,8 +8585,10 @@ public com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse } @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse buildPartial() { - com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse result = new com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse(this); + public com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse + buildPartial() { + com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse result = + new com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { @@ -7303,46 +8609,54 @@ public com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse 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.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse) { - return mergeFrom((com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse)other); + if (other + instanceof com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse) { + return mergeFrom( + (com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse other) { - if (other == com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse other) { + if (other + == com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse + .getDefaultInstance()) return this; if (other.hasSetupStatus()) { setSetupStatus(other.getSetupStatus()); } @@ -7371,11 +8685,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse parsedMessage = null; + com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse parsedMessage = + null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -7384,37 +8701,55 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private int setupStatus_ = 0; /** + * + * *
        * Indicates SAA enrollment status of a given workload.
        * 
* - * optional .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1; + * + * optional .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1; + * + * * @return Whether the setupStatus field is set. */ - @java.lang.Override public boolean hasSetupStatus() { + @java.lang.Override + public boolean hasSetupStatus() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
        * Indicates SAA enrollment status of a given workload.
        * 
* - * optional .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1; + * + * optional .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1; + * + * * @return The enum numeric value on the wire for setupStatus. */ - @java.lang.Override public int getSetupStatusValue() { + @java.lang.Override + public int getSetupStatusValue() { return setupStatus_; } /** + * + * *
        * Indicates SAA enrollment status of a given workload.
        * 
* - * optional .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1; + * + * optional .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1; + * + * * @param value The enum numeric value on the wire for setupStatus to set. * @return This builder for chaining. */ @@ -7425,29 +8760,47 @@ public Builder setSetupStatusValue(int value) { return this; } /** + * + * *
        * Indicates SAA enrollment status of a given workload.
        * 
* - * optional .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1; + * + * optional .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1; + * + * * @return The setupStatus. */ @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupState getSetupStatus() { + public com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupState + getSetupStatus() { @SuppressWarnings("deprecation") - com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupState result = com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupState.valueOf(setupStatus_); - return result == null ? com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupState.UNRECOGNIZED : result; + com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupState result = + com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupState + .valueOf(setupStatus_); + return result == null + ? com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupState + .UNRECOGNIZED + : result; } /** + * + * *
        * Indicates SAA enrollment status of a given workload.
        * 
* - * optional .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1; + * + * optional .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1; + * + * * @param value The setupStatus to set. * @return This builder for chaining. */ - public Builder setSetupStatus(com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupState value) { + public Builder setSetupStatus( + com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupState + value) { if (value == null) { throw new NullPointerException(); } @@ -7457,11 +8810,16 @@ public Builder setSetupStatus(com.google.cloud.assuredworkloads.v1beta1.Workload return this; } /** + * + * *
        * Indicates SAA enrollment status of a given workload.
        * 
* - * optional .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1; + * + * optional .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1; + * + * * @return This builder for chaining. */ public Builder clearSetupStatus() { @@ -7471,8 +8829,8 @@ public Builder clearSetupStatus() { return this; } - private java.util.List setupErrors_ = - java.util.Collections.emptyList(); + private java.util.List setupErrors_ = java.util.Collections.emptyList(); + private void ensureSetupErrorsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { setupErrors_ = new java.util.ArrayList(setupErrors_); @@ -7480,52 +8838,79 @@ private void ensureSetupErrorsIsMutable() { } } /** + * + * *
        * Indicates SAA enrollment setup error if any.
        * 
* - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; + * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; + * + * * @return A list containing the setupErrors. */ - public java.util.List getSetupErrorsList() { + public java.util.List< + com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError> + getSetupErrorsList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError>(setupErrors_, setupErrors_converter_); + java.lang.Integer, + com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError>( + setupErrors_, setupErrors_converter_); } /** + * + * *
        * Indicates SAA enrollment setup error if any.
        * 
* - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; + * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; + * + * * @return The count of setupErrors. */ public int getSetupErrorsCount() { return setupErrors_.size(); } /** + * + * *
        * Indicates SAA enrollment setup error if any.
        * 
* - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; + * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; + * + * * @param index The index of the element to return. * @return The setupErrors at the given index. */ - public com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError getSetupErrors(int index) { + public com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError + getSetupErrors(int index) { return setupErrors_converter_.convert(setupErrors_.get(index)); } /** + * + * *
        * Indicates SAA enrollment setup error if any.
        * 
* - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; + * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; + * + * * @param index The index to set the value at. * @param value The setupErrors to set. * @return This builder for chaining. */ public Builder setSetupErrors( - int index, com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError value) { + int index, + com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError + value) { if (value == null) { throw new NullPointerException(); } @@ -7535,15 +8920,22 @@ public Builder setSetupErrors( return this; } /** + * + * *
        * Indicates SAA enrollment setup error if any.
        * 
* - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; + * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; + * + * * @param value The setupErrors to add. * @return This builder for chaining. */ - public Builder addSetupErrors(com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError value) { + public Builder addSetupErrors( + com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError + value) { if (value == null) { throw new NullPointerException(); } @@ -7553,29 +8945,44 @@ public Builder addSetupErrors(com.google.cloud.assuredworkloads.v1beta1.Workload return this; } /** + * + * *
        * Indicates SAA enrollment setup error if any.
        * 
* - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; + * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; + * + * * @param values The setupErrors to add. * @return This builder for chaining. */ public Builder addAllSetupErrors( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends + com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse + .SetupError> + values) { ensureSetupErrorsIsMutable(); - for (com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError value : values) { + for (com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError + value : values) { setupErrors_.add(value.getNumber()); } onChanged(); return this; } /** + * + * *
        * Indicates SAA enrollment setup error if any.
        * 
* - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; + * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; + * + * * @return This builder for chaining. */ public Builder clearSetupErrors() { @@ -7585,23 +8992,32 @@ public Builder clearSetupErrors() { return this; } /** + * + * *
        * Indicates SAA enrollment setup error if any.
        * 
* - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; + * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; + * + * * @return A list containing the enum numeric values on the wire for setupErrors. */ - public java.util.List - getSetupErrorsValueList() { + public java.util.List getSetupErrorsValueList() { return java.util.Collections.unmodifiableList(setupErrors_); } /** + * + * *
        * Indicates SAA enrollment setup error if any.
        * 
* - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; + * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; + * + * * @param index The index of the value to return. * @return The enum numeric value on the wire of setupErrors at the given index. */ @@ -7609,28 +9025,37 @@ public int getSetupErrorsValue(int index) { return setupErrors_.get(index); } /** + * + * *
        * Indicates SAA enrollment setup error if any.
        * 
* - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; + * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; + * + * * @param index The index of the value to return. * @return The enum numeric value on the wire of setupErrors at the given index. * @return This builder for chaining. */ - public Builder setSetupErrorsValue( - int index, int value) { + public Builder setSetupErrorsValue(int index, int value) { ensureSetupErrorsIsMutable(); setupErrors_.set(index, value); onChanged(); return this; } /** + * + * *
        * Indicates SAA enrollment setup error if any.
        * 
* - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; + * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; + * + * * @param value The enum numeric value on the wire for setupErrors to add. * @return This builder for chaining. */ @@ -7641,16 +9066,20 @@ public Builder addSetupErrorsValue(int value) { return this; } /** + * + * *
        * Indicates SAA enrollment setup error if any.
        * 
* - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; + * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; + * + * * @param values The enum numeric values on the wire for setupErrors to add. * @return This builder for chaining. */ - public Builder addAllSetupErrorsValue( - java.lang.Iterable values) { + public Builder addAllSetupErrorsValue(java.lang.Iterable values) { ensureSetupErrorsIsMutable(); for (int value : values) { setupErrors_.add(value); @@ -7658,6 +9087,7 @@ public Builder addAllSetupErrorsValue( onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -7670,30 +9100,33 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse) } // @@protoc_insertion_point(class_scope:google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse) - private static final com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse DEFAULT_INSTANCE; + private static final com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse(); + DEFAULT_INSTANCE = + new com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse(); } - public static com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse getDefaultInstance() { + public static com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SaaEnrollmentResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SaaEnrollmentResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SaaEnrollmentResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SaaEnrollmentResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -7705,23 +9138,30 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse getDefaultInstanceForType() { + public com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } private int complianceRegimeSettingsCase_ = 0; private java.lang.Object complianceRegimeSettings_; + public enum ComplianceRegimeSettingsCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { - @java.lang.Deprecated IL4_SETTINGS(7), - @java.lang.Deprecated CJIS_SETTINGS(8), - @java.lang.Deprecated FEDRAMP_HIGH_SETTINGS(11), - @java.lang.Deprecated FEDRAMP_MODERATE_SETTINGS(12), + @java.lang.Deprecated + IL4_SETTINGS(7), + @java.lang.Deprecated + CJIS_SETTINGS(8), + @java.lang.Deprecated + FEDRAMP_HIGH_SETTINGS(11), + @java.lang.Deprecated + FEDRAMP_MODERATE_SETTINGS(12), COMPLIANCEREGIMESETTINGS_NOT_SET(0); private final int value; + private ComplianceRegimeSettingsCase(int value) { this.value = value; } @@ -7737,28 +9177,35 @@ public static ComplianceRegimeSettingsCase valueOf(int value) { public static ComplianceRegimeSettingsCase forNumber(int value) { switch (value) { - case 7: return IL4_SETTINGS; - case 8: return CJIS_SETTINGS; - case 11: return FEDRAMP_HIGH_SETTINGS; - case 12: return FEDRAMP_MODERATE_SETTINGS; - case 0: return COMPLIANCEREGIMESETTINGS_NOT_SET; - default: return null; + case 7: + return IL4_SETTINGS; + case 8: + return CJIS_SETTINGS; + case 11: + return FEDRAMP_HIGH_SETTINGS; + case 12: + return FEDRAMP_MODERATE_SETTINGS; + case 0: + return COMPLIANCEREGIMESETTINGS_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public ComplianceRegimeSettingsCase - getComplianceRegimeSettingsCase() { - return ComplianceRegimeSettingsCase.forNumber( - complianceRegimeSettingsCase_); + public ComplianceRegimeSettingsCase getComplianceRegimeSettingsCase() { + return ComplianceRegimeSettingsCase.forNumber(complianceRegimeSettingsCase_); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Optional. The resource name of the workload.
    * Format:
@@ -7767,6 +9214,7 @@ public int getNumber() {
    * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The name. */ @java.lang.Override @@ -7775,14 +9223,15 @@ 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; } } /** + * + * *
    * Optional. The resource name of the workload.
    * Format:
@@ -7791,16 +9240,15 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -7811,6 +9259,8 @@ public java.lang.String getName() { public static final int DISPLAY_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object displayName_; /** + * + * *
    * Required. The user-assigned display name of the Workload.
    * When present it must be between 4 to 30 characters.
@@ -7820,6 +9270,7 @@ public java.lang.String getName() {
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The displayName. */ @java.lang.Override @@ -7828,14 +9279,15 @@ public java.lang.String getDisplayName() { 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(); displayName_ = s; return s; } } /** + * + * *
    * Required. The user-assigned display name of the Workload.
    * When present it must be between 4 to 30 characters.
@@ -7845,16 +9297,15 @@ public java.lang.String getDisplayName() {
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; 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); displayName_ = b; return b; } else { @@ -7863,8 +9314,11 @@ public java.lang.String getDisplayName() { } public static final int RESOURCES_FIELD_NUMBER = 3; - private java.util.List resources_; + private java.util.List + resources_; /** + * + * *
    * Output only. The resources associated with this workload.
    * These resources will be created when creating the workload.
@@ -7872,13 +9326,18 @@ public java.lang.String getDisplayName() {
    * Always read only.
    * 
* - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.List getResourcesList() { + public java.util.List + getResourcesList() { return resources_; } /** + * + * *
    * Output only. The resources associated with this workload.
    * These resources will be created when creating the workload.
@@ -7886,14 +9345,19 @@ public java.util.List
    *
-   * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+   * 
+   * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+   * 
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List<
+          ? extends com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfoOrBuilder>
       getResourcesOrBuilderList() {
     return resources_;
   }
   /**
+   *
+   *
    * 
    * Output only. The resources associated with this workload.
    * These resources will be created when creating the workload.
@@ -7901,13 +9365,17 @@ public java.util.List
    *
-   * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+   * 
+   * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+   * 
    */
   @java.lang.Override
   public int getResourcesCount() {
     return resources_.size();
   }
   /**
+   *
+   *
    * 
    * Output only. The resources associated with this workload.
    * These resources will be created when creating the workload.
@@ -7915,13 +9383,17 @@ public int getResourcesCount() {
    * Always read only.
    * 
* - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo getResources(int index) { return resources_.get(index); } /** + * + * *
    * Output only. The resources associated with this workload.
    * These resources will be created when creating the workload.
@@ -7929,49 +9401,72 @@ public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo getResour
    * Always read only.
    * 
* - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfoOrBuilder getResourcesOrBuilder( - int index) { + public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfoOrBuilder + getResourcesOrBuilder(int index) { return resources_.get(index); } public static final int COMPLIANCE_REGIME_FIELD_NUMBER = 4; private int complianceRegime_; /** + * + * *
    * Required. Immutable. Compliance Regime associated with this workload.
    * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The enum numeric value on the wire for complianceRegime. */ - @java.lang.Override public int getComplianceRegimeValue() { + @java.lang.Override + public int getComplianceRegimeValue() { return complianceRegime_; } /** + * + * *
    * Required. Immutable. Compliance Regime associated with this workload.
    * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The complianceRegime. */ - @java.lang.Override public com.google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime getComplianceRegime() { + @java.lang.Override + public com.google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime getComplianceRegime() { @SuppressWarnings("deprecation") - com.google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime result = com.google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime.valueOf(complianceRegime_); - return result == null ? com.google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime.UNRECOGNIZED : result; + com.google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime result = + com.google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime.valueOf( + complianceRegime_); + return result == null + ? com.google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime.UNRECOGNIZED + : result; } public static final int CREATE_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. Immutable. The Workload creation timestamp.
    * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -7979,11 +9474,16 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. Immutable. The Workload creation timestamp.
    * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The createTime. */ @java.lang.Override @@ -7991,11 +9491,15 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. Immutable. The Workload creation timestamp.
    * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -8005,6 +9509,8 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int BILLING_ACCOUNT_FIELD_NUMBER = 6; private volatile java.lang.Object billingAccount_; /** + * + * *
    * Input only. The billing account used for the resources which are
    * direct children of workload. This billing account is initially associated
@@ -8017,6 +9523,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
    * 
* * string billing_account = 6 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The billingAccount. */ @java.lang.Override @@ -8025,14 +9532,15 @@ public java.lang.String getBillingAccount() { 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(); billingAccount_ = s; return s; } } /** + * + * *
    * Input only. The billing account used for the resources which are
    * direct children of workload. This billing account is initially associated
@@ -8045,16 +9553,15 @@ public java.lang.String getBillingAccount() {
    * 
* * string billing_account = 6 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The bytes for billingAccount. */ @java.lang.Override - public com.google.protobuf.ByteString - getBillingAccountBytes() { + public com.google.protobuf.ByteString getBillingAccountBytes() { java.lang.Object ref = billingAccount_; 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); billingAccount_ = b; return b; } else { @@ -8064,213 +9571,302 @@ public java.lang.String getBillingAccount() { public static final int IL4_SETTINGS_FIELD_NUMBER = 7; /** + * + * *
    * Required. Input only. Immutable. Settings specific to resources needed
    * for IL4.
    * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings il4_settings = 7 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.il4_settings is deprecated. - * See google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=455 + * + * .google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings il4_settings = 7 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.il4_settings is deprecated. See + * google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=455 * @return Whether the il4Settings field is set. */ @java.lang.Override - @java.lang.Deprecated public boolean hasIl4Settings() { + @java.lang.Deprecated + public boolean hasIl4Settings() { return complianceRegimeSettingsCase_ == 7; } /** + * + * *
    * Required. Input only. Immutable. Settings specific to resources needed
    * for IL4.
    * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings il4_settings = 7 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.il4_settings is deprecated. - * See google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=455 + * + * .google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings il4_settings = 7 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.il4_settings is deprecated. See + * google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=455 * @return The il4Settings. */ @java.lang.Override - @java.lang.Deprecated public com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings getIl4Settings() { + @java.lang.Deprecated + public com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings getIl4Settings() { if (complianceRegimeSettingsCase_ == 7) { - return (com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings) complianceRegimeSettings_; + return (com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings) + complianceRegimeSettings_; } return com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings.getDefaultInstance(); } /** + * + * *
    * Required. Input only. Immutable. Settings specific to resources needed
    * for IL4.
    * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings il4_settings = 7 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings il4_settings = 7 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ @java.lang.Override - @java.lang.Deprecated public com.google.cloud.assuredworkloads.v1beta1.Workload.IL4SettingsOrBuilder getIl4SettingsOrBuilder() { + @java.lang.Deprecated + public com.google.cloud.assuredworkloads.v1beta1.Workload.IL4SettingsOrBuilder + getIl4SettingsOrBuilder() { if (complianceRegimeSettingsCase_ == 7) { - return (com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings) complianceRegimeSettings_; + return (com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings) + complianceRegimeSettings_; } return com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings.getDefaultInstance(); } public static final int CJIS_SETTINGS_FIELD_NUMBER = 8; /** + * + * *
    * Required. Input only. Immutable. Settings specific to resources needed
    * for CJIS.
    * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings cjis_settings = 8 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.cjis_settings is deprecated. - * See google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=464 + * + * .google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings cjis_settings = 8 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.cjis_settings is deprecated. See + * google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=464 * @return Whether the cjisSettings field is set. */ @java.lang.Override - @java.lang.Deprecated public boolean hasCjisSettings() { + @java.lang.Deprecated + public boolean hasCjisSettings() { return complianceRegimeSettingsCase_ == 8; } /** + * + * *
    * Required. Input only. Immutable. Settings specific to resources needed
    * for CJIS.
    * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings cjis_settings = 8 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.cjis_settings is deprecated. - * See google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=464 + * + * .google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings cjis_settings = 8 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.cjis_settings is deprecated. See + * google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=464 * @return The cjisSettings. */ @java.lang.Override - @java.lang.Deprecated public com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings getCjisSettings() { + @java.lang.Deprecated + public com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings getCjisSettings() { if (complianceRegimeSettingsCase_ == 8) { - return (com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings) complianceRegimeSettings_; + return (com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings) + complianceRegimeSettings_; } return com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings.getDefaultInstance(); } /** + * + * *
    * Required. Input only. Immutable. Settings specific to resources needed
    * for CJIS.
    * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings cjis_settings = 8 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings cjis_settings = 8 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ @java.lang.Override - @java.lang.Deprecated public com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettingsOrBuilder getCjisSettingsOrBuilder() { + @java.lang.Deprecated + public com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettingsOrBuilder + getCjisSettingsOrBuilder() { if (complianceRegimeSettingsCase_ == 8) { - return (com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings) complianceRegimeSettings_; + return (com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings) + complianceRegimeSettings_; } return com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings.getDefaultInstance(); } public static final int FEDRAMP_HIGH_SETTINGS_FIELD_NUMBER = 11; /** + * + * *
    * Required. Input only. Immutable. Settings specific to resources needed
    * for FedRAMP High.
    * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings fedramp_high_settings = 11 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings fedramp_high_settings = 11 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.fedramp_high_settings is deprecated. * See google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=473 * @return Whether the fedrampHighSettings field is set. */ @java.lang.Override - @java.lang.Deprecated public boolean hasFedrampHighSettings() { + @java.lang.Deprecated + public boolean hasFedrampHighSettings() { return complianceRegimeSettingsCase_ == 11; } /** + * + * *
    * Required. Input only. Immutable. Settings specific to resources needed
    * for FedRAMP High.
    * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings fedramp_high_settings = 11 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings fedramp_high_settings = 11 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.fedramp_high_settings is deprecated. * See google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=473 * @return The fedrampHighSettings. */ @java.lang.Override - @java.lang.Deprecated public com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings getFedrampHighSettings() { + @java.lang.Deprecated + public com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings + getFedrampHighSettings() { if (complianceRegimeSettingsCase_ == 11) { - return (com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings) complianceRegimeSettings_; + return (com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings) + complianceRegimeSettings_; } - return com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings.getDefaultInstance(); + return com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings + .getDefaultInstance(); } /** + * + * *
    * Required. Input only. Immutable. Settings specific to resources needed
    * for FedRAMP High.
    * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings fedramp_high_settings = 11 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings fedramp_high_settings = 11 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ @java.lang.Override - @java.lang.Deprecated public com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettingsOrBuilder getFedrampHighSettingsOrBuilder() { + @java.lang.Deprecated + public com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettingsOrBuilder + getFedrampHighSettingsOrBuilder() { if (complianceRegimeSettingsCase_ == 11) { - return (com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings) complianceRegimeSettings_; + return (com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings) + complianceRegimeSettings_; } - return com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings.getDefaultInstance(); + return com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings + .getDefaultInstance(); } public static final int FEDRAMP_MODERATE_SETTINGS_FIELD_NUMBER = 12; /** + * + * *
    * Required. Input only. Immutable. Settings specific to resources needed
    * for FedRAMP Moderate.
    * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings fedramp_moderate_settings = 12 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.fedramp_moderate_settings is deprecated. - * See google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=482 + * + * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings fedramp_moderate_settings = 12 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.fedramp_moderate_settings is + * deprecated. See google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=482 * @return Whether the fedrampModerateSettings field is set. */ @java.lang.Override - @java.lang.Deprecated public boolean hasFedrampModerateSettings() { + @java.lang.Deprecated + public boolean hasFedrampModerateSettings() { return complianceRegimeSettingsCase_ == 12; } /** + * + * *
    * Required. Input only. Immutable. Settings specific to resources needed
    * for FedRAMP Moderate.
    * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings fedramp_moderate_settings = 12 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.fedramp_moderate_settings is deprecated. - * See google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=482 + * + * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings fedramp_moderate_settings = 12 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.fedramp_moderate_settings is + * deprecated. See google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=482 * @return The fedrampModerateSettings. */ @java.lang.Override - @java.lang.Deprecated public com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings getFedrampModerateSettings() { + @java.lang.Deprecated + public com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings + getFedrampModerateSettings() { if (complianceRegimeSettingsCase_ == 12) { - return (com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings) complianceRegimeSettings_; + return (com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings) + complianceRegimeSettings_; } - return com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings.getDefaultInstance(); + return com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings + .getDefaultInstance(); } /** + * + * *
    * Required. Input only. Immutable. Settings specific to resources needed
    * for FedRAMP Moderate.
    * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings fedramp_moderate_settings = 12 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings fedramp_moderate_settings = 12 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ @java.lang.Override - @java.lang.Deprecated public com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettingsOrBuilder getFedrampModerateSettingsOrBuilder() { + @java.lang.Deprecated + public com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettingsOrBuilder + getFedrampModerateSettingsOrBuilder() { if (complianceRegimeSettingsCase_ == 12) { - return (com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings) complianceRegimeSettings_; + return (com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings) + complianceRegimeSettings_; } - return com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings.getDefaultInstance(); + return com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings + .getDefaultInstance(); } public static final int ETAG_FIELD_NUMBER = 9; private volatile java.lang.Object etag_; /** + * + * *
    * Optional. ETag of the workload, it is calculated on the basis
    * of the Workload contents. It will be used in Update & Delete operations.
    * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The etag. */ @java.lang.Override @@ -8279,30 +9875,30 @@ public java.lang.String getEtag() { 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(); etag_ = s; return s; } } /** + * + * *
    * Optional. ETag of the workload, it is calculated on the basis
    * of the Workload contents. It will be used in Update & Delete operations.
    * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -8311,24 +9907,23 @@ public java.lang.String getEtag() { } public static final int LABELS_FIELD_NUMBER = 10; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_Workload_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto + .internal_static_google_cloud_assuredworkloads_v1beta1_Workload_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -8337,28 +9932,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Optional. Labels applied to the workload.
    * 
* * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; */ - @java.lang.Override - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetLabels().getMap().containsKey(key); } - /** - * Use {@link #getLabelsMap()} instead. - */ + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** + * + * *
    * Optional. Labels applied to the workload.
    * 
@@ -8366,11 +9963,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
    * Optional. Labels applied to the workload.
    * 
@@ -8378,16 +9976,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Optional. Labels applied to the workload.
    * 
@@ -8395,12 +9993,11 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -8410,6 +10007,8 @@ public java.lang.String getLabelsOrThrow( public static final int PROVISIONED_RESOURCES_PARENT_FIELD_NUMBER = 13; private volatile java.lang.Object provisionedResourcesParent_; /** + * + * *
    * Input only. The parent resource for the resources managed by this Assured
    * Workload. May be either empty or a folder resource which is a child of the
@@ -8419,7 +10018,9 @@ public java.lang.String getLabelsOrThrow(
    * folders/{folder_id}
    * 
* - * string provisioned_resources_parent = 13 [(.google.api.field_behavior) = INPUT_ONLY]; + * string provisioned_resources_parent = 13 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The provisionedResourcesParent. */ @java.lang.Override @@ -8428,14 +10029,15 @@ public java.lang.String getProvisionedResourcesParent() { 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(); provisionedResourcesParent_ = s; return s; } } /** + * + * *
    * Input only. The parent resource for the resources managed by this Assured
    * Workload. May be either empty or a folder resource which is a child of the
@@ -8445,17 +10047,17 @@ public java.lang.String getProvisionedResourcesParent() {
    * folders/{folder_id}
    * 
* - * string provisioned_resources_parent = 13 [(.google.api.field_behavior) = INPUT_ONLY]; + * string provisioned_resources_parent = 13 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The bytes for provisionedResourcesParent. */ @java.lang.Override - public com.google.protobuf.ByteString - getProvisionedResourcesParentBytes() { + public com.google.protobuf.ByteString getProvisionedResourcesParentBytes() { java.lang.Object ref = provisionedResourcesParent_; 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); provisionedResourcesParent_ = b; return b; } else { @@ -8466,13 +10068,18 @@ public java.lang.String getProvisionedResourcesParent() { public static final int KMS_SETTINGS_FIELD_NUMBER = 14; private com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kmsSettings_; /** + * + * *
    * Input only. Settings used to create a CMEK crypto key. When set a project
    * with a KMS CMEK key is provisioned. This field is mandatory for a subset of
    * Compliance Regimes.
    * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return Whether the kmsSettings field is set. */ @java.lang.Override @@ -8480,139 +10087,195 @@ public boolean hasKmsSettings() { return kmsSettings_ != null; } /** + * + * *
    * Input only. Settings used to create a CMEK crypto key. When set a project
    * with a KMS CMEK key is provisioned. This field is mandatory for a subset of
    * Compliance Regimes.
    * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The kmsSettings. */ @java.lang.Override public com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings getKmsSettings() { - return kmsSettings_ == null ? com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.getDefaultInstance() : kmsSettings_; + return kmsSettings_ == null + ? com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.getDefaultInstance() + : kmsSettings_; } /** + * + * *
    * Input only. Settings used to create a CMEK crypto key. When set a project
    * with a KMS CMEK key is provisioned. This field is mandatory for a subset of
    * Compliance Regimes.
    * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder getKmsSettingsOrBuilder() { + public com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder + getKmsSettingsOrBuilder() { return getKmsSettings(); } public static final int RESOURCE_SETTINGS_FIELD_NUMBER = 15; - private java.util.List resourceSettings_; + private java.util.List + resourceSettings_; /** + * + * *
    * Input only. Resource properties that are used to customize workload
    * resources. These properties (such as custom project id) will be used to
    * create workload resources if possible. This field is optional.
    * 
* - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ @java.lang.Override - public java.util.List getResourceSettingsList() { + public java.util.List + getResourceSettingsList() { return resourceSettings_; } /** + * + * *
    * Input only. Resource properties that are used to customize workload
    * resources. These properties (such as custom project id) will be used to
    * create workload resources if possible. This field is optional.
    * 
* - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettingsOrBuilder> getResourceSettingsOrBuilderList() { return resourceSettings_; } /** + * + * *
    * Input only. Resource properties that are used to customize workload
    * resources. These properties (such as custom project id) will be used to
    * create workload resources if possible. This field is optional.
    * 
* - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ @java.lang.Override public int getResourceSettingsCount() { return resourceSettings_.size(); } /** + * + * *
    * Input only. Resource properties that are used to customize workload
    * resources. These properties (such as custom project id) will be used to
    * create workload resources if possible. This field is optional.
    * 
* - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings getResourceSettings(int index) { + public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings getResourceSettings( + int index) { return resourceSettings_.get(index); } /** + * + * *
    * Input only. Resource properties that are used to customize workload
    * resources. These properties (such as custom project id) will be used to
    * create workload resources if possible. This field is optional.
    * 
* - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettingsOrBuilder getResourceSettingsOrBuilder( - int index) { + public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettingsOrBuilder + getResourceSettingsOrBuilder(int index) { return resourceSettings_.get(index); } public static final int KAJ_ENROLLMENT_STATE_FIELD_NUMBER = 17; private int kajEnrollmentState_; /** + * + * *
    * Output only. Represents the KAJ enrollment state of the given workload.
    * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.KajEnrollmentState kaj_enrollment_state = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.KajEnrollmentState kaj_enrollment_state = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for kajEnrollmentState. */ - @java.lang.Override public int getKajEnrollmentStateValue() { + @java.lang.Override + public int getKajEnrollmentStateValue() { return kajEnrollmentState_; } /** + * + * *
    * Output only. Represents the KAJ enrollment state of the given workload.
    * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.KajEnrollmentState kaj_enrollment_state = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.KajEnrollmentState kaj_enrollment_state = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The kajEnrollmentState. */ - @java.lang.Override public com.google.cloud.assuredworkloads.v1beta1.Workload.KajEnrollmentState getKajEnrollmentState() { + @java.lang.Override + public com.google.cloud.assuredworkloads.v1beta1.Workload.KajEnrollmentState + getKajEnrollmentState() { @SuppressWarnings("deprecation") - com.google.cloud.assuredworkloads.v1beta1.Workload.KajEnrollmentState result = com.google.cloud.assuredworkloads.v1beta1.Workload.KajEnrollmentState.valueOf(kajEnrollmentState_); - return result == null ? com.google.cloud.assuredworkloads.v1beta1.Workload.KajEnrollmentState.UNRECOGNIZED : result; + com.google.cloud.assuredworkloads.v1beta1.Workload.KajEnrollmentState result = + com.google.cloud.assuredworkloads.v1beta1.Workload.KajEnrollmentState.valueOf( + kajEnrollmentState_); + return result == null + ? com.google.cloud.assuredworkloads.v1beta1.Workload.KajEnrollmentState.UNRECOGNIZED + : result; } public static final int ENABLE_SOVEREIGN_CONTROLS_FIELD_NUMBER = 18; private boolean enableSovereignControls_; /** + * + * *
    * Optional. Indicates the sovereignty status of the given workload.
    * Currently meant to be used by Europe/Canada customers.
    * 
* * bool enable_sovereign_controls = 18 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The enableSovereignControls. */ @java.lang.Override @@ -8621,15 +10284,21 @@ public boolean getEnableSovereignControls() { } public static final int SAA_ENROLLMENT_RESPONSE_FIELD_NUMBER = 20; - private com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse saaEnrollmentResponse_; + private com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse + saaEnrollmentResponse_; /** + * + * *
    * Output only. Represents the SAA enrollment response of the given workload.
    * SAA enrollment response is queried during GetWorkload call.
    * In failure cases, user friendly error message is shown in SAA details page.
    * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the saaEnrollmentResponse field is set. */ @java.lang.Override @@ -8637,34 +10306,49 @@ public boolean hasSaaEnrollmentResponse() { return saaEnrollmentResponse_ != null; } /** + * + * *
    * Output only. Represents the SAA enrollment response of the given workload.
    * SAA enrollment response is queried during GetWorkload call.
    * In failure cases, user friendly error message is shown in SAA details page.
    * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The saaEnrollmentResponse. */ @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse getSaaEnrollmentResponse() { - return saaEnrollmentResponse_ == null ? com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.getDefaultInstance() : saaEnrollmentResponse_; + public com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse + getSaaEnrollmentResponse() { + return saaEnrollmentResponse_ == null + ? com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse + .getDefaultInstance() + : saaEnrollmentResponse_; } /** + * + * *
    * Output only. Represents the SAA enrollment response of the given workload.
    * SAA enrollment response is queried during GetWorkload call.
    * In failure cases, user friendly error message is shown in SAA details page.
    * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponseOrBuilder getSaaEnrollmentResponseOrBuilder() { + public com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponseOrBuilder + getSaaEnrollmentResponseOrBuilder() { return getSaaEnrollmentResponse(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -8676,8 +10360,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_); } @@ -8687,7 +10370,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < resources_.size(); i++) { output.writeMessage(3, resources_.get(i)); } - if (complianceRegime_ != com.google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime.COMPLIANCE_REGIME_UNSPECIFIED.getNumber()) { + if (complianceRegime_ + != com.google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime + .COMPLIANCE_REGIME_UNSPECIFIED + .getNumber()) { output.writeEnum(4, complianceRegime_); } if (createTime_ != null) { @@ -8697,25 +10383,33 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) com.google.protobuf.GeneratedMessageV3.writeString(output, 6, billingAccount_); } if (complianceRegimeSettingsCase_ == 7) { - output.writeMessage(7, (com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings) complianceRegimeSettings_); + output.writeMessage( + 7, + (com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings) + complianceRegimeSettings_); } if (complianceRegimeSettingsCase_ == 8) { - output.writeMessage(8, (com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings) complianceRegimeSettings_); + output.writeMessage( + 8, + (com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings) + complianceRegimeSettings_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, etag_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 10); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 10); if (complianceRegimeSettingsCase_ == 11) { - output.writeMessage(11, (com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings) complianceRegimeSettings_); + output.writeMessage( + 11, + (com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings) + complianceRegimeSettings_); } if (complianceRegimeSettingsCase_ == 12) { - output.writeMessage(12, (com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings) complianceRegimeSettings_); + output.writeMessage( + 12, + (com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings) + complianceRegimeSettings_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(provisionedResourcesParent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 13, provisionedResourcesParent_); @@ -8726,7 +10420,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < resourceSettings_.size(); i++) { output.writeMessage(15, resourceSettings_.get(i)); } - if (kajEnrollmentState_ != com.google.cloud.assuredworkloads.v1beta1.Workload.KajEnrollmentState.KAJ_ENROLLMENT_STATE_UNSPECIFIED.getNumber()) { + if (kajEnrollmentState_ + != com.google.cloud.assuredworkloads.v1beta1.Workload.KajEnrollmentState + .KAJ_ENROLLMENT_STATE_UNSPECIFIED + .getNumber()) { output.writeEnum(17, kajEnrollmentState_); } if (enableSovereignControls_ != false) { @@ -8751,71 +10448,84 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); } for (int i = 0; i < resources_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, resources_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, resources_.get(i)); } - if (complianceRegime_ != com.google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime.COMPLIANCE_REGIME_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, complianceRegime_); + if (complianceRegime_ + != com.google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime + .COMPLIANCE_REGIME_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, complianceRegime_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCreateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(billingAccount_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, billingAccount_); } if (complianceRegimeSettingsCase_ == 7) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, (com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings) complianceRegimeSettings_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, + (com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings) + complianceRegimeSettings_); } if (complianceRegimeSettingsCase_ == 8) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, (com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings) complianceRegimeSettings_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, + (com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings) + complianceRegimeSettings_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, etag_); } - for (java.util.Map.Entry entry - : internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry - labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, labels__); + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, labels__); } if (complianceRegimeSettingsCase_ == 11) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, (com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings) complianceRegimeSettings_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 11, + (com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings) + complianceRegimeSettings_); } if (complianceRegimeSettingsCase_ == 12) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, (com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings) complianceRegimeSettings_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 12, + (com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings) + complianceRegimeSettings_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(provisionedResourcesParent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, provisionedResourcesParent_); + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize(13, provisionedResourcesParent_); } if (kmsSettings_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(14, getKmsSettings()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getKmsSettings()); } for (int i = 0; i < resourceSettings_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(15, resourceSettings_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(15, resourceSettings_.get(i)); } - if (kajEnrollmentState_ != com.google.cloud.assuredworkloads.v1beta1.Workload.KajEnrollmentState.KAJ_ENROLLMENT_STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(17, kajEnrollmentState_); + if (kajEnrollmentState_ + != com.google.cloud.assuredworkloads.v1beta1.Workload.KajEnrollmentState + .KAJ_ENROLLMENT_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(17, kajEnrollmentState_); } if (enableSovereignControls_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(18, enableSovereignControls_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(18, enableSovereignControls_); } if (saaEnrollmentResponse_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(20, getSaaEnrollmentResponse()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(20, getSaaEnrollmentResponse()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -8825,65 +10535,52 @@ 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.assuredworkloads.v1beta1.Workload)) { return super.equals(obj); } - com.google.cloud.assuredworkloads.v1beta1.Workload other = (com.google.cloud.assuredworkloads.v1beta1.Workload) obj; + com.google.cloud.assuredworkloads.v1beta1.Workload other = + (com.google.cloud.assuredworkloads.v1beta1.Workload) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; - if (!getResourcesList() - .equals(other.getResourcesList())) return false; + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getResourcesList().equals(other.getResourcesList())) return false; if (complianceRegime_ != other.complianceRegime_) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; - } - if (!getBillingAccount() - .equals(other.getBillingAccount())) return false; - if (!getEtag() - .equals(other.getEtag())) return false; - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; - if (!getProvisionedResourcesParent() - .equals(other.getProvisionedResourcesParent())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (!getBillingAccount().equals(other.getBillingAccount())) return false; + if (!getEtag().equals(other.getEtag())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getProvisionedResourcesParent().equals(other.getProvisionedResourcesParent())) + return false; if (hasKmsSettings() != other.hasKmsSettings()) return false; if (hasKmsSettings()) { - if (!getKmsSettings() - .equals(other.getKmsSettings())) return false; + if (!getKmsSettings().equals(other.getKmsSettings())) return false; } - if (!getResourceSettingsList() - .equals(other.getResourceSettingsList())) return false; + if (!getResourceSettingsList().equals(other.getResourceSettingsList())) return false; if (kajEnrollmentState_ != other.kajEnrollmentState_) return false; - if (getEnableSovereignControls() - != other.getEnableSovereignControls()) return false; + if (getEnableSovereignControls() != other.getEnableSovereignControls()) return false; if (hasSaaEnrollmentResponse() != other.hasSaaEnrollmentResponse()) return false; if (hasSaaEnrollmentResponse()) { - if (!getSaaEnrollmentResponse() - .equals(other.getSaaEnrollmentResponse())) return false; + if (!getSaaEnrollmentResponse().equals(other.getSaaEnrollmentResponse())) return false; } - if (!getComplianceRegimeSettingsCase().equals(other.getComplianceRegimeSettingsCase())) return false; + if (!getComplianceRegimeSettingsCase().equals(other.getComplianceRegimeSettingsCase())) + return false; switch (complianceRegimeSettingsCase_) { case 7: - if (!getIl4Settings() - .equals(other.getIl4Settings())) return false; + if (!getIl4Settings().equals(other.getIl4Settings())) return false; break; case 8: - if (!getCjisSettings() - .equals(other.getCjisSettings())) return false; + if (!getCjisSettings().equals(other.getCjisSettings())) return false; break; case 11: - if (!getFedrampHighSettings() - .equals(other.getFedrampHighSettings())) return false; + if (!getFedrampHighSettings().equals(other.getFedrampHighSettings())) return false; break; case 12: - if (!getFedrampModerateSettings() - .equals(other.getFedrampModerateSettings())) return false; + if (!getFedrampModerateSettings().equals(other.getFedrampModerateSettings())) return false; break; case 0: default: @@ -8934,8 +10631,7 @@ public int hashCode() { hash = (37 * hash) + KAJ_ENROLLMENT_STATE_FIELD_NUMBER; hash = (53 * hash) + kajEnrollmentState_; hash = (37 * hash) + ENABLE_SOVEREIGN_CONTROLS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnableSovereignControls()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableSovereignControls()); if (hasSaaEnrollmentResponse()) { hash = (37 * hash) + SAA_ENROLLMENT_RESPONSE_FIELD_NUMBER; hash = (53 * hash) + getSaaEnrollmentResponse().hashCode(); @@ -8966,96 +10662,103 @@ public int hashCode() { } public static com.google.cloud.assuredworkloads.v1beta1.Workload 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.assuredworkloads.v1beta1.Workload 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.assuredworkloads.v1beta1.Workload parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.assuredworkloads.v1beta1.Workload 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.assuredworkloads.v1beta1.Workload parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.assuredworkloads.v1beta1.Workload 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.assuredworkloads.v1beta1.Workload parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.assuredworkloads.v1beta1.Workload parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.assuredworkloads.v1beta1.Workload 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.assuredworkloads.v1beta1.Workload parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.assuredworkloads.v1beta1.Workload parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.assuredworkloads.v1beta1.Workload 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.assuredworkloads.v1beta1.Workload 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.assuredworkloads.v1beta1.Workload 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.assuredworkloads.v1beta1.Workload prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * An Workload object for managing highly regulated workloads of cloud
    * customers.
@@ -9063,43 +10766,43 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.assuredworkloads.v1beta1.Workload}
    */
-  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.assuredworkloads.v1beta1.Workload)
       com.google.cloud.assuredworkloads.v1beta1.WorkloadOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_Workload_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto
+          .internal_static_google_cloud_assuredworkloads_v1beta1_Workload_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 10:
           return internalGetLabels();
         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 10:
           return internalGetMutableLabels();
         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.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_Workload_fieldAccessorTable
+      return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto
+          .internal_static_google_cloud_assuredworkloads_v1beta1_Workload_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.assuredworkloads.v1beta1.Workload.class, com.google.cloud.assuredworkloads.v1beta1.Workload.Builder.class);
+              com.google.cloud.assuredworkloads.v1beta1.Workload.class,
+              com.google.cloud.assuredworkloads.v1beta1.Workload.Builder.class);
     }
 
     // Construct using com.google.cloud.assuredworkloads.v1beta1.Workload.newBuilder()
@@ -9107,18 +10810,18 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getResourcesFieldBuilder();
         getResourceSettingsFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -9175,9 +10878,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto.internal_static_google_cloud_assuredworkloads_v1beta1_Workload_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto
+          .internal_static_google_cloud_assuredworkloads_v1beta1_Workload_descriptor;
     }
 
     @java.lang.Override
@@ -9196,7 +10899,8 @@ public com.google.cloud.assuredworkloads.v1beta1.Workload build() {
 
     @java.lang.Override
     public com.google.cloud.assuredworkloads.v1beta1.Workload buildPartial() {
-      com.google.cloud.assuredworkloads.v1beta1.Workload result = new com.google.cloud.assuredworkloads.v1beta1.Workload(this);
+      com.google.cloud.assuredworkloads.v1beta1.Workload result =
+          new com.google.cloud.assuredworkloads.v1beta1.Workload(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       result.displayName_ = displayName_;
@@ -9278,38 +10982,39 @@ public com.google.cloud.assuredworkloads.v1beta1.Workload buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.assuredworkloads.v1beta1.Workload) {
-        return mergeFrom((com.google.cloud.assuredworkloads.v1beta1.Workload)other);
+        return mergeFrom((com.google.cloud.assuredworkloads.v1beta1.Workload) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -9317,7 +11022,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.assuredworkloads.v1beta1.Workload other) {
-      if (other == com.google.cloud.assuredworkloads.v1beta1.Workload.getDefaultInstance()) return this;
+      if (other == com.google.cloud.assuredworkloads.v1beta1.Workload.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -9344,9 +11050,10 @@ public Builder mergeFrom(com.google.cloud.assuredworkloads.v1beta1.Workload othe
             resourcesBuilder_ = null;
             resources_ = other.resources_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            resourcesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getResourcesFieldBuilder() : null;
+            resourcesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getResourcesFieldBuilder()
+                    : null;
           } else {
             resourcesBuilder_.addAllMessages(other.resources_);
           }
@@ -9366,8 +11073,7 @@ public Builder mergeFrom(com.google.cloud.assuredworkloads.v1beta1.Workload othe
         etag_ = other.etag_;
         onChanged();
       }
-      internalGetMutableLabels().mergeFrom(
-          other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
       if (!other.getProvisionedResourcesParent().isEmpty()) {
         provisionedResourcesParent_ = other.provisionedResourcesParent_;
         onChanged();
@@ -9393,9 +11099,10 @@ public Builder mergeFrom(com.google.cloud.assuredworkloads.v1beta1.Workload othe
             resourceSettingsBuilder_ = null;
             resourceSettings_ = other.resourceSettings_;
             bitField0_ = (bitField0_ & ~0x00000004);
-            resourceSettingsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getResourceSettingsFieldBuilder() : null;
+            resourceSettingsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getResourceSettingsFieldBuilder()
+                    : null;
           } else {
             resourceSettingsBuilder_.addAllMessages(other.resourceSettings_);
           }
@@ -9411,25 +11118,30 @@ public Builder mergeFrom(com.google.cloud.assuredworkloads.v1beta1.Workload othe
         mergeSaaEnrollmentResponse(other.getSaaEnrollmentResponse());
       }
       switch (other.getComplianceRegimeSettingsCase()) {
-        case IL4_SETTINGS: {
-          mergeIl4Settings(other.getIl4Settings());
-          break;
-        }
-        case CJIS_SETTINGS: {
-          mergeCjisSettings(other.getCjisSettings());
-          break;
-        }
-        case FEDRAMP_HIGH_SETTINGS: {
-          mergeFedrampHighSettings(other.getFedrampHighSettings());
-          break;
-        }
-        case FEDRAMP_MODERATE_SETTINGS: {
-          mergeFedrampModerateSettings(other.getFedrampModerateSettings());
-          break;
-        }
-        case COMPLIANCEREGIMESETTINGS_NOT_SET: {
-          break;
-        }
+        case IL4_SETTINGS:
+          {
+            mergeIl4Settings(other.getIl4Settings());
+            break;
+          }
+        case CJIS_SETTINGS:
+          {
+            mergeCjisSettings(other.getCjisSettings());
+            break;
+          }
+        case FEDRAMP_HIGH_SETTINGS:
+          {
+            mergeFedrampHighSettings(other.getFedrampHighSettings());
+            break;
+          }
+        case FEDRAMP_MODERATE_SETTINGS:
+          {
+            mergeFedrampModerateSettings(other.getFedrampModerateSettings());
+            break;
+          }
+        case COMPLIANCEREGIMESETTINGS_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -9450,7 +11162,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.assuredworkloads.v1beta1.Workload) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.assuredworkloads.v1beta1.Workload) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -9459,12 +11172,12 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int complianceRegimeSettingsCase_ = 0;
     private java.lang.Object complianceRegimeSettings_;
-    public ComplianceRegimeSettingsCase
-        getComplianceRegimeSettingsCase() {
-      return ComplianceRegimeSettingsCase.forNumber(
-          complianceRegimeSettingsCase_);
+
+    public ComplianceRegimeSettingsCase getComplianceRegimeSettingsCase() {
+      return ComplianceRegimeSettingsCase.forNumber(complianceRegimeSettingsCase_);
     }
 
     public Builder clearComplianceRegimeSettings() {
@@ -9478,6 +11191,8 @@ public Builder clearComplianceRegimeSettings() {
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Optional. The resource name of the workload.
      * Format:
@@ -9486,13 +11201,13 @@ public Builder clearComplianceRegimeSettings() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; @@ -9501,6 +11216,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Optional. The resource name of the workload.
      * Format:
@@ -9509,15 +11226,14 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -9525,6 +11241,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Optional. The resource name of the workload.
      * Format:
@@ -9533,20 +11251,22 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The resource name of the workload.
      * Format:
@@ -9555,15 +11275,18 @@ public Builder setName(
      * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Optional. The resource name of the workload.
      * Format:
@@ -9572,16 +11295,16 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -9589,6 +11312,8 @@ public Builder setNameBytes( private java.lang.Object displayName_ = ""; /** + * + * *
      * Required. The user-assigned display name of the Workload.
      * When present it must be between 4 to 30 characters.
@@ -9598,13 +11323,13 @@ public Builder setNameBytes(
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; 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(); displayName_ = s; return s; @@ -9613,6 +11338,8 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Required. The user-assigned display name of the Workload.
      * When present it must be between 4 to 30 characters.
@@ -9622,15 +11349,14 @@ public java.lang.String getDisplayName() {
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; 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); displayName_ = b; return b; } else { @@ -9638,6 +11364,8 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Required. The user-assigned display name of the Workload.
      * When present it must be between 4 to 30 characters.
@@ -9647,20 +11375,22 @@ public java.lang.String getDisplayName() {
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { + public Builder setDisplayName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** + * + * *
      * Required. The user-assigned display name of the Workload.
      * When present it must be between 4 to 30 characters.
@@ -9670,15 +11400,18 @@ public Builder setDisplayName(
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** + * + * *
      * Required. The user-assigned display name of the Workload.
      * When present it must be between 4 to 30 characters.
@@ -9688,34 +11421,42 @@ public Builder clearDisplayName() {
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; } - private java.util.List resources_ = - java.util.Collections.emptyList(); + private java.util.List + resources_ = java.util.Collections.emptyList(); + private void ensureResourcesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - resources_ = new java.util.ArrayList(resources_); + resources_ = + new java.util.ArrayList< + com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo>(resources_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo, com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.Builder, com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfoOrBuilder> resourcesBuilder_; + com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo, + com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.Builder, + com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfoOrBuilder> + resourcesBuilder_; /** + * + * *
      * Output only. The resources associated with this workload.
      * These resources will be created when creating the workload.
@@ -9723,9 +11464,12 @@ private void ensureResourcesIsMutable() {
      * Always read only.
      * 
* - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List getResourcesList() { + public java.util.List + getResourcesList() { if (resourcesBuilder_ == null) { return java.util.Collections.unmodifiableList(resources_); } else { @@ -9733,6 +11477,8 @@ public java.util.List * Output only. The resources associated with this workload. * These resources will be created when creating the workload. @@ -9740,7 +11486,9 @@ public java.util.List * - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public int getResourcesCount() { if (resourcesBuilder_ == null) { @@ -9750,6 +11498,8 @@ public int getResourcesCount() { } } /** + * + * *
      * Output only. The resources associated with this workload.
      * These resources will be created when creating the workload.
@@ -9757,7 +11507,9 @@ public int getResourcesCount() {
      * Always read only.
      * 
* - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo getResources(int index) { if (resourcesBuilder_ == null) { @@ -9767,6 +11519,8 @@ public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo getResour } } /** + * + * *
      * Output only. The resources associated with this workload.
      * These resources will be created when creating the workload.
@@ -9774,7 +11528,9 @@ public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo getResour
      * Always read only.
      * 
* - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setResources( int index, com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo value) { @@ -9791,6 +11547,8 @@ public Builder setResources( return this; } /** + * + * *
      * Output only. The resources associated with this workload.
      * These resources will be created when creating the workload.
@@ -9798,10 +11556,13 @@ public Builder setResources(
      * Always read only.
      * 
* - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setResources( - int index, com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.Builder builderForValue) { + int index, + com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.Builder builderForValue) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); resources_.set(index, builderForValue.build()); @@ -9812,6 +11573,8 @@ public Builder setResources( return this; } /** + * + * *
      * Output only. The resources associated with this workload.
      * These resources will be created when creating the workload.
@@ -9819,9 +11582,12 @@ public Builder setResources(
      * Always read only.
      * 
* - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addResources(com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo value) { + public Builder addResources( + com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo value) { if (resourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -9835,6 +11601,8 @@ public Builder addResources(com.google.cloud.assuredworkloads.v1beta1.Workload.R return this; } /** + * + * *
      * Output only. The resources associated with this workload.
      * These resources will be created when creating the workload.
@@ -9842,7 +11610,9 @@ public Builder addResources(com.google.cloud.assuredworkloads.v1beta1.Workload.R
      * Always read only.
      * 
* - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addResources( int index, com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo value) { @@ -9859,6 +11629,8 @@ public Builder addResources( return this; } /** + * + * *
      * Output only. The resources associated with this workload.
      * These resources will be created when creating the workload.
@@ -9866,7 +11638,9 @@ public Builder addResources(
      * Always read only.
      * 
* - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addResources( com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.Builder builderForValue) { @@ -9880,6 +11654,8 @@ public Builder addResources( return this; } /** + * + * *
      * Output only. The resources associated with this workload.
      * These resources will be created when creating the workload.
@@ -9887,10 +11663,13 @@ public Builder addResources(
      * Always read only.
      * 
* - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addResources( - int index, com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.Builder builderForValue) { + int index, + com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.Builder builderForValue) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); resources_.add(index, builderForValue.build()); @@ -9901,6 +11680,8 @@ public Builder addResources( return this; } /** + * + * *
      * Output only. The resources associated with this workload.
      * These resources will be created when creating the workload.
@@ -9908,14 +11689,17 @@ public Builder addResources(
      * Always read only.
      * 
* - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addAllResources( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo> + values) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, resources_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, resources_); onChanged(); } else { resourcesBuilder_.addAllMessages(values); @@ -9923,6 +11707,8 @@ public Builder addAllResources( return this; } /** + * + * *
      * Output only. The resources associated with this workload.
      * These resources will be created when creating the workload.
@@ -9930,7 +11716,9 @@ public Builder addAllResources(
      * Always read only.
      * 
* - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearResources() { if (resourcesBuilder_ == null) { @@ -9943,6 +11731,8 @@ public Builder clearResources() { return this; } /** + * + * *
      * Output only. The resources associated with this workload.
      * These resources will be created when creating the workload.
@@ -9950,7 +11740,9 @@ public Builder clearResources() {
      * Always read only.
      * 
* - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder removeResources(int index) { if (resourcesBuilder_ == null) { @@ -9963,6 +11755,8 @@ public Builder removeResources(int index) { return this; } /** + * + * *
      * Output only. The resources associated with this workload.
      * These resources will be created when creating the workload.
@@ -9970,13 +11764,17 @@ public Builder removeResources(int index) {
      * Always read only.
      * 
* - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.Builder getResourcesBuilder( - int index) { + public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.Builder + getResourcesBuilder(int index) { return getResourcesFieldBuilder().getBuilder(index); } /** + * + * *
      * Output only. The resources associated with this workload.
      * These resources will be created when creating the workload.
@@ -9984,16 +11782,21 @@ public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.Builder g
      * Always read only.
      * 
* - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfoOrBuilder getResourcesOrBuilder( - int index) { + public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfoOrBuilder + getResourcesOrBuilder(int index) { if (resourcesBuilder_ == null) { - return resources_.get(index); } else { + return resources_.get(index); + } else { return resourcesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Output only. The resources associated with this workload.
      * These resources will be created when creating the workload.
@@ -10001,10 +11804,13 @@ public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfoOrBuilder
      * Always read only.
      * 
* - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getResourcesOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfoOrBuilder> + getResourcesOrBuilderList() { if (resourcesBuilder_ != null) { return resourcesBuilder_.getMessageOrBuilderList(); } else { @@ -10012,6 +11818,8 @@ public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfoOrBuilder } } /** + * + * *
      * Output only. The resources associated with this workload.
      * These resources will be created when creating the workload.
@@ -10019,13 +11827,19 @@ public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfoOrBuilder
      * Always read only.
      * 
* - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.Builder addResourcesBuilder() { - return getResourcesFieldBuilder().addBuilder( - com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.getDefaultInstance()); + public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.Builder + addResourcesBuilder() { + return getResourcesFieldBuilder() + .addBuilder( + com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.getDefaultInstance()); } /** + * + * *
      * Output only. The resources associated with this workload.
      * These resources will be created when creating the workload.
@@ -10033,14 +11847,20 @@ public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.Builder a
      * Always read only.
      * 
* - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.Builder addResourcesBuilder( - int index) { - return getResourcesFieldBuilder().addBuilder( - index, com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.getDefaultInstance()); + public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.Builder + addResourcesBuilder(int index) { + return getResourcesFieldBuilder() + .addBuilder( + index, + com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.getDefaultInstance()); } /** + * + * *
      * Output only. The resources associated with this workload.
      * These resources will be created when creating the workload.
@@ -10048,22 +11868,27 @@ public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.Builder a
      * Always read only.
      * 
* - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getResourcesBuilderList() { + public java.util.List + getResourcesBuilderList() { return getResourcesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo, com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.Builder, com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfoOrBuilder> + com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo, + com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.Builder, + com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfoOrBuilder> getResourcesFieldBuilder() { if (resourcesBuilder_ == null) { - resourcesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo, com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.Builder, com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfoOrBuilder>( - resources_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + resourcesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo, + com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.Builder, + com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfoOrBuilder>( + resources_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); resources_ = null; } return resourcesBuilder_; @@ -10071,73 +11896,105 @@ public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.Builder a private int complianceRegime_ = 0; /** + * + * *
      * Required. Immutable. Compliance Regime associated with this workload.
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The enum numeric value on the wire for complianceRegime. */ - @java.lang.Override public int getComplianceRegimeValue() { + @java.lang.Override + public int getComplianceRegimeValue() { return complianceRegime_; } /** + * + * *
      * Required. Immutable. Compliance Regime associated with this workload.
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @param value The enum numeric value on the wire for complianceRegime to set. * @return This builder for chaining. */ public Builder setComplianceRegimeValue(int value) { - + complianceRegime_ = value; onChanged(); return this; } /** + * + * *
      * Required. Immutable. Compliance Regime associated with this workload.
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The complianceRegime. */ @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime getComplianceRegime() { + public com.google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime + getComplianceRegime() { @SuppressWarnings("deprecation") - com.google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime result = com.google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime.valueOf(complianceRegime_); - return result == null ? com.google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime.UNRECOGNIZED : result; + com.google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime result = + com.google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime.valueOf( + complianceRegime_); + return result == null + ? com.google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime.UNRECOGNIZED + : result; } /** + * + * *
      * Required. Immutable. Compliance Regime associated with this workload.
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @param value The complianceRegime to set. * @return This builder for chaining. */ - public Builder setComplianceRegime(com.google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime value) { + public Builder setComplianceRegime( + com.google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime value) { if (value == null) { throw new NullPointerException(); } - + complianceRegime_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Required. Immutable. Compliance Regime associated with this workload.
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return This builder for chaining. */ public Builder clearComplianceRegime() { - + complianceRegime_ = 0; onChanged(); return this; @@ -10145,39 +12002,58 @@ public Builder clearComplianceRegime() { 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. Immutable. The Workload creation timestamp.
      * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** + * + * *
      * Output only. Immutable. The Workload creation timestamp.
      * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @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. Immutable. The Workload creation timestamp.
      * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -10193,14 +12069,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Immutable. The Workload creation timestamp.
      * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -10211,17 +12090,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. Immutable. The Workload creation timestamp.
      * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -10233,11 +12116,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Immutable. The Workload creation timestamp.
      * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -10251,48 +12138,64 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. Immutable. The Workload creation timestamp.
      * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Immutable. The Workload creation timestamp.
      * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ 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. Immutable. The Workload creation timestamp.
      * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ 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_; @@ -10300,6 +12203,8 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private java.lang.Object billingAccount_ = ""; /** + * + * *
      * Input only. The billing account used for the resources which are
      * direct children of workload. This billing account is initially associated
@@ -10312,13 +12217,13 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
      * 
* * string billing_account = 6 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The billingAccount. */ public java.lang.String getBillingAccount() { java.lang.Object ref = billingAccount_; 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(); billingAccount_ = s; return s; @@ -10327,6 +12232,8 @@ public java.lang.String getBillingAccount() { } } /** + * + * *
      * Input only. The billing account used for the resources which are
      * direct children of workload. This billing account is initially associated
@@ -10339,15 +12246,14 @@ public java.lang.String getBillingAccount() {
      * 
* * string billing_account = 6 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The bytes for billingAccount. */ - public com.google.protobuf.ByteString - getBillingAccountBytes() { + public com.google.protobuf.ByteString getBillingAccountBytes() { java.lang.Object ref = billingAccount_; 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); billingAccount_ = b; return b; } else { @@ -10355,6 +12261,8 @@ public java.lang.String getBillingAccount() { } } /** + * + * *
      * Input only. The billing account used for the resources which are
      * direct children of workload. This billing account is initially associated
@@ -10367,20 +12275,22 @@ public java.lang.String getBillingAccount() {
      * 
* * string billing_account = 6 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @param value The billingAccount to set. * @return This builder for chaining. */ - public Builder setBillingAccount( - java.lang.String value) { + public Builder setBillingAccount(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + billingAccount_ = value; onChanged(); return this; } /** + * + * *
      * Input only. The billing account used for the resources which are
      * direct children of workload. This billing account is initially associated
@@ -10393,15 +12303,18 @@ public Builder setBillingAccount(
      * 
* * string billing_account = 6 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearBillingAccount() { - + billingAccount_ = getDefaultInstance().getBillingAccount(); onChanged(); return this; } /** + * + * *
      * Input only. The billing account used for the resources which are
      * direct children of workload. This billing account is initially associated
@@ -10414,54 +12327,70 @@ public Builder clearBillingAccount() {
      * 
* * string billing_account = 6 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @param value The bytes for billingAccount to set. * @return This builder for chaining. */ - public Builder setBillingAccountBytes( - com.google.protobuf.ByteString value) { + public Builder setBillingAccountBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + billingAccount_ = value; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings, com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings.Builder, com.google.cloud.assuredworkloads.v1beta1.Workload.IL4SettingsOrBuilder> il4SettingsBuilder_; + com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings, + com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings.Builder, + com.google.cloud.assuredworkloads.v1beta1.Workload.IL4SettingsOrBuilder> + il4SettingsBuilder_; /** + * + * *
      * Required. Input only. Immutable. Settings specific to resources needed
      * for IL4.
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings il4_settings = 7 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.il4_settings is deprecated. - * See google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=455 + * + * .google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings il4_settings = 7 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.il4_settings is deprecated. See + * google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=455 * @return Whether the il4Settings field is set. */ @java.lang.Override - @java.lang.Deprecated public boolean hasIl4Settings() { + @java.lang.Deprecated + public boolean hasIl4Settings() { return complianceRegimeSettingsCase_ == 7; } /** + * + * *
      * Required. Input only. Immutable. Settings specific to resources needed
      * for IL4.
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings il4_settings = 7 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.il4_settings is deprecated. - * See google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=455 + * + * .google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings il4_settings = 7 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.il4_settings is deprecated. See + * google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=455 * @return The il4Settings. */ @java.lang.Override - @java.lang.Deprecated public com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings getIl4Settings() { + @java.lang.Deprecated + public com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings getIl4Settings() { if (il4SettingsBuilder_ == null) { if (complianceRegimeSettingsCase_ == 7) { - return (com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings) complianceRegimeSettings_; + return (com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings) + complianceRegimeSettings_; } return com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings.getDefaultInstance(); } else { @@ -10472,14 +12401,20 @@ public Builder setBillingAccountBytes( } } /** + * + * *
      * Required. Input only. Immutable. Settings specific to resources needed
      * for IL4.
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings il4_settings = 7 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings il4_settings = 7 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ - @java.lang.Deprecated public Builder setIl4Settings(com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings value) { + @java.lang.Deprecated + public Builder setIl4Settings( + com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings value) { if (il4SettingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -10493,14 +12428,19 @@ public Builder setBillingAccountBytes( return this; } /** + * + * *
      * Required. Input only. Immutable. Settings specific to resources needed
      * for IL4.
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings il4_settings = 7 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings il4_settings = 7 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ - @java.lang.Deprecated public Builder setIl4Settings( + @java.lang.Deprecated + public Builder setIl4Settings( com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings.Builder builderForValue) { if (il4SettingsBuilder_ == null) { complianceRegimeSettings_ = builderForValue.build(); @@ -10512,19 +12452,31 @@ public Builder setBillingAccountBytes( return this; } /** + * + * *
      * Required. Input only. Immutable. Settings specific to resources needed
      * for IL4.
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings il4_settings = 7 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings il4_settings = 7 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ - @java.lang.Deprecated public Builder mergeIl4Settings(com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings value) { + @java.lang.Deprecated + public Builder mergeIl4Settings( + com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings value) { if (il4SettingsBuilder_ == null) { - if (complianceRegimeSettingsCase_ == 7 && - complianceRegimeSettings_ != com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings.getDefaultInstance()) { - complianceRegimeSettings_ = com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings.newBuilder((com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings) complianceRegimeSettings_) - .mergeFrom(value).buildPartial(); + if (complianceRegimeSettingsCase_ == 7 + && complianceRegimeSettings_ + != com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings + .getDefaultInstance()) { + complianceRegimeSettings_ = + com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings.newBuilder( + (com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings) + complianceRegimeSettings_) + .mergeFrom(value) + .buildPartial(); } else { complianceRegimeSettings_ = value; } @@ -10540,14 +12492,19 @@ public Builder setBillingAccountBytes( return this; } /** + * + * *
      * Required. Input only. Immutable. Settings specific to resources needed
      * for IL4.
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings il4_settings = 7 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings il4_settings = 7 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ - @java.lang.Deprecated public Builder clearIl4Settings() { + @java.lang.Deprecated + public Builder clearIl4Settings() { if (il4SettingsBuilder_ == null) { if (complianceRegimeSettingsCase_ == 7) { complianceRegimeSettingsCase_ = 0; @@ -10564,95 +12521,136 @@ public Builder setBillingAccountBytes( return this; } /** + * + * *
      * Required. Input only. Immutable. Settings specific to resources needed
      * for IL4.
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings il4_settings = 7 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings il4_settings = 7 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ - @java.lang.Deprecated public com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings.Builder getIl4SettingsBuilder() { + @java.lang.Deprecated + public com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings.Builder + getIl4SettingsBuilder() { return getIl4SettingsFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Input only. Immutable. Settings specific to resources needed
      * for IL4.
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings il4_settings = 7 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings il4_settings = 7 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ @java.lang.Override - @java.lang.Deprecated public com.google.cloud.assuredworkloads.v1beta1.Workload.IL4SettingsOrBuilder getIl4SettingsOrBuilder() { + @java.lang.Deprecated + public com.google.cloud.assuredworkloads.v1beta1.Workload.IL4SettingsOrBuilder + getIl4SettingsOrBuilder() { if ((complianceRegimeSettingsCase_ == 7) && (il4SettingsBuilder_ != null)) { return il4SettingsBuilder_.getMessageOrBuilder(); } else { if (complianceRegimeSettingsCase_ == 7) { - return (com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings) complianceRegimeSettings_; + return (com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings) + complianceRegimeSettings_; } return com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings.getDefaultInstance(); } } /** + * + * *
      * Required. Input only. Immutable. Settings specific to resources needed
      * for IL4.
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings il4_settings = 7 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings il4_settings = 7 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings, com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings.Builder, com.google.cloud.assuredworkloads.v1beta1.Workload.IL4SettingsOrBuilder> + com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings, + com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings.Builder, + com.google.cloud.assuredworkloads.v1beta1.Workload.IL4SettingsOrBuilder> getIl4SettingsFieldBuilder() { if (il4SettingsBuilder_ == null) { if (!(complianceRegimeSettingsCase_ == 7)) { - complianceRegimeSettings_ = com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings.getDefaultInstance(); - } - il4SettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings, com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings.Builder, com.google.cloud.assuredworkloads.v1beta1.Workload.IL4SettingsOrBuilder>( - (com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings) complianceRegimeSettings_, + complianceRegimeSettings_ = + com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings.getDefaultInstance(); + } + il4SettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings, + com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings.Builder, + com.google.cloud.assuredworkloads.v1beta1.Workload.IL4SettingsOrBuilder>( + (com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings) + complianceRegimeSettings_, getParentForChildren(), isClean()); complianceRegimeSettings_ = null; } complianceRegimeSettingsCase_ = 7; - onChanged();; + onChanged(); + ; return il4SettingsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings, com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings.Builder, com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettingsOrBuilder> cjisSettingsBuilder_; + com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings, + com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings.Builder, + com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettingsOrBuilder> + cjisSettingsBuilder_; /** + * + * *
      * Required. Input only. Immutable. Settings specific to resources needed
      * for CJIS.
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings cjis_settings = 8 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.cjis_settings is deprecated. - * See google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=464 + * + * .google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings cjis_settings = 8 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.cjis_settings is deprecated. See + * google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=464 * @return Whether the cjisSettings field is set. */ @java.lang.Override - @java.lang.Deprecated public boolean hasCjisSettings() { + @java.lang.Deprecated + public boolean hasCjisSettings() { return complianceRegimeSettingsCase_ == 8; } /** + * + * *
      * Required. Input only. Immutable. Settings specific to resources needed
      * for CJIS.
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings cjis_settings = 8 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.cjis_settings is deprecated. - * See google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=464 + * + * .google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings cjis_settings = 8 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.cjis_settings is deprecated. See + * google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=464 * @return The cjisSettings. */ @java.lang.Override - @java.lang.Deprecated public com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings getCjisSettings() { + @java.lang.Deprecated + public com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings getCjisSettings() { if (cjisSettingsBuilder_ == null) { if (complianceRegimeSettingsCase_ == 8) { - return (com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings) complianceRegimeSettings_; + return (com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings) + complianceRegimeSettings_; } return com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings.getDefaultInstance(); } else { @@ -10663,14 +12661,20 @@ public Builder setBillingAccountBytes( } } /** + * + * *
      * Required. Input only. Immutable. Settings specific to resources needed
      * for CJIS.
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings cjis_settings = 8 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings cjis_settings = 8 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ - @java.lang.Deprecated public Builder setCjisSettings(com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings value) { + @java.lang.Deprecated + public Builder setCjisSettings( + com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings value) { if (cjisSettingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -10684,14 +12688,19 @@ public Builder setBillingAccountBytes( return this; } /** + * + * *
      * Required. Input only. Immutable. Settings specific to resources needed
      * for CJIS.
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings cjis_settings = 8 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings cjis_settings = 8 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ - @java.lang.Deprecated public Builder setCjisSettings( + @java.lang.Deprecated + public Builder setCjisSettings( com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings.Builder builderForValue) { if (cjisSettingsBuilder_ == null) { complianceRegimeSettings_ = builderForValue.build(); @@ -10703,19 +12712,31 @@ public Builder setBillingAccountBytes( return this; } /** + * + * *
      * Required. Input only. Immutable. Settings specific to resources needed
      * for CJIS.
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings cjis_settings = 8 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings cjis_settings = 8 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ - @java.lang.Deprecated public Builder mergeCjisSettings(com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings value) { + @java.lang.Deprecated + public Builder mergeCjisSettings( + com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings value) { if (cjisSettingsBuilder_ == null) { - if (complianceRegimeSettingsCase_ == 8 && - complianceRegimeSettings_ != com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings.getDefaultInstance()) { - complianceRegimeSettings_ = com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings.newBuilder((com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings) complianceRegimeSettings_) - .mergeFrom(value).buildPartial(); + if (complianceRegimeSettingsCase_ == 8 + && complianceRegimeSettings_ + != com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings + .getDefaultInstance()) { + complianceRegimeSettings_ = + com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings.newBuilder( + (com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings) + complianceRegimeSettings_) + .mergeFrom(value) + .buildPartial(); } else { complianceRegimeSettings_ = value; } @@ -10731,14 +12752,19 @@ public Builder setBillingAccountBytes( return this; } /** + * + * *
      * Required. Input only. Immutable. Settings specific to resources needed
      * for CJIS.
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings cjis_settings = 8 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings cjis_settings = 8 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ - @java.lang.Deprecated public Builder clearCjisSettings() { + @java.lang.Deprecated + public Builder clearCjisSettings() { if (cjisSettingsBuilder_ == null) { if (complianceRegimeSettingsCase_ == 8) { complianceRegimeSettingsCase_ = 0; @@ -10755,113 +12781,163 @@ public Builder setBillingAccountBytes( return this; } /** + * + * *
      * Required. Input only. Immutable. Settings specific to resources needed
      * for CJIS.
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings cjis_settings = 8 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings cjis_settings = 8 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ - @java.lang.Deprecated public com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings.Builder getCjisSettingsBuilder() { + @java.lang.Deprecated + public com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings.Builder + getCjisSettingsBuilder() { return getCjisSettingsFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Input only. Immutable. Settings specific to resources needed
      * for CJIS.
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings cjis_settings = 8 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings cjis_settings = 8 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ @java.lang.Override - @java.lang.Deprecated public com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettingsOrBuilder getCjisSettingsOrBuilder() { + @java.lang.Deprecated + public com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettingsOrBuilder + getCjisSettingsOrBuilder() { if ((complianceRegimeSettingsCase_ == 8) && (cjisSettingsBuilder_ != null)) { return cjisSettingsBuilder_.getMessageOrBuilder(); } else { if (complianceRegimeSettingsCase_ == 8) { - return (com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings) complianceRegimeSettings_; + return (com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings) + complianceRegimeSettings_; } return com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings.getDefaultInstance(); } } /** + * + * *
      * Required. Input only. Immutable. Settings specific to resources needed
      * for CJIS.
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings cjis_settings = 8 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings cjis_settings = 8 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings, com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings.Builder, com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettingsOrBuilder> + com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings, + com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings.Builder, + com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettingsOrBuilder> getCjisSettingsFieldBuilder() { if (cjisSettingsBuilder_ == null) { if (!(complianceRegimeSettingsCase_ == 8)) { - complianceRegimeSettings_ = com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings.getDefaultInstance(); - } - cjisSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings, com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings.Builder, com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettingsOrBuilder>( - (com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings) complianceRegimeSettings_, + complianceRegimeSettings_ = + com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings.getDefaultInstance(); + } + cjisSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings, + com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings.Builder, + com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettingsOrBuilder>( + (com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings) + complianceRegimeSettings_, getParentForChildren(), isClean()); complianceRegimeSettings_ = null; } complianceRegimeSettingsCase_ = 8; - onChanged();; + onChanged(); + ; return cjisSettingsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings, com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings.Builder, com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettingsOrBuilder> fedrampHighSettingsBuilder_; + com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings, + com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings.Builder, + com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettingsOrBuilder> + fedrampHighSettingsBuilder_; /** + * + * *
      * Required. Input only. Immutable. Settings specific to resources needed
      * for FedRAMP High.
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings fedramp_high_settings = 11 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.fedramp_high_settings is deprecated. - * See google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=473 + * + * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings fedramp_high_settings = 11 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.fedramp_high_settings is + * deprecated. See google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=473 * @return Whether the fedrampHighSettings field is set. */ @java.lang.Override - @java.lang.Deprecated public boolean hasFedrampHighSettings() { + @java.lang.Deprecated + public boolean hasFedrampHighSettings() { return complianceRegimeSettingsCase_ == 11; } /** + * + * *
      * Required. Input only. Immutable. Settings specific to resources needed
      * for FedRAMP High.
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings fedramp_high_settings = 11 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.fedramp_high_settings is deprecated. - * See google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=473 + * + * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings fedramp_high_settings = 11 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.fedramp_high_settings is + * deprecated. See google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=473 * @return The fedrampHighSettings. */ @java.lang.Override - @java.lang.Deprecated public com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings getFedrampHighSettings() { + @java.lang.Deprecated + public com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings + getFedrampHighSettings() { if (fedrampHighSettingsBuilder_ == null) { if (complianceRegimeSettingsCase_ == 11) { - return (com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings) complianceRegimeSettings_; + return (com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings) + complianceRegimeSettings_; } - return com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings.getDefaultInstance(); + return com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings + .getDefaultInstance(); } else { if (complianceRegimeSettingsCase_ == 11) { return fedrampHighSettingsBuilder_.getMessage(); } - return com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings.getDefaultInstance(); + return com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings + .getDefaultInstance(); } } /** + * + * *
      * Required. Input only. Immutable. Settings specific to resources needed
      * for FedRAMP High.
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings fedramp_high_settings = 11 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings fedramp_high_settings = 11 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ - @java.lang.Deprecated public Builder setFedrampHighSettings(com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings value) { + @java.lang.Deprecated + public Builder setFedrampHighSettings( + com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings value) { if (fedrampHighSettingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -10875,15 +12951,21 @@ public Builder setBillingAccountBytes( return this; } /** + * + * *
      * Required. Input only. Immutable. Settings specific to resources needed
      * for FedRAMP High.
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings fedramp_high_settings = 11 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings fedramp_high_settings = 11 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ - @java.lang.Deprecated public Builder setFedrampHighSettings( - com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings.Builder builderForValue) { + @java.lang.Deprecated + public Builder setFedrampHighSettings( + com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings.Builder + builderForValue) { if (fedrampHighSettingsBuilder_ == null) { complianceRegimeSettings_ = builderForValue.build(); onChanged(); @@ -10894,19 +12976,31 @@ public Builder setBillingAccountBytes( return this; } /** + * + * *
      * Required. Input only. Immutable. Settings specific to resources needed
      * for FedRAMP High.
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings fedramp_high_settings = 11 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings fedramp_high_settings = 11 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ - @java.lang.Deprecated public Builder mergeFedrampHighSettings(com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings value) { + @java.lang.Deprecated + public Builder mergeFedrampHighSettings( + com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings value) { if (fedrampHighSettingsBuilder_ == null) { - if (complianceRegimeSettingsCase_ == 11 && - complianceRegimeSettings_ != com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings.getDefaultInstance()) { - complianceRegimeSettings_ = com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings.newBuilder((com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings) complianceRegimeSettings_) - .mergeFrom(value).buildPartial(); + if (complianceRegimeSettingsCase_ == 11 + && complianceRegimeSettings_ + != com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings + .getDefaultInstance()) { + complianceRegimeSettings_ = + com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings.newBuilder( + (com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings) + complianceRegimeSettings_) + .mergeFrom(value) + .buildPartial(); } else { complianceRegimeSettings_ = value; } @@ -10922,14 +13016,19 @@ public Builder setBillingAccountBytes( return this; } /** + * + * *
      * Required. Input only. Immutable. Settings specific to resources needed
      * for FedRAMP High.
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings fedramp_high_settings = 11 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings fedramp_high_settings = 11 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ - @java.lang.Deprecated public Builder clearFedrampHighSettings() { + @java.lang.Deprecated + public Builder clearFedrampHighSettings() { if (fedrampHighSettingsBuilder_ == null) { if (complianceRegimeSettingsCase_ == 11) { complianceRegimeSettingsCase_ = 0; @@ -10946,113 +13045,165 @@ public Builder setBillingAccountBytes( return this; } /** + * + * *
      * Required. Input only. Immutable. Settings specific to resources needed
      * for FedRAMP High.
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings fedramp_high_settings = 11 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings fedramp_high_settings = 11 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ - @java.lang.Deprecated public com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings.Builder getFedrampHighSettingsBuilder() { + @java.lang.Deprecated + public com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings.Builder + getFedrampHighSettingsBuilder() { return getFedrampHighSettingsFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Input only. Immutable. Settings specific to resources needed
      * for FedRAMP High.
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings fedramp_high_settings = 11 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings fedramp_high_settings = 11 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ @java.lang.Override - @java.lang.Deprecated public com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettingsOrBuilder getFedrampHighSettingsOrBuilder() { + @java.lang.Deprecated + public com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettingsOrBuilder + getFedrampHighSettingsOrBuilder() { if ((complianceRegimeSettingsCase_ == 11) && (fedrampHighSettingsBuilder_ != null)) { return fedrampHighSettingsBuilder_.getMessageOrBuilder(); } else { if (complianceRegimeSettingsCase_ == 11) { - return (com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings) complianceRegimeSettings_; + return (com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings) + complianceRegimeSettings_; } - return com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings.getDefaultInstance(); + return com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings + .getDefaultInstance(); } } /** + * + * *
      * Required. Input only. Immutable. Settings specific to resources needed
      * for FedRAMP High.
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings fedramp_high_settings = 11 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings fedramp_high_settings = 11 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings, com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings.Builder, com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettingsOrBuilder> + com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings, + com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings.Builder, + com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettingsOrBuilder> getFedrampHighSettingsFieldBuilder() { if (fedrampHighSettingsBuilder_ == null) { if (!(complianceRegimeSettingsCase_ == 11)) { - complianceRegimeSettings_ = com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings.getDefaultInstance(); - } - fedrampHighSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings, com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings.Builder, com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettingsOrBuilder>( - (com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings) complianceRegimeSettings_, + complianceRegimeSettings_ = + com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings + .getDefaultInstance(); + } + fedrampHighSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings, + com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings.Builder, + com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettingsOrBuilder>( + (com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings) + complianceRegimeSettings_, getParentForChildren(), isClean()); complianceRegimeSettings_ = null; } complianceRegimeSettingsCase_ = 11; - onChanged();; + onChanged(); + ; return fedrampHighSettingsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings, com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings.Builder, com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettingsOrBuilder> fedrampModerateSettingsBuilder_; + com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings, + com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings.Builder, + com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettingsOrBuilder> + fedrampModerateSettingsBuilder_; /** + * + * *
      * Required. Input only. Immutable. Settings specific to resources needed
      * for FedRAMP Moderate.
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings fedramp_moderate_settings = 12 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.fedramp_moderate_settings is deprecated. - * See google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=482 + * + * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings fedramp_moderate_settings = 12 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.fedramp_moderate_settings is + * deprecated. See google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=482 * @return Whether the fedrampModerateSettings field is set. */ @java.lang.Override - @java.lang.Deprecated public boolean hasFedrampModerateSettings() { + @java.lang.Deprecated + public boolean hasFedrampModerateSettings() { return complianceRegimeSettingsCase_ == 12; } /** + * + * *
      * Required. Input only. Immutable. Settings specific to resources needed
      * for FedRAMP Moderate.
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings fedramp_moderate_settings = 12 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.fedramp_moderate_settings is deprecated. - * See google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=482 + * + * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings fedramp_moderate_settings = 12 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.fedramp_moderate_settings is + * deprecated. See google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=482 * @return The fedrampModerateSettings. */ @java.lang.Override - @java.lang.Deprecated public com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings getFedrampModerateSettings() { + @java.lang.Deprecated + public com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings + getFedrampModerateSettings() { if (fedrampModerateSettingsBuilder_ == null) { if (complianceRegimeSettingsCase_ == 12) { - return (com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings) complianceRegimeSettings_; + return (com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings) + complianceRegimeSettings_; } - return com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings.getDefaultInstance(); + return com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings + .getDefaultInstance(); } else { if (complianceRegimeSettingsCase_ == 12) { return fedrampModerateSettingsBuilder_.getMessage(); } - return com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings.getDefaultInstance(); + return com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings + .getDefaultInstance(); } } /** + * + * *
      * Required. Input only. Immutable. Settings specific to resources needed
      * for FedRAMP Moderate.
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings fedramp_moderate_settings = 12 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings fedramp_moderate_settings = 12 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ - @java.lang.Deprecated public Builder setFedrampModerateSettings(com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings value) { + @java.lang.Deprecated + public Builder setFedrampModerateSettings( + com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings value) { if (fedrampModerateSettingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -11066,15 +13217,21 @@ public Builder setBillingAccountBytes( return this; } /** + * + * *
      * Required. Input only. Immutable. Settings specific to resources needed
      * for FedRAMP Moderate.
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings fedramp_moderate_settings = 12 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings fedramp_moderate_settings = 12 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ - @java.lang.Deprecated public Builder setFedrampModerateSettings( - com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings.Builder builderForValue) { + @java.lang.Deprecated + public Builder setFedrampModerateSettings( + com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings.Builder + builderForValue) { if (fedrampModerateSettingsBuilder_ == null) { complianceRegimeSettings_ = builderForValue.build(); onChanged(); @@ -11085,19 +13242,31 @@ public Builder setBillingAccountBytes( return this; } /** + * + * *
      * Required. Input only. Immutable. Settings specific to resources needed
      * for FedRAMP Moderate.
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings fedramp_moderate_settings = 12 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings fedramp_moderate_settings = 12 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ - @java.lang.Deprecated public Builder mergeFedrampModerateSettings(com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings value) { + @java.lang.Deprecated + public Builder mergeFedrampModerateSettings( + com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings value) { if (fedrampModerateSettingsBuilder_ == null) { - if (complianceRegimeSettingsCase_ == 12 && - complianceRegimeSettings_ != com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings.getDefaultInstance()) { - complianceRegimeSettings_ = com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings.newBuilder((com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings) complianceRegimeSettings_) - .mergeFrom(value).buildPartial(); + if (complianceRegimeSettingsCase_ == 12 + && complianceRegimeSettings_ + != com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings + .getDefaultInstance()) { + complianceRegimeSettings_ = + com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings.newBuilder( + (com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings) + complianceRegimeSettings_) + .mergeFrom(value) + .buildPartial(); } else { complianceRegimeSettings_ = value; } @@ -11113,14 +13282,19 @@ public Builder setBillingAccountBytes( return this; } /** + * + * *
      * Required. Input only. Immutable. Settings specific to resources needed
      * for FedRAMP Moderate.
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings fedramp_moderate_settings = 12 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings fedramp_moderate_settings = 12 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ - @java.lang.Deprecated public Builder clearFedrampModerateSettings() { + @java.lang.Deprecated + public Builder clearFedrampModerateSettings() { if (fedrampModerateSettingsBuilder_ == null) { if (complianceRegimeSettingsCase_ == 12) { complianceRegimeSettingsCase_ = 0; @@ -11137,77 +13311,107 @@ public Builder setBillingAccountBytes( return this; } /** + * + * *
      * Required. Input only. Immutable. Settings specific to resources needed
      * for FedRAMP Moderate.
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings fedramp_moderate_settings = 12 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings fedramp_moderate_settings = 12 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ - @java.lang.Deprecated public com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings.Builder getFedrampModerateSettingsBuilder() { + @java.lang.Deprecated + public com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings.Builder + getFedrampModerateSettingsBuilder() { return getFedrampModerateSettingsFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Input only. Immutable. Settings specific to resources needed
      * for FedRAMP Moderate.
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings fedramp_moderate_settings = 12 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings fedramp_moderate_settings = 12 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ @java.lang.Override - @java.lang.Deprecated public com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettingsOrBuilder getFedrampModerateSettingsOrBuilder() { + @java.lang.Deprecated + public com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettingsOrBuilder + getFedrampModerateSettingsOrBuilder() { if ((complianceRegimeSettingsCase_ == 12) && (fedrampModerateSettingsBuilder_ != null)) { return fedrampModerateSettingsBuilder_.getMessageOrBuilder(); } else { if (complianceRegimeSettingsCase_ == 12) { - return (com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings) complianceRegimeSettings_; + return (com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings) + complianceRegimeSettings_; } - return com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings.getDefaultInstance(); + return com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings + .getDefaultInstance(); } } /** + * + * *
      * Required. Input only. Immutable. Settings specific to resources needed
      * for FedRAMP Moderate.
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings fedramp_moderate_settings = 12 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings fedramp_moderate_settings = 12 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings, com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings.Builder, com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettingsOrBuilder> + com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings, + com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings.Builder, + com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettingsOrBuilder> getFedrampModerateSettingsFieldBuilder() { if (fedrampModerateSettingsBuilder_ == null) { if (!(complianceRegimeSettingsCase_ == 12)) { - complianceRegimeSettings_ = com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings.getDefaultInstance(); - } - fedrampModerateSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings, com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings.Builder, com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettingsOrBuilder>( - (com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings) complianceRegimeSettings_, + complianceRegimeSettings_ = + com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings + .getDefaultInstance(); + } + fedrampModerateSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings, + com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings.Builder, + com.google.cloud.assuredworkloads.v1beta1.Workload + .FedrampModerateSettingsOrBuilder>( + (com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings) + complianceRegimeSettings_, getParentForChildren(), isClean()); complianceRegimeSettings_ = null; } complianceRegimeSettingsCase_ = 12; - onChanged();; + onChanged(); + ; return fedrampModerateSettingsBuilder_; } private java.lang.Object etag_ = ""; /** + * + * *
      * Optional. ETag of the workload, it is calculated on the basis
      * of the Workload contents. It will be used in Update & Delete operations.
      * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; 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(); etag_ = s; return s; @@ -11216,21 +13420,22 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Optional. ETag of the workload, it is calculated on the basis
      * of the Workload contents. It will be used in Update & Delete operations.
      * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for etag. */ - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -11238,78 +13443,84 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Optional. ETag of the workload, it is calculated on the basis
      * of the Workload contents. It will be used in Update & Delete operations.
      * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag( - java.lang.String value) { + public Builder setEtag(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + etag_ = value; onChanged(); return this; } /** + * + * *
      * Optional. ETag of the workload, it is calculated on the basis
      * of the Workload contents. It will be used in Update & Delete operations.
      * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearEtag() { - + etag_ = getDefaultInstance().getEtag(); onChanged(); return this; } /** + * + * *
      * Optional. ETag of the workload, it is calculated on the basis
      * of the Workload contents. It will be used in Update & Delete operations.
      * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes( - com.google.protobuf.ByteString value) { + public Builder setEtagBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; onChanged(); return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged();; + internalGetMutableLabels() { + onChanged(); + ; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -11321,28 +13532,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Optional. Labels applied to the workload.
      * 
* * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; */ - @java.lang.Override - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetLabels().getMap().containsKey(key); } - /** - * Use {@link #getLabelsMap()} instead. - */ + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** + * + * *
      * Optional. Labels applied to the workload.
      * 
@@ -11350,11 +13563,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
      * Optional. Labels applied to the workload.
      * 
@@ -11362,16 +13576,17 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Optional. Labels applied to the workload.
      * 
@@ -11379,12 +13594,11 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -11392,69 +13606,68 @@ public java.lang.String getLabelsOrThrow( } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap() - .clear(); + internalGetMutableLabels().getMutableMap().clear(); return this; } /** + * + * *
      * Optional. Labels applied to the workload.
      * 
* * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; */ - - public Builder removeLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableLabels().getMutableMap() - .remove(key); + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabels().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableLabels() { + public java.util.Map getMutableLabels() { return internalGetMutableLabels().getMutableMap(); } /** + * + * *
      * Optional. Labels applied to the workload.
      * 
* * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder putLabels( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } if (value == null) { - throw new NullPointerException("map value"); -} + throw new NullPointerException("map value"); + } - internalGetMutableLabels().getMutableMap() - .put(key, value); + internalGetMutableLabels().getMutableMap().put(key, value); return this; } /** + * + * *
      * Optional. Labels applied to the workload.
      * 
* * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; */ - - public Builder putAllLabels( - java.util.Map values) { - internalGetMutableLabels().getMutableMap() - .putAll(values); + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); return this; } private java.lang.Object provisionedResourcesParent_ = ""; /** + * + * *
      * Input only. The parent resource for the resources managed by this Assured
      * Workload. May be either empty or a folder resource which is a child of the
@@ -11464,14 +13677,15 @@ public Builder putAllLabels(
      * folders/{folder_id}
      * 
* - * string provisioned_resources_parent = 13 [(.google.api.field_behavior) = INPUT_ONLY]; + * string provisioned_resources_parent = 13 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The provisionedResourcesParent. */ public java.lang.String getProvisionedResourcesParent() { java.lang.Object ref = provisionedResourcesParent_; 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(); provisionedResourcesParent_ = s; return s; @@ -11480,6 +13694,8 @@ public java.lang.String getProvisionedResourcesParent() { } } /** + * + * *
      * Input only. The parent resource for the resources managed by this Assured
      * Workload. May be either empty or a folder resource which is a child of the
@@ -11489,16 +13705,16 @@ public java.lang.String getProvisionedResourcesParent() {
      * folders/{folder_id}
      * 
* - * string provisioned_resources_parent = 13 [(.google.api.field_behavior) = INPUT_ONLY]; + * string provisioned_resources_parent = 13 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The bytes for provisionedResourcesParent. */ - public com.google.protobuf.ByteString - getProvisionedResourcesParentBytes() { + public com.google.protobuf.ByteString getProvisionedResourcesParentBytes() { java.lang.Object ref = provisionedResourcesParent_; 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); provisionedResourcesParent_ = b; return b; } else { @@ -11506,6 +13722,8 @@ public java.lang.String getProvisionedResourcesParent() { } } /** + * + * *
      * Input only. The parent resource for the resources managed by this Assured
      * Workload. May be either empty or a folder resource which is a child of the
@@ -11515,21 +13733,24 @@ public java.lang.String getProvisionedResourcesParent() {
      * folders/{folder_id}
      * 
* - * string provisioned_resources_parent = 13 [(.google.api.field_behavior) = INPUT_ONLY]; + * string provisioned_resources_parent = 13 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @param value The provisionedResourcesParent to set. * @return This builder for chaining. */ - public Builder setProvisionedResourcesParent( - java.lang.String value) { + public Builder setProvisionedResourcesParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + provisionedResourcesParent_ = value; onChanged(); return this; } /** + * + * *
      * Input only. The parent resource for the resources managed by this Assured
      * Workload. May be either empty or a folder resource which is a child of the
@@ -11539,16 +13760,20 @@ public Builder setProvisionedResourcesParent(
      * folders/{folder_id}
      * 
* - * string provisioned_resources_parent = 13 [(.google.api.field_behavior) = INPUT_ONLY]; + * string provisioned_resources_parent = 13 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearProvisionedResourcesParent() { - + provisionedResourcesParent_ = getDefaultInstance().getProvisionedResourcesParent(); onChanged(); return this; } /** + * + * *
      * Input only. The parent resource for the resources managed by this Assured
      * Workload. May be either empty or a folder resource which is a child of the
@@ -11558,17 +13783,18 @@ public Builder clearProvisionedResourcesParent() {
      * folders/{folder_id}
      * 
* - * string provisioned_resources_parent = 13 [(.google.api.field_behavior) = INPUT_ONLY]; + * string provisioned_resources_parent = 13 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @param value The bytes for provisionedResourcesParent to set. * @return This builder for chaining. */ - public Builder setProvisionedResourcesParentBytes( - com.google.protobuf.ByteString value) { + public Builder setProvisionedResourcesParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + provisionedResourcesParent_ = value; onChanged(); return this; @@ -11576,47 +13802,67 @@ public Builder setProvisionedResourcesParentBytes( private com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kmsSettings_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings, com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder, com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder> kmsSettingsBuilder_; + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings, + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder, + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder> + kmsSettingsBuilder_; /** + * + * *
      * Input only. Settings used to create a CMEK crypto key. When set a project
      * with a KMS CMEK key is provisioned. This field is mandatory for a subset of
      * Compliance Regimes.
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return Whether the kmsSettings field is set. */ public boolean hasKmsSettings() { return kmsSettingsBuilder_ != null || kmsSettings_ != null; } /** + * + * *
      * Input only. Settings used to create a CMEK crypto key. When set a project
      * with a KMS CMEK key is provisioned. This field is mandatory for a subset of
      * Compliance Regimes.
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The kmsSettings. */ public com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings getKmsSettings() { if (kmsSettingsBuilder_ == null) { - return kmsSettings_ == null ? com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.getDefaultInstance() : kmsSettings_; + return kmsSettings_ == null + ? com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.getDefaultInstance() + : kmsSettings_; } else { return kmsSettingsBuilder_.getMessage(); } } /** + * + * *
      * Input only. Settings used to create a CMEK crypto key. When set a project
      * with a KMS CMEK key is provisioned. This field is mandatory for a subset of
      * Compliance Regimes.
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ - public Builder setKmsSettings(com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings value) { + public Builder setKmsSettings( + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings value) { if (kmsSettingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -11630,13 +13876,17 @@ public Builder setKmsSettings(com.google.cloud.assuredworkloads.v1beta1.Workload return this; } /** + * + * *
      * Input only. Settings used to create a CMEK crypto key. When set a project
      * with a KMS CMEK key is provisioned. This field is mandatory for a subset of
      * Compliance Regimes.
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ public Builder setKmsSettings( com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder builderForValue) { @@ -11650,19 +13900,27 @@ public Builder setKmsSettings( return this; } /** + * + * *
      * Input only. Settings used to create a CMEK crypto key. When set a project
      * with a KMS CMEK key is provisioned. This field is mandatory for a subset of
      * Compliance Regimes.
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ - public Builder mergeKmsSettings(com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings value) { + public Builder mergeKmsSettings( + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings value) { if (kmsSettingsBuilder_ == null) { if (kmsSettings_ != null) { kmsSettings_ = - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.newBuilder(kmsSettings_).mergeFrom(value).buildPartial(); + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.newBuilder( + kmsSettings_) + .mergeFrom(value) + .buildPartial(); } else { kmsSettings_ = value; } @@ -11674,13 +13932,17 @@ public Builder mergeKmsSettings(com.google.cloud.assuredworkloads.v1beta1.Worklo return this; } /** + * + * *
      * Input only. Settings used to create a CMEK crypto key. When set a project
      * with a KMS CMEK key is provisioned. This field is mandatory for a subset of
      * Compliance Regimes.
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ public Builder clearKmsSettings() { if (kmsSettingsBuilder_ == null) { @@ -11694,81 +13956,111 @@ public Builder clearKmsSettings() { return this; } /** + * + * *
      * Input only. Settings used to create a CMEK crypto key. When set a project
      * with a KMS CMEK key is provisioned. This field is mandatory for a subset of
      * Compliance Regimes.
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ - public com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder getKmsSettingsBuilder() { - + public com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder + getKmsSettingsBuilder() { + onChanged(); return getKmsSettingsFieldBuilder().getBuilder(); } /** + * + * *
      * Input only. Settings used to create a CMEK crypto key. When set a project
      * with a KMS CMEK key is provisioned. This field is mandatory for a subset of
      * Compliance Regimes.
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ - public com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder getKmsSettingsOrBuilder() { + public com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder + getKmsSettingsOrBuilder() { if (kmsSettingsBuilder_ != null) { return kmsSettingsBuilder_.getMessageOrBuilder(); } else { - return kmsSettings_ == null ? - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.getDefaultInstance() : kmsSettings_; + return kmsSettings_ == null + ? com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.getDefaultInstance() + : kmsSettings_; } } /** + * + * *
      * Input only. Settings used to create a CMEK crypto key. When set a project
      * with a KMS CMEK key is provisioned. This field is mandatory for a subset of
      * Compliance Regimes.
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings, com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder, com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder> + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings, + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder, + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder> getKmsSettingsFieldBuilder() { if (kmsSettingsBuilder_ == null) { - kmsSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings, com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder, com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder>( - getKmsSettings(), - getParentForChildren(), - isClean()); + kmsSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings, + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings.Builder, + com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder>( + getKmsSettings(), getParentForChildren(), isClean()); kmsSettings_ = null; } return kmsSettingsBuilder_; } - private java.util.List resourceSettings_ = - java.util.Collections.emptyList(); + private java.util.List + resourceSettings_ = java.util.Collections.emptyList(); + private void ensureResourceSettingsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - resourceSettings_ = new java.util.ArrayList(resourceSettings_); + resourceSettings_ = + new java.util.ArrayList< + com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings>( + resourceSettings_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings, com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.Builder, com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettingsOrBuilder> resourceSettingsBuilder_; + com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings, + com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.Builder, + com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettingsOrBuilder> + resourceSettingsBuilder_; /** + * + * *
      * Input only. Resource properties that are used to customize workload
      * resources. These properties (such as custom project id) will be used to
      * create workload resources if possible. This field is optional.
      * 
* - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ - public java.util.List getResourceSettingsList() { + public java.util.List + getResourceSettingsList() { if (resourceSettingsBuilder_ == null) { return java.util.Collections.unmodifiableList(resourceSettings_); } else { @@ -11776,13 +14068,17 @@ public java.util.List * Input only. Resource properties that are used to customize workload * resources. These properties (such as custom project id) will be used to * create workload resources if possible. This field is optional. *
* - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ public int getResourceSettingsCount() { if (resourceSettingsBuilder_ == null) { @@ -11792,15 +14088,20 @@ public int getResourceSettingsCount() { } } /** + * + * *
      * Input only. Resource properties that are used to customize workload
      * resources. These properties (such as custom project id) will be used to
      * create workload resources if possible. This field is optional.
      * 
* - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ - public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings getResourceSettings(int index) { + public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings getResourceSettings( + int index) { if (resourceSettingsBuilder_ == null) { return resourceSettings_.get(index); } else { @@ -11808,13 +14109,17 @@ public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings getRe } } /** + * + * *
      * Input only. Resource properties that are used to customize workload
      * resources. These properties (such as custom project id) will be used to
      * create workload resources if possible. This field is optional.
      * 
* - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ public Builder setResourceSettings( int index, com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings value) { @@ -11831,16 +14136,22 @@ public Builder setResourceSettings( return this; } /** + * + * *
      * Input only. Resource properties that are used to customize workload
      * resources. These properties (such as custom project id) will be used to
      * create workload resources if possible. This field is optional.
      * 
* - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ public Builder setResourceSettings( - int index, com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.Builder builderForValue) { + int index, + com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.Builder + builderForValue) { if (resourceSettingsBuilder_ == null) { ensureResourceSettingsIsMutable(); resourceSettings_.set(index, builderForValue.build()); @@ -11851,15 +14162,20 @@ public Builder setResourceSettings( return this; } /** + * + * *
      * Input only. Resource properties that are used to customize workload
      * resources. These properties (such as custom project id) will be used to
      * create workload resources if possible. This field is optional.
      * 
* - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ - public Builder addResourceSettings(com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings value) { + public Builder addResourceSettings( + com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings value) { if (resourceSettingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -11873,13 +14189,17 @@ public Builder addResourceSettings(com.google.cloud.assuredworkloads.v1beta1.Wor return this; } /** + * + * *
      * Input only. Resource properties that are used to customize workload
      * resources. These properties (such as custom project id) will be used to
      * create workload resources if possible. This field is optional.
      * 
* - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ public Builder addResourceSettings( int index, com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings value) { @@ -11896,16 +14216,21 @@ public Builder addResourceSettings( return this; } /** + * + * *
      * Input only. Resource properties that are used to customize workload
      * resources. These properties (such as custom project id) will be used to
      * create workload resources if possible. This field is optional.
      * 
* - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ public Builder addResourceSettings( - com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.Builder builderForValue) { + com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.Builder + builderForValue) { if (resourceSettingsBuilder_ == null) { ensureResourceSettingsIsMutable(); resourceSettings_.add(builderForValue.build()); @@ -11916,16 +14241,22 @@ public Builder addResourceSettings( return this; } /** + * + * *
      * Input only. Resource properties that are used to customize workload
      * resources. These properties (such as custom project id) will be used to
      * create workload resources if possible. This field is optional.
      * 
* - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ public Builder addResourceSettings( - int index, com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.Builder builderForValue) { + int index, + com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.Builder + builderForValue) { if (resourceSettingsBuilder_ == null) { ensureResourceSettingsIsMutable(); resourceSettings_.add(index, builderForValue.build()); @@ -11936,20 +14267,25 @@ public Builder addResourceSettings( return this; } /** + * + * *
      * Input only. Resource properties that are used to customize workload
      * resources. These properties (such as custom project id) will be used to
      * create workload resources if possible. This field is optional.
      * 
* - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ public Builder addAllResourceSettings( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings> + values) { if (resourceSettingsBuilder_ == null) { ensureResourceSettingsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, resourceSettings_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, resourceSettings_); onChanged(); } else { resourceSettingsBuilder_.addAllMessages(values); @@ -11957,13 +14293,17 @@ public Builder addAllResourceSettings( return this; } /** + * + * *
      * Input only. Resource properties that are used to customize workload
      * resources. These properties (such as custom project id) will be used to
      * create workload resources if possible. This field is optional.
      * 
* - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ public Builder clearResourceSettings() { if (resourceSettingsBuilder_ == null) { @@ -11976,13 +14316,17 @@ public Builder clearResourceSettings() { return this; } /** + * + * *
      * Input only. Resource properties that are used to customize workload
      * resources. These properties (such as custom project id) will be used to
      * create workload resources if possible. This field is optional.
      * 
* - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ public Builder removeResourceSettings(int index) { if (resourceSettingsBuilder_ == null) { @@ -11995,45 +14339,59 @@ public Builder removeResourceSettings(int index) { return this; } /** + * + * *
      * Input only. Resource properties that are used to customize workload
      * resources. These properties (such as custom project id) will be used to
      * create workload resources if possible. This field is optional.
      * 
* - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ - public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.Builder getResourceSettingsBuilder( - int index) { + public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.Builder + getResourceSettingsBuilder(int index) { return getResourceSettingsFieldBuilder().getBuilder(index); } /** + * + * *
      * Input only. Resource properties that are used to customize workload
      * resources. These properties (such as custom project id) will be used to
      * create workload resources if possible. This field is optional.
      * 
* - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ - public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettingsOrBuilder getResourceSettingsOrBuilder( - int index) { + public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettingsOrBuilder + getResourceSettingsOrBuilder(int index) { if (resourceSettingsBuilder_ == null) { - return resourceSettings_.get(index); } else { + return resourceSettings_.get(index); + } else { return resourceSettingsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Input only. Resource properties that are used to customize workload
      * resources. These properties (such as custom project id) will be used to
      * create workload resources if possible. This field is optional.
      * 
* - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ - public java.util.List - getResourceSettingsOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettingsOrBuilder> + getResourceSettingsOrBuilderList() { if (resourceSettingsBuilder_ != null) { return resourceSettingsBuilder_.getMessageOrBuilderList(); } else { @@ -12041,51 +14399,76 @@ public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettingsOrBuil } } /** + * + * *
      * Input only. Resource properties that are used to customize workload
      * resources. These properties (such as custom project id) will be used to
      * create workload resources if possible. This field is optional.
      * 
* - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ - public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.Builder addResourceSettingsBuilder() { - return getResourceSettingsFieldBuilder().addBuilder( - com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.getDefaultInstance()); + public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.Builder + addResourceSettingsBuilder() { + return getResourceSettingsFieldBuilder() + .addBuilder( + com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings + .getDefaultInstance()); } /** + * + * *
      * Input only. Resource properties that are used to customize workload
      * resources. These properties (such as custom project id) will be used to
      * create workload resources if possible. This field is optional.
      * 
* - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ - public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.Builder addResourceSettingsBuilder( - int index) { - return getResourceSettingsFieldBuilder().addBuilder( - index, com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.getDefaultInstance()); + public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.Builder + addResourceSettingsBuilder(int index) { + return getResourceSettingsFieldBuilder() + .addBuilder( + index, + com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings + .getDefaultInstance()); } /** + * + * *
      * Input only. Resource properties that are used to customize workload
      * resources. These properties (such as custom project id) will be used to
      * create workload resources if possible. This field is optional.
      * 
* - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ - public java.util.List - getResourceSettingsBuilderList() { + public java.util.List< + com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.Builder> + getResourceSettingsBuilderList() { return getResourceSettingsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings, com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.Builder, com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettingsOrBuilder> + com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings, + com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.Builder, + com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettingsOrBuilder> getResourceSettingsFieldBuilder() { if (resourceSettingsBuilder_ == null) { - resourceSettingsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings, com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.Builder, com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettingsOrBuilder>( + resourceSettingsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings, + com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.Builder, + com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettingsOrBuilder>( resourceSettings_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), @@ -12097,86 +14480,121 @@ public com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings.Build private int kajEnrollmentState_ = 0; /** + * + * *
      * Output only. Represents the KAJ enrollment state of the given workload.
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.KajEnrollmentState kaj_enrollment_state = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.KajEnrollmentState kaj_enrollment_state = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for kajEnrollmentState. */ - @java.lang.Override public int getKajEnrollmentStateValue() { + @java.lang.Override + public int getKajEnrollmentStateValue() { return kajEnrollmentState_; } /** + * + * *
      * Output only. Represents the KAJ enrollment state of the given workload.
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.KajEnrollmentState kaj_enrollment_state = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.KajEnrollmentState kaj_enrollment_state = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for kajEnrollmentState to set. * @return This builder for chaining. */ public Builder setKajEnrollmentStateValue(int value) { - + kajEnrollmentState_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Represents the KAJ enrollment state of the given workload.
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.KajEnrollmentState kaj_enrollment_state = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.KajEnrollmentState kaj_enrollment_state = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The kajEnrollmentState. */ @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.Workload.KajEnrollmentState getKajEnrollmentState() { + public com.google.cloud.assuredworkloads.v1beta1.Workload.KajEnrollmentState + getKajEnrollmentState() { @SuppressWarnings("deprecation") - com.google.cloud.assuredworkloads.v1beta1.Workload.KajEnrollmentState result = com.google.cloud.assuredworkloads.v1beta1.Workload.KajEnrollmentState.valueOf(kajEnrollmentState_); - return result == null ? com.google.cloud.assuredworkloads.v1beta1.Workload.KajEnrollmentState.UNRECOGNIZED : result; + com.google.cloud.assuredworkloads.v1beta1.Workload.KajEnrollmentState result = + com.google.cloud.assuredworkloads.v1beta1.Workload.KajEnrollmentState.valueOf( + kajEnrollmentState_); + return result == null + ? com.google.cloud.assuredworkloads.v1beta1.Workload.KajEnrollmentState.UNRECOGNIZED + : result; } /** + * + * *
      * Output only. Represents the KAJ enrollment state of the given workload.
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.KajEnrollmentState kaj_enrollment_state = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.KajEnrollmentState kaj_enrollment_state = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The kajEnrollmentState to set. * @return This builder for chaining. */ - public Builder setKajEnrollmentState(com.google.cloud.assuredworkloads.v1beta1.Workload.KajEnrollmentState value) { + public Builder setKajEnrollmentState( + com.google.cloud.assuredworkloads.v1beta1.Workload.KajEnrollmentState value) { if (value == null) { throw new NullPointerException(); } - + kajEnrollmentState_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Output only. Represents the KAJ enrollment state of the given workload.
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.KajEnrollmentState kaj_enrollment_state = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.KajEnrollmentState kaj_enrollment_state = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearKajEnrollmentState() { - + kajEnrollmentState_ = 0; onChanged(); return this; } - private boolean enableSovereignControls_ ; + private boolean enableSovereignControls_; /** + * + * *
      * Optional. Indicates the sovereignty status of the given workload.
      * Currently meant to be used by Europe/Canada customers.
      * 
* * bool enable_sovereign_controls = 18 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The enableSovereignControls. */ @java.lang.Override @@ -12184,80 +14602,109 @@ public boolean getEnableSovereignControls() { return enableSovereignControls_; } /** + * + * *
      * Optional. Indicates the sovereignty status of the given workload.
      * Currently meant to be used by Europe/Canada customers.
      * 
* * bool enable_sovereign_controls = 18 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The enableSovereignControls to set. * @return This builder for chaining. */ public Builder setEnableSovereignControls(boolean value) { - + enableSovereignControls_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Indicates the sovereignty status of the given workload.
      * Currently meant to be used by Europe/Canada customers.
      * 
* * bool enable_sovereign_controls = 18 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearEnableSovereignControls() { - + enableSovereignControls_ = false; onChanged(); return this; } - private com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse saaEnrollmentResponse_; + private com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse + saaEnrollmentResponse_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse, com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.Builder, com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponseOrBuilder> saaEnrollmentResponseBuilder_; + com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse, + com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.Builder, + com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponseOrBuilder> + saaEnrollmentResponseBuilder_; /** + * + * *
      * Output only. Represents the SAA enrollment response of the given workload.
      * SAA enrollment response is queried during GetWorkload call.
      * In failure cases, user friendly error message is shown in SAA details page.
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the saaEnrollmentResponse field is set. */ public boolean hasSaaEnrollmentResponse() { return saaEnrollmentResponseBuilder_ != null || saaEnrollmentResponse_ != null; } /** + * + * *
      * Output only. Represents the SAA enrollment response of the given workload.
      * SAA enrollment response is queried during GetWorkload call.
      * In failure cases, user friendly error message is shown in SAA details page.
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The saaEnrollmentResponse. */ - public com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse getSaaEnrollmentResponse() { + public com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse + getSaaEnrollmentResponse() { if (saaEnrollmentResponseBuilder_ == null) { - return saaEnrollmentResponse_ == null ? com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.getDefaultInstance() : saaEnrollmentResponse_; + return saaEnrollmentResponse_ == null + ? com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse + .getDefaultInstance() + : saaEnrollmentResponse_; } else { return saaEnrollmentResponseBuilder_.getMessage(); } } /** + * + * *
      * Output only. Represents the SAA enrollment response of the given workload.
      * SAA enrollment response is queried during GetWorkload call.
      * In failure cases, user friendly error message is shown in SAA details page.
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setSaaEnrollmentResponse(com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse value) { + public Builder setSaaEnrollmentResponse( + com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse value) { if (saaEnrollmentResponseBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -12271,16 +14718,21 @@ public Builder setSaaEnrollmentResponse(com.google.cloud.assuredworkloads.v1beta return this; } /** + * + * *
      * Output only. Represents the SAA enrollment response of the given workload.
      * SAA enrollment response is queried during GetWorkload call.
      * In failure cases, user friendly error message is shown in SAA details page.
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setSaaEnrollmentResponse( - com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.Builder builderForValue) { + com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.Builder + builderForValue) { if (saaEnrollmentResponseBuilder_ == null) { saaEnrollmentResponse_ = builderForValue.build(); onChanged(); @@ -12291,19 +14743,27 @@ public Builder setSaaEnrollmentResponse( return this; } /** + * + * *
      * Output only. Represents the SAA enrollment response of the given workload.
      * SAA enrollment response is queried during GetWorkload call.
      * In failure cases, user friendly error message is shown in SAA details page.
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder mergeSaaEnrollmentResponse(com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse value) { + public Builder mergeSaaEnrollmentResponse( + com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse value) { if (saaEnrollmentResponseBuilder_ == null) { if (saaEnrollmentResponse_ != null) { saaEnrollmentResponse_ = - com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.newBuilder(saaEnrollmentResponse_).mergeFrom(value).buildPartial(); + com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.newBuilder( + saaEnrollmentResponse_) + .mergeFrom(value) + .buildPartial(); } else { saaEnrollmentResponse_ = value; } @@ -12315,13 +14775,17 @@ public Builder mergeSaaEnrollmentResponse(com.google.cloud.assuredworkloads.v1be return this; } /** + * + * *
      * Output only. Represents the SAA enrollment response of the given workload.
      * SAA enrollment response is queried during GetWorkload call.
      * In failure cases, user friendly error message is shown in SAA details page.
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearSaaEnrollmentResponse() { if (saaEnrollmentResponseBuilder_ == null) { @@ -12335,61 +14799,80 @@ public Builder clearSaaEnrollmentResponse() { return this; } /** + * + * *
      * Output only. Represents the SAA enrollment response of the given workload.
      * SAA enrollment response is queried during GetWorkload call.
      * In failure cases, user friendly error message is shown in SAA details page.
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.Builder getSaaEnrollmentResponseBuilder() { - + public com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.Builder + getSaaEnrollmentResponseBuilder() { + onChanged(); return getSaaEnrollmentResponseFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Represents the SAA enrollment response of the given workload.
      * SAA enrollment response is queried during GetWorkload call.
      * In failure cases, user friendly error message is shown in SAA details page.
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponseOrBuilder getSaaEnrollmentResponseOrBuilder() { + public com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponseOrBuilder + getSaaEnrollmentResponseOrBuilder() { if (saaEnrollmentResponseBuilder_ != null) { return saaEnrollmentResponseBuilder_.getMessageOrBuilder(); } else { - return saaEnrollmentResponse_ == null ? - com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.getDefaultInstance() : saaEnrollmentResponse_; + return saaEnrollmentResponse_ == null + ? com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse + .getDefaultInstance() + : saaEnrollmentResponse_; } } /** + * + * *
      * Output only. Represents the SAA enrollment response of the given workload.
      * SAA enrollment response is queried during GetWorkload call.
      * In failure cases, user friendly error message is shown in SAA details page.
      * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse, com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.Builder, com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponseOrBuilder> + com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse, + com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.Builder, + com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponseOrBuilder> getSaaEnrollmentResponseFieldBuilder() { if (saaEnrollmentResponseBuilder_ == null) { - saaEnrollmentResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse, com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.Builder, com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponseOrBuilder>( - getSaaEnrollmentResponse(), - getParentForChildren(), - isClean()); + saaEnrollmentResponseBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse, + com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.Builder, + com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponseOrBuilder>( + getSaaEnrollmentResponse(), getParentForChildren(), isClean()); saaEnrollmentResponse_ = null; } return saaEnrollmentResponseBuilder_; } + @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); } @@ -12399,12 +14882,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.assuredworkloads.v1beta1.Workload) } // @@protoc_insertion_point(class_scope:google.cloud.assuredworkloads.v1beta1.Workload) private static final com.google.cloud.assuredworkloads.v1beta1.Workload DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.assuredworkloads.v1beta1.Workload(); } @@ -12413,16 +14896,16 @@ public static com.google.cloud.assuredworkloads.v1beta1.Workload getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Workload parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Workload(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Workload parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Workload(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -12437,6 +14920,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.assuredworkloads.v1beta1.Workload getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/WorkloadName.java b/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/WorkloadName.java similarity index 100% rename from owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/WorkloadName.java rename to proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/WorkloadName.java diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/WorkloadOrBuilder.java b/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/WorkloadOrBuilder.java similarity index 57% rename from owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/WorkloadOrBuilder.java rename to proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/WorkloadOrBuilder.java index 5b49b295..615a234e 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/WorkloadOrBuilder.java +++ b/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/WorkloadOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto package com.google.cloud.assuredworkloads.v1beta1; -public interface WorkloadOrBuilder extends +public interface WorkloadOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.assuredworkloads.v1beta1.Workload) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. The resource name of the workload.
    * Format:
@@ -16,10 +34,13 @@ public interface WorkloadOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Optional. The resource name of the workload.
    * Format:
@@ -28,12 +49,14 @@ public interface WorkloadOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Required. The user-assigned display name of the Workload.
    * When present it must be between 4 to 30 characters.
@@ -43,10 +66,13 @@ public interface WorkloadOrBuilder extends
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * Required. The user-assigned display name of the Workload.
    * When present it must be between 4 to 30 characters.
@@ -56,12 +82,14 @@ public interface WorkloadOrBuilder extends
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * Output only. The resources associated with this workload.
    * These resources will be created when creating the workload.
@@ -69,11 +97,15 @@ public interface WorkloadOrBuilder extends
    * Always read only.
    * 
* - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List + java.util.List getResourcesList(); /** + * + * *
    * Output only. The resources associated with this workload.
    * These resources will be created when creating the workload.
@@ -81,10 +113,14 @@ public interface WorkloadOrBuilder extends
    * Always read only.
    * 
* - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo getResources(int index); /** + * + * *
    * Output only. The resources associated with this workload.
    * These resources will be created when creating the workload.
@@ -92,10 +128,14 @@ public interface WorkloadOrBuilder extends
    * Always read only.
    * 
* - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ int getResourcesCount(); /** + * + * *
    * Output only. The resources associated with this workload.
    * These resources will be created when creating the workload.
@@ -103,11 +143,15 @@ public interface WorkloadOrBuilder extends
    * Always read only.
    * 
* - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List + java.util.List getResourcesOrBuilderList(); /** + * + * *
    * Output only. The resources associated with this workload.
    * These resources will be created when creating the workload.
@@ -115,58 +159,86 @@ public interface WorkloadOrBuilder extends
    * Always read only.
    * 
* - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfoOrBuilder getResourcesOrBuilder( int index); /** + * + * *
    * Required. Immutable. Compliance Regime associated with this workload.
    * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The enum numeric value on the wire for complianceRegime. */ int getComplianceRegimeValue(); /** + * + * *
    * Required. Immutable. Compliance Regime associated with this workload.
    * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The complianceRegime. */ com.google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime getComplianceRegime(); /** + * + * *
    * Output only. Immutable. The Workload creation timestamp.
    * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. Immutable. The Workload creation timestamp.
    * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. Immutable. The Workload creation timestamp.
    * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Input only. The billing account used for the resources which are
    * direct children of workload. This billing account is initially associated
@@ -179,10 +251,13 @@ com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfoOrBuilder getReso
    * 
* * string billing_account = 6 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The billingAccount. */ java.lang.String getBillingAccount(); /** + * + * *
    * Input only. The billing account used for the resources which are
    * direct children of workload. This billing account is initially associated
@@ -195,170 +270,249 @@ com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfoOrBuilder getReso
    * 
* * string billing_account = 6 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The bytes for billingAccount. */ - com.google.protobuf.ByteString - getBillingAccountBytes(); + com.google.protobuf.ByteString getBillingAccountBytes(); /** + * + * *
    * Required. Input only. Immutable. Settings specific to resources needed
    * for IL4.
    * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings il4_settings = 7 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.il4_settings is deprecated. - * See google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=455 + * + * .google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings il4_settings = 7 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.il4_settings is deprecated. See + * google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=455 * @return Whether the il4Settings field is set. */ - @java.lang.Deprecated boolean hasIl4Settings(); + @java.lang.Deprecated + boolean hasIl4Settings(); /** + * + * *
    * Required. Input only. Immutable. Settings specific to resources needed
    * for IL4.
    * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings il4_settings = 7 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.il4_settings is deprecated. - * See google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=455 + * + * .google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings il4_settings = 7 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.il4_settings is deprecated. See + * google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=455 * @return The il4Settings. */ - @java.lang.Deprecated com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings getIl4Settings(); + @java.lang.Deprecated + com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings getIl4Settings(); /** + * + * *
    * Required. Input only. Immutable. Settings specific to resources needed
    * for IL4.
    * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings il4_settings = 7 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings il4_settings = 7 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ - @java.lang.Deprecated com.google.cloud.assuredworkloads.v1beta1.Workload.IL4SettingsOrBuilder getIl4SettingsOrBuilder(); + @java.lang.Deprecated + com.google.cloud.assuredworkloads.v1beta1.Workload.IL4SettingsOrBuilder getIl4SettingsOrBuilder(); /** + * + * *
    * Required. Input only. Immutable. Settings specific to resources needed
    * for CJIS.
    * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings cjis_settings = 8 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.cjis_settings is deprecated. - * See google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=464 + * + * .google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings cjis_settings = 8 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.cjis_settings is deprecated. See + * google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=464 * @return Whether the cjisSettings field is set. */ - @java.lang.Deprecated boolean hasCjisSettings(); + @java.lang.Deprecated + boolean hasCjisSettings(); /** + * + * *
    * Required. Input only. Immutable. Settings specific to resources needed
    * for CJIS.
    * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings cjis_settings = 8 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.cjis_settings is deprecated. - * See google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=464 + * + * .google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings cjis_settings = 8 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.cjis_settings is deprecated. See + * google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=464 * @return The cjisSettings. */ - @java.lang.Deprecated com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings getCjisSettings(); + @java.lang.Deprecated + com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings getCjisSettings(); /** + * + * *
    * Required. Input only. Immutable. Settings specific to resources needed
    * for CJIS.
    * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings cjis_settings = 8 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings cjis_settings = 8 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ - @java.lang.Deprecated com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettingsOrBuilder getCjisSettingsOrBuilder(); + @java.lang.Deprecated + com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettingsOrBuilder + getCjisSettingsOrBuilder(); /** + * + * *
    * Required. Input only. Immutable. Settings specific to resources needed
    * for FedRAMP High.
    * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings fedramp_high_settings = 11 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings fedramp_high_settings = 11 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.fedramp_high_settings is deprecated. * See google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=473 * @return Whether the fedrampHighSettings field is set. */ - @java.lang.Deprecated boolean hasFedrampHighSettings(); + @java.lang.Deprecated + boolean hasFedrampHighSettings(); /** + * + * *
    * Required. Input only. Immutable. Settings specific to resources needed
    * for FedRAMP High.
    * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings fedramp_high_settings = 11 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings fedramp_high_settings = 11 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.fedramp_high_settings is deprecated. * See google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=473 * @return The fedrampHighSettings. */ - @java.lang.Deprecated com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings getFedrampHighSettings(); + @java.lang.Deprecated + com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings getFedrampHighSettings(); /** + * + * *
    * Required. Input only. Immutable. Settings specific to resources needed
    * for FedRAMP High.
    * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings fedramp_high_settings = 11 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings fedramp_high_settings = 11 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ - @java.lang.Deprecated com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettingsOrBuilder getFedrampHighSettingsOrBuilder(); + @java.lang.Deprecated + com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettingsOrBuilder + getFedrampHighSettingsOrBuilder(); /** + * + * *
    * Required. Input only. Immutable. Settings specific to resources needed
    * for FedRAMP Moderate.
    * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings fedramp_moderate_settings = 12 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.fedramp_moderate_settings is deprecated. - * See google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=482 + * + * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings fedramp_moderate_settings = 12 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.fedramp_moderate_settings is + * deprecated. See google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=482 * @return Whether the fedrampModerateSettings field is set. */ - @java.lang.Deprecated boolean hasFedrampModerateSettings(); + @java.lang.Deprecated + boolean hasFedrampModerateSettings(); /** + * + * *
    * Required. Input only. Immutable. Settings specific to resources needed
    * for FedRAMP Moderate.
    * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings fedramp_moderate_settings = 12 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.fedramp_moderate_settings is deprecated. - * See google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=482 + * + * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings fedramp_moderate_settings = 12 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.fedramp_moderate_settings is + * deprecated. See google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=482 * @return The fedrampModerateSettings. */ - @java.lang.Deprecated com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings getFedrampModerateSettings(); + @java.lang.Deprecated + com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings + getFedrampModerateSettings(); /** + * + * *
    * Required. Input only. Immutable. Settings specific to resources needed
    * for FedRAMP Moderate.
    * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings fedramp_moderate_settings = 12 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings fedramp_moderate_settings = 12 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * */ - @java.lang.Deprecated com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettingsOrBuilder getFedrampModerateSettingsOrBuilder(); + @java.lang.Deprecated + com.google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettingsOrBuilder + getFedrampModerateSettingsOrBuilder(); /** + * + * *
    * Optional. ETag of the workload, it is calculated on the basis
    * of the Workload contents. It will be used in Update & Delete operations.
    * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The etag. */ java.lang.String getEtag(); /** + * + * *
    * Optional. ETag of the workload, it is calculated on the basis
    * of the Workload contents. It will be used in Update & Delete operations.
    * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for etag. */ - com.google.protobuf.ByteString - getEtagBytes(); + com.google.protobuf.ByteString getEtagBytes(); /** + * + * *
    * Optional. Labels applied to the workload.
    * 
@@ -367,30 +521,31 @@ com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfoOrBuilder getReso */ int getLabelsCount(); /** + * + * *
    * Optional. Labels applied to the workload.
    * 
* * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; */ - boolean containsLabels( - java.lang.String key); - /** - * Use {@link #getLabelsMap()} instead. - */ + boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated - java.util.Map - getLabels(); + java.util.Map getLabels(); /** + * + * *
    * Optional. Labels applied to the workload.
    * 
* * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.Map - getLabelsMap(); + java.util.Map getLabelsMap(); /** + * + * *
    * Optional. Labels applied to the workload.
    * 
@@ -399,22 +554,24 @@ boolean containsLabels( */ /* nullable */ -java.lang.String getLabelsOrDefault( + java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * Optional. Labels applied to the workload.
    * 
* * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; */ - - java.lang.String getLabelsOrThrow( - java.lang.String key); + java.lang.String getLabelsOrThrow(java.lang.String key); /** + * + * *
    * Input only. The parent resource for the resources managed by this Assured
    * Workload. May be either empty or a folder resource which is a child of the
@@ -424,11 +581,15 @@ java.lang.String getLabelsOrThrow(
    * folders/{folder_id}
    * 
* - * string provisioned_resources_parent = 13 [(.google.api.field_behavior) = INPUT_ONLY]; + * string provisioned_resources_parent = 13 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The provisionedResourcesParent. */ java.lang.String getProvisionedResourcesParent(); /** + * + * *
    * Input only. The parent resource for the resources managed by this Assured
    * Workload. May be either empty or a folder resource which is a child of the
@@ -438,161 +599,228 @@ java.lang.String getLabelsOrThrow(
    * folders/{folder_id}
    * 
* - * string provisioned_resources_parent = 13 [(.google.api.field_behavior) = INPUT_ONLY]; + * string provisioned_resources_parent = 13 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The bytes for provisionedResourcesParent. */ - com.google.protobuf.ByteString - getProvisionedResourcesParentBytes(); + com.google.protobuf.ByteString getProvisionedResourcesParentBytes(); /** + * + * *
    * Input only. Settings used to create a CMEK crypto key. When set a project
    * with a KMS CMEK key is provisioned. This field is mandatory for a subset of
    * Compliance Regimes.
    * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return Whether the kmsSettings field is set. */ boolean hasKmsSettings(); /** + * + * *
    * Input only. Settings used to create a CMEK crypto key. When set a project
    * with a KMS CMEK key is provisioned. This field is mandatory for a subset of
    * Compliance Regimes.
    * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The kmsSettings. */ com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings getKmsSettings(); /** + * + * *
    * Input only. Settings used to create a CMEK crypto key. When set a project
    * with a KMS CMEK key is provisioned. This field is mandatory for a subset of
    * Compliance Regimes.
    * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 14 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ com.google.cloud.assuredworkloads.v1beta1.Workload.KMSSettingsOrBuilder getKmsSettingsOrBuilder(); /** + * + * *
    * Input only. Resource properties that are used to customize workload
    * resources. These properties (such as custom project id) will be used to
    * create workload resources if possible. This field is optional.
    * 
* - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ - java.util.List + java.util.List getResourceSettingsList(); /** + * + * *
    * Input only. Resource properties that are used to customize workload
    * resources. These properties (such as custom project id) will be used to
    * create workload resources if possible. This field is optional.
    * 
* - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ - com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings getResourceSettings(int index); + com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings getResourceSettings( + int index); /** + * + * *
    * Input only. Resource properties that are used to customize workload
    * resources. These properties (such as custom project id) will be used to
    * create workload resources if possible. This field is optional.
    * 
* - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ int getResourceSettingsCount(); /** + * + * *
    * Input only. Resource properties that are used to customize workload
    * resources. These properties (such as custom project id) will be used to
    * create workload resources if possible. This field is optional.
    * 
* - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ - java.util.List + java.util.List< + ? extends com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettingsOrBuilder> getResourceSettingsOrBuilderList(); /** + * + * *
    * Input only. Resource properties that are used to customize workload
    * resources. These properties (such as custom project id) will be used to
    * create workload resources if possible. This field is optional.
    * 
* - * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ - com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettingsOrBuilder getResourceSettingsOrBuilder( - int index); + com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettingsOrBuilder + getResourceSettingsOrBuilder(int index); /** + * + * *
    * Output only. Represents the KAJ enrollment state of the given workload.
    * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.KajEnrollmentState kaj_enrollment_state = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.KajEnrollmentState kaj_enrollment_state = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for kajEnrollmentState. */ int getKajEnrollmentStateValue(); /** + * + * *
    * Output only. Represents the KAJ enrollment state of the given workload.
    * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.KajEnrollmentState kaj_enrollment_state = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.KajEnrollmentState kaj_enrollment_state = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The kajEnrollmentState. */ com.google.cloud.assuredworkloads.v1beta1.Workload.KajEnrollmentState getKajEnrollmentState(); /** + * + * *
    * Optional. Indicates the sovereignty status of the given workload.
    * Currently meant to be used by Europe/Canada customers.
    * 
* * bool enable_sovereign_controls = 18 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The enableSovereignControls. */ boolean getEnableSovereignControls(); /** + * + * *
    * Output only. Represents the SAA enrollment response of the given workload.
    * SAA enrollment response is queried during GetWorkload call.
    * In failure cases, user friendly error message is shown in SAA details page.
    * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the saaEnrollmentResponse field is set. */ boolean hasSaaEnrollmentResponse(); /** + * + * *
    * Output only. Represents the SAA enrollment response of the given workload.
    * SAA enrollment response is queried during GetWorkload call.
    * In failure cases, user friendly error message is shown in SAA details page.
    * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The saaEnrollmentResponse. */ - com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse getSaaEnrollmentResponse(); + com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse + getSaaEnrollmentResponse(); /** + * + * *
    * Output only. Represents the SAA enrollment response of the given workload.
    * SAA enrollment response is queried during GetWorkload call.
    * In failure cases, user friendly error message is shown in SAA details page.
    * 
* - * .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponseOrBuilder getSaaEnrollmentResponseOrBuilder(); + com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponseOrBuilder + getSaaEnrollmentResponseOrBuilder(); - public com.google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegimeSettingsCase getComplianceRegimeSettingsCase(); + public com.google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegimeSettingsCase + getComplianceRegimeSettingsCase(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/proto/google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto b/proto-google-cloud-assured-workloads-v1beta1/src/main/proto/google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto similarity index 100% rename from owl-bot-staging/v1beta1/proto-google-cloud-assured-workloads-v1beta1/src/main/proto/google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto rename to proto-google-cloud-assured-workloads-v1beta1/src/main/proto/google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/create/SyncCreateSetCredentialsProvider.java similarity index 88% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/create/SyncCreateSetCredentialsProvider.java rename to samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/create/SyncCreateSetCredentialsProvider.java index 360a69ce..9c6c3750 100644 --- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/create/SyncCreateSetCredentialsProvider.java +++ b/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/create/SyncCreateSetCredentialsProvider.java @@ -16,7 +16,8 @@ package com.google.cloud.assuredworkloads.v1.samples; -// [START assuredworkloads_v1_generated_assuredworkloadsserviceclient_create_setcredentialsprovider_sync] +// [START +// assuredworkloads_v1_generated_assuredworkloadsserviceclient_create_setcredentialsprovider_sync] import com.google.api.gax.core.FixedCredentialsProvider; import com.google.cloud.assuredworkloads.v1.AssuredWorkloadsServiceClient; import com.google.cloud.assuredworkloads.v1.AssuredWorkloadsServiceSettings; @@ -39,4 +40,5 @@ public static void syncCreateSetCredentialsProvider() throws Exception { AssuredWorkloadsServiceClient.create(assuredWorkloadsServiceSettings); } } -// [END assuredworkloads_v1_generated_assuredworkloadsserviceclient_create_setcredentialsprovider_sync] +// [END +// assuredworkloads_v1_generated_assuredworkloadsserviceclient_create_setcredentialsprovider_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/create/SyncCreateSetCredentialsProvider1.java b/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/create/SyncCreateSetCredentialsProvider1.java similarity index 88% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/create/SyncCreateSetCredentialsProvider1.java rename to samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/create/SyncCreateSetCredentialsProvider1.java index 36a9c4e3..d9cfc714 100644 --- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/create/SyncCreateSetCredentialsProvider1.java +++ b/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/create/SyncCreateSetCredentialsProvider1.java @@ -16,7 +16,8 @@ package com.google.cloud.assuredworkloads.v1.samples; -// [START assuredworkloads_v1_generated_assuredworkloadsserviceclient_create_setcredentialsprovider1_sync] +// [START +// assuredworkloads_v1_generated_assuredworkloadsserviceclient_create_setcredentialsprovider1_sync] import com.google.cloud.assuredworkloads.v1.AssuredWorkloadsServiceClient; import com.google.cloud.assuredworkloads.v1.AssuredWorkloadsServiceSettings; @@ -38,4 +39,5 @@ public static void syncCreateSetCredentialsProvider1() throws Exception { AssuredWorkloadsServiceClient.create(assuredWorkloadsServiceSettings); } } -// [END assuredworkloads_v1_generated_assuredworkloadsserviceclient_create_setcredentialsprovider1_sync] +// [END +// assuredworkloads_v1_generated_assuredworkloadsserviceclient_create_setcredentialsprovider1_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/create/SyncCreateSetEndpoint.java rename to samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/createworkload/AsyncCreateWorkload.java b/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/createworkload/AsyncCreateWorkload.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/createworkload/AsyncCreateWorkload.java rename to samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/createworkload/AsyncCreateWorkload.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/createworkload/AsyncCreateWorkloadLRO.java b/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/createworkload/AsyncCreateWorkloadLRO.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/createworkload/AsyncCreateWorkloadLRO.java rename to samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/createworkload/AsyncCreateWorkloadLRO.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/createworkload/SyncCreateWorkload.java b/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/createworkload/SyncCreateWorkload.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/createworkload/SyncCreateWorkload.java rename to samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/createworkload/SyncCreateWorkload.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/createworkload/SyncCreateWorkloadLocationnameWorkload.java b/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/createworkload/SyncCreateWorkloadLocationnameWorkload.java similarity index 87% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/createworkload/SyncCreateWorkloadLocationnameWorkload.java rename to samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/createworkload/SyncCreateWorkloadLocationnameWorkload.java index 00a426a7..aaf4d914 100644 --- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/createworkload/SyncCreateWorkloadLocationnameWorkload.java +++ b/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/createworkload/SyncCreateWorkloadLocationnameWorkload.java @@ -16,7 +16,8 @@ package com.google.cloud.assuredworkloads.v1.samples; -// [START assuredworkloads_v1_generated_assuredworkloadsserviceclient_createworkload_locationnameworkload_sync] +// [START +// assuredworkloads_v1_generated_assuredworkloadsserviceclient_createworkload_locationnameworkload_sync] import com.google.cloud.assuredworkloads.v1.AssuredWorkloadsServiceClient; import com.google.cloud.assuredworkloads.v1.LocationName; import com.google.cloud.assuredworkloads.v1.Workload; @@ -38,4 +39,5 @@ public static void syncCreateWorkloadLocationnameWorkload() throws Exception { } } } -// [END assuredworkloads_v1_generated_assuredworkloadsserviceclient_createworkload_locationnameworkload_sync] +// [END +// assuredworkloads_v1_generated_assuredworkloadsserviceclient_createworkload_locationnameworkload_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/createworkload/SyncCreateWorkloadStringWorkload.java b/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/createworkload/SyncCreateWorkloadStringWorkload.java similarity index 88% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/createworkload/SyncCreateWorkloadStringWorkload.java rename to samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/createworkload/SyncCreateWorkloadStringWorkload.java index 162dad0b..66af2607 100644 --- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/createworkload/SyncCreateWorkloadStringWorkload.java +++ b/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/createworkload/SyncCreateWorkloadStringWorkload.java @@ -16,7 +16,8 @@ package com.google.cloud.assuredworkloads.v1.samples; -// [START assuredworkloads_v1_generated_assuredworkloadsserviceclient_createworkload_stringworkload_sync] +// [START +// assuredworkloads_v1_generated_assuredworkloadsserviceclient_createworkload_stringworkload_sync] import com.google.cloud.assuredworkloads.v1.AssuredWorkloadsServiceClient; import com.google.cloud.assuredworkloads.v1.LocationName; import com.google.cloud.assuredworkloads.v1.Workload; @@ -38,4 +39,5 @@ public static void syncCreateWorkloadStringWorkload() throws Exception { } } } -// [END assuredworkloads_v1_generated_assuredworkloadsserviceclient_createworkload_stringworkload_sync] +// [END +// assuredworkloads_v1_generated_assuredworkloadsserviceclient_createworkload_stringworkload_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/deleteworkload/AsyncDeleteWorkload.java b/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/deleteworkload/AsyncDeleteWorkload.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/deleteworkload/AsyncDeleteWorkload.java rename to samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/deleteworkload/AsyncDeleteWorkload.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/deleteworkload/SyncDeleteWorkload.java b/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/deleteworkload/SyncDeleteWorkload.java similarity index 98% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/deleteworkload/SyncDeleteWorkload.java rename to samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/deleteworkload/SyncDeleteWorkload.java index c902ca42..ae1b6230 100644 --- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/deleteworkload/SyncDeleteWorkload.java +++ b/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/deleteworkload/SyncDeleteWorkload.java @@ -20,7 +20,6 @@ import com.google.cloud.assuredworkloads.v1.AssuredWorkloadsServiceClient; import com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest; import com.google.cloud.assuredworkloads.v1.WorkloadName; -import com.google.protobuf.Empty; public class SyncDeleteWorkload { diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/deleteworkload/SyncDeleteWorkloadString.java b/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/deleteworkload/SyncDeleteWorkloadString.java similarity index 97% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/deleteworkload/SyncDeleteWorkloadString.java rename to samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/deleteworkload/SyncDeleteWorkloadString.java index 20a7f943..94fa3b09 100644 --- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/deleteworkload/SyncDeleteWorkloadString.java +++ b/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/deleteworkload/SyncDeleteWorkloadString.java @@ -19,7 +19,6 @@ // [START assuredworkloads_v1_generated_assuredworkloadsserviceclient_deleteworkload_string_sync] import com.google.cloud.assuredworkloads.v1.AssuredWorkloadsServiceClient; import com.google.cloud.assuredworkloads.v1.WorkloadName; -import com.google.protobuf.Empty; public class SyncDeleteWorkloadString { diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/deleteworkload/SyncDeleteWorkloadWorkloadname.java b/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/deleteworkload/SyncDeleteWorkloadWorkloadname.java similarity index 85% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/deleteworkload/SyncDeleteWorkloadWorkloadname.java rename to samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/deleteworkload/SyncDeleteWorkloadWorkloadname.java index b9b3bd0d..2eda0d3c 100644 --- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/deleteworkload/SyncDeleteWorkloadWorkloadname.java +++ b/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/deleteworkload/SyncDeleteWorkloadWorkloadname.java @@ -16,10 +16,10 @@ package com.google.cloud.assuredworkloads.v1.samples; -// [START assuredworkloads_v1_generated_assuredworkloadsserviceclient_deleteworkload_workloadname_sync] +// [START +// assuredworkloads_v1_generated_assuredworkloadsserviceclient_deleteworkload_workloadname_sync] import com.google.cloud.assuredworkloads.v1.AssuredWorkloadsServiceClient; import com.google.cloud.assuredworkloads.v1.WorkloadName; -import com.google.protobuf.Empty; public class SyncDeleteWorkloadWorkloadname { @@ -37,4 +37,5 @@ public static void syncDeleteWorkloadWorkloadname() throws Exception { } } } -// [END assuredworkloads_v1_generated_assuredworkloadsserviceclient_deleteworkload_workloadname_sync] +// [END +// assuredworkloads_v1_generated_assuredworkloadsserviceclient_deleteworkload_workloadname_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/getworkload/AsyncGetWorkload.java b/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/getworkload/AsyncGetWorkload.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/getworkload/AsyncGetWorkload.java rename to samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/getworkload/AsyncGetWorkload.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/getworkload/SyncGetWorkload.java b/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/getworkload/SyncGetWorkload.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/getworkload/SyncGetWorkload.java rename to samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/getworkload/SyncGetWorkload.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/getworkload/SyncGetWorkloadString.java b/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/getworkload/SyncGetWorkloadString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/getworkload/SyncGetWorkloadString.java rename to samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/getworkload/SyncGetWorkloadString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/getworkload/SyncGetWorkloadWorkloadname.java b/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/getworkload/SyncGetWorkloadWorkloadname.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/getworkload/SyncGetWorkloadWorkloadname.java rename to samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/getworkload/SyncGetWorkloadWorkloadname.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/listworkloads/AsyncListWorkloads.java b/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/listworkloads/AsyncListWorkloads.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/listworkloads/AsyncListWorkloads.java rename to samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/listworkloads/AsyncListWorkloads.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/listworkloads/AsyncListWorkloadsPaged.java b/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/listworkloads/AsyncListWorkloadsPaged.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/listworkloads/AsyncListWorkloadsPaged.java rename to samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/listworkloads/AsyncListWorkloadsPaged.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/listworkloads/SyncListWorkloads.java b/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/listworkloads/SyncListWorkloads.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/listworkloads/SyncListWorkloads.java rename to samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/listworkloads/SyncListWorkloads.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/listworkloads/SyncListWorkloadsLocationname.java b/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/listworkloads/SyncListWorkloadsLocationname.java similarity index 94% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/listworkloads/SyncListWorkloadsLocationname.java rename to samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/listworkloads/SyncListWorkloadsLocationname.java index 812e8463..a8ec2c09 100644 --- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/listworkloads/SyncListWorkloadsLocationname.java +++ b/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/listworkloads/SyncListWorkloadsLocationname.java @@ -16,7 +16,8 @@ package com.google.cloud.assuredworkloads.v1.samples; -// [START assuredworkloads_v1_generated_assuredworkloadsserviceclient_listworkloads_locationname_sync] +// [START +// assuredworkloads_v1_generated_assuredworkloadsserviceclient_listworkloads_locationname_sync] import com.google.cloud.assuredworkloads.v1.AssuredWorkloadsServiceClient; import com.google.cloud.assuredworkloads.v1.LocationName; import com.google.cloud.assuredworkloads.v1.Workload; diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/listworkloads/SyncListWorkloadsString.java b/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/listworkloads/SyncListWorkloadsString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/listworkloads/SyncListWorkloadsString.java rename to samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/listworkloads/SyncListWorkloadsString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/updateworkload/AsyncUpdateWorkload.java b/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/updateworkload/AsyncUpdateWorkload.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/updateworkload/AsyncUpdateWorkload.java rename to samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/updateworkload/AsyncUpdateWorkload.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/updateworkload/SyncUpdateWorkload.java b/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/updateworkload/SyncUpdateWorkload.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/updateworkload/SyncUpdateWorkload.java rename to samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/updateworkload/SyncUpdateWorkload.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/updateworkload/SyncUpdateWorkloadWorkloadFieldmask.java b/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/updateworkload/SyncUpdateWorkloadWorkloadFieldmask.java similarity index 87% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/updateworkload/SyncUpdateWorkloadWorkloadFieldmask.java rename to samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/updateworkload/SyncUpdateWorkloadWorkloadFieldmask.java index 752236cf..5e814a65 100644 --- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/updateworkload/SyncUpdateWorkloadWorkloadFieldmask.java +++ b/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/updateworkload/SyncUpdateWorkloadWorkloadFieldmask.java @@ -16,7 +16,8 @@ package com.google.cloud.assuredworkloads.v1.samples; -// [START assuredworkloads_v1_generated_assuredworkloadsserviceclient_updateworkload_workloadfieldmask_sync] +// [START +// assuredworkloads_v1_generated_assuredworkloadsserviceclient_updateworkload_workloadfieldmask_sync] import com.google.cloud.assuredworkloads.v1.AssuredWorkloadsServiceClient; import com.google.cloud.assuredworkloads.v1.Workload; import com.google.protobuf.FieldMask; @@ -38,4 +39,5 @@ public static void syncUpdateWorkloadWorkloadFieldmask() throws Exception { } } } -// [END assuredworkloads_v1_generated_assuredworkloadsserviceclient_updateworkload_workloadfieldmask_sync] +// [END +// assuredworkloads_v1_generated_assuredworkloadsserviceclient_updateworkload_workloadfieldmask_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsservicesettings/updateworkload/SyncUpdateWorkload.java b/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsservicesettings/updateworkload/SyncUpdateWorkload.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsservicesettings/updateworkload/SyncUpdateWorkload.java rename to samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsservicesettings/updateworkload/SyncUpdateWorkload.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/stub/assuredworkloadsservicestubsettings/updateworkload/SyncUpdateWorkload.java b/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/stub/assuredworkloadsservicestubsettings/updateworkload/SyncUpdateWorkload.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/stub/assuredworkloadsservicestubsettings/updateworkload/SyncUpdateWorkload.java rename to samples/snippets/generated/com/google/cloud/assuredworkloads/v1/stub/assuredworkloadsservicestubsettings/updateworkload/SyncUpdateWorkload.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/create/SyncCreateSetCredentialsProvider.java similarity index 88% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/create/SyncCreateSetCredentialsProvider.java rename to samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/create/SyncCreateSetCredentialsProvider.java index cd627541..eb78da5c 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/create/SyncCreateSetCredentialsProvider.java +++ b/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/create/SyncCreateSetCredentialsProvider.java @@ -16,7 +16,8 @@ package com.google.cloud.assuredworkloads.v1beta1.samples; -// [START assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_create_setcredentialsprovider_sync] +// [START +// assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_create_setcredentialsprovider_sync] import com.google.api.gax.core.FixedCredentialsProvider; import com.google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsServiceClient; import com.google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsServiceSettings; @@ -39,4 +40,5 @@ public static void syncCreateSetCredentialsProvider() throws Exception { AssuredWorkloadsServiceClient.create(assuredWorkloadsServiceSettings); } } -// [END assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_create_setcredentialsprovider_sync] +// [END +// assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_create_setcredentialsprovider_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/create/SyncCreateSetCredentialsProvider1.java b/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/create/SyncCreateSetCredentialsProvider1.java similarity index 87% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/create/SyncCreateSetCredentialsProvider1.java rename to samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/create/SyncCreateSetCredentialsProvider1.java index 0018e402..4001772c 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/create/SyncCreateSetCredentialsProvider1.java +++ b/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/create/SyncCreateSetCredentialsProvider1.java @@ -16,7 +16,8 @@ package com.google.cloud.assuredworkloads.v1beta1.samples; -// [START assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_create_setcredentialsprovider1_sync] +// [START +// assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_create_setcredentialsprovider1_sync] import com.google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsServiceClient; import com.google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsServiceSettings; @@ -38,4 +39,5 @@ public static void syncCreateSetCredentialsProvider1() throws Exception { AssuredWorkloadsServiceClient.create(assuredWorkloadsServiceSettings); } } -// [END assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_create_setcredentialsprovider1_sync] +// [END +// assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_create_setcredentialsprovider1_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/create/SyncCreateSetEndpoint.java rename to samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/createworkload/AsyncCreateWorkload.java b/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/createworkload/AsyncCreateWorkload.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/createworkload/AsyncCreateWorkload.java rename to samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/createworkload/AsyncCreateWorkload.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/createworkload/AsyncCreateWorkloadLRO.java b/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/createworkload/AsyncCreateWorkloadLRO.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/createworkload/AsyncCreateWorkloadLRO.java rename to samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/createworkload/AsyncCreateWorkloadLRO.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/createworkload/SyncCreateWorkload.java b/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/createworkload/SyncCreateWorkload.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/createworkload/SyncCreateWorkload.java rename to samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/createworkload/SyncCreateWorkload.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/createworkload/SyncCreateWorkloadLocationnameWorkload.java b/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/createworkload/SyncCreateWorkloadLocationnameWorkload.java similarity index 87% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/createworkload/SyncCreateWorkloadLocationnameWorkload.java rename to samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/createworkload/SyncCreateWorkloadLocationnameWorkload.java index b4b5d95e..6bf9a192 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/createworkload/SyncCreateWorkloadLocationnameWorkload.java +++ b/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/createworkload/SyncCreateWorkloadLocationnameWorkload.java @@ -16,7 +16,8 @@ package com.google.cloud.assuredworkloads.v1beta1.samples; -// [START assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_createworkload_locationnameworkload_sync] +// [START +// assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_createworkload_locationnameworkload_sync] import com.google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsServiceClient; import com.google.cloud.assuredworkloads.v1beta1.LocationName; import com.google.cloud.assuredworkloads.v1beta1.Workload; @@ -38,4 +39,5 @@ public static void syncCreateWorkloadLocationnameWorkload() throws Exception { } } } -// [END assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_createworkload_locationnameworkload_sync] +// [END +// assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_createworkload_locationnameworkload_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/createworkload/SyncCreateWorkloadStringWorkload.java b/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/createworkload/SyncCreateWorkloadStringWorkload.java similarity index 87% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/createworkload/SyncCreateWorkloadStringWorkload.java rename to samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/createworkload/SyncCreateWorkloadStringWorkload.java index 1fdde36d..a8c05283 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/createworkload/SyncCreateWorkloadStringWorkload.java +++ b/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/createworkload/SyncCreateWorkloadStringWorkload.java @@ -16,7 +16,8 @@ package com.google.cloud.assuredworkloads.v1beta1.samples; -// [START assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_createworkload_stringworkload_sync] +// [START +// assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_createworkload_stringworkload_sync] import com.google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsServiceClient; import com.google.cloud.assuredworkloads.v1beta1.LocationName; import com.google.cloud.assuredworkloads.v1beta1.Workload; @@ -38,4 +39,5 @@ public static void syncCreateWorkloadStringWorkload() throws Exception { } } } -// [END assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_createworkload_stringworkload_sync] +// [END +// assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_createworkload_stringworkload_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/deleteworkload/AsyncDeleteWorkload.java b/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/deleteworkload/AsyncDeleteWorkload.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/deleteworkload/AsyncDeleteWorkload.java rename to samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/deleteworkload/AsyncDeleteWorkload.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/deleteworkload/SyncDeleteWorkload.java b/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/deleteworkload/SyncDeleteWorkload.java similarity index 98% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/deleteworkload/SyncDeleteWorkload.java rename to samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/deleteworkload/SyncDeleteWorkload.java index e3d76f19..f3a0289e 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/deleteworkload/SyncDeleteWorkload.java +++ b/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/deleteworkload/SyncDeleteWorkload.java @@ -20,7 +20,6 @@ import com.google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsServiceClient; import com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest; import com.google.cloud.assuredworkloads.v1beta1.WorkloadName; -import com.google.protobuf.Empty; public class SyncDeleteWorkload { diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/deleteworkload/SyncDeleteWorkloadString.java b/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/deleteworkload/SyncDeleteWorkloadString.java similarity index 91% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/deleteworkload/SyncDeleteWorkloadString.java rename to samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/deleteworkload/SyncDeleteWorkloadString.java index 1afba608..4add015a 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/deleteworkload/SyncDeleteWorkloadString.java +++ b/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/deleteworkload/SyncDeleteWorkloadString.java @@ -16,10 +16,10 @@ package com.google.cloud.assuredworkloads.v1beta1.samples; -// [START assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_deleteworkload_string_sync] +// [START +// assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_deleteworkload_string_sync] import com.google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsServiceClient; import com.google.cloud.assuredworkloads.v1beta1.WorkloadName; -import com.google.protobuf.Empty; public class SyncDeleteWorkloadString { diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/deleteworkload/SyncDeleteWorkloadWorkloadname.java b/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/deleteworkload/SyncDeleteWorkloadWorkloadname.java similarity index 85% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/deleteworkload/SyncDeleteWorkloadWorkloadname.java rename to samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/deleteworkload/SyncDeleteWorkloadWorkloadname.java index 934db95d..1768da22 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/deleteworkload/SyncDeleteWorkloadWorkloadname.java +++ b/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/deleteworkload/SyncDeleteWorkloadWorkloadname.java @@ -16,10 +16,10 @@ package com.google.cloud.assuredworkloads.v1beta1.samples; -// [START assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_deleteworkload_workloadname_sync] +// [START +// assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_deleteworkload_workloadname_sync] import com.google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsServiceClient; import com.google.cloud.assuredworkloads.v1beta1.WorkloadName; -import com.google.protobuf.Empty; public class SyncDeleteWorkloadWorkloadname { @@ -37,4 +37,5 @@ public static void syncDeleteWorkloadWorkloadname() throws Exception { } } } -// [END assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_deleteworkload_workloadname_sync] +// [END +// assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_deleteworkload_workloadname_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/getworkload/AsyncGetWorkload.java b/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/getworkload/AsyncGetWorkload.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/getworkload/AsyncGetWorkload.java rename to samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/getworkload/AsyncGetWorkload.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/getworkload/SyncGetWorkload.java b/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/getworkload/SyncGetWorkload.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/getworkload/SyncGetWorkload.java rename to samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/getworkload/SyncGetWorkload.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/getworkload/SyncGetWorkloadString.java b/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/getworkload/SyncGetWorkloadString.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/getworkload/SyncGetWorkloadString.java rename to samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/getworkload/SyncGetWorkloadString.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/getworkload/SyncGetWorkloadWorkloadname.java b/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/getworkload/SyncGetWorkloadWorkloadname.java similarity index 87% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/getworkload/SyncGetWorkloadWorkloadname.java rename to samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/getworkload/SyncGetWorkloadWorkloadname.java index 7853d525..fb95f4f3 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/getworkload/SyncGetWorkloadWorkloadname.java +++ b/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/getworkload/SyncGetWorkloadWorkloadname.java @@ -16,7 +16,8 @@ package com.google.cloud.assuredworkloads.v1beta1.samples; -// [START assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_getworkload_workloadname_sync] +// [START +// assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_getworkload_workloadname_sync] import com.google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsServiceClient; import com.google.cloud.assuredworkloads.v1beta1.Workload; import com.google.cloud.assuredworkloads.v1beta1.WorkloadName; @@ -37,4 +38,5 @@ public static void syncGetWorkloadWorkloadname() throws Exception { } } } -// [END assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_getworkload_workloadname_sync] +// [END +// assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_getworkload_workloadname_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/listworkloads/AsyncListWorkloads.java b/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/listworkloads/AsyncListWorkloads.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/listworkloads/AsyncListWorkloads.java rename to samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/listworkloads/AsyncListWorkloads.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/listworkloads/AsyncListWorkloadsPaged.java b/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/listworkloads/AsyncListWorkloadsPaged.java similarity index 95% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/listworkloads/AsyncListWorkloadsPaged.java rename to samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/listworkloads/AsyncListWorkloadsPaged.java index bf2996e7..6bda848c 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/listworkloads/AsyncListWorkloadsPaged.java +++ b/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/listworkloads/AsyncListWorkloadsPaged.java @@ -16,7 +16,8 @@ package com.google.cloud.assuredworkloads.v1beta1.samples; -// [START assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_listworkloads_paged_async] +// [START +// assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_listworkloads_paged_async] import com.google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsServiceClient; import com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest; import com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse; diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/listworkloads/SyncListWorkloads.java b/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/listworkloads/SyncListWorkloads.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/listworkloads/SyncListWorkloads.java rename to samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/listworkloads/SyncListWorkloads.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/listworkloads/SyncListWorkloadsLocationname.java b/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/listworkloads/SyncListWorkloadsLocationname.java similarity index 87% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/listworkloads/SyncListWorkloadsLocationname.java rename to samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/listworkloads/SyncListWorkloadsLocationname.java index 95697fd9..8ee1a108 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/listworkloads/SyncListWorkloadsLocationname.java +++ b/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/listworkloads/SyncListWorkloadsLocationname.java @@ -16,7 +16,8 @@ package com.google.cloud.assuredworkloads.v1beta1.samples; -// [START assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_listworkloads_locationname_sync] +// [START +// assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_listworkloads_locationname_sync] import com.google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsServiceClient; import com.google.cloud.assuredworkloads.v1beta1.LocationName; import com.google.cloud.assuredworkloads.v1beta1.Workload; @@ -39,4 +40,5 @@ public static void syncListWorkloadsLocationname() throws Exception { } } } -// [END assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_listworkloads_locationname_sync] +// [END +// assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_listworkloads_locationname_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/listworkloads/SyncListWorkloadsString.java b/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/listworkloads/SyncListWorkloadsString.java similarity index 94% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/listworkloads/SyncListWorkloadsString.java rename to samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/listworkloads/SyncListWorkloadsString.java index a8924e7b..920dcd72 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/listworkloads/SyncListWorkloadsString.java +++ b/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/listworkloads/SyncListWorkloadsString.java @@ -16,7 +16,8 @@ package com.google.cloud.assuredworkloads.v1beta1.samples; -// [START assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_listworkloads_string_sync] +// [START +// assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_listworkloads_string_sync] import com.google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsServiceClient; import com.google.cloud.assuredworkloads.v1beta1.LocationName; import com.google.cloud.assuredworkloads.v1beta1.Workload; diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/updateworkload/AsyncUpdateWorkload.java b/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/updateworkload/AsyncUpdateWorkload.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/updateworkload/AsyncUpdateWorkload.java rename to samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/updateworkload/AsyncUpdateWorkload.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/updateworkload/SyncUpdateWorkload.java b/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/updateworkload/SyncUpdateWorkload.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/updateworkload/SyncUpdateWorkload.java rename to samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/updateworkload/SyncUpdateWorkload.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/updateworkload/SyncUpdateWorkloadWorkloadFieldmask.java b/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/updateworkload/SyncUpdateWorkloadWorkloadFieldmask.java similarity index 87% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/updateworkload/SyncUpdateWorkloadWorkloadFieldmask.java rename to samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/updateworkload/SyncUpdateWorkloadWorkloadFieldmask.java index da0a1572..2eaa7984 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/updateworkload/SyncUpdateWorkloadWorkloadFieldmask.java +++ b/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/updateworkload/SyncUpdateWorkloadWorkloadFieldmask.java @@ -16,7 +16,8 @@ package com.google.cloud.assuredworkloads.v1beta1.samples; -// [START assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_updateworkload_workloadfieldmask_sync] +// [START +// assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_updateworkload_workloadfieldmask_sync] import com.google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsServiceClient; import com.google.cloud.assuredworkloads.v1beta1.Workload; import com.google.protobuf.FieldMask; @@ -38,4 +39,5 @@ public static void syncUpdateWorkloadWorkloadFieldmask() throws Exception { } } } -// [END assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_updateworkload_workloadfieldmask_sync] +// [END +// assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_updateworkload_workloadfieldmask_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsservicesettings/updateworkload/SyncUpdateWorkload.java b/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsservicesettings/updateworkload/SyncUpdateWorkload.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsservicesettings/updateworkload/SyncUpdateWorkload.java rename to samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsservicesettings/updateworkload/SyncUpdateWorkload.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/stub/assuredworkloadsservicestubsettings/updateworkload/SyncUpdateWorkload.java b/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/stub/assuredworkloadsservicestubsettings/updateworkload/SyncUpdateWorkload.java similarity index 94% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/stub/assuredworkloadsservicestubsettings/updateworkload/SyncUpdateWorkload.java rename to samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/stub/assuredworkloadsservicestubsettings/updateworkload/SyncUpdateWorkload.java index 81eaf349..1a248c4a 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/stub/assuredworkloadsservicestubsettings/updateworkload/SyncUpdateWorkload.java +++ b/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/stub/assuredworkloadsservicestubsettings/updateworkload/SyncUpdateWorkload.java @@ -16,7 +16,8 @@ package com.google.cloud.assuredworkloads.v1beta1.stub.samples; -// [START assuredworkloads_v1beta1_generated_assuredworkloadsservicestubsettings_updateworkload_sync] +// [START +// assuredworkloads_v1beta1_generated_assuredworkloadsservicestubsettings_updateworkload_sync] import com.google.cloud.assuredworkloads.v1beta1.stub.AssuredWorkloadsServiceStubSettings; import java.time.Duration; From ccfcb22b0ee1d8c7098e7234e37e6b8ad894f540 Mon Sep 17 00:00:00 2001 From: Neenu Shaji Date: Thu, 23 Jun 2022 11:50:23 -0400 Subject: [PATCH 3/3] Update pom.xml --- google-cloud-assured-workloads/pom.xml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/google-cloud-assured-workloads/pom.xml b/google-cloud-assured-workloads/pom.xml index 3614d0da..0ff5536e 100644 --- a/google-cloud-assured-workloads/pom.xml +++ b/google-cloud-assured-workloads/pom.xml @@ -62,6 +62,10 @@ com.google.api gax-grpc + + com.google.api + gax-httpjson + org.threeten threetenbp @@ -86,12 +90,24 @@ test + + com.google.api + gax + testlib + test + com.google.api gax-grpc testlib test + + com.google.api + gax-httpjson + testlib + test +