From 874b8602baed3e6e423ac94bd300d59d06371d16 Mon Sep 17 00:00:00 2001 From: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 13 Jul 2023 19:13:30 +0000 Subject: [PATCH 1/2] feat: add resource_types to SearchAllResources, to allow filtering by resource type PiperOrigin-RevId: 547834040 Source-Link: https://github.com/googleapis/googleapis/commit/ecb3e475876b7e3461d9759242ff118321a7a09f Source-Link: https://github.com/googleapis/googleapis-gen/commit/6869315f60f1a202968f66fb11b07483b11148fc Copy-Tag: eyJwIjoiamF2YS1rbXNpbnZlbnRvcnkvLk93bEJvdC55YW1sIiwiaCI6IjY4NjkzMTVmNjBmMWEyMDI5NjhmNjZmYjExYjA3NDgzYjExMTQ4ZmMifQ== --- ...ectedResourcesSummaryRequestOrBuilder.java | 56 - .../v1/KeyDashboardServiceProto.java | 117 -- .../inventory/v1/KeyTrackingServiceProto.java | 271 --- .../v1/SearchProtectedResourcesRequest.java | 1190 ------------- ...rchProtectedResourcesRequestOrBuilder.java | 140 -- .../v1/KeyDashboardServiceClient.java | 0 .../v1/KeyDashboardServiceSettings.java | 1 + .../v1/KeyTrackingServiceClient.java | 3 + .../v1/KeyTrackingServiceSettings.java | 1 + .../kms/inventory/v1/gapic_metadata.json | 0 .../cloud/kms/inventory/v1/package-info.java | 0 ...rpcKeyDashboardServiceCallableFactory.java | 0 .../v1/stub/GrpcKeyDashboardServiceStub.java | 1 + ...GrpcKeyTrackingServiceCallableFactory.java | 0 .../v1/stub/GrpcKeyTrackingServiceStub.java | 1 + ...sonKeyDashboardServiceCallableFactory.java | 0 .../stub/HttpJsonKeyDashboardServiceStub.java | 0 ...JsonKeyTrackingServiceCallableFactory.java | 0 .../stub/HttpJsonKeyTrackingServiceStub.java | 2 + .../v1/stub/KeyDashboardServiceStub.java | 0 .../stub/KeyDashboardServiceStubSettings.java | 0 .../v1/stub/KeyTrackingServiceStub.java | 0 .../stub/KeyTrackingServiceStubSettings.java | 0 ...KeyDashboardServiceClientHttpJsonTest.java | 0 .../v1/KeyDashboardServiceClientTest.java | 0 .../KeyTrackingServiceClientHttpJsonTest.java | 0 .../v1/KeyTrackingServiceClientTest.java | 0 .../inventory/v1/MockKeyDashboardService.java | 0 .../v1/MockKeyDashboardServiceImpl.java | 0 .../inventory/v1/MockKeyTrackingService.java | 0 .../v1/MockKeyTrackingServiceImpl.java | 0 .../inventory/v1/KeyDashboardServiceGrpc.java | 211 +-- .../inventory/v1/KeyTrackingServiceGrpc.java | 343 ++-- .../GetProtectedResourcesSummaryRequest.java | 389 ++--- ...ectedResourcesSummaryRequestOrBuilder.java | 31 + .../v1/KeyDashboardServiceProto.java | 101 ++ .../inventory/v1/KeyTrackingServiceProto.java | 227 +++ .../inventory/v1/ListCryptoKeysRequest.java | 453 ++--- .../v1/ListCryptoKeysRequestOrBuilder.java | 47 +- .../inventory/v1/ListCryptoKeysResponse.java | 482 +++--- .../v1/ListCryptoKeysResponseOrBuilder.java | 46 +- .../kms/inventory/v1/OrganizationName.java | 0 .../cloud/kms/inventory/v1/ProjectName.java | 0 .../kms/inventory/v1/ProtectedResource.java | 1283 ++++++-------- .../v1/ProtectedResourceOrBuilder.java | 158 +- .../v1/ProtectedResourcesSummary.java | 1063 ++++++------ .../v1/ProtectedResourcesSummaryName.java | 0 .../ProtectedResourcesSummaryOrBuilder.java | 123 +- .../v1/SearchProtectedResourcesRequest.java | 1467 +++++++++++++++++ ...rchProtectedResourcesRequestOrBuilder.java | 191 +++ .../v1/SearchProtectedResourcesResponse.java | 578 +++---- ...chProtectedResourcesResponseOrBuilder.java | 42 +- .../inventory/v1/key_dashboard_service.proto | 2 +- .../inventory/v1/key_tracking_service.proto | 18 +- .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../listcryptokeys/AsyncListCryptoKeys.java | 0 .../AsyncListCryptoKeysPaged.java | 0 .../listcryptokeys/SyncListCryptoKeys.java | 0 .../SyncListCryptoKeysProjectname.java | 0 .../SyncListCryptoKeysString.java | 0 .../listcryptokeys/SyncListCryptoKeys.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../AsyncGetProtectedResourcesSummary.java | 0 .../SyncGetProtectedResourcesSummary.java | 0 ...sSummaryProtectedresourcessummaryname.java | 0 ...yncGetProtectedResourcesSummaryString.java | 0 .../AsyncSearchProtectedResources.java | 2 + .../AsyncSearchProtectedResourcesPaged.java | 2 + .../SyncSearchProtectedResources.java | 2 + ...ResourcesOrganizationnameResourcename.java | 0 ...tectedResourcesOrganizationnameString.java | 0 ...hProtectedResourcesStringResourcename.java | 0 ...cSearchProtectedResourcesStringString.java | 0 .../SyncGetProtectedResourcesSummary.java | 0 .../listcryptokeys/SyncListCryptoKeys.java | 0 .../SyncGetProtectedResourcesSummary.java | 0 80 files changed, 4087 insertions(+), 4957 deletions(-) delete mode 100644 java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/GetProtectedResourcesSummaryRequestOrBuilder.java delete mode 100644 java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/KeyDashboardServiceProto.java delete mode 100644 java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/KeyTrackingServiceProto.java delete mode 100644 java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/SearchProtectedResourcesRequest.java delete mode 100644 java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/SearchProtectedResourcesRequestOrBuilder.java rename {java-kmsinventory => owl-bot-staging/java-kmsinventory/v1}/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/KeyDashboardServiceClient.java (100%) rename {java-kmsinventory => owl-bot-staging/java-kmsinventory/v1}/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/KeyDashboardServiceSettings.java (99%) rename {java-kmsinventory => owl-bot-staging/java-kmsinventory/v1}/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/KeyTrackingServiceClient.java (99%) rename {java-kmsinventory => owl-bot-staging/java-kmsinventory/v1}/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/KeyTrackingServiceSettings.java (99%) rename {java-kmsinventory => owl-bot-staging/java-kmsinventory/v1}/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/gapic_metadata.json (100%) rename {java-kmsinventory => owl-bot-staging/java-kmsinventory/v1}/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/package-info.java (100%) rename {java-kmsinventory => owl-bot-staging/java-kmsinventory/v1}/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/GrpcKeyDashboardServiceCallableFactory.java (100%) rename {java-kmsinventory => owl-bot-staging/java-kmsinventory/v1}/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/GrpcKeyDashboardServiceStub.java (99%) rename {java-kmsinventory => owl-bot-staging/java-kmsinventory/v1}/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/GrpcKeyTrackingServiceCallableFactory.java (100%) rename {java-kmsinventory => owl-bot-staging/java-kmsinventory/v1}/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/GrpcKeyTrackingServiceStub.java (99%) rename {java-kmsinventory => owl-bot-staging/java-kmsinventory/v1}/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/HttpJsonKeyDashboardServiceCallableFactory.java (100%) rename {java-kmsinventory => owl-bot-staging/java-kmsinventory/v1}/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/HttpJsonKeyDashboardServiceStub.java (100%) rename {java-kmsinventory => owl-bot-staging/java-kmsinventory/v1}/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/HttpJsonKeyTrackingServiceCallableFactory.java (100%) rename {java-kmsinventory => owl-bot-staging/java-kmsinventory/v1}/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/HttpJsonKeyTrackingServiceStub.java (98%) rename {java-kmsinventory => owl-bot-staging/java-kmsinventory/v1}/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/KeyDashboardServiceStub.java (100%) rename {java-kmsinventory => owl-bot-staging/java-kmsinventory/v1}/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/KeyDashboardServiceStubSettings.java (100%) rename {java-kmsinventory => owl-bot-staging/java-kmsinventory/v1}/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/KeyTrackingServiceStub.java (100%) rename {java-kmsinventory => owl-bot-staging/java-kmsinventory/v1}/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/KeyTrackingServiceStubSettings.java (100%) rename {java-kmsinventory => owl-bot-staging/java-kmsinventory/v1}/google-cloud-kmsinventory/src/test/java/com/google/cloud/kms/inventory/v1/KeyDashboardServiceClientHttpJsonTest.java (100%) rename {java-kmsinventory => owl-bot-staging/java-kmsinventory/v1}/google-cloud-kmsinventory/src/test/java/com/google/cloud/kms/inventory/v1/KeyDashboardServiceClientTest.java (100%) rename {java-kmsinventory => owl-bot-staging/java-kmsinventory/v1}/google-cloud-kmsinventory/src/test/java/com/google/cloud/kms/inventory/v1/KeyTrackingServiceClientHttpJsonTest.java (100%) rename {java-kmsinventory => owl-bot-staging/java-kmsinventory/v1}/google-cloud-kmsinventory/src/test/java/com/google/cloud/kms/inventory/v1/KeyTrackingServiceClientTest.java (100%) rename {java-kmsinventory => owl-bot-staging/java-kmsinventory/v1}/google-cloud-kmsinventory/src/test/java/com/google/cloud/kms/inventory/v1/MockKeyDashboardService.java (100%) rename {java-kmsinventory => owl-bot-staging/java-kmsinventory/v1}/google-cloud-kmsinventory/src/test/java/com/google/cloud/kms/inventory/v1/MockKeyDashboardServiceImpl.java (100%) rename {java-kmsinventory => owl-bot-staging/java-kmsinventory/v1}/google-cloud-kmsinventory/src/test/java/com/google/cloud/kms/inventory/v1/MockKeyTrackingService.java (100%) rename {java-kmsinventory => owl-bot-staging/java-kmsinventory/v1}/google-cloud-kmsinventory/src/test/java/com/google/cloud/kms/inventory/v1/MockKeyTrackingServiceImpl.java (100%) rename {java-kmsinventory => owl-bot-staging/java-kmsinventory/v1}/grpc-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/KeyDashboardServiceGrpc.java (58%) rename {java-kmsinventory => owl-bot-staging/java-kmsinventory/v1}/grpc-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/KeyTrackingServiceGrpc.java (50%) rename {java-kmsinventory => owl-bot-staging/java-kmsinventory/v1}/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/GetProtectedResourcesSummaryRequest.java (59%) create mode 100644 owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/GetProtectedResourcesSummaryRequestOrBuilder.java create mode 100644 owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/KeyDashboardServiceProto.java create mode 100644 owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/KeyTrackingServiceProto.java rename {java-kmsinventory => owl-bot-staging/java-kmsinventory/v1}/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ListCryptoKeysRequest.java (68%) rename {java-kmsinventory => owl-bot-staging/java-kmsinventory/v1}/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ListCryptoKeysRequestOrBuilder.java (60%) rename {java-kmsinventory => owl-bot-staging/java-kmsinventory/v1}/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ListCryptoKeysResponse.java (72%) rename {java-kmsinventory => owl-bot-staging/java-kmsinventory/v1}/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ListCryptoKeysResponseOrBuilder.java (67%) rename {java-kmsinventory => owl-bot-staging/java-kmsinventory/v1}/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/OrganizationName.java (100%) rename {java-kmsinventory => owl-bot-staging/java-kmsinventory/v1}/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ProjectName.java (100%) rename {java-kmsinventory => owl-bot-staging/java-kmsinventory/v1}/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ProtectedResource.java (71%) rename {java-kmsinventory => owl-bot-staging/java-kmsinventory/v1}/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ProtectedResourceOrBuilder.java (79%) rename {java-kmsinventory => owl-bot-staging/java-kmsinventory/v1}/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ProtectedResourcesSummary.java (62%) rename {java-kmsinventory => owl-bot-staging/java-kmsinventory/v1}/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ProtectedResourcesSummaryName.java (100%) rename {java-kmsinventory => owl-bot-staging/java-kmsinventory/v1}/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ProtectedResourcesSummaryOrBuilder.java (67%) create mode 100644 owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/SearchProtectedResourcesRequest.java create mode 100644 owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/SearchProtectedResourcesRequestOrBuilder.java rename {java-kmsinventory => owl-bot-staging/java-kmsinventory/v1}/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/SearchProtectedResourcesResponse.java (68%) rename {java-kmsinventory => owl-bot-staging/java-kmsinventory/v1}/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/SearchProtectedResourcesResponseOrBuilder.java (71%) rename {java-kmsinventory => owl-bot-staging/java-kmsinventory/v1}/proto-google-cloud-kmsinventory-v1/src/main/proto/google/cloud/kms/inventory/v1/key_dashboard_service.proto (99%) rename {java-kmsinventory => owl-bot-staging/java-kmsinventory/v1}/proto-google-cloud-kmsinventory-v1/src/main/proto/google/cloud/kms/inventory/v1/key_tracking_service.proto (90%) rename {java-kmsinventory => owl-bot-staging/java-kmsinventory/v1}/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keydashboardservice/create/SyncCreateSetCredentialsProvider.java (100%) rename {java-kmsinventory => owl-bot-staging/java-kmsinventory/v1}/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keydashboardservice/create/SyncCreateSetCredentialsProvider1.java (100%) rename {java-kmsinventory => owl-bot-staging/java-kmsinventory/v1}/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keydashboardservice/create/SyncCreateSetEndpoint.java (100%) rename {java-kmsinventory => owl-bot-staging/java-kmsinventory/v1}/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keydashboardservice/listcryptokeys/AsyncListCryptoKeys.java (100%) rename {java-kmsinventory => owl-bot-staging/java-kmsinventory/v1}/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keydashboardservice/listcryptokeys/AsyncListCryptoKeysPaged.java (100%) rename {java-kmsinventory => owl-bot-staging/java-kmsinventory/v1}/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keydashboardservice/listcryptokeys/SyncListCryptoKeys.java (100%) rename {java-kmsinventory => owl-bot-staging/java-kmsinventory/v1}/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keydashboardservice/listcryptokeys/SyncListCryptoKeysProjectname.java (100%) rename {java-kmsinventory => owl-bot-staging/java-kmsinventory/v1}/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keydashboardservice/listcryptokeys/SyncListCryptoKeysString.java (100%) rename {java-kmsinventory => owl-bot-staging/java-kmsinventory/v1}/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keydashboardservicesettings/listcryptokeys/SyncListCryptoKeys.java (100%) rename {java-kmsinventory => owl-bot-staging/java-kmsinventory/v1}/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/create/SyncCreateSetCredentialsProvider.java (100%) rename {java-kmsinventory => owl-bot-staging/java-kmsinventory/v1}/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/create/SyncCreateSetCredentialsProvider1.java (100%) rename {java-kmsinventory => owl-bot-staging/java-kmsinventory/v1}/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/create/SyncCreateSetEndpoint.java (100%) rename {java-kmsinventory => owl-bot-staging/java-kmsinventory/v1}/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/getprotectedresourcessummary/AsyncGetProtectedResourcesSummary.java (100%) rename {java-kmsinventory => owl-bot-staging/java-kmsinventory/v1}/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/getprotectedresourcessummary/SyncGetProtectedResourcesSummary.java (100%) rename {java-kmsinventory => owl-bot-staging/java-kmsinventory/v1}/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/getprotectedresourcessummary/SyncGetProtectedResourcesSummaryProtectedresourcessummaryname.java (100%) rename {java-kmsinventory => owl-bot-staging/java-kmsinventory/v1}/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/getprotectedresourcessummary/SyncGetProtectedResourcesSummaryString.java (100%) rename {java-kmsinventory => owl-bot-staging/java-kmsinventory/v1}/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/searchprotectedresources/AsyncSearchProtectedResources.java (96%) rename {java-kmsinventory => owl-bot-staging/java-kmsinventory/v1}/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/searchprotectedresources/AsyncSearchProtectedResourcesPaged.java (97%) rename {java-kmsinventory => owl-bot-staging/java-kmsinventory/v1}/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/searchprotectedresources/SyncSearchProtectedResources.java (96%) rename {java-kmsinventory => owl-bot-staging/java-kmsinventory/v1}/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/searchprotectedresources/SyncSearchProtectedResourcesOrganizationnameResourcename.java (100%) rename {java-kmsinventory => owl-bot-staging/java-kmsinventory/v1}/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/searchprotectedresources/SyncSearchProtectedResourcesOrganizationnameString.java (100%) rename {java-kmsinventory => owl-bot-staging/java-kmsinventory/v1}/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/searchprotectedresources/SyncSearchProtectedResourcesStringResourcename.java (100%) rename {java-kmsinventory => owl-bot-staging/java-kmsinventory/v1}/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/searchprotectedresources/SyncSearchProtectedResourcesStringString.java (100%) rename {java-kmsinventory => owl-bot-staging/java-kmsinventory/v1}/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservicesettings/getprotectedresourcessummary/SyncGetProtectedResourcesSummary.java (100%) rename {java-kmsinventory => owl-bot-staging/java-kmsinventory/v1}/samples/snippets/generated/com/google/cloud/kms/inventory/v1/stub/keydashboardservicestubsettings/listcryptokeys/SyncListCryptoKeys.java (100%) rename {java-kmsinventory => owl-bot-staging/java-kmsinventory/v1}/samples/snippets/generated/com/google/cloud/kms/inventory/v1/stub/keytrackingservicestubsettings/getprotectedresourcessummary/SyncGetProtectedResourcesSummary.java (100%) diff --git a/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/GetProtectedResourcesSummaryRequestOrBuilder.java b/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/GetProtectedResourcesSummaryRequestOrBuilder.java deleted file mode 100644 index 7e5adfa57a3c..000000000000 --- a/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/GetProtectedResourcesSummaryRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/kms/inventory/v1/key_tracking_service.proto - -package com.google.cloud.kms.inventory.v1; - -public interface GetProtectedResourcesSummaryRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - * <pre> - * Required. The resource name of the - * [CryptoKey][google.cloud.kms.v1.CryptoKey]. - * </pre> - * - * <code> - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - * <pre> - * Required. The resource name of the - * [CryptoKey][google.cloud.kms.v1.CryptoKey]. - * </pre> - * - * <code> - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/KeyDashboardServiceProto.java b/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/KeyDashboardServiceProto.java deleted file mode 100644 index b990cbe933a9..000000000000 --- a/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/KeyDashboardServiceProto.java +++ /dev/null @@ -1,117 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/kms/inventory/v1/key_dashboard_service.proto - -package com.google.cloud.kms.inventory.v1; - -public final class KeyDashboardServiceProto { - private KeyDashboardServiceProto() {} - - 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_kms_inventory_v1_ListCryptoKeysRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_kms_inventory_v1_ListCryptoKeysRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_kms_inventory_v1_ListCryptoKeysResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_kms_inventory_v1_ListCryptoKeysResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n9google/cloud/kms/inventory/v1/key_dash" - + "board_service.proto\022\035google.cloud.kms.in" - + "ventory.v1\032\034google/api/annotations.proto" - + "\032\027google/api/client.proto\032\037google/api/fi" - + "eld_behavior.proto\032\031google/api/resource." - + "proto\032#google/cloud/kms/v1/resources.pro" - + "to\"\220\001\n\025ListCryptoKeysRequest\022D\n\006parent\030\001" - + " \001(\tB4\342A\001\002\372A-\n+cloudresourcemanager.goog" - + "leapis.com/Project\022\027\n\tpage_size\030\002 \001(\005B\004\342" - + "A\001\001\022\030\n\npage_token\030\003 \001(\tB\004\342A\001\001\"f\n\026ListCry" - + "ptoKeysResponse\0223\n\013crypto_keys\030\001 \003(\0132\036.g" - + "oogle.cloud.kms.v1.CryptoKey\022\027\n\017next_pag" - + "e_token\030\002 \001(\t2\233\002\n\023KeyDashboardService\022\262\001" - + "\n\016ListCryptoKeys\0224.google.cloud.kms.inve" - + "ntory.v1.ListCryptoKeysRequest\0325.google." - + "cloud.kms.inventory.v1.ListCryptoKeysRes" - + "ponse\"3\332A\006parent\202\323\344\223\002$\022\"/v1/{parent=proj" - + "ects/*}/cryptoKeys\032O\312A\033kmsinventory.goog" - + "leapis.com\322A.https://www.googleapis.com/" - + "auth/cloud-platformB\303\001\n!com.google.cloud" - + ".kms.inventory.v1B\030KeyDashboardServicePr" - + "otoP\001Z?cloud.google.com/go/kms/inventory" - + "/apiv1/inventorypb;inventorypb\370\001\001\252\002\035Goog" - + "le.Cloud.Kms.Inventory.V1\312\002\035Google\\Cloud" - + "\\Kms\\Inventory\\V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.kms.v1.KmsResourcesProto.getDescriptor(), - }); - internal_static_google_cloud_kms_inventory_v1_ListCryptoKeysRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_kms_inventory_v1_ListCryptoKeysRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_kms_inventory_v1_ListCryptoKeysRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", - }); - internal_static_google_cloud_kms_inventory_v1_ListCryptoKeysResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_kms_inventory_v1_ListCryptoKeysResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_kms_inventory_v1_ListCryptoKeysResponse_descriptor, - new java.lang.String[] { - "CryptoKeys", "NextPageToken", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.kms.v1.KmsResourcesProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/KeyTrackingServiceProto.java b/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/KeyTrackingServiceProto.java deleted file mode 100644 index 7db8fef4f211..000000000000 --- a/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/KeyTrackingServiceProto.java +++ /dev/null @@ -1,271 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/kms/inventory/v1/key_tracking_service.proto - -package com.google.cloud.kms.inventory.v1; - -public final class KeyTrackingServiceProto { - private KeyTrackingServiceProto() {} - - 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_kms_inventory_v1_GetProtectedResourcesSummaryRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_kms_inventory_v1_GetProtectedResourcesSummaryRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_ResourceTypesEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_ResourceTypesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_CloudProductsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_CloudProductsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_LocationsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_LocationsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_kms_inventory_v1_SearchProtectedResourcesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_kms_inventory_v1_SearchProtectedResourcesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_kms_inventory_v1_SearchProtectedResourcesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_kms_inventory_v1_SearchProtectedResourcesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_kms_inventory_v1_ProtectedResource_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_kms_inventory_v1_ProtectedResource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_kms_inventory_v1_ProtectedResource_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_kms_inventory_v1_ProtectedResource_LabelsEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n8google/cloud/kms/inventory/v1/key_trac" - + "king_service.proto\022\035google.cloud.kms.inv" - + "entory.v1\032\034google/api/annotations.proto\032" - + "\027google/api/client.proto\032\037google/api/fie" - + "ld_behavior.proto\032\031google/api/resource.p" - + "roto\032\037google/protobuf/timestamp.proto\"s\n" - + "#GetProtectedResourcesSummaryRequest\022L\n\004" - + "name\030\001 \001(\tB>\342A\001\002\372A7\n5kmsinventory.google" - + "apis.com/ProtectedResourcesSummary\"\340\006\n\031P" - + "rotectedResourcesSummary\022\014\n\004name\030\005 \001(\t\022\026" - + "\n\016resource_count\030\001 \001(\003\022\025\n\rproject_count\030" - + "\002 \001(\005\022c\n\016resource_types\030\003 \003(\0132K.google.c" - + "loud.kms.inventory.v1.ProtectedResources" - + "Summary.ResourceTypesEntry\022c\n\016cloud_prod" - + "ucts\030\006 \003(\0132K.google.cloud.kms.inventory." - + "v1.ProtectedResourcesSummary.CloudProduc" - + "tsEntry\022Z\n\tlocations\030\004 \003(\0132G.google.clou" - + "d.kms.inventory.v1.ProtectedResourcesSum" - + "mary.LocationsEntry\0324\n\022ResourceTypesEntr" - + "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\003:\0028\001\0324\n\022Clo" - + "udProductsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " - + "\001(\003:\0028\001\0320\n\016LocationsEntry\022\013\n\003key\030\001 \001(\t\022\r" - + "\n\005value\030\002 \001(\003:\0028\001:\301\002\352A\275\002\n5kmsinventory.g" - + "oogleapis.com/ProtectedResourcesSummary\022" - + "mprojects/{project}/locations/{location}" - + "/keyRings/{key_ring}/cryptoKeys/{crypto_" - + "key}/protectedResourcesSummary\022\224\001project" - + "s/{project}/locations/{location}/keyRing" - + "s/{key_ring}/cryptoKeys/{crypto_key}/cry" - + "ptoKeyVersions/{crypto_key_version}/prot" - + "ectedResourcesSummary\"\262\001\n\037SearchProtecte" - + "dResourcesRequest\022H\n\005scope\030\002 \001(\tB9\342A\001\002\372A" - + "2\n0cloudresourcemanager.googleapis.com/O" - + "rganization\022\036\n\ncrypto_key\030\001 \001(\tB\n\342A\001\002\372A\003" - + "\n\001*\022\021\n\tpage_size\030\003 \001(\005\022\022\n\npage_token\030\004 \001" - + "(\t\"\212\001\n SearchProtectedResourcesResponse\022" - + "M\n\023protected_resources\030\001 \003(\01320.google.cl" - + "oud.kms.inventory.v1.ProtectedResource\022\027" - + "\n\017next_page_token\030\002 \001(\t\"\372\003\n\021ProtectedRes" - + "ource\022\014\n\004name\030\001 \001(\t\022\017\n\007project\030\002 \001(\t\022\022\n\n" - + "project_id\030\t \001(\t\022\025\n\rcloud_product\030\010 \001(\t\022" - + "\025\n\rresource_type\030\003 \001(\t\022\020\n\010location\030\004 \001(\t" - + "\022L\n\006labels\030\005 \003(\0132<.google.cloud.kms.inve" - + "ntory.v1.ProtectedResource.LabelsEntry\022I" - + "\n\022crypto_key_version\030\006 \001(\tB-\372A*\n(cloudkm" - + "s.googleapis.com/CryptoKeyVersion\022J\n\023cry" - + "pto_key_versions\030\n \003(\tB-\372A*\n(cloudkms.go" - + "ogleapis.com/CryptoKeyVersion\0225\n\013create_" - + "time\030\007 \001(\0132\032.google.protobuf.TimestampB\004" - + "\342A\001\003\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005valu" - + "e\030\002 \001(\t:\0028\001:\'\352A$\n\037cloudasset.googleapis." - + "com/Asset\022\001*2\332\004\n\022KeyTrackingService\022\201\002\n\034" - + "GetProtectedResourcesSummary\022B.google.cl" - + "oud.kms.inventory.v1.GetProtectedResourc" - + "esSummaryRequest\0328.google.cloud.kms.inve" - + "ntory.v1.ProtectedResourcesSummary\"c\332A\004n" - + "ame\202\323\344\223\002V\022T/v1/{name=projects/*/location" - + "s/*/keyRings/*/cryptoKeys/**}/protectedR" - + "esourcesSummary\022\356\001\n\030SearchProtectedResou" - + "rces\022>.google.cloud.kms.inventory.v1.Sea" - + "rchProtectedResourcesRequest\032?.google.cl" - + "oud.kms.inventory.v1.SearchProtectedReso" - + "urcesResponse\"Q\332A\021scope, crypto_key\202\323\344\223\002" - + "7\0225/v1/{scope=organizations/*}/protected" - + "Resources:search\032O\312A\033kmsinventory.google" - + "apis.com\322A.https://www.googleapis.com/au" - + "th/cloud-platformB\302\001\n!com.google.cloud.k" - + "ms.inventory.v1B\027KeyTrackingServiceProto" - + "P\001Z?cloud.google.com/go/kms/inventory/ap" - + "iv1/inventorypb;inventorypb\370\001\001\252\002\035Google." - + "Cloud.Kms.Inventory.V1\312\002\035Google\\Cloud\\Km" - + "s\\Inventory\\V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_kms_inventory_v1_GetProtectedResourcesSummaryRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_kms_inventory_v1_GetProtectedResourcesSummaryRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_kms_inventory_v1_GetProtectedResourcesSummaryRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_descriptor, - new java.lang.String[] { - "Name", - "ResourceCount", - "ProjectCount", - "ResourceTypes", - "CloudProducts", - "Locations", - }); - internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_ResourceTypesEntry_descriptor = - internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_ResourceTypesEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_ResourceTypesEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_CloudProductsEntry_descriptor = - internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_CloudProductsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_CloudProductsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_LocationsEntry_descriptor = - internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_descriptor - .getNestedTypes() - .get(2); - internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_LocationsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_LocationsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_kms_inventory_v1_SearchProtectedResourcesRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_kms_inventory_v1_SearchProtectedResourcesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_kms_inventory_v1_SearchProtectedResourcesRequest_descriptor, - new java.lang.String[] { - "Scope", "CryptoKey", "PageSize", "PageToken", - }); - internal_static_google_cloud_kms_inventory_v1_SearchProtectedResourcesResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_kms_inventory_v1_SearchProtectedResourcesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_kms_inventory_v1_SearchProtectedResourcesResponse_descriptor, - new java.lang.String[] { - "ProtectedResources", "NextPageToken", - }); - internal_static_google_cloud_kms_inventory_v1_ProtectedResource_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_kms_inventory_v1_ProtectedResource_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_kms_inventory_v1_ProtectedResource_descriptor, - new java.lang.String[] { - "Name", - "Project", - "ProjectId", - "CloudProduct", - "ResourceType", - "Location", - "Labels", - "CryptoKeyVersion", - "CryptoKeyVersions", - "CreateTime", - }); - internal_static_google_cloud_kms_inventory_v1_ProtectedResource_LabelsEntry_descriptor = - internal_static_google_cloud_kms_inventory_v1_ProtectedResource_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_kms_inventory_v1_ProtectedResource_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_kms_inventory_v1_ProtectedResource_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/SearchProtectedResourcesRequest.java b/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/SearchProtectedResourcesRequest.java deleted file mode 100644 index 3a5925f0c278..000000000000 --- a/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/SearchProtectedResourcesRequest.java +++ /dev/null @@ -1,1190 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/kms/inventory/v1/key_tracking_service.proto - -package com.google.cloud.kms.inventory.v1; - -/** - * - * - * <pre> - * Request message for - * [KeyTrackingService.SearchProtectedResources][google.cloud.kms.inventory.v1.KeyTrackingService.SearchProtectedResources]. - * </pre> - * - * Protobuf type {@code google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest} - */ -public final class SearchProtectedResourcesRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest) - SearchProtectedResourcesRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use SearchProtectedResourcesRequest.newBuilder() to construct. - private SearchProtectedResourcesRequest( - com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - - private SearchProtectedResourcesRequest() { - scope_ = ""; - cryptoKey_ = ""; - pageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new SearchProtectedResourcesRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.kms.inventory.v1.KeyTrackingServiceProto - .internal_static_google_cloud_kms_inventory_v1_SearchProtectedResourcesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.kms.inventory.v1.KeyTrackingServiceProto - .internal_static_google_cloud_kms_inventory_v1_SearchProtectedResourcesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest.class, - com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest.Builder.class); - } - - public static final int SCOPE_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object scope_ = ""; - /** - * - * - * <pre> - * Required. Resource name of the organization. - * Example: organizations/123 - * </pre> - * - * <code> - * string scope = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * - * @return The scope. - */ - @java.lang.Override - public java.lang.String getScope() { - java.lang.Object ref = scope_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - scope_ = s; - return s; - } - } - /** - * - * - * <pre> - * Required. Resource name of the organization. - * Example: organizations/123 - * </pre> - * - * <code> - * string scope = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * - * @return The bytes for scope. - */ - @java.lang.Override - public com.google.protobuf.ByteString getScopeBytes() { - java.lang.Object ref = scope_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - scope_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CRYPTO_KEY_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object cryptoKey_ = ""; - /** - * - * - * <pre> - * Required. The resource name of the - * [CryptoKey][google.cloud.kms.v1.CryptoKey]. - * </pre> - * - * <code> - * string crypto_key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * - * @return The cryptoKey. - */ - @java.lang.Override - public java.lang.String getCryptoKey() { - java.lang.Object ref = cryptoKey_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - cryptoKey_ = s; - return s; - } - } - /** - * - * - * <pre> - * Required. The resource name of the - * [CryptoKey][google.cloud.kms.v1.CryptoKey]. - * </pre> - * - * <code> - * string crypto_key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * - * @return The bytes for cryptoKey. - */ - @java.lang.Override - public com.google.protobuf.ByteString getCryptoKeyBytes() { - java.lang.Object ref = cryptoKey_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - cryptoKey_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGE_SIZE_FIELD_NUMBER = 3; - private int pageSize_ = 0; - /** - * - * - * <pre> - * The maximum number of resources to return. The service may return fewer - * than this value. - * If unspecified, at most 500 resources will be returned. - * The maximum value is 500; values above 500 will be coerced to 500. - * </pre> - * - * <code>int32 page_size = 3;</code> - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - public static final int PAGE_TOKEN_FIELD_NUMBER = 4; - - @SuppressWarnings("serial") - private volatile java.lang.Object pageToken_ = ""; - /** - * - * - * <pre> - * A page token, received from a previous - * [KeyTrackingService.SearchProtectedResources][google.cloud.kms.inventory.v1.KeyTrackingService.SearchProtectedResources] - * call. Provide this to retrieve the subsequent page. - * - * When paginating, all other parameters provided to - * [KeyTrackingService.SearchProtectedResources][google.cloud.kms.inventory.v1.KeyTrackingService.SearchProtectedResources] - * must match the call that provided the page token. - * </pre> - * - * <code>string page_token = 4;</code> - * - * @return The pageToken. - */ - @java.lang.Override - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } - } - /** - * - * - * <pre> - * A page token, received from a previous - * [KeyTrackingService.SearchProtectedResources][google.cloud.kms.inventory.v1.KeyTrackingService.SearchProtectedResources] - * call. Provide this to retrieve the subsequent page. - * - * When paginating, all other parameters provided to - * [KeyTrackingService.SearchProtectedResources][google.cloud.kms.inventory.v1.KeyTrackingService.SearchProtectedResources] - * must match the call that provided the page token. - * </pre> - * - * <code>string page_token = 4;</code> - * - * @return The bytes for pageToken. - */ - @java.lang.Override - 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); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cryptoKey_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, cryptoKey_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(scope_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, scope_); - } - if (pageSize_ != 0) { - output.writeInt32(3, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pageToken_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cryptoKey_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, cryptoKey_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(scope_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, scope_); - } - if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest)) { - return super.equals(obj); - } - com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest other = - (com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest) obj; - - if (!getScope().equals(other.getScope())) return false; - if (!getCryptoKey().equals(other.getCryptoKey())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SCOPE_FIELD_NUMBER; - hash = (53 * hash) + getScope().hashCode(); - hash = (37 * hash) + CRYPTO_KEY_FIELD_NUMBER; - hash = (53 * hash) + getCryptoKey().hashCode(); - hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; - hash = (53 * hash) + getPageSize(); - hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getPageToken().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest 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.kms.inventory.v1.SearchProtectedResourcesRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest 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.kms.inventory.v1.SearchProtectedResourcesRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest 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.kms.inventory.v1.SearchProtectedResourcesRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest - parseDelimitedFrom( - java.io.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.kms.inventory.v1.SearchProtectedResourcesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - * <pre> - * Request message for - * [KeyTrackingService.SearchProtectedResources][google.cloud.kms.inventory.v1.KeyTrackingService.SearchProtectedResources]. - * </pre> - * - * Protobuf type {@code google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements - // @@protoc_insertion_point(builder_implements:google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest) - com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.kms.inventory.v1.KeyTrackingServiceProto - .internal_static_google_cloud_kms_inventory_v1_SearchProtectedResourcesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.kms.inventory.v1.KeyTrackingServiceProto - .internal_static_google_cloud_kms_inventory_v1_SearchProtectedResourcesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest.class, - com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest.Builder.class); - } - - // Construct using - // com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - scope_ = ""; - cryptoKey_ = ""; - pageSize_ = 0; - pageToken_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.kms.inventory.v1.KeyTrackingServiceProto - .internal_static_google_cloud_kms_inventory_v1_SearchProtectedResourcesRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest - getDefaultInstanceForType() { - return com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest build() { - com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest buildPartial() { - com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest result = - new com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.scope_ = scope_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.cryptoKey_ = cryptoKey_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.pageSize_ = pageSize_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.pageToken_ = pageToken_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest) { - return mergeFrom((com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest other) { - if (other - == com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest.getDefaultInstance()) - return this; - if (!other.getScope().isEmpty()) { - scope_ = other.scope_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getCryptoKey().isEmpty()) { - cryptoKey_ = other.cryptoKey_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - bitField0_ |= 0x00000008; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - cryptoKey_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 10 - case 18: - { - scope_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 18 - case 24: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object scope_ = ""; - /** - * - * - * <pre> - * Required. Resource name of the organization. - * Example: organizations/123 - * </pre> - * - * <code> - * string scope = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * - * @return The scope. - */ - public java.lang.String getScope() { - java.lang.Object ref = scope_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - scope_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - * <pre> - * Required. Resource name of the organization. - * Example: organizations/123 - * </pre> - * - * <code> - * string scope = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * - * @return The bytes for scope. - */ - public com.google.protobuf.ByteString getScopeBytes() { - java.lang.Object ref = scope_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - scope_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - * <pre> - * Required. Resource name of the organization. - * Example: organizations/123 - * </pre> - * - * <code> - * string scope = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * - * @param value The scope to set. - * @return This builder for chaining. - */ - public Builder setScope(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - scope_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - * <pre> - * Required. Resource name of the organization. - * Example: organizations/123 - * </pre> - * - * <code> - * string scope = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * - * @return This builder for chaining. - */ - public Builder clearScope() { - scope_ = getDefaultInstance().getScope(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - * <pre> - * Required. Resource name of the organization. - * Example: organizations/123 - * </pre> - * - * <code> - * string scope = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * - * @param value The bytes for scope to set. - * @return This builder for chaining. - */ - public Builder setScopeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - scope_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object cryptoKey_ = ""; - /** - * - * - * <pre> - * Required. The resource name of the - * [CryptoKey][google.cloud.kms.v1.CryptoKey]. - * </pre> - * - * <code> - * string crypto_key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * - * @return The cryptoKey. - */ - public java.lang.String getCryptoKey() { - java.lang.Object ref = cryptoKey_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - cryptoKey_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - * <pre> - * Required. The resource name of the - * [CryptoKey][google.cloud.kms.v1.CryptoKey]. - * </pre> - * - * <code> - * string crypto_key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * - * @return The bytes for cryptoKey. - */ - public com.google.protobuf.ByteString getCryptoKeyBytes() { - java.lang.Object ref = cryptoKey_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - cryptoKey_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - * <pre> - * Required. The resource name of the - * [CryptoKey][google.cloud.kms.v1.CryptoKey]. - * </pre> - * - * <code> - * string crypto_key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * - * @param value The cryptoKey to set. - * @return This builder for chaining. - */ - public Builder setCryptoKey(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - cryptoKey_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - * <pre> - * Required. The resource name of the - * [CryptoKey][google.cloud.kms.v1.CryptoKey]. - * </pre> - * - * <code> - * string crypto_key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * - * @return This builder for chaining. - */ - public Builder clearCryptoKey() { - cryptoKey_ = getDefaultInstance().getCryptoKey(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - * <pre> - * Required. The resource name of the - * [CryptoKey][google.cloud.kms.v1.CryptoKey]. - * </pre> - * - * <code> - * string crypto_key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * - * @param value The bytes for cryptoKey to set. - * @return This builder for chaining. - */ - public Builder setCryptoKeyBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - cryptoKey_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private int pageSize_; - /** - * - * - * <pre> - * The maximum number of resources to return. The service may return fewer - * than this value. - * If unspecified, at most 500 resources will be returned. - * The maximum value is 500; values above 500 will be coerced to 500. - * </pre> - * - * <code>int32 page_size = 3;</code> - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - /** - * - * - * <pre> - * The maximum number of resources to return. The service may return fewer - * than this value. - * If unspecified, at most 500 resources will be returned. - * The maximum value is 500; values above 500 will be coerced to 500. - * </pre> - * - * <code>int32 page_size = 3;</code> - * - * @param value The pageSize to set. - * @return This builder for chaining. - */ - public Builder setPageSize(int value) { - - pageSize_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - * <pre> - * The maximum number of resources to return. The service may return fewer - * than this value. - * If unspecified, at most 500 resources will be returned. - * The maximum value is 500; values above 500 will be coerced to 500. - * </pre> - * - * <code>int32 page_size = 3;</code> - * - * @return This builder for chaining. - */ - public Builder clearPageSize() { - bitField0_ = (bitField0_ & ~0x00000004); - pageSize_ = 0; - onChanged(); - return this; - } - - private java.lang.Object pageToken_ = ""; - /** - * - * - * <pre> - * A page token, received from a previous - * [KeyTrackingService.SearchProtectedResources][google.cloud.kms.inventory.v1.KeyTrackingService.SearchProtectedResources] - * call. Provide this to retrieve the subsequent page. - * - * When paginating, all other parameters provided to - * [KeyTrackingService.SearchProtectedResources][google.cloud.kms.inventory.v1.KeyTrackingService.SearchProtectedResources] - * must match the call that provided the page token. - * </pre> - * - * <code>string page_token = 4;</code> - * - * @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; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - * <pre> - * A page token, received from a previous - * [KeyTrackingService.SearchProtectedResources][google.cloud.kms.inventory.v1.KeyTrackingService.SearchProtectedResources] - * call. Provide this to retrieve the subsequent page. - * - * When paginating, all other parameters provided to - * [KeyTrackingService.SearchProtectedResources][google.cloud.kms.inventory.v1.KeyTrackingService.SearchProtectedResources] - * must match the call that provided the page token. - * </pre> - * - * <code>string page_token = 4;</code> - * - * @return The bytes for pageToken. - */ - 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); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - * <pre> - * A page token, received from a previous - * [KeyTrackingService.SearchProtectedResources][google.cloud.kms.inventory.v1.KeyTrackingService.SearchProtectedResources] - * call. Provide this to retrieve the subsequent page. - * - * When paginating, all other parameters provided to - * [KeyTrackingService.SearchProtectedResources][google.cloud.kms.inventory.v1.KeyTrackingService.SearchProtectedResources] - * must match the call that provided the page token. - * </pre> - * - * <code>string page_token = 4;</code> - * - * @param value The pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - pageToken_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - * <pre> - * A page token, received from a previous - * [KeyTrackingService.SearchProtectedResources][google.cloud.kms.inventory.v1.KeyTrackingService.SearchProtectedResources] - * call. Provide this to retrieve the subsequent page. - * - * When paginating, all other parameters provided to - * [KeyTrackingService.SearchProtectedResources][google.cloud.kms.inventory.v1.KeyTrackingService.SearchProtectedResources] - * must match the call that provided the page token. - * </pre> - * - * <code>string page_token = 4;</code> - * - * @return This builder for chaining. - */ - public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - /** - * - * - * <pre> - * A page token, received from a previous - * [KeyTrackingService.SearchProtectedResources][google.cloud.kms.inventory.v1.KeyTrackingService.SearchProtectedResources] - * call. Provide this to retrieve the subsequent page. - * - * When paginating, all other parameters provided to - * [KeyTrackingService.SearchProtectedResources][google.cloud.kms.inventory.v1.KeyTrackingService.SearchProtectedResources] - * must match the call that provided the page token. - * </pre> - * - * <code>string page_token = 4;</code> - * - * @param value The bytes for pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - pageToken_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest) - private static final com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest(); - } - - public static com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<SearchProtectedResourcesRequest> PARSER = - new com.google.protobuf.AbstractParser<SearchProtectedResourcesRequest>() { - @java.lang.Override - public SearchProtectedResourcesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser<SearchProtectedResourcesRequest> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<SearchProtectedResourcesRequest> getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/SearchProtectedResourcesRequestOrBuilder.java b/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/SearchProtectedResourcesRequestOrBuilder.java deleted file mode 100644 index 72356d34ac88..000000000000 --- a/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/SearchProtectedResourcesRequestOrBuilder.java +++ /dev/null @@ -1,140 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/kms/inventory/v1/key_tracking_service.proto - -package com.google.cloud.kms.inventory.v1; - -public interface SearchProtectedResourcesRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - * <pre> - * Required. Resource name of the organization. - * Example: organizations/123 - * </pre> - * - * <code> - * string scope = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * - * @return The scope. - */ - java.lang.String getScope(); - /** - * - * - * <pre> - * Required. Resource name of the organization. - * Example: organizations/123 - * </pre> - * - * <code> - * string scope = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * - * @return The bytes for scope. - */ - com.google.protobuf.ByteString getScopeBytes(); - - /** - * - * - * <pre> - * Required. The resource name of the - * [CryptoKey][google.cloud.kms.v1.CryptoKey]. - * </pre> - * - * <code> - * string crypto_key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * - * @return The cryptoKey. - */ - java.lang.String getCryptoKey(); - /** - * - * - * <pre> - * Required. The resource name of the - * [CryptoKey][google.cloud.kms.v1.CryptoKey]. - * </pre> - * - * <code> - * string crypto_key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * - * @return The bytes for cryptoKey. - */ - com.google.protobuf.ByteString getCryptoKeyBytes(); - - /** - * - * - * <pre> - * The maximum number of resources to return. The service may return fewer - * than this value. - * If unspecified, at most 500 resources will be returned. - * The maximum value is 500; values above 500 will be coerced to 500. - * </pre> - * - * <code>int32 page_size = 3;</code> - * - * @return The pageSize. - */ - int getPageSize(); - - /** - * - * - * <pre> - * A page token, received from a previous - * [KeyTrackingService.SearchProtectedResources][google.cloud.kms.inventory.v1.KeyTrackingService.SearchProtectedResources] - * call. Provide this to retrieve the subsequent page. - * - * When paginating, all other parameters provided to - * [KeyTrackingService.SearchProtectedResources][google.cloud.kms.inventory.v1.KeyTrackingService.SearchProtectedResources] - * must match the call that provided the page token. - * </pre> - * - * <code>string page_token = 4;</code> - * - * @return The pageToken. - */ - java.lang.String getPageToken(); - /** - * - * - * <pre> - * A page token, received from a previous - * [KeyTrackingService.SearchProtectedResources][google.cloud.kms.inventory.v1.KeyTrackingService.SearchProtectedResources] - * call. Provide this to retrieve the subsequent page. - * - * When paginating, all other parameters provided to - * [KeyTrackingService.SearchProtectedResources][google.cloud.kms.inventory.v1.KeyTrackingService.SearchProtectedResources] - * must match the call that provided the page token. - * </pre> - * - * <code>string page_token = 4;</code> - * - * @return The bytes for pageToken. - */ - com.google.protobuf.ByteString getPageTokenBytes(); -} diff --git a/java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/KeyDashboardServiceClient.java b/owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/KeyDashboardServiceClient.java similarity index 100% rename from java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/KeyDashboardServiceClient.java rename to owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/KeyDashboardServiceClient.java diff --git a/java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/KeyDashboardServiceSettings.java b/owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/KeyDashboardServiceSettings.java similarity index 99% rename from java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/KeyDashboardServiceSettings.java rename to owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/KeyDashboardServiceSettings.java index 9f6f8e87459c..92d9754d6b1d 100644 --- a/java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/KeyDashboardServiceSettings.java +++ b/owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/KeyDashboardServiceSettings.java @@ -28,6 +28,7 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.kms.inventory.v1.stub.KeyDashboardServiceStubSettings; diff --git a/java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/KeyTrackingServiceClient.java b/owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/KeyTrackingServiceClient.java similarity index 99% rename from java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/KeyTrackingServiceClient.java rename to owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/KeyTrackingServiceClient.java index ef09c7a02a1a..2b460605a3a0 100644 --- a/java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/KeyTrackingServiceClient.java +++ b/owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/KeyTrackingServiceClient.java @@ -489,6 +489,7 @@ public final SearchProtectedResourcesPagedResponse searchProtectedResources( * .setCryptoKey(OrganizationName.of("[ORGANIZATION]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") + * .addAllResourceTypes(new ArrayList<String>()) * .build(); * for (ProtectedResource element : * keyTrackingServiceClient.searchProtectedResources(request).iterateAll()) { @@ -525,6 +526,7 @@ public final SearchProtectedResourcesPagedResponse searchProtectedResources( * .setCryptoKey(OrganizationName.of("[ORGANIZATION]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") + * .addAllResourceTypes(new ArrayList<String>()) * .build(); * ApiFuture<ProtectedResource> future = * keyTrackingServiceClient.searchProtectedResourcesPagedCallable().futureCall(request); @@ -560,6 +562,7 @@ public final SearchProtectedResourcesPagedResponse searchProtectedResources( * .setCryptoKey(OrganizationName.of("[ORGANIZATION]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") + * .addAllResourceTypes(new ArrayList<String>()) * .build(); * while (true) { * SearchProtectedResourcesResponse response = diff --git a/java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/KeyTrackingServiceSettings.java b/owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/KeyTrackingServiceSettings.java similarity index 99% rename from java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/KeyTrackingServiceSettings.java rename to owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/KeyTrackingServiceSettings.java index 0981f36f8996..839918c9a8c8 100644 --- a/java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/KeyTrackingServiceSettings.java +++ b/owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/KeyTrackingServiceSettings.java @@ -28,6 +28,7 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.kms.inventory.v1.stub.KeyTrackingServiceStubSettings; diff --git a/java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/gapic_metadata.json b/owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/gapic_metadata.json similarity index 100% rename from java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/gapic_metadata.json rename to owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/gapic_metadata.json diff --git a/java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/package-info.java b/owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/package-info.java similarity index 100% rename from java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/package-info.java rename to owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/package-info.java diff --git a/java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/GrpcKeyDashboardServiceCallableFactory.java b/owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/GrpcKeyDashboardServiceCallableFactory.java similarity index 100% rename from java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/GrpcKeyDashboardServiceCallableFactory.java rename to owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/GrpcKeyDashboardServiceCallableFactory.java diff --git a/java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/GrpcKeyDashboardServiceStub.java b/owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/GrpcKeyDashboardServiceStub.java similarity index 99% rename from java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/GrpcKeyDashboardServiceStub.java rename to owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/GrpcKeyDashboardServiceStub.java index 1a635300a804..b599be952f69 100644 --- a/java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/GrpcKeyDashboardServiceStub.java +++ b/owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/GrpcKeyDashboardServiceStub.java @@ -31,6 +31,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/GrpcKeyTrackingServiceCallableFactory.java b/owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/GrpcKeyTrackingServiceCallableFactory.java similarity index 100% rename from java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/GrpcKeyTrackingServiceCallableFactory.java rename to owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/GrpcKeyTrackingServiceCallableFactory.java diff --git a/java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/GrpcKeyTrackingServiceStub.java b/owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/GrpcKeyTrackingServiceStub.java similarity index 99% rename from java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/GrpcKeyTrackingServiceStub.java rename to owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/GrpcKeyTrackingServiceStub.java index f1b08063ae92..1f9aedd7f228 100644 --- a/java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/GrpcKeyTrackingServiceStub.java +++ b/owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/GrpcKeyTrackingServiceStub.java @@ -33,6 +33,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/HttpJsonKeyDashboardServiceCallableFactory.java b/owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/HttpJsonKeyDashboardServiceCallableFactory.java similarity index 100% rename from java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/HttpJsonKeyDashboardServiceCallableFactory.java rename to owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/HttpJsonKeyDashboardServiceCallableFactory.java diff --git a/java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/HttpJsonKeyDashboardServiceStub.java b/owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/HttpJsonKeyDashboardServiceStub.java similarity index 100% rename from java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/HttpJsonKeyDashboardServiceStub.java rename to owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/HttpJsonKeyDashboardServiceStub.java diff --git a/java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/HttpJsonKeyTrackingServiceCallableFactory.java b/owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/HttpJsonKeyTrackingServiceCallableFactory.java similarity index 100% rename from java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/HttpJsonKeyTrackingServiceCallableFactory.java rename to owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/HttpJsonKeyTrackingServiceCallableFactory.java diff --git a/java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/HttpJsonKeyTrackingServiceStub.java b/owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/HttpJsonKeyTrackingServiceStub.java similarity index 98% rename from java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/HttpJsonKeyTrackingServiceStub.java rename to owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/HttpJsonKeyTrackingServiceStub.java index c28257c30151..045e44f76104 100644 --- a/java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/HttpJsonKeyTrackingServiceStub.java +++ b/owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/HttpJsonKeyTrackingServiceStub.java @@ -120,6 +120,8 @@ public class HttpJsonKeyTrackingServiceStub extends KeyTrackingServiceStub { serializer.putQueryParam(fields, "cryptoKey", request.getCryptoKey()); serializer.putQueryParam(fields, "pageSize", request.getPageSize()); serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam( + fields, "resourceTypes", request.getResourceTypesList()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) diff --git a/java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/KeyDashboardServiceStub.java b/owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/KeyDashboardServiceStub.java similarity index 100% rename from java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/KeyDashboardServiceStub.java rename to owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/KeyDashboardServiceStub.java diff --git a/java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/KeyDashboardServiceStubSettings.java b/owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/KeyDashboardServiceStubSettings.java similarity index 100% rename from java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/KeyDashboardServiceStubSettings.java rename to owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/KeyDashboardServiceStubSettings.java diff --git a/java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/KeyTrackingServiceStub.java b/owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/KeyTrackingServiceStub.java similarity index 100% rename from java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/KeyTrackingServiceStub.java rename to owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/KeyTrackingServiceStub.java diff --git a/java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/KeyTrackingServiceStubSettings.java b/owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/KeyTrackingServiceStubSettings.java similarity index 100% rename from java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/KeyTrackingServiceStubSettings.java rename to owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/KeyTrackingServiceStubSettings.java diff --git a/java-kmsinventory/google-cloud-kmsinventory/src/test/java/com/google/cloud/kms/inventory/v1/KeyDashboardServiceClientHttpJsonTest.java b/owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/test/java/com/google/cloud/kms/inventory/v1/KeyDashboardServiceClientHttpJsonTest.java similarity index 100% rename from java-kmsinventory/google-cloud-kmsinventory/src/test/java/com/google/cloud/kms/inventory/v1/KeyDashboardServiceClientHttpJsonTest.java rename to owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/test/java/com/google/cloud/kms/inventory/v1/KeyDashboardServiceClientHttpJsonTest.java diff --git a/java-kmsinventory/google-cloud-kmsinventory/src/test/java/com/google/cloud/kms/inventory/v1/KeyDashboardServiceClientTest.java b/owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/test/java/com/google/cloud/kms/inventory/v1/KeyDashboardServiceClientTest.java similarity index 100% rename from java-kmsinventory/google-cloud-kmsinventory/src/test/java/com/google/cloud/kms/inventory/v1/KeyDashboardServiceClientTest.java rename to owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/test/java/com/google/cloud/kms/inventory/v1/KeyDashboardServiceClientTest.java diff --git a/java-kmsinventory/google-cloud-kmsinventory/src/test/java/com/google/cloud/kms/inventory/v1/KeyTrackingServiceClientHttpJsonTest.java b/owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/test/java/com/google/cloud/kms/inventory/v1/KeyTrackingServiceClientHttpJsonTest.java similarity index 100% rename from java-kmsinventory/google-cloud-kmsinventory/src/test/java/com/google/cloud/kms/inventory/v1/KeyTrackingServiceClientHttpJsonTest.java rename to owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/test/java/com/google/cloud/kms/inventory/v1/KeyTrackingServiceClientHttpJsonTest.java diff --git a/java-kmsinventory/google-cloud-kmsinventory/src/test/java/com/google/cloud/kms/inventory/v1/KeyTrackingServiceClientTest.java b/owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/test/java/com/google/cloud/kms/inventory/v1/KeyTrackingServiceClientTest.java similarity index 100% rename from java-kmsinventory/google-cloud-kmsinventory/src/test/java/com/google/cloud/kms/inventory/v1/KeyTrackingServiceClientTest.java rename to owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/test/java/com/google/cloud/kms/inventory/v1/KeyTrackingServiceClientTest.java diff --git a/java-kmsinventory/google-cloud-kmsinventory/src/test/java/com/google/cloud/kms/inventory/v1/MockKeyDashboardService.java b/owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/test/java/com/google/cloud/kms/inventory/v1/MockKeyDashboardService.java similarity index 100% rename from java-kmsinventory/google-cloud-kmsinventory/src/test/java/com/google/cloud/kms/inventory/v1/MockKeyDashboardService.java rename to owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/test/java/com/google/cloud/kms/inventory/v1/MockKeyDashboardService.java diff --git a/java-kmsinventory/google-cloud-kmsinventory/src/test/java/com/google/cloud/kms/inventory/v1/MockKeyDashboardServiceImpl.java b/owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/test/java/com/google/cloud/kms/inventory/v1/MockKeyDashboardServiceImpl.java similarity index 100% rename from java-kmsinventory/google-cloud-kmsinventory/src/test/java/com/google/cloud/kms/inventory/v1/MockKeyDashboardServiceImpl.java rename to owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/test/java/com/google/cloud/kms/inventory/v1/MockKeyDashboardServiceImpl.java diff --git a/java-kmsinventory/google-cloud-kmsinventory/src/test/java/com/google/cloud/kms/inventory/v1/MockKeyTrackingService.java b/owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/test/java/com/google/cloud/kms/inventory/v1/MockKeyTrackingService.java similarity index 100% rename from java-kmsinventory/google-cloud-kmsinventory/src/test/java/com/google/cloud/kms/inventory/v1/MockKeyTrackingService.java rename to owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/test/java/com/google/cloud/kms/inventory/v1/MockKeyTrackingService.java diff --git a/java-kmsinventory/google-cloud-kmsinventory/src/test/java/com/google/cloud/kms/inventory/v1/MockKeyTrackingServiceImpl.java b/owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/test/java/com/google/cloud/kms/inventory/v1/MockKeyTrackingServiceImpl.java similarity index 100% rename from java-kmsinventory/google-cloud-kmsinventory/src/test/java/com/google/cloud/kms/inventory/v1/MockKeyTrackingServiceImpl.java rename to owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/test/java/com/google/cloud/kms/inventory/v1/MockKeyTrackingServiceImpl.java diff --git a/java-kmsinventory/grpc-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/KeyDashboardServiceGrpc.java b/owl-bot-staging/java-kmsinventory/v1/grpc-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/KeyDashboardServiceGrpc.java similarity index 58% rename from java-kmsinventory/grpc-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/KeyDashboardServiceGrpc.java rename to owl-bot-staging/java-kmsinventory/v1/grpc-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/KeyDashboardServiceGrpc.java index 85123e1832f3..f8e611f180cb 100644 --- a/java-kmsinventory/grpc-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/KeyDashboardServiceGrpc.java +++ b/owl-bot-staging/java-kmsinventory/v1/grpc-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/KeyDashboardServiceGrpc.java @@ -1,25 +1,8 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package com.google.cloud.kms.inventory.v1; import static io.grpc.MethodDescriptor.generateFullMethodName; /** - * - * * <pre> * Provides a cross-region view of all Cloud KMS keys in a given Cloud project. * </pre> @@ -35,97 +18,82 @@ private KeyDashboardServiceGrpc() {} public static final String SERVICE_NAME = "google.cloud.kms.inventory.v1.KeyDashboardService"; // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest, - com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse> - getListCryptoKeysMethod; + private static volatile io.grpc.MethodDescriptor<com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest, + com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse> getListCryptoKeysMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ListCryptoKeys", requestType = com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest.class, responseType = com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest, - com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse> - getListCryptoKeysMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest, - com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse> - getListCryptoKeysMethod; + public static io.grpc.MethodDescriptor<com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest, + com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse> getListCryptoKeysMethod() { + io.grpc.MethodDescriptor<com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest, com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse> getListCryptoKeysMethod; if ((getListCryptoKeysMethod = KeyDashboardServiceGrpc.getListCryptoKeysMethod) == null) { synchronized (KeyDashboardServiceGrpc.class) { if ((getListCryptoKeysMethod = KeyDashboardServiceGrpc.getListCryptoKeysMethod) == null) { - KeyDashboardServiceGrpc.getListCryptoKeysMethod = - getListCryptoKeysMethod = - io.grpc.MethodDescriptor - .<com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest, - com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse> - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListCryptoKeys")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new KeyDashboardServiceMethodDescriptorSupplier("ListCryptoKeys")) - .build(); + KeyDashboardServiceGrpc.getListCryptoKeysMethod = getListCryptoKeysMethod = + io.grpc.MethodDescriptor.<com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest, com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse>newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListCryptoKeys")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse.getDefaultInstance())) + .setSchemaDescriptor(new KeyDashboardServiceMethodDescriptorSupplier("ListCryptoKeys")) + .build(); } } } return getListCryptoKeysMethod; } - /** Creates a new async stub that supports all call types for the service */ + /** + * Creates a new async stub that supports all call types for the service + */ public static KeyDashboardServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory<KeyDashboardServiceStub> factory = - new io.grpc.stub.AbstractStub.StubFactory<KeyDashboardServiceStub>() { - @java.lang.Override - public KeyDashboardServiceStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new KeyDashboardServiceStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory<KeyDashboardServiceStub>() { + @java.lang.Override + public KeyDashboardServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new KeyDashboardServiceStub(channel, callOptions); + } + }; return KeyDashboardServiceStub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ - public static KeyDashboardServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + public static KeyDashboardServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory<KeyDashboardServiceBlockingStub> factory = - new io.grpc.stub.AbstractStub.StubFactory<KeyDashboardServiceBlockingStub>() { - @java.lang.Override - public KeyDashboardServiceBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new KeyDashboardServiceBlockingStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory<KeyDashboardServiceBlockingStub>() { + @java.lang.Override + public KeyDashboardServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new KeyDashboardServiceBlockingStub(channel, callOptions); + } + }; return KeyDashboardServiceBlockingStub.newStub(factory, channel); } - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static KeyDashboardServiceFutureStub newFutureStub(io.grpc.Channel channel) { + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static KeyDashboardServiceFutureStub newFutureStub( + io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory<KeyDashboardServiceFutureStub> factory = - new io.grpc.stub.AbstractStub.StubFactory<KeyDashboardServiceFutureStub>() { - @java.lang.Override - public KeyDashboardServiceFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new KeyDashboardServiceFutureStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory<KeyDashboardServiceFutureStub>() { + @java.lang.Override + public KeyDashboardServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new KeyDashboardServiceFutureStub(channel, callOptions); + } + }; return KeyDashboardServiceFutureStub.newStub(factory, channel); } /** - * - * * <pre> * Provides a cross-region view of all Cloud KMS keys in a given Cloud project. * </pre> @@ -133,49 +101,42 @@ public KeyDashboardServiceFutureStub newStub( public interface AsyncService { /** - * - * * <pre> * Returns cryptographic keys managed by Cloud KMS in a given Cloud project. * Note that this data is sourced from snapshots, meaning it may not * completely reflect the actual state of key metadata at call time. * </pre> */ - default void listCryptoKeys( - com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest request, - io.grpc.stub.StreamObserver<com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListCryptoKeysMethod(), responseObserver); + default void listCryptoKeys(com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest request, + io.grpc.stub.StreamObserver<com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse> responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListCryptoKeysMethod(), responseObserver); } } /** * Base class for the server implementation of the service KeyDashboardService. - * * <pre> * Provides a cross-region view of all Cloud KMS keys in a given Cloud project. * </pre> */ - public abstract static class KeyDashboardServiceImplBase + public static abstract class KeyDashboardServiceImplBase implements io.grpc.BindableService, AsyncService { - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return KeyDashboardServiceGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service KeyDashboardService. - * * <pre> * Provides a cross-region view of all Cloud KMS keys in a given Cloud project. * </pre> */ public static final class KeyDashboardServiceStub extends io.grpc.stub.AbstractAsyncStub<KeyDashboardServiceStub> { - private KeyDashboardServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + private KeyDashboardServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -186,28 +147,21 @@ protected KeyDashboardServiceStub build( } /** - * - * * <pre> * Returns cryptographic keys managed by Cloud KMS in a given Cloud project. * Note that this data is sourced from snapshots, meaning it may not * completely reflect the actual state of key metadata at call time. * </pre> */ - public void listCryptoKeys( - com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest request, - io.grpc.stub.StreamObserver<com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse> - responseObserver) { + public void listCryptoKeys(com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest request, + io.grpc.stub.StreamObserver<com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse> responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListCryptoKeysMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getListCryptoKeysMethod(), getCallOptions()), request, responseObserver); } } /** * A stub to allow clients to do synchronous rpc calls to service KeyDashboardService. - * * <pre> * Provides a cross-region view of all Cloud KMS keys in a given Cloud project. * </pre> @@ -226,16 +180,13 @@ protected KeyDashboardServiceBlockingStub build( } /** - * - * * <pre> * Returns cryptographic keys managed by Cloud KMS in a given Cloud project. * Note that this data is sourced from snapshots, meaning it may not * completely reflect the actual state of key metadata at call time. * </pre> */ - public com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse listCryptoKeys( - com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest request) { + public com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse listCryptoKeys(com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListCryptoKeysMethod(), getCallOptions(), request); } @@ -243,7 +194,6 @@ public com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse listCryptoKeys( /** * A stub to allow clients to do ListenableFuture-style rpc calls to service KeyDashboardService. - * * <pre> * Provides a cross-region view of all Cloud KMS keys in a given Cloud project. * </pre> @@ -262,17 +212,14 @@ protected KeyDashboardServiceFutureStub build( } /** - * - * * <pre> * Returns cryptographic keys managed by Cloud KMS in a given Cloud project. * Note that this data is sourced from snapshots, meaning it may not * completely reflect the actual state of key metadata at call time. * </pre> */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse> - listCryptoKeys(com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest request) { + public com.google.common.util.concurrent.ListenableFuture<com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse> listCryptoKeys( + com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListCryptoKeysMethod(), getCallOptions()), request); } @@ -280,11 +227,11 @@ protected KeyDashboardServiceFutureStub build( private static final int METHODID_LIST_CRYPTO_KEYS = 0; - private static final class MethodHandlers<Req, Resp> - implements io.grpc.stub.ServerCalls.UnaryMethod<Req, Resp>, - io.grpc.stub.ServerCalls.ServerStreamingMethod<Req, Resp>, - io.grpc.stub.ServerCalls.ClientStreamingMethod<Req, Resp>, - io.grpc.stub.ServerCalls.BidiStreamingMethod<Req, Resp> { + private static final class MethodHandlers<Req, Resp> implements + io.grpc.stub.ServerCalls.UnaryMethod<Req, Resp>, + io.grpc.stub.ServerCalls.ServerStreamingMethod<Req, Resp>, + io.grpc.stub.ServerCalls.ClientStreamingMethod<Req, Resp>, + io.grpc.stub.ServerCalls.BidiStreamingMethod<Req, Resp> { private final AsyncService serviceImpl; private final int methodId; @@ -298,11 +245,8 @@ private static final class MethodHandlers<Req, Resp> public void invoke(Req request, io.grpc.stub.StreamObserver<Resp> responseObserver) { switch (methodId) { case METHODID_LIST_CRYPTO_KEYS: - serviceImpl.listCryptoKeys( - (com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse>) - responseObserver); + serviceImpl.listCryptoKeys((com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest) request, + (io.grpc.stub.StreamObserver<com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse>) responseObserver); break; default: throw new AssertionError(); @@ -323,18 +267,17 @@ public io.grpc.stub.StreamObserver<Req> invoke( public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getListCryptoKeysMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest, - com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse>( - service, METHODID_LIST_CRYPTO_KEYS))) + getListCryptoKeysMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest, + com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse>( + service, METHODID_LIST_CRYPTO_KEYS))) .build(); } - private abstract static class KeyDashboardServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private static abstract class KeyDashboardServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { KeyDashboardServiceBaseDescriptorSupplier() {} @java.lang.Override @@ -376,12 +319,10 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (KeyDashboardServiceGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new KeyDashboardServiceFileDescriptorSupplier()) - .addMethod(getListCryptoKeysMethod()) - .build(); + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new KeyDashboardServiceFileDescriptorSupplier()) + .addMethod(getListCryptoKeysMethod()) + .build(); } } } diff --git a/java-kmsinventory/grpc-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/KeyTrackingServiceGrpc.java b/owl-bot-staging/java-kmsinventory/v1/grpc-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/KeyTrackingServiceGrpc.java similarity index 50% rename from java-kmsinventory/grpc-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/KeyTrackingServiceGrpc.java rename to owl-bot-staging/java-kmsinventory/v1/grpc-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/KeyTrackingServiceGrpc.java index fe4d42d2fe2e..57ac8d043e59 100644 --- a/java-kmsinventory/grpc-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/KeyTrackingServiceGrpc.java +++ b/owl-bot-staging/java-kmsinventory/v1/grpc-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/KeyTrackingServiceGrpc.java @@ -1,25 +1,8 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package com.google.cloud.kms.inventory.v1; import static io.grpc.MethodDescriptor.generateFullMethodName; /** - * - * * <pre> * Returns information about the resources in an org that are protected by a * given Cloud KMS key via CMEK. @@ -36,156 +19,113 @@ private KeyTrackingServiceGrpc() {} public static final String SERVICE_NAME = "google.cloud.kms.inventory.v1.KeyTrackingService"; // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest, - com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary> - getGetProtectedResourcesSummaryMethod; + private static volatile io.grpc.MethodDescriptor<com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest, + com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary> getGetProtectedResourcesSummaryMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetProtectedResourcesSummary", requestType = com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest.class, responseType = com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest, - com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary> - getGetProtectedResourcesSummaryMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest, - com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary> - getGetProtectedResourcesSummaryMethod; - if ((getGetProtectedResourcesSummaryMethod = - KeyTrackingServiceGrpc.getGetProtectedResourcesSummaryMethod) - == null) { + public static io.grpc.MethodDescriptor<com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest, + com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary> getGetProtectedResourcesSummaryMethod() { + io.grpc.MethodDescriptor<com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest, com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary> getGetProtectedResourcesSummaryMethod; + if ((getGetProtectedResourcesSummaryMethod = KeyTrackingServiceGrpc.getGetProtectedResourcesSummaryMethod) == null) { synchronized (KeyTrackingServiceGrpc.class) { - if ((getGetProtectedResourcesSummaryMethod = - KeyTrackingServiceGrpc.getGetProtectedResourcesSummaryMethod) - == null) { - KeyTrackingServiceGrpc.getGetProtectedResourcesSummaryMethod = - getGetProtectedResourcesSummaryMethod = - io.grpc.MethodDescriptor - .<com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest, - com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary> - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "GetProtectedResourcesSummary")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary - .getDefaultInstance())) - .setSchemaDescriptor( - new KeyTrackingServiceMethodDescriptorSupplier( - "GetProtectedResourcesSummary")) - .build(); + if ((getGetProtectedResourcesSummaryMethod = KeyTrackingServiceGrpc.getGetProtectedResourcesSummaryMethod) == null) { + KeyTrackingServiceGrpc.getGetProtectedResourcesSummaryMethod = getGetProtectedResourcesSummaryMethod = + io.grpc.MethodDescriptor.<com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest, com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary>newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetProtectedResourcesSummary")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary.getDefaultInstance())) + .setSchemaDescriptor(new KeyTrackingServiceMethodDescriptorSupplier("GetProtectedResourcesSummary")) + .build(); } } } return getGetProtectedResourcesSummaryMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest, - com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse> - getSearchProtectedResourcesMethod; + private static volatile io.grpc.MethodDescriptor<com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest, + com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse> getSearchProtectedResourcesMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "SearchProtectedResources", requestType = com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest.class, responseType = com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest, - com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse> - getSearchProtectedResourcesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest, - com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse> - getSearchProtectedResourcesMethod; - if ((getSearchProtectedResourcesMethod = - KeyTrackingServiceGrpc.getSearchProtectedResourcesMethod) - == null) { + public static io.grpc.MethodDescriptor<com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest, + com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse> getSearchProtectedResourcesMethod() { + io.grpc.MethodDescriptor<com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest, com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse> getSearchProtectedResourcesMethod; + if ((getSearchProtectedResourcesMethod = KeyTrackingServiceGrpc.getSearchProtectedResourcesMethod) == null) { synchronized (KeyTrackingServiceGrpc.class) { - if ((getSearchProtectedResourcesMethod = - KeyTrackingServiceGrpc.getSearchProtectedResourcesMethod) - == null) { - KeyTrackingServiceGrpc.getSearchProtectedResourcesMethod = - getSearchProtectedResourcesMethod = - io.grpc.MethodDescriptor - .<com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest, - com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse> - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "SearchProtectedResources")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new KeyTrackingServiceMethodDescriptorSupplier( - "SearchProtectedResources")) - .build(); + if ((getSearchProtectedResourcesMethod = KeyTrackingServiceGrpc.getSearchProtectedResourcesMethod) == null) { + KeyTrackingServiceGrpc.getSearchProtectedResourcesMethod = getSearchProtectedResourcesMethod = + io.grpc.MethodDescriptor.<com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest, com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse>newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SearchProtectedResources")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse.getDefaultInstance())) + .setSchemaDescriptor(new KeyTrackingServiceMethodDescriptorSupplier("SearchProtectedResources")) + .build(); } } } return getSearchProtectedResourcesMethod; } - /** Creates a new async stub that supports all call types for the service */ + /** + * Creates a new async stub that supports all call types for the service + */ public static KeyTrackingServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory<KeyTrackingServiceStub> factory = - new io.grpc.stub.AbstractStub.StubFactory<KeyTrackingServiceStub>() { - @java.lang.Override - public KeyTrackingServiceStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new KeyTrackingServiceStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory<KeyTrackingServiceStub>() { + @java.lang.Override + public KeyTrackingServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new KeyTrackingServiceStub(channel, callOptions); + } + }; return KeyTrackingServiceStub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ - public static KeyTrackingServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + public static KeyTrackingServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory<KeyTrackingServiceBlockingStub> factory = - new io.grpc.stub.AbstractStub.StubFactory<KeyTrackingServiceBlockingStub>() { - @java.lang.Override - public KeyTrackingServiceBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new KeyTrackingServiceBlockingStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory<KeyTrackingServiceBlockingStub>() { + @java.lang.Override + public KeyTrackingServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new KeyTrackingServiceBlockingStub(channel, callOptions); + } + }; return KeyTrackingServiceBlockingStub.newStub(factory, channel); } - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static KeyTrackingServiceFutureStub newFutureStub(io.grpc.Channel channel) { + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static KeyTrackingServiceFutureStub newFutureStub( + io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory<KeyTrackingServiceFutureStub> factory = - new io.grpc.stub.AbstractStub.StubFactory<KeyTrackingServiceFutureStub>() { - @java.lang.Override - public KeyTrackingServiceFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new KeyTrackingServiceFutureStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory<KeyTrackingServiceFutureStub>() { + @java.lang.Override + public KeyTrackingServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new KeyTrackingServiceFutureStub(channel, callOptions); + } + }; return KeyTrackingServiceFutureStub.newStub(factory, channel); } /** - * - * * <pre> * Returns information about the resources in an org that are protected by a * given Cloud KMS key via CMEK. @@ -194,8 +134,6 @@ public KeyTrackingServiceFutureStub newStub( public interface AsyncService { /** - * - * * <pre> * Returns aggregate information about the resources protected by the given * Cloud KMS [CryptoKey][google.cloud.kms.v1.CryptoKey]. Only resources within @@ -204,52 +142,40 @@ public interface AsyncService { * succeed. * </pre> */ - default void getProtectedResourcesSummary( - com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest request, - io.grpc.stub.StreamObserver<com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetProtectedResourcesSummaryMethod(), responseObserver); + default void getProtectedResourcesSummary(com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest request, + io.grpc.stub.StreamObserver<com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary> responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetProtectedResourcesSummaryMethod(), responseObserver); } /** - * - * * <pre> * Returns metadata about the resources protected by the given Cloud KMS * [CryptoKey][google.cloud.kms.v1.CryptoKey] in the given Cloud organization. * </pre> */ - default void searchProtectedResources( - com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getSearchProtectedResourcesMethod(), responseObserver); + default void searchProtectedResources(com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest request, + io.grpc.stub.StreamObserver<com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse> responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSearchProtectedResourcesMethod(), responseObserver); } } /** * Base class for the server implementation of the service KeyTrackingService. - * * <pre> * Returns information about the resources in an org that are protected by a * given Cloud KMS key via CMEK. * </pre> */ - public abstract static class KeyTrackingServiceImplBase + public static abstract class KeyTrackingServiceImplBase implements io.grpc.BindableService, AsyncService { - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return KeyTrackingServiceGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service KeyTrackingService. - * * <pre> * Returns information about the resources in an org that are protected by a * given Cloud KMS key via CMEK. @@ -257,7 +183,8 @@ public final io.grpc.ServerServiceDefinition bindService() { */ public static final class KeyTrackingServiceStub extends io.grpc.stub.AbstractAsyncStub<KeyTrackingServiceStub> { - private KeyTrackingServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + private KeyTrackingServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -268,8 +195,6 @@ protected KeyTrackingServiceStub build( } /** - * - * * <pre> * Returns aggregate information about the resources protected by the given * Cloud KMS [CryptoKey][google.cloud.kms.v1.CryptoKey]. Only resources within @@ -278,39 +203,27 @@ protected KeyTrackingServiceStub build( * succeed. * </pre> */ - public void getProtectedResourcesSummary( - com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest request, - io.grpc.stub.StreamObserver<com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary> - responseObserver) { + public void getProtectedResourcesSummary(com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest request, + io.grpc.stub.StreamObserver<com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary> responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetProtectedResourcesSummaryMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getGetProtectedResourcesSummaryMethod(), getCallOptions()), request, responseObserver); } /** - * - * * <pre> * Returns metadata about the resources protected by the given Cloud KMS * [CryptoKey][google.cloud.kms.v1.CryptoKey] in the given Cloud organization. * </pre> */ - public void searchProtectedResources( - com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse> - responseObserver) { + public void searchProtectedResources(com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest request, + io.grpc.stub.StreamObserver<com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse> responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSearchProtectedResourcesMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getSearchProtectedResourcesMethod(), getCallOptions()), request, responseObserver); } } /** * A stub to allow clients to do synchronous rpc calls to service KeyTrackingService. - * * <pre> * Returns information about the resources in an org that are protected by a * given Cloud KMS key via CMEK. @@ -330,8 +243,6 @@ protected KeyTrackingServiceBlockingStub build( } /** - * - * * <pre> * Returns aggregate information about the resources protected by the given * Cloud KMS [CryptoKey][google.cloud.kms.v1.CryptoKey]. Only resources within @@ -340,23 +251,18 @@ protected KeyTrackingServiceBlockingStub build( * succeed. * </pre> */ - public com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary getProtectedResourcesSummary( - com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest request) { + public com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary getProtectedResourcesSummary(com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetProtectedResourcesSummaryMethod(), getCallOptions(), request); } /** - * - * * <pre> * Returns metadata about the resources protected by the given Cloud KMS * [CryptoKey][google.cloud.kms.v1.CryptoKey] in the given Cloud organization. * </pre> */ - public com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse - searchProtectedResources( - com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest request) { + public com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse searchProtectedResources(com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getSearchProtectedResourcesMethod(), getCallOptions(), request); } @@ -364,7 +270,6 @@ public com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary getProtectedR /** * A stub to allow clients to do ListenableFuture-style rpc calls to service KeyTrackingService. - * * <pre> * Returns information about the resources in an org that are protected by a * given Cloud KMS key via CMEK. @@ -372,7 +277,8 @@ public com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary getProtectedR */ public static final class KeyTrackingServiceFutureStub extends io.grpc.stub.AbstractFutureStub<KeyTrackingServiceFutureStub> { - private KeyTrackingServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + private KeyTrackingServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -383,8 +289,6 @@ protected KeyTrackingServiceFutureStub build( } /** - * - * * <pre> * Returns aggregate information about the resources protected by the given * Cloud KMS [CryptoKey][google.cloud.kms.v1.CryptoKey]. Only resources within @@ -393,26 +297,20 @@ protected KeyTrackingServiceFutureStub build( * succeed. * </pre> */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary> - getProtectedResourcesSummary( - com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest request) { + public com.google.common.util.concurrent.ListenableFuture<com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary> getProtectedResourcesSummary( + com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetProtectedResourcesSummaryMethod(), getCallOptions()), request); } /** - * - * * <pre> * Returns metadata about the resources protected by the given Cloud KMS * [CryptoKey][google.cloud.kms.v1.CryptoKey] in the given Cloud organization. * </pre> */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse> - searchProtectedResources( - com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest request) { + public com.google.common.util.concurrent.ListenableFuture<com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse> searchProtectedResources( + com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getSearchProtectedResourcesMethod(), getCallOptions()), request); } @@ -421,11 +319,11 @@ protected KeyTrackingServiceFutureStub build( private static final int METHODID_GET_PROTECTED_RESOURCES_SUMMARY = 0; private static final int METHODID_SEARCH_PROTECTED_RESOURCES = 1; - private static final class MethodHandlers<Req, Resp> - implements io.grpc.stub.ServerCalls.UnaryMethod<Req, Resp>, - io.grpc.stub.ServerCalls.ServerStreamingMethod<Req, Resp>, - io.grpc.stub.ServerCalls.ClientStreamingMethod<Req, Resp>, - io.grpc.stub.ServerCalls.BidiStreamingMethod<Req, Resp> { + private static final class MethodHandlers<Req, Resp> implements + io.grpc.stub.ServerCalls.UnaryMethod<Req, Resp>, + io.grpc.stub.ServerCalls.ServerStreamingMethod<Req, Resp>, + io.grpc.stub.ServerCalls.ClientStreamingMethod<Req, Resp>, + io.grpc.stub.ServerCalls.BidiStreamingMethod<Req, Resp> { private final AsyncService serviceImpl; private final int methodId; @@ -439,18 +337,12 @@ private static final class MethodHandlers<Req, Resp> public void invoke(Req request, io.grpc.stub.StreamObserver<Resp> responseObserver) { switch (methodId) { case METHODID_GET_PROTECTED_RESOURCES_SUMMARY: - serviceImpl.getProtectedResourcesSummary( - (com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary>) - responseObserver); + serviceImpl.getProtectedResourcesSummary((com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest) request, + (io.grpc.stub.StreamObserver<com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary>) responseObserver); break; case METHODID_SEARCH_PROTECTED_RESOURCES: - serviceImpl.searchProtectedResources( - (com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse>) - responseObserver); + serviceImpl.searchProtectedResources((com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest) request, + (io.grpc.stub.StreamObserver<com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse>) responseObserver); break; default: throw new AssertionError(); @@ -471,25 +363,24 @@ public io.grpc.stub.StreamObserver<Req> invoke( public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getGetProtectedResourcesSummaryMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest, - com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary>( - service, METHODID_GET_PROTECTED_RESOURCES_SUMMARY))) + getGetProtectedResourcesSummaryMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest, + com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary>( + service, METHODID_GET_PROTECTED_RESOURCES_SUMMARY))) .addMethod( - getSearchProtectedResourcesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest, - com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse>( - service, METHODID_SEARCH_PROTECTED_RESOURCES))) + getSearchProtectedResourcesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest, + com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse>( + service, METHODID_SEARCH_PROTECTED_RESOURCES))) .build(); } - private abstract static class KeyTrackingServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private static abstract class KeyTrackingServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { KeyTrackingServiceBaseDescriptorSupplier() {} @java.lang.Override @@ -531,13 +422,11 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (KeyTrackingServiceGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new KeyTrackingServiceFileDescriptorSupplier()) - .addMethod(getGetProtectedResourcesSummaryMethod()) - .addMethod(getSearchProtectedResourcesMethod()) - .build(); + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new KeyTrackingServiceFileDescriptorSupplier()) + .addMethod(getGetProtectedResourcesSummaryMethod()) + .addMethod(getSearchProtectedResourcesMethod()) + .build(); } } } diff --git a/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/GetProtectedResourcesSummaryRequest.java b/owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/GetProtectedResourcesSummaryRequest.java similarity index 59% rename from java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/GetProtectedResourcesSummaryRequest.java rename to owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/GetProtectedResourcesSummaryRequest.java index 957bc0d90ee8..8e75ea6bcfd6 100644 --- a/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/GetProtectedResourcesSummaryRequest.java +++ b/owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/GetProtectedResourcesSummaryRequest.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/kms/inventory/v1/key_tracking_service.proto package com.google.cloud.kms.inventory.v1; /** - * - * * <pre> * Request message for * [KeyTrackingService.GetProtectedResourcesSummary][google.cloud.kms.inventory.v1.KeyTrackingService.GetProtectedResourcesSummary]. @@ -28,59 +11,49 @@ * * Protobuf type {@code google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest} */ -public final class GetProtectedResourcesSummaryRequest - extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetProtectedResourcesSummaryRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest) GetProtectedResourcesSummaryRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetProtectedResourcesSummaryRequest.newBuilder() to construct. - private GetProtectedResourcesSummaryRequest( - com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { + private GetProtectedResourcesSummaryRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - private GetProtectedResourcesSummaryRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetProtectedResourcesSummaryRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.kms.inventory.v1.KeyTrackingServiceProto - .internal_static_google_cloud_kms_inventory_v1_GetProtectedResourcesSummaryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.kms.inventory.v1.KeyTrackingServiceProto.internal_static_google_cloud_kms_inventory_v1_GetProtectedResourcesSummaryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.kms.inventory.v1.KeyTrackingServiceProto - .internal_static_google_cloud_kms_inventory_v1_GetProtectedResourcesSummaryRequest_fieldAccessorTable + return com.google.cloud.kms.inventory.v1.KeyTrackingServiceProto.internal_static_google_cloud_kms_inventory_v1_GetProtectedResourcesSummaryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest.class, - com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest.Builder.class); + com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest.class, com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * * <pre> * Required. The resource name of the * [CryptoKey][google.cloud.kms.v1.CryptoKey]. * </pre> * - * <code> - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The name. */ @java.lang.Override @@ -89,32 +62,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * * <pre> * Required. The resource name of the * [CryptoKey][google.cloud.kms.v1.CryptoKey]. * </pre> * - * <code> - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @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 { @@ -123,7 +94,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -135,7 +105,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_); } @@ -159,15 +130,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.kms.inventory.v1.GetProtectedResourcesSummaryRequest)) { return super.equals(obj); } - com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest other = - (com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest) obj; + com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest other = (com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -187,105 +158,98 @@ public int hashCode() { } public static com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest 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.kms.inventory.v1.GetProtectedResourcesSummaryRequest 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.kms.inventory.v1.GetProtectedResourcesSummaryRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest 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.kms.inventory.v1.GetProtectedResourcesSummaryRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest 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.kms.inventory.v1.GetProtectedResourcesSummaryRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest 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.kms.inventory.v1.GetProtectedResourcesSummaryRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest - parseDelimitedFrom( - java.io.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.kms.inventory.v1.GetProtectedResourcesSummaryRequest parseDelimitedFrom( + java.io.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.kms.inventory.v1.GetProtectedResourcesSummaryRequest 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.kms.inventory.v1.GetProtectedResourcesSummaryRequest 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.kms.inventory.v1.GetProtectedResourcesSummaryRequest prototype) { + public static Builder newBuilder(com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest 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; } /** - * - * * <pre> * Request message for * [KeyTrackingService.GetProtectedResourcesSummary][google.cloud.kms.inventory.v1.KeyTrackingService.GetProtectedResourcesSummary]. @@ -293,33 +257,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest) com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.kms.inventory.v1.KeyTrackingServiceProto - .internal_static_google_cloud_kms_inventory_v1_GetProtectedResourcesSummaryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.kms.inventory.v1.KeyTrackingServiceProto.internal_static_google_cloud_kms_inventory_v1_GetProtectedResourcesSummaryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.kms.inventory.v1.KeyTrackingServiceProto - .internal_static_google_cloud_kms_inventory_v1_GetProtectedResourcesSummaryRequest_fieldAccessorTable + return com.google.cloud.kms.inventory.v1.KeyTrackingServiceProto.internal_static_google_cloud_kms_inventory_v1_GetProtectedResourcesSummaryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest.class, - com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest.Builder.class); + com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest.class, com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest.Builder.class); } - // Construct using - // com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest.newBuilder() - private Builder() {} + // Construct using com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -329,16 +293,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.kms.inventory.v1.KeyTrackingServiceProto - .internal_static_google_cloud_kms_inventory_v1_GetProtectedResourcesSummaryRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.kms.inventory.v1.KeyTrackingServiceProto.internal_static_google_cloud_kms_inventory_v1_GetProtectedResourcesSummaryRequest_descriptor; } @java.lang.Override - public com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest - getDefaultInstanceForType() { - return com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest - .getDefaultInstance(); + public com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest getDefaultInstanceForType() { + return com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest.getDefaultInstance(); } @java.lang.Override @@ -352,17 +314,13 @@ public com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest bui @java.lang.Override public com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest buildPartial() { - com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest result = - new com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest result = new com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest result) { + private void buildPartial0(com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -373,51 +331,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest) { - return mergeFrom( - (com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest) other); + return mergeFrom((com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest other) { - if (other - == com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest other) { + if (other == com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -449,19 +402,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -471,28 +422,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * * <pre> * Required. The resource name of the * [CryptoKey][google.cloud.kms.v1.CryptoKey]. * </pre> * - * <code> - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @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; @@ -501,24 +447,21 @@ public java.lang.String getName() { } } /** - * - * * <pre> * Required. The resource name of the * [CryptoKey][google.cloud.kms.v1.CryptoKey]. * </pre> * - * <code> - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @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 { @@ -526,41 +469,30 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * * <pre> * Required. The resource name of the * [CryptoKey][google.cloud.kms.v1.CryptoKey]. * </pre> * - * <code> - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * * <pre> * Required. The resource name of the * [CryptoKey][google.cloud.kms.v1.CryptoKey]. * </pre> * - * <code> - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return This builder for chaining. */ public Builder clearName() { @@ -570,33 +502,27 @@ public Builder clearName() { return this; } /** - * - * * <pre> * Required. The resource name of the * [CryptoKey][google.cloud.kms.v1.CryptoKey]. * </pre> * - * <code> - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -606,43 +532,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest) } // @@protoc_insertion_point(class_scope:google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest) - private static final com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest(); } - public static com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest - getDefaultInstance() { + public static com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<GetProtectedResourcesSummaryRequest> PARSER = - new com.google.protobuf.AbstractParser<GetProtectedResourcesSummaryRequest>() { - @java.lang.Override - public GetProtectedResourcesSummaryRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<GetProtectedResourcesSummaryRequest> + PARSER = new com.google.protobuf.AbstractParser<GetProtectedResourcesSummaryRequest>() { + @java.lang.Override + public GetProtectedResourcesSummaryRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<GetProtectedResourcesSummaryRequest> parser() { return PARSER; @@ -654,8 +578,9 @@ public com.google.protobuf.Parser<GetProtectedResourcesSummaryRequest> getParser } @java.lang.Override - public com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest - getDefaultInstanceForType() { + public com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/GetProtectedResourcesSummaryRequestOrBuilder.java b/owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/GetProtectedResourcesSummaryRequestOrBuilder.java new file mode 100644 index 000000000000..3531f0c85d3b --- /dev/null +++ b/owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/GetProtectedResourcesSummaryRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/kms/inventory/v1/key_tracking_service.proto + +package com.google.cloud.kms.inventory.v1; + +public interface GetProtectedResourcesSummaryRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * <pre> + * Required. The resource name of the + * [CryptoKey][google.cloud.kms.v1.CryptoKey]. + * </pre> + * + * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> + * @return The name. + */ + java.lang.String getName(); + /** + * <pre> + * Required. The resource name of the + * [CryptoKey][google.cloud.kms.v1.CryptoKey]. + * </pre> + * + * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/KeyDashboardServiceProto.java b/owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/KeyDashboardServiceProto.java new file mode 100644 index 000000000000..068dba58c990 --- /dev/null +++ b/owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/KeyDashboardServiceProto.java @@ -0,0 +1,101 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/kms/inventory/v1/key_dashboard_service.proto + +package com.google.cloud.kms.inventory.v1; + +public final class KeyDashboardServiceProto { + private KeyDashboardServiceProto() {} + 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_kms_inventory_v1_ListCryptoKeysRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_kms_inventory_v1_ListCryptoKeysRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_kms_inventory_v1_ListCryptoKeysResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_kms_inventory_v1_ListCryptoKeysResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n9google/cloud/kms/inventory/v1/key_dash" + + "board_service.proto\022\035google.cloud.kms.in" + + "ventory.v1\032\034google/api/annotations.proto" + + "\032\027google/api/client.proto\032\037google/api/fi" + + "eld_behavior.proto\032\031google/api/resource." + + "proto\032#google/cloud/kms/v1/resources.pro" + + "to\"\220\001\n\025ListCryptoKeysRequest\022D\n\006parent\030\001" + + " \001(\tB4\342A\001\002\372A-\n+cloudresourcemanager.goog" + + "leapis.com/Project\022\027\n\tpage_size\030\002 \001(\005B\004\342" + + "A\001\001\022\030\n\npage_token\030\003 \001(\tB\004\342A\001\001\"f\n\026ListCry" + + "ptoKeysResponse\0223\n\013crypto_keys\030\001 \003(\0132\036.g" + + "oogle.cloud.kms.v1.CryptoKey\022\027\n\017next_pag" + + "e_token\030\002 \001(\t2\233\002\n\023KeyDashboardService\022\262\001" + + "\n\016ListCryptoKeys\0224.google.cloud.kms.inve" + + "ntory.v1.ListCryptoKeysRequest\0325.google." + + "cloud.kms.inventory.v1.ListCryptoKeysRes" + + "ponse\"3\332A\006parent\202\323\344\223\002$\022\"/v1/{parent=proj" + + "ects/*}/cryptoKeys\032O\312A\033kmsinventory.goog" + + "leapis.com\322A.https://www.googleapis.com/" + + "auth/cloud-platformB\303\001\n!com.google.cloud" + + ".kms.inventory.v1B\030KeyDashboardServicePr" + + "otoP\001Z?cloud.google.com/go/kms/inventory" + + "/apiv1/inventorypb;inventorypb\370\001\001\252\002\035Goog" + + "le.Cloud.Kms.Inventory.V1\312\002\035Google\\Cloud" + + "\\Kms\\Inventory\\V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.kms.v1.KmsResourcesProto.getDescriptor(), + }); + internal_static_google_cloud_kms_inventory_v1_ListCryptoKeysRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_kms_inventory_v1_ListCryptoKeysRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_kms_inventory_v1_ListCryptoKeysRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", }); + internal_static_google_cloud_kms_inventory_v1_ListCryptoKeysResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_kms_inventory_v1_ListCryptoKeysResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_kms_inventory_v1_ListCryptoKeysResponse_descriptor, + new java.lang.String[] { "CryptoKeys", "NextPageToken", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.kms.v1.KmsResourcesProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/KeyTrackingServiceProto.java b/owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/KeyTrackingServiceProto.java new file mode 100644 index 000000000000..59c12ec1eab1 --- /dev/null +++ b/owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/KeyTrackingServiceProto.java @@ -0,0 +1,227 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/kms/inventory/v1/key_tracking_service.proto + +package com.google.cloud.kms.inventory.v1; + +public final class KeyTrackingServiceProto { + private KeyTrackingServiceProto() {} + 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_kms_inventory_v1_GetProtectedResourcesSummaryRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_kms_inventory_v1_GetProtectedResourcesSummaryRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_ResourceTypesEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_ResourceTypesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_CloudProductsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_CloudProductsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_LocationsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_LocationsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_kms_inventory_v1_SearchProtectedResourcesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_kms_inventory_v1_SearchProtectedResourcesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_kms_inventory_v1_SearchProtectedResourcesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_kms_inventory_v1_SearchProtectedResourcesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_kms_inventory_v1_ProtectedResource_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_kms_inventory_v1_ProtectedResource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_kms_inventory_v1_ProtectedResource_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_kms_inventory_v1_ProtectedResource_LabelsEntry_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n8google/cloud/kms/inventory/v1/key_trac" + + "king_service.proto\022\035google.cloud.kms.inv" + + "entory.v1\032\034google/api/annotations.proto\032" + + "\027google/api/client.proto\032\037google/api/fie" + + "ld_behavior.proto\032\031google/api/resource.p" + + "roto\032\037google/protobuf/timestamp.proto\"s\n" + + "#GetProtectedResourcesSummaryRequest\022L\n\004" + + "name\030\001 \001(\tB>\342A\001\002\372A7\n5kmsinventory.google" + + "apis.com/ProtectedResourcesSummary\"\340\006\n\031P" + + "rotectedResourcesSummary\022\014\n\004name\030\005 \001(\t\022\026" + + "\n\016resource_count\030\001 \001(\003\022\025\n\rproject_count\030" + + "\002 \001(\005\022c\n\016resource_types\030\003 \003(\0132K.google.c" + + "loud.kms.inventory.v1.ProtectedResources" + + "Summary.ResourceTypesEntry\022c\n\016cloud_prod" + + "ucts\030\006 \003(\0132K.google.cloud.kms.inventory." + + "v1.ProtectedResourcesSummary.CloudProduc" + + "tsEntry\022Z\n\tlocations\030\004 \003(\0132G.google.clou" + + "d.kms.inventory.v1.ProtectedResourcesSum" + + "mary.LocationsEntry\0324\n\022ResourceTypesEntr" + + "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\003:\0028\001\0324\n\022Clo" + + "udProductsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " + + "\001(\003:\0028\001\0320\n\016LocationsEntry\022\013\n\003key\030\001 \001(\t\022\r" + + "\n\005value\030\002 \001(\003:\0028\001:\301\002\352A\275\002\n5kmsinventory.g" + + "oogleapis.com/ProtectedResourcesSummary\022" + + "mprojects/{project}/locations/{location}" + + "/keyRings/{key_ring}/cryptoKeys/{crypto_" + + "key}/protectedResourcesSummary\022\224\001project" + + "s/{project}/locations/{location}/keyRing" + + "s/{key_ring}/cryptoKeys/{crypto_key}/cry" + + "ptoKeyVersions/{crypto_key_version}/prot" + + "ectedResourcesSummary\"\320\001\n\037SearchProtecte" + + "dResourcesRequest\022H\n\005scope\030\002 \001(\tB9\342A\001\002\372A" + + "2\n0cloudresourcemanager.googleapis.com/O" + + "rganization\022\036\n\ncrypto_key\030\001 \001(\tB\n\342A\001\002\372A\003" + + "\n\001*\022\021\n\tpage_size\030\003 \001(\005\022\022\n\npage_token\030\004 \001" + + "(\t\022\034\n\016resource_types\030\005 \003(\tB\004\342A\001\001\"\212\001\n Sea" + + "rchProtectedResourcesResponse\022M\n\023protect" + + "ed_resources\030\001 \003(\01320.google.cloud.kms.in" + + "ventory.v1.ProtectedResource\022\027\n\017next_pag" + + "e_token\030\002 \001(\t\"\372\003\n\021ProtectedResource\022\014\n\004n" + + "ame\030\001 \001(\t\022\017\n\007project\030\002 \001(\t\022\022\n\nproject_id" + + "\030\t \001(\t\022\025\n\rcloud_product\030\010 \001(\t\022\025\n\rresourc" + + "e_type\030\003 \001(\t\022\020\n\010location\030\004 \001(\t\022L\n\006labels" + + "\030\005 \003(\0132<.google.cloud.kms.inventory.v1.P" + + "rotectedResource.LabelsEntry\022I\n\022crypto_k" + + "ey_version\030\006 \001(\tB-\372A*\n(cloudkms.googleap" + + "is.com/CryptoKeyVersion\022J\n\023crypto_key_ve" + + "rsions\030\n \003(\tB-\372A*\n(cloudkms.googleapis.c" + + "om/CryptoKeyVersion\0225\n\013create_time\030\007 \001(\013" + + "2\032.google.protobuf.TimestampB\004\342A\001\003\032-\n\013La" + + "belsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" + + "\001:\'\352A$\n\037cloudasset.googleapis.com/Asset\022" + + "\001*2\332\004\n\022KeyTrackingService\022\201\002\n\034GetProtect" + + "edResourcesSummary\022B.google.cloud.kms.in" + + "ventory.v1.GetProtectedResourcesSummaryR" + + "equest\0328.google.cloud.kms.inventory.v1.P" + + "rotectedResourcesSummary\"c\332A\004name\202\323\344\223\002V\022" + + "T/v1/{name=projects/*/locations/*/keyRin" + + "gs/*/cryptoKeys/**}/protectedResourcesSu" + + "mmary\022\356\001\n\030SearchProtectedResources\022>.goo" + + "gle.cloud.kms.inventory.v1.SearchProtect" + + "edResourcesRequest\032?.google.cloud.kms.in" + + "ventory.v1.SearchProtectedResourcesRespo" + + "nse\"Q\332A\021scope, crypto_key\202\323\344\223\0027\0225/v1/{sc" + + "ope=organizations/*}/protectedResources:" + + "search\032O\312A\033kmsinventory.googleapis.com\322A" + + ".https://www.googleapis.com/auth/cloud-p" + + "latformB\302\001\n!com.google.cloud.kms.invento" + + "ry.v1B\027KeyTrackingServiceProtoP\001Z?cloud." + + "google.com/go/kms/inventory/apiv1/invent" + + "orypb;inventorypb\370\001\001\252\002\035Google.Cloud.Kms." + + "Inventory.V1\312\002\035Google\\Cloud\\Kms\\Inventor" + + "y\\V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_kms_inventory_v1_GetProtectedResourcesSummaryRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_kms_inventory_v1_GetProtectedResourcesSummaryRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_kms_inventory_v1_GetProtectedResourcesSummaryRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_descriptor, + new java.lang.String[] { "Name", "ResourceCount", "ProjectCount", "ResourceTypes", "CloudProducts", "Locations", }); + internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_ResourceTypesEntry_descriptor = + internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_ResourceTypesEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_ResourceTypesEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_CloudProductsEntry_descriptor = + internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_CloudProductsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_CloudProductsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_LocationsEntry_descriptor = + internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_LocationsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_LocationsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_kms_inventory_v1_SearchProtectedResourcesRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_kms_inventory_v1_SearchProtectedResourcesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_kms_inventory_v1_SearchProtectedResourcesRequest_descriptor, + new java.lang.String[] { "Scope", "CryptoKey", "PageSize", "PageToken", "ResourceTypes", }); + internal_static_google_cloud_kms_inventory_v1_SearchProtectedResourcesResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_kms_inventory_v1_SearchProtectedResourcesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_kms_inventory_v1_SearchProtectedResourcesResponse_descriptor, + new java.lang.String[] { "ProtectedResources", "NextPageToken", }); + internal_static_google_cloud_kms_inventory_v1_ProtectedResource_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_kms_inventory_v1_ProtectedResource_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_kms_inventory_v1_ProtectedResource_descriptor, + new java.lang.String[] { "Name", "Project", "ProjectId", "CloudProduct", "ResourceType", "Location", "Labels", "CryptoKeyVersion", "CryptoKeyVersions", "CreateTime", }); + internal_static_google_cloud_kms_inventory_v1_ProtectedResource_LabelsEntry_descriptor = + internal_static_google_cloud_kms_inventory_v1_ProtectedResource_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_kms_inventory_v1_ProtectedResource_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_kms_inventory_v1_ProtectedResource_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ListCryptoKeysRequest.java b/owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ListCryptoKeysRequest.java similarity index 68% rename from java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ListCryptoKeysRequest.java rename to owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ListCryptoKeysRequest.java index 6b380a80646e..e5d02dfe9ae8 100644 --- a/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ListCryptoKeysRequest.java +++ b/owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ListCryptoKeysRequest.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/kms/inventory/v1/key_dashboard_service.proto package com.google.cloud.kms.inventory.v1; /** - * - * * <pre> * Request message for * [KeyDashboardService.ListCryptoKeys][google.cloud.kms.inventory.v1.KeyDashboardService.ListCryptoKeys]. @@ -28,16 +11,15 @@ * * Protobuf type {@code google.cloud.kms.inventory.v1.ListCryptoKeysRequest} */ -public final class ListCryptoKeysRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListCryptoKeysRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.kms.inventory.v1.ListCryptoKeysRequest) ListCryptoKeysRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListCryptoKeysRequest.newBuilder() to construct. private ListCryptoKeysRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - private ListCryptoKeysRequest() { parent_ = ""; pageToken_ = ""; @@ -45,41 +27,34 @@ private ListCryptoKeysRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListCryptoKeysRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.kms.inventory.v1.KeyDashboardServiceProto - .internal_static_google_cloud_kms_inventory_v1_ListCryptoKeysRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.kms.inventory.v1.KeyDashboardServiceProto.internal_static_google_cloud_kms_inventory_v1_ListCryptoKeysRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.kms.inventory.v1.KeyDashboardServiceProto - .internal_static_google_cloud_kms_inventory_v1_ListCryptoKeysRequest_fieldAccessorTable + return com.google.cloud.kms.inventory.v1.KeyDashboardServiceProto.internal_static_google_cloud_kms_inventory_v1_ListCryptoKeysRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest.class, - com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest.Builder.class); + com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest.class, com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * * <pre> * Required. The Google Cloud project for which to retrieve key metadata, in * the format `projects/*` * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The parent. */ @java.lang.Override @@ -88,32 +63,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; } } /** - * - * * <pre> * Required. The Google Cloud project for which to retrieve key metadata, in * the format `projects/*` * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @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 { @@ -124,8 +97,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * * <pre> * Optional. The maximum number of keys to return. The service may return * fewer than this value. If unspecified, at most 1000 keys will be returned. @@ -133,7 +104,6 @@ public com.google.protobuf.ByteString getParentBytes() { * </pre> * * <code>int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL];</code> - * * @return The pageSize. */ @java.lang.Override @@ -142,19 +112,15 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * * <pre> * Optional. Pass this into a subsequent request in order to receive the next * page of results. * </pre> * * <code>string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];</code> - * * @return The pageToken. */ @java.lang.Override @@ -163,30 +129,30 @@ 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; } } /** - * - * * <pre> * Optional. Pass this into a subsequent request in order to receive the next * page of results. * </pre> * * <code>string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];</code> - * * @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 { @@ -195,7 +161,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -207,7 +172,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_); } @@ -230,7 +196,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_); @@ -243,17 +210,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest)) { return super.equals(obj); } - com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest other = - (com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest) obj; + com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest other = (com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -277,104 +246,98 @@ public int hashCode() { } public static com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest 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.kms.inventory.v1.ListCryptoKeysRequest 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.kms.inventory.v1.ListCryptoKeysRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest 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.kms.inventory.v1.ListCryptoKeysRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest 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.kms.inventory.v1.ListCryptoKeysRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest 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.kms.inventory.v1.ListCryptoKeysRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest 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.kms.inventory.v1.ListCryptoKeysRequest 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.kms.inventory.v1.ListCryptoKeysRequest 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.kms.inventory.v1.ListCryptoKeysRequest prototype) { + public static Builder newBuilder(com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest 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; } /** - * - * * <pre> * Request message for * [KeyDashboardService.ListCryptoKeys][google.cloud.kms.inventory.v1.KeyDashboardService.ListCryptoKeys]. @@ -382,32 +345,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.cloud.kms.inventory.v1.ListCryptoKeysRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.cloud.kms.inventory.v1.ListCryptoKeysRequest) com.google.cloud.kms.inventory.v1.ListCryptoKeysRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.kms.inventory.v1.KeyDashboardServiceProto - .internal_static_google_cloud_kms_inventory_v1_ListCryptoKeysRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.kms.inventory.v1.KeyDashboardServiceProto.internal_static_google_cloud_kms_inventory_v1_ListCryptoKeysRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.kms.inventory.v1.KeyDashboardServiceProto - .internal_static_google_cloud_kms_inventory_v1_ListCryptoKeysRequest_fieldAccessorTable + return com.google.cloud.kms.inventory.v1.KeyDashboardServiceProto.internal_static_google_cloud_kms_inventory_v1_ListCryptoKeysRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest.class, - com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest.Builder.class); + com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest.class, com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest.Builder.class); } // Construct using com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -419,9 +383,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.kms.inventory.v1.KeyDashboardServiceProto - .internal_static_google_cloud_kms_inventory_v1_ListCryptoKeysRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.kms.inventory.v1.KeyDashboardServiceProto.internal_static_google_cloud_kms_inventory_v1_ListCryptoKeysRequest_descriptor; } @java.lang.Override @@ -440,11 +404,8 @@ public com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest build() { @java.lang.Override public com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest buildPartial() { - com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest result = - new com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest result = new com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -466,39 +427,38 @@ private void buildPartial0(com.google.cloud.kms.inventory.v1.ListCryptoKeysReque 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.kms.inventory.v1.ListCryptoKeysRequest) { - return mergeFrom((com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest) other); + return mergeFrom((com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest)other); } else { super.mergeFrom(other); return this; @@ -506,8 +466,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest other) { - if (other == com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -547,31 +506,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -581,28 +536,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * * <pre> * Required. The Google Cloud project for which to retrieve key metadata, in * the format `projects/*` * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @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; @@ -611,24 +561,21 @@ public java.lang.String getParent() { } } /** - * - * * <pre> * Required. The Google Cloud project for which to retrieve key metadata, in * the format `projects/*` * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @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 { @@ -636,41 +583,30 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * * <pre> * Required. The Google Cloud project for which to retrieve key metadata, in * the format `projects/*` * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * * <pre> * Required. The Google Cloud project for which to retrieve key metadata, in * the format `projects/*` * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return This builder for chaining. */ public Builder clearParent() { @@ -680,24 +616,18 @@ public Builder clearParent() { return this; } /** - * - * * <pre> * Required. The Google Cloud project for which to retrieve key metadata, in * the format `projects/*` * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -705,10 +635,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * * <pre> * Optional. The maximum number of keys to return. The service may return * fewer than this value. If unspecified, at most 1000 keys will be returned. @@ -716,7 +644,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * </pre> * * <code>int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL];</code> - * * @return The pageSize. */ @java.lang.Override @@ -724,8 +651,6 @@ public int getPageSize() { return pageSize_; } /** - * - * * <pre> * Optional. The maximum number of keys to return. The service may return * fewer than this value. If unspecified, at most 1000 keys will be returned. @@ -733,7 +658,6 @@ public int getPageSize() { * </pre> * * <code>int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL];</code> - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -745,8 +669,6 @@ public Builder setPageSize(int value) { return this; } /** - * - * * <pre> * Optional. The maximum number of keys to return. The service may return * fewer than this value. If unspecified, at most 1000 keys will be returned. @@ -754,7 +676,6 @@ public Builder setPageSize(int value) { * </pre> * * <code>int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL];</code> - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -766,21 +687,19 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * * <pre> * Optional. Pass this into a subsequent request in order to receive the next * page of results. * </pre> * * <code>string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];</code> - * * @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; @@ -789,22 +708,21 @@ public java.lang.String getPageToken() { } } /** - * - * * <pre> * Optional. Pass this into a subsequent request in order to receive the next * page of results. * </pre> * * <code>string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];</code> - * * @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 { @@ -812,37 +730,30 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * * <pre> * Optional. Pass this into a subsequent request in order to receive the next * page of results. * </pre> * * <code>string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];</code> - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * * <pre> * Optional. Pass this into a subsequent request in order to receive the next * page of results. * </pre> * * <code>string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];</code> - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -852,31 +763,27 @@ public Builder clearPageToken() { return this; } /** - * - * * <pre> * Optional. Pass this into a subsequent request in order to receive the next * page of results. * </pre> * * <code>string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];</code> - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; 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); } @@ -886,12 +793,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.kms.inventory.v1.ListCryptoKeysRequest) } // @@protoc_insertion_point(class_scope:google.cloud.kms.inventory.v1.ListCryptoKeysRequest) private static final com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest(); } @@ -900,27 +807,27 @@ public static com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<ListCryptoKeysRequest> PARSER = - new com.google.protobuf.AbstractParser<ListCryptoKeysRequest>() { - @java.lang.Override - public ListCryptoKeysRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<ListCryptoKeysRequest> + PARSER = new com.google.protobuf.AbstractParser<ListCryptoKeysRequest>() { + @java.lang.Override + public ListCryptoKeysRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<ListCryptoKeysRequest> parser() { return PARSER; @@ -935,4 +842,6 @@ public com.google.protobuf.Parser<ListCryptoKeysRequest> getParserForType() { public com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ListCryptoKeysRequestOrBuilder.java b/owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ListCryptoKeysRequestOrBuilder.java similarity index 60% rename from java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ListCryptoKeysRequestOrBuilder.java rename to owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ListCryptoKeysRequestOrBuilder.java index deea8ade57d2..5a24b524393a 100644 --- a/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ListCryptoKeysRequestOrBuilder.java +++ b/owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ListCryptoKeysRequestOrBuilder.java @@ -1,62 +1,35 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/kms/inventory/v1/key_dashboard_service.proto package com.google.cloud.kms.inventory.v1; -public interface ListCryptoKeysRequestOrBuilder - extends +public interface ListCryptoKeysRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.kms.inventory.v1.ListCryptoKeysRequest) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * Required. The Google Cloud project for which to retrieve key metadata, in * the format `projects/*` * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The parent. */ java.lang.String getParent(); /** - * - * * <pre> * Required. The Google Cloud project for which to retrieve key metadata, in * the format `projects/*` * </pre> * - * <code> - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * </code> - * + * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * * <pre> * Optional. The maximum number of keys to return. The service may return * fewer than this value. If unspecified, at most 1000 keys will be returned. @@ -64,35 +37,29 @@ public interface ListCryptoKeysRequestOrBuilder * </pre> * * <code>int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL];</code> - * * @return The pageSize. */ int getPageSize(); /** - * - * * <pre> * Optional. Pass this into a subsequent request in order to receive the next * page of results. * </pre> * * <code>string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];</code> - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * * <pre> * Optional. Pass this into a subsequent request in order to receive the next * page of results. * </pre> * * <code>string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];</code> - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ListCryptoKeysResponse.java b/owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ListCryptoKeysResponse.java similarity index 72% rename from java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ListCryptoKeysResponse.java rename to owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ListCryptoKeysResponse.java index bfbb2bd960f6..788201a059ff 100644 --- a/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ListCryptoKeysResponse.java +++ b/owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ListCryptoKeysResponse.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/kms/inventory/v1/key_dashboard_service.proto package com.google.cloud.kms.inventory.v1; /** - * - * * <pre> * Response message for * [KeyDashboardService.ListCryptoKeys][google.cloud.kms.inventory.v1.KeyDashboardService.ListCryptoKeys]. @@ -28,16 +11,15 @@ * * Protobuf type {@code google.cloud.kms.inventory.v1.ListCryptoKeysResponse} */ -public final class ListCryptoKeysResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListCryptoKeysResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.kms.inventory.v1.ListCryptoKeysResponse) ListCryptoKeysResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListCryptoKeysResponse.newBuilder() to construct. private ListCryptoKeysResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - private ListCryptoKeysResponse() { cryptoKeys_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -45,32 +27,28 @@ private ListCryptoKeysResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListCryptoKeysResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.kms.inventory.v1.KeyDashboardServiceProto - .internal_static_google_cloud_kms_inventory_v1_ListCryptoKeysResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.kms.inventory.v1.KeyDashboardServiceProto.internal_static_google_cloud_kms_inventory_v1_ListCryptoKeysResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.kms.inventory.v1.KeyDashboardServiceProto - .internal_static_google_cloud_kms_inventory_v1_ListCryptoKeysResponse_fieldAccessorTable + return com.google.cloud.kms.inventory.v1.KeyDashboardServiceProto.internal_static_google_cloud_kms_inventory_v1_ListCryptoKeysResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse.class, - com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse.Builder.class); + com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse.class, com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse.Builder.class); } public static final int CRYPTO_KEYS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List<com.google.cloud.kms.v1.CryptoKey> cryptoKeys_; /** - * - * * <pre> * The list of [CryptoKeys][google.cloud.kms.v1.CryptoKey]. * </pre> @@ -82,8 +60,6 @@ public java.util.List<com.google.cloud.kms.v1.CryptoKey> getCryptoKeysList() { return cryptoKeys_; } /** - * - * * <pre> * The list of [CryptoKeys][google.cloud.kms.v1.CryptoKey]. * </pre> @@ -91,13 +67,11 @@ public java.util.List<com.google.cloud.kms.v1.CryptoKey> getCryptoKeysList() { * <code>repeated .google.cloud.kms.v1.CryptoKey crypto_keys = 1;</code> */ @java.lang.Override - public java.util.List<? extends com.google.cloud.kms.v1.CryptoKeyOrBuilder> + public java.util.List<? extends com.google.cloud.kms.v1.CryptoKeyOrBuilder> getCryptoKeysOrBuilderList() { return cryptoKeys_; } /** - * - * * <pre> * The list of [CryptoKeys][google.cloud.kms.v1.CryptoKey]. * </pre> @@ -109,8 +83,6 @@ public int getCryptoKeysCount() { return cryptoKeys_.size(); } /** - * - * * <pre> * The list of [CryptoKeys][google.cloud.kms.v1.CryptoKey]. * </pre> @@ -122,8 +94,6 @@ public com.google.cloud.kms.v1.CryptoKey getCryptoKeys(int index) { return cryptoKeys_.get(index); } /** - * - * * <pre> * The list of [CryptoKeys][google.cloud.kms.v1.CryptoKey]. * </pre> @@ -131,24 +101,21 @@ public com.google.cloud.kms.v1.CryptoKey getCryptoKeys(int index) { * <code>repeated .google.cloud.kms.v1.CryptoKey crypto_keys = 1;</code> */ @java.lang.Override - public com.google.cloud.kms.v1.CryptoKeyOrBuilder getCryptoKeysOrBuilder(int index) { + public com.google.cloud.kms.v1.CryptoKeyOrBuilder getCryptoKeysOrBuilder( + int index) { return cryptoKeys_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * * <pre> * The page token returned from the previous response if the next page is * desired. * </pre> * * <code>string next_page_token = 2;</code> - * * @return The nextPageToken. */ @java.lang.Override @@ -157,30 +124,30 @@ 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; } } /** - * - * * <pre> * The page token returned from the previous response if the next page is * desired. * </pre> * * <code>string next_page_token = 2;</code> - * * @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 { @@ -189,7 +156,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -201,7 +167,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 < cryptoKeys_.size(); i++) { output.writeMessage(1, cryptoKeys_.get(i)); } @@ -218,7 +185,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < cryptoKeys_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, cryptoKeys_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, cryptoKeys_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -231,16 +199,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.kms.inventory.v1.ListCryptoKeysResponse)) { return super.equals(obj); } - com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse other = - (com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse) obj; + com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse other = (com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse) obj; - if (!getCryptoKeysList().equals(other.getCryptoKeysList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getCryptoKeysList() + .equals(other.getCryptoKeysList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -264,104 +233,98 @@ public int hashCode() { } public static com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse 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.kms.inventory.v1.ListCryptoKeysResponse 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.kms.inventory.v1.ListCryptoKeysResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse 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.kms.inventory.v1.ListCryptoKeysResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse 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.kms.inventory.v1.ListCryptoKeysResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse 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.kms.inventory.v1.ListCryptoKeysResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse 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.kms.inventory.v1.ListCryptoKeysResponse 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.kms.inventory.v1.ListCryptoKeysResponse 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.kms.inventory.v1.ListCryptoKeysResponse prototype) { + public static Builder newBuilder(com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse 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; } /** - * - * * <pre> * Response message for * [KeyDashboardService.ListCryptoKeys][google.cloud.kms.inventory.v1.KeyDashboardService.ListCryptoKeys]. @@ -369,32 +332,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.cloud.kms.inventory.v1.ListCryptoKeysResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.cloud.kms.inventory.v1.ListCryptoKeysResponse) com.google.cloud.kms.inventory.v1.ListCryptoKeysResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.kms.inventory.v1.KeyDashboardServiceProto - .internal_static_google_cloud_kms_inventory_v1_ListCryptoKeysResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.kms.inventory.v1.KeyDashboardServiceProto.internal_static_google_cloud_kms_inventory_v1_ListCryptoKeysResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.kms.inventory.v1.KeyDashboardServiceProto - .internal_static_google_cloud_kms_inventory_v1_ListCryptoKeysResponse_fieldAccessorTable + return com.google.cloud.kms.inventory.v1.KeyDashboardServiceProto.internal_static_google_cloud_kms_inventory_v1_ListCryptoKeysResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse.class, - com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse.Builder.class); + com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse.class, com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse.Builder.class); } // Construct using com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -411,9 +375,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.kms.inventory.v1.KeyDashboardServiceProto - .internal_static_google_cloud_kms_inventory_v1_ListCryptoKeysResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.kms.inventory.v1.KeyDashboardServiceProto.internal_static_google_cloud_kms_inventory_v1_ListCryptoKeysResponse_descriptor; } @java.lang.Override @@ -432,18 +396,14 @@ public com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse build() { @java.lang.Override public com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse buildPartial() { - com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse result = - new com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse(this); + com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse result = new com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse result) { + private void buildPartialRepeatedFields(com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse result) { if (cryptoKeysBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { cryptoKeys_ = java.util.Collections.unmodifiableList(cryptoKeys_); @@ -466,39 +426,38 @@ private void buildPartial0(com.google.cloud.kms.inventory.v1.ListCryptoKeysRespo 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.kms.inventory.v1.ListCryptoKeysResponse) { - return mergeFrom((com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse) other); + return mergeFrom((com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse)other); } else { super.mergeFrom(other); return this; @@ -506,8 +465,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse other) { - if (other == com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse.getDefaultInstance()) return this; if (cryptoKeysBuilder_ == null) { if (!other.cryptoKeys_.isEmpty()) { if (cryptoKeys_.isEmpty()) { @@ -526,10 +484,9 @@ public Builder mergeFrom(com.google.cloud.kms.inventory.v1.ListCryptoKeysRespons cryptoKeysBuilder_ = null; cryptoKeys_ = other.cryptoKeys_; bitField0_ = (bitField0_ & ~0x00000001); - cryptoKeysBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getCryptoKeysFieldBuilder() - : null; + cryptoKeysBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getCryptoKeysFieldBuilder() : null; } else { cryptoKeysBuilder_.addAllMessages(other.cryptoKeys_); } @@ -566,32 +523,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.kms.v1.CryptoKey m = - input.readMessage( - com.google.cloud.kms.v1.CryptoKey.parser(), extensionRegistry); - if (cryptoKeysBuilder_ == null) { - ensureCryptoKeysIsMutable(); - cryptoKeys_.add(m); - } else { - cryptoKeysBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.kms.v1.CryptoKey m = + input.readMessage( + com.google.cloud.kms.v1.CryptoKey.parser(), + extensionRegistry); + if (cryptoKeysBuilder_ == null) { + ensureCryptoKeysIsMutable(); + cryptoKeys_.add(m); + } else { + cryptoKeysBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -601,28 +556,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List<com.google.cloud.kms.v1.CryptoKey> cryptoKeys_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureCryptoKeysIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { cryptoKeys_ = new java.util.ArrayList<com.google.cloud.kms.v1.CryptoKey>(cryptoKeys_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.kms.v1.CryptoKey, - com.google.cloud.kms.v1.CryptoKey.Builder, - com.google.cloud.kms.v1.CryptoKeyOrBuilder> - cryptoKeysBuilder_; + com.google.cloud.kms.v1.CryptoKey, com.google.cloud.kms.v1.CryptoKey.Builder, com.google.cloud.kms.v1.CryptoKeyOrBuilder> cryptoKeysBuilder_; /** - * - * * <pre> * The list of [CryptoKeys][google.cloud.kms.v1.CryptoKey]. * </pre> @@ -637,8 +585,6 @@ public java.util.List<com.google.cloud.kms.v1.CryptoKey> getCryptoKeysList() { } } /** - * - * * <pre> * The list of [CryptoKeys][google.cloud.kms.v1.CryptoKey]. * </pre> @@ -653,8 +599,6 @@ public int getCryptoKeysCount() { } } /** - * - * * <pre> * The list of [CryptoKeys][google.cloud.kms.v1.CryptoKey]. * </pre> @@ -669,15 +613,14 @@ public com.google.cloud.kms.v1.CryptoKey getCryptoKeys(int index) { } } /** - * - * * <pre> * The list of [CryptoKeys][google.cloud.kms.v1.CryptoKey]. * </pre> * * <code>repeated .google.cloud.kms.v1.CryptoKey crypto_keys = 1;</code> */ - public Builder setCryptoKeys(int index, com.google.cloud.kms.v1.CryptoKey value) { + public Builder setCryptoKeys( + int index, com.google.cloud.kms.v1.CryptoKey value) { if (cryptoKeysBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -691,8 +634,6 @@ public Builder setCryptoKeys(int index, com.google.cloud.kms.v1.CryptoKey value) return this; } /** - * - * * <pre> * The list of [CryptoKeys][google.cloud.kms.v1.CryptoKey]. * </pre> @@ -711,8 +652,6 @@ public Builder setCryptoKeys( return this; } /** - * - * * <pre> * The list of [CryptoKeys][google.cloud.kms.v1.CryptoKey]. * </pre> @@ -733,15 +672,14 @@ public Builder addCryptoKeys(com.google.cloud.kms.v1.CryptoKey value) { return this; } /** - * - * * <pre> * The list of [CryptoKeys][google.cloud.kms.v1.CryptoKey]. * </pre> * * <code>repeated .google.cloud.kms.v1.CryptoKey crypto_keys = 1;</code> */ - public Builder addCryptoKeys(int index, com.google.cloud.kms.v1.CryptoKey value) { + public Builder addCryptoKeys( + int index, com.google.cloud.kms.v1.CryptoKey value) { if (cryptoKeysBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -755,15 +693,14 @@ public Builder addCryptoKeys(int index, com.google.cloud.kms.v1.CryptoKey value) return this; } /** - * - * * <pre> * The list of [CryptoKeys][google.cloud.kms.v1.CryptoKey]. * </pre> * * <code>repeated .google.cloud.kms.v1.CryptoKey crypto_keys = 1;</code> */ - public Builder addCryptoKeys(com.google.cloud.kms.v1.CryptoKey.Builder builderForValue) { + public Builder addCryptoKeys( + com.google.cloud.kms.v1.CryptoKey.Builder builderForValue) { if (cryptoKeysBuilder_ == null) { ensureCryptoKeysIsMutable(); cryptoKeys_.add(builderForValue.build()); @@ -774,8 +711,6 @@ public Builder addCryptoKeys(com.google.cloud.kms.v1.CryptoKey.Builder builderFo return this; } /** - * - * * <pre> * The list of [CryptoKeys][google.cloud.kms.v1.CryptoKey]. * </pre> @@ -794,8 +729,6 @@ public Builder addCryptoKeys( return this; } /** - * - * * <pre> * The list of [CryptoKeys][google.cloud.kms.v1.CryptoKey]. * </pre> @@ -806,7 +739,8 @@ public Builder addAllCryptoKeys( java.lang.Iterable<? extends com.google.cloud.kms.v1.CryptoKey> values) { if (cryptoKeysBuilder_ == null) { ensureCryptoKeysIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, cryptoKeys_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, cryptoKeys_); onChanged(); } else { cryptoKeysBuilder_.addAllMessages(values); @@ -814,8 +748,6 @@ public Builder addAllCryptoKeys( return this; } /** - * - * * <pre> * The list of [CryptoKeys][google.cloud.kms.v1.CryptoKey]. * </pre> @@ -833,8 +765,6 @@ public Builder clearCryptoKeys() { return this; } /** - * - * * <pre> * The list of [CryptoKeys][google.cloud.kms.v1.CryptoKey]. * </pre> @@ -852,44 +782,39 @@ public Builder removeCryptoKeys(int index) { return this; } /** - * - * * <pre> * The list of [CryptoKeys][google.cloud.kms.v1.CryptoKey]. * </pre> * * <code>repeated .google.cloud.kms.v1.CryptoKey crypto_keys = 1;</code> */ - public com.google.cloud.kms.v1.CryptoKey.Builder getCryptoKeysBuilder(int index) { + public com.google.cloud.kms.v1.CryptoKey.Builder getCryptoKeysBuilder( + int index) { return getCryptoKeysFieldBuilder().getBuilder(index); } /** - * - * * <pre> * The list of [CryptoKeys][google.cloud.kms.v1.CryptoKey]. * </pre> * * <code>repeated .google.cloud.kms.v1.CryptoKey crypto_keys = 1;</code> */ - public com.google.cloud.kms.v1.CryptoKeyOrBuilder getCryptoKeysOrBuilder(int index) { + public com.google.cloud.kms.v1.CryptoKeyOrBuilder getCryptoKeysOrBuilder( + int index) { if (cryptoKeysBuilder_ == null) { - return cryptoKeys_.get(index); - } else { + return cryptoKeys_.get(index); } else { return cryptoKeysBuilder_.getMessageOrBuilder(index); } } /** - * - * * <pre> * The list of [CryptoKeys][google.cloud.kms.v1.CryptoKey]. * </pre> * * <code>repeated .google.cloud.kms.v1.CryptoKey crypto_keys = 1;</code> */ - public java.util.List<? extends com.google.cloud.kms.v1.CryptoKeyOrBuilder> - getCryptoKeysOrBuilderList() { + public java.util.List<? extends com.google.cloud.kms.v1.CryptoKeyOrBuilder> + getCryptoKeysOrBuilderList() { if (cryptoKeysBuilder_ != null) { return cryptoKeysBuilder_.getMessageOrBuilderList(); } else { @@ -897,8 +822,6 @@ public com.google.cloud.kms.v1.CryptoKeyOrBuilder getCryptoKeysOrBuilder(int ind } } /** - * - * * <pre> * The list of [CryptoKeys][google.cloud.kms.v1.CryptoKey]. * </pre> @@ -906,47 +829,42 @@ public com.google.cloud.kms.v1.CryptoKeyOrBuilder getCryptoKeysOrBuilder(int ind * <code>repeated .google.cloud.kms.v1.CryptoKey crypto_keys = 1;</code> */ public com.google.cloud.kms.v1.CryptoKey.Builder addCryptoKeysBuilder() { - return getCryptoKeysFieldBuilder() - .addBuilder(com.google.cloud.kms.v1.CryptoKey.getDefaultInstance()); + return getCryptoKeysFieldBuilder().addBuilder( + com.google.cloud.kms.v1.CryptoKey.getDefaultInstance()); } /** - * - * * <pre> * The list of [CryptoKeys][google.cloud.kms.v1.CryptoKey]. * </pre> * * <code>repeated .google.cloud.kms.v1.CryptoKey crypto_keys = 1;</code> */ - public com.google.cloud.kms.v1.CryptoKey.Builder addCryptoKeysBuilder(int index) { - return getCryptoKeysFieldBuilder() - .addBuilder(index, com.google.cloud.kms.v1.CryptoKey.getDefaultInstance()); + public com.google.cloud.kms.v1.CryptoKey.Builder addCryptoKeysBuilder( + int index) { + return getCryptoKeysFieldBuilder().addBuilder( + index, com.google.cloud.kms.v1.CryptoKey.getDefaultInstance()); } /** - * - * * <pre> * The list of [CryptoKeys][google.cloud.kms.v1.CryptoKey]. * </pre> * * <code>repeated .google.cloud.kms.v1.CryptoKey crypto_keys = 1;</code> */ - public java.util.List<com.google.cloud.kms.v1.CryptoKey.Builder> getCryptoKeysBuilderList() { + public java.util.List<com.google.cloud.kms.v1.CryptoKey.Builder> + getCryptoKeysBuilderList() { return getCryptoKeysFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.kms.v1.CryptoKey, - com.google.cloud.kms.v1.CryptoKey.Builder, - com.google.cloud.kms.v1.CryptoKeyOrBuilder> + com.google.cloud.kms.v1.CryptoKey, com.google.cloud.kms.v1.CryptoKey.Builder, com.google.cloud.kms.v1.CryptoKeyOrBuilder> getCryptoKeysFieldBuilder() { if (cryptoKeysBuilder_ == null) { - cryptoKeysBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.kms.v1.CryptoKey, - com.google.cloud.kms.v1.CryptoKey.Builder, - com.google.cloud.kms.v1.CryptoKeyOrBuilder>( - cryptoKeys_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + cryptoKeysBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.kms.v1.CryptoKey, com.google.cloud.kms.v1.CryptoKey.Builder, com.google.cloud.kms.v1.CryptoKeyOrBuilder>( + cryptoKeys_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); cryptoKeys_ = null; } return cryptoKeysBuilder_; @@ -954,21 +872,19 @@ public java.util.List<com.google.cloud.kms.v1.CryptoKey.Builder> getCryptoKeysBu private java.lang.Object nextPageToken_ = ""; /** - * - * * <pre> * The page token returned from the previous response if the next page is * desired. * </pre> * * <code>string next_page_token = 2;</code> - * * @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; @@ -977,22 +893,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * * <pre> * The page token returned from the previous response if the next page is * desired. * </pre> * * <code>string next_page_token = 2;</code> - * * @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 { @@ -1000,37 +915,30 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * * <pre> * The page token returned from the previous response if the next page is * desired. * </pre> * * <code>string next_page_token = 2;</code> - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * * <pre> * The page token returned from the previous response if the next page is * desired. * </pre> * * <code>string next_page_token = 2;</code> - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1040,31 +948,27 @@ public Builder clearNextPageToken() { return this; } /** - * - * * <pre> * The page token returned from the previous response if the next page is * desired. * </pre> * * <code>string next_page_token = 2;</code> - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1074,12 +978,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.kms.inventory.v1.ListCryptoKeysResponse) } // @@protoc_insertion_point(class_scope:google.cloud.kms.inventory.v1.ListCryptoKeysResponse) private static final com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse(); } @@ -1088,27 +992,27 @@ public static com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<ListCryptoKeysResponse> PARSER = - new com.google.protobuf.AbstractParser<ListCryptoKeysResponse>() { - @java.lang.Override - public ListCryptoKeysResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<ListCryptoKeysResponse> + PARSER = new com.google.protobuf.AbstractParser<ListCryptoKeysResponse>() { + @java.lang.Override + public ListCryptoKeysResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<ListCryptoKeysResponse> parser() { return PARSER; @@ -1123,4 +1027,6 @@ public com.google.protobuf.Parser<ListCryptoKeysResponse> getParserForType() { public com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ListCryptoKeysResponseOrBuilder.java b/owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ListCryptoKeysResponseOrBuilder.java similarity index 67% rename from java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ListCryptoKeysResponseOrBuilder.java rename to owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ListCryptoKeysResponseOrBuilder.java index 304e5032bdc6..e3cc65c29dc0 100644 --- a/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ListCryptoKeysResponseOrBuilder.java +++ b/owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ListCryptoKeysResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/kms/inventory/v1/key_dashboard_service.proto package com.google.cloud.kms.inventory.v1; -public interface ListCryptoKeysResponseOrBuilder - extends +public interface ListCryptoKeysResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.kms.inventory.v1.ListCryptoKeysResponse) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * The list of [CryptoKeys][google.cloud.kms.v1.CryptoKey]. * </pre> * * <code>repeated .google.cloud.kms.v1.CryptoKey crypto_keys = 1;</code> */ - java.util.List<com.google.cloud.kms.v1.CryptoKey> getCryptoKeysList(); + java.util.List<com.google.cloud.kms.v1.CryptoKey> + getCryptoKeysList(); /** - * - * * <pre> * The list of [CryptoKeys][google.cloud.kms.v1.CryptoKey]. * </pre> @@ -44,8 +25,6 @@ public interface ListCryptoKeysResponseOrBuilder */ com.google.cloud.kms.v1.CryptoKey getCryptoKeys(int index); /** - * - * * <pre> * The list of [CryptoKeys][google.cloud.kms.v1.CryptoKey]. * </pre> @@ -54,50 +33,43 @@ public interface ListCryptoKeysResponseOrBuilder */ int getCryptoKeysCount(); /** - * - * * <pre> * The list of [CryptoKeys][google.cloud.kms.v1.CryptoKey]. * </pre> * * <code>repeated .google.cloud.kms.v1.CryptoKey crypto_keys = 1;</code> */ - java.util.List<? extends com.google.cloud.kms.v1.CryptoKeyOrBuilder> getCryptoKeysOrBuilderList(); + java.util.List<? extends com.google.cloud.kms.v1.CryptoKeyOrBuilder> + getCryptoKeysOrBuilderList(); /** - * - * * <pre> * The list of [CryptoKeys][google.cloud.kms.v1.CryptoKey]. * </pre> * * <code>repeated .google.cloud.kms.v1.CryptoKey crypto_keys = 1;</code> */ - com.google.cloud.kms.v1.CryptoKeyOrBuilder getCryptoKeysOrBuilder(int index); + com.google.cloud.kms.v1.CryptoKeyOrBuilder getCryptoKeysOrBuilder( + int index); /** - * - * * <pre> * The page token returned from the previous response if the next page is * desired. * </pre> * * <code>string next_page_token = 2;</code> - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * * <pre> * The page token returned from the previous response if the next page is * desired. * </pre> * * <code>string next_page_token = 2;</code> - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/OrganizationName.java b/owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/OrganizationName.java similarity index 100% rename from java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/OrganizationName.java rename to owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/OrganizationName.java diff --git a/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ProjectName.java b/owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ProjectName.java similarity index 100% rename from java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ProjectName.java rename to owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ProjectName.java diff --git a/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ProtectedResource.java b/owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ProtectedResource.java similarity index 71% rename from java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ProtectedResource.java rename to owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ProtectedResource.java index 737389d5a946..4a8390b3362a 100644 --- a/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ProtectedResource.java +++ b/owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ProtectedResource.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/kms/inventory/v1/key_tracking_service.proto package com.google.cloud.kms.inventory.v1; /** - * - * * <pre> * Metadata about a resource protected by a Cloud KMS key. * </pre> * * Protobuf type {@code google.cloud.kms.inventory.v1.ProtectedResource} */ -public final class ProtectedResource extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ProtectedResource extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.kms.inventory.v1.ProtectedResource) ProtectedResourceOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ProtectedResource.newBuilder() to construct. private ProtectedResource(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - private ProtectedResource() { name_ = ""; project_ = ""; @@ -45,48 +27,46 @@ private ProtectedResource() { resourceType_ = ""; location_ = ""; cryptoKeyVersion_ = ""; - cryptoKeyVersions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + cryptoKeyVersions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ProtectedResource(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.kms.inventory.v1.KeyTrackingServiceProto - .internal_static_google_cloud_kms_inventory_v1_ProtectedResource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.kms.inventory.v1.KeyTrackingServiceProto.internal_static_google_cloud_kms_inventory_v1_ProtectedResource_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 5: 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.kms.inventory.v1.KeyTrackingServiceProto - .internal_static_google_cloud_kms_inventory_v1_ProtectedResource_fieldAccessorTable + return com.google.cloud.kms.inventory.v1.KeyTrackingServiceProto.internal_static_google_cloud_kms_inventory_v1_ProtectedResource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.kms.inventory.v1.ProtectedResource.class, - com.google.cloud.kms.inventory.v1.ProtectedResource.Builder.class); + com.google.cloud.kms.inventory.v1.ProtectedResource.class, com.google.cloud.kms.inventory.v1.ProtectedResource.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * * <pre> * The full resource name of the resource. * Example: @@ -94,7 +74,6 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { * </pre> * * <code>string name = 1;</code> - * * @return The name. */ @java.lang.Override @@ -103,15 +82,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; } } /** - * - * * <pre> * The full resource name of the resource. * Example: @@ -119,15 +97,16 @@ public java.lang.String getName() { * </pre> * * <code>string name = 1;</code> - * * @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 { @@ -136,18 +115,14 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int PROJECT_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object project_ = ""; /** - * - * * <pre> * Format: `projects/{PROJECT_NUMBER}`. * </pre> * * <code>string project = 2;</code> - * * @return The project. */ @java.lang.Override @@ -156,29 +131,29 @@ public java.lang.String getProject() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); project_ = s; return s; } } /** - * - * * <pre> * Format: `projects/{PROJECT_NUMBER}`. * </pre> * * <code>string project = 2;</code> - * * @return The bytes for project. */ @java.lang.Override - public com.google.protobuf.ByteString getProjectBytes() { + public com.google.protobuf.ByteString + getProjectBytes() { java.lang.Object ref = project_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); project_ = b; return b; } else { @@ -187,18 +162,14 @@ public com.google.protobuf.ByteString getProjectBytes() { } public static final int PROJECT_ID_FIELD_NUMBER = 9; - @SuppressWarnings("serial") private volatile java.lang.Object projectId_ = ""; /** - * - * * <pre> * The ID of the project that owns the resource. * </pre> * * <code>string project_id = 9;</code> - * * @return The projectId. */ @java.lang.Override @@ -207,29 +178,29 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** - * - * * <pre> * The ID of the project that owns the resource. * </pre> * * <code>string project_id = 9;</code> - * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString getProjectIdBytes() { + public com.google.protobuf.ByteString + getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -238,19 +209,15 @@ public com.google.protobuf.ByteString getProjectIdBytes() { } public static final int CLOUD_PRODUCT_FIELD_NUMBER = 8; - @SuppressWarnings("serial") private volatile java.lang.Object cloudProduct_ = ""; /** - * - * * <pre> * The Cloud product that owns the resource. * Example: `compute` * </pre> * * <code>string cloud_product = 8;</code> - * * @return The cloudProduct. */ @java.lang.Override @@ -259,30 +226,30 @@ public java.lang.String getCloudProduct() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cloudProduct_ = s; return s; } } /** - * - * * <pre> * The Cloud product that owns the resource. * Example: `compute` * </pre> * * <code>string cloud_product = 8;</code> - * * @return The bytes for cloudProduct. */ @java.lang.Override - public com.google.protobuf.ByteString getCloudProductBytes() { + public com.google.protobuf.ByteString + getCloudProductBytes() { java.lang.Object ref = cloudProduct_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); cloudProduct_ = b; return b; } else { @@ -291,18 +258,14 @@ public com.google.protobuf.ByteString getCloudProductBytes() { } public static final int RESOURCE_TYPE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object resourceType_ = ""; /** - * - * * <pre> * Example: `compute.googleapis.com/Disk` * </pre> * * <code>string resource_type = 3;</code> - * * @return The resourceType. */ @java.lang.Override @@ -311,29 +274,29 @@ public java.lang.String getResourceType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceType_ = s; return s; } } /** - * - * * <pre> * Example: `compute.googleapis.com/Disk` * </pre> * * <code>string resource_type = 3;</code> - * * @return The bytes for resourceType. */ @java.lang.Override - public com.google.protobuf.ByteString getResourceTypeBytes() { + public com.google.protobuf.ByteString + getResourceTypeBytes() { java.lang.Object ref = resourceType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceType_ = b; return b; } else { @@ -342,19 +305,15 @@ public com.google.protobuf.ByteString getResourceTypeBytes() { } public static final int LOCATION_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object location_ = ""; /** - * - * * <pre> * Location can be `global`, regional like `us-east1`, or zonal like * `us-west1-b`. * </pre> * * <code>string location = 4;</code> - * * @return The location. */ @java.lang.Override @@ -363,30 +322,30 @@ public java.lang.String getLocation() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); location_ = s; return s; } } /** - * - * * <pre> * Location can be `global`, regional like `us-east1`, or zonal like * `us-west1-b`. * </pre> * * <code>string location = 4;</code> - * * @return The bytes for location. */ @java.lang.Override - public com.google.protobuf.ByteString getLocationBytes() { + public com.google.protobuf.ByteString + getLocationBytes() { java.lang.Object ref = location_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); location_ = b; return b; } else { @@ -395,34 +354,32 @@ public com.google.protobuf.ByteString getLocationBytes() { } public static final int LABELS_FIELD_NUMBER = 5; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry<java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry.<java.lang.String, java.lang.String>newDefaultInstance( - com.google.cloud.kms.inventory.v1.KeyTrackingServiceProto - .internal_static_google_cloud_kms_inventory_v1_ProtectedResource_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 + .<java.lang.String, java.lang.String>newDefaultInstance( + com.google.cloud.kms.inventory.v1.KeyTrackingServiceProto.internal_static_google_cloud_kms_inventory_v1_ProtectedResource_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - private com.google.protobuf.MapField<java.lang.String, java.lang.String> labels_; - - private com.google.protobuf.MapField<java.lang.String, java.lang.String> internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField<java.lang.String, java.lang.String> + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * * <pre> * A key-value pair of the resource's labels (v1) to their values. * </pre> @@ -430,21 +387,20 @@ public int getLabelsCount() { * <code>map<string, string> labels = 5;</code> */ @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<java.lang.String, java.lang.String> getLabels() { return getLabelsMap(); } /** - * - * * <pre> * A key-value pair of the resource's labels (v1) to their values. * </pre> @@ -456,8 +412,6 @@ public java.util.Map<java.lang.String, java.lang.String> getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * * <pre> * A key-value pair of the resource's labels (v1) to their values. * </pre> @@ -465,19 +419,17 @@ public java.util.Map<java.lang.String, java.lang.String> getLabelsMap() { * <code>map<string, string> labels = 5;</code> */ @java.lang.Override - public /* nullable */ java.lang.String getLabelsOrDefault( + public /* nullable */ +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map<java.lang.String, java.lang.String> map = internalGetLabels().getMap(); +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map<java.lang.String, java.lang.String> map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * * <pre> * A key-value pair of the resource's labels (v1) to their values. * </pre> @@ -485,11 +437,11 @@ public java.util.Map<java.lang.String, java.lang.String> getLabelsMap() { * <code>map<string, string> labels = 5;</code> */ @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map<java.lang.String, java.lang.String> map = internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map<java.lang.String, java.lang.String> map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -497,12 +449,9 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public static final int CRYPTO_KEY_VERSION_FIELD_NUMBER = 6; - @SuppressWarnings("serial") private volatile java.lang.Object cryptoKeyVersion_ = ""; /** - * - * * <pre> * The name of the Cloud KMS * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions?hl=en) @@ -514,7 +463,6 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { * </pre> * * <code>string crypto_key_version = 6 [(.google.api.resource_reference) = { ... }</code> - * * @return The cryptoKeyVersion. */ @java.lang.Override @@ -523,15 +471,14 @@ public java.lang.String getCryptoKeyVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cryptoKeyVersion_ = s; return s; } } /** - * - * * <pre> * The name of the Cloud KMS * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions?hl=en) @@ -543,15 +490,16 @@ public java.lang.String getCryptoKeyVersion() { * </pre> * * <code>string crypto_key_version = 6 [(.google.api.resource_reference) = { ... }</code> - * * @return The bytes for cryptoKeyVersion. */ @java.lang.Override - public com.google.protobuf.ByteString getCryptoKeyVersionBytes() { + public com.google.protobuf.ByteString + getCryptoKeyVersionBytes() { java.lang.Object ref = cryptoKeyVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); cryptoKeyVersion_ = b; return b; } else { @@ -560,13 +508,10 @@ public com.google.protobuf.ByteString getCryptoKeyVersionBytes() { } public static final int CRYPTO_KEY_VERSIONS_FIELD_NUMBER = 10; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList cryptoKeyVersions_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * * <pre> * The names of the Cloud KMS * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions?hl=en) @@ -576,17 +521,14 @@ public com.google.protobuf.ByteString getCryptoKeyVersionBytes() { * crypto_key_version. * </pre> * - * <code>repeated string crypto_key_versions = 10 [(.google.api.resource_reference) = { ... } - * </code> - * + * <code>repeated string crypto_key_versions = 10 [(.google.api.resource_reference) = { ... }</code> * @return A list containing the cryptoKeyVersions. */ - public com.google.protobuf.ProtocolStringList getCryptoKeyVersionsList() { + public com.google.protobuf.ProtocolStringList + getCryptoKeyVersionsList() { return cryptoKeyVersions_; } /** - * - * * <pre> * The names of the Cloud KMS * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions?hl=en) @@ -596,17 +538,13 @@ public com.google.protobuf.ProtocolStringList getCryptoKeyVersionsList() { * crypto_key_version. * </pre> * - * <code>repeated string crypto_key_versions = 10 [(.google.api.resource_reference) = { ... } - * </code> - * + * <code>repeated string crypto_key_versions = 10 [(.google.api.resource_reference) = { ... }</code> * @return The count of cryptoKeyVersions. */ public int getCryptoKeyVersionsCount() { return cryptoKeyVersions_.size(); } /** - * - * * <pre> * The names of the Cloud KMS * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions?hl=en) @@ -616,9 +554,7 @@ public int getCryptoKeyVersionsCount() { * crypto_key_version. * </pre> * - * <code>repeated string crypto_key_versions = 10 [(.google.api.resource_reference) = { ... } - * </code> - * + * <code>repeated string crypto_key_versions = 10 [(.google.api.resource_reference) = { ... }</code> * @param index The index of the element to return. * @return The cryptoKeyVersions at the given index. */ @@ -626,8 +562,6 @@ public java.lang.String getCryptoKeyVersions(int index) { return cryptoKeyVersions_.get(index); } /** - * - * * <pre> * The names of the Cloud KMS * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions?hl=en) @@ -637,29 +571,24 @@ public java.lang.String getCryptoKeyVersions(int index) { * crypto_key_version. * </pre> * - * <code>repeated string crypto_key_versions = 10 [(.google.api.resource_reference) = { ... } - * </code> - * + * <code>repeated string crypto_key_versions = 10 [(.google.api.resource_reference) = { ... }</code> * @param index The index of the value to return. * @return The bytes of the cryptoKeyVersions at the given index. */ - public com.google.protobuf.ByteString getCryptoKeyVersionsBytes(int index) { + public com.google.protobuf.ByteString + getCryptoKeyVersionsBytes(int index) { return cryptoKeyVersions_.getByteString(index); } public static final int CREATE_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp createTime_; /** - * - * * <pre> * Output only. The time at which this resource was created. The granularity * is in seconds. Timestamp.nanos will always be 0. * </pre> * - * <code>.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return Whether the createTime field is set. */ @java.lang.Override @@ -667,16 +596,12 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * * <pre> * Output only. The time at which this resource was created. The granularity * is in seconds. Timestamp.nanos will always be 0. * </pre> * - * <code>.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return The createTime. */ @java.lang.Override @@ -684,15 +609,12 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * * <pre> * Output only. The time at which this resource was created. The granularity * is in seconds. Timestamp.nanos will always be 0. * </pre> * - * <code>.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -700,7 +622,6 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -712,7 +633,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_); } @@ -725,8 +647,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, location_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 5); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 5); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cryptoKeyVersion_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, cryptoKeyVersion_); } @@ -763,21 +689,22 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, location_); } - for (java.util.Map.Entry<java.lang.String, java.lang.String> entry : - internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry<java.lang.String, java.lang.String> labels__ = - LabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, labels__); + for (java.util.Map.Entry<java.lang.String, java.lang.String> entry + : internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry<java.lang.String, java.lang.String> + labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, labels__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cryptoKeyVersion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, cryptoKeyVersion_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getCreateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cloudProduct_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, cloudProduct_); @@ -801,26 +728,35 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.kms.inventory.v1.ProtectedResource)) { return super.equals(obj); } - com.google.cloud.kms.inventory.v1.ProtectedResource other = - (com.google.cloud.kms.inventory.v1.ProtectedResource) obj; - - if (!getName().equals(other.getName())) return false; - if (!getProject().equals(other.getProject())) return false; - if (!getProjectId().equals(other.getProjectId())) return false; - if (!getCloudProduct().equals(other.getCloudProduct())) return false; - if (!getResourceType().equals(other.getResourceType())) return false; - if (!getLocation().equals(other.getLocation())) return false; - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (!getCryptoKeyVersion().equals(other.getCryptoKeyVersion())) return false; - if (!getCryptoKeyVersionsList().equals(other.getCryptoKeyVersionsList())) return false; + com.google.cloud.kms.inventory.v1.ProtectedResource other = (com.google.cloud.kms.inventory.v1.ProtectedResource) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getProject() + .equals(other.getProject())) return false; + if (!getProjectId() + .equals(other.getProjectId())) return false; + if (!getCloudProduct() + .equals(other.getCloudProduct())) return false; + if (!getResourceType() + .equals(other.getResourceType())) return false; + if (!getLocation() + .equals(other.getLocation())) return false; + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; + if (!getCryptoKeyVersion() + .equals(other.getCryptoKeyVersion())) return false; + if (!getCryptoKeyVersionsList() + .equals(other.getCryptoKeyVersionsList())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -865,155 +801,153 @@ public int hashCode() { } public static com.google.cloud.kms.inventory.v1.ProtectedResource 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.kms.inventory.v1.ProtectedResource 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.kms.inventory.v1.ProtectedResource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.inventory.v1.ProtectedResource 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.kms.inventory.v1.ProtectedResource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.inventory.v1.ProtectedResource 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.kms.inventory.v1.ProtectedResource parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.kms.inventory.v1.ProtectedResource parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.kms.inventory.v1.ProtectedResource 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.kms.inventory.v1.ProtectedResource parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.kms.inventory.v1.ProtectedResource parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.kms.inventory.v1.ProtectedResource 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.kms.inventory.v1.ProtectedResource 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.kms.inventory.v1.ProtectedResource 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.kms.inventory.v1.ProtectedResource 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; } /** - * - * * <pre> * Metadata about a resource protected by a Cloud KMS key. * </pre> * * Protobuf type {@code google.cloud.kms.inventory.v1.ProtectedResource} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.cloud.kms.inventory.v1.ProtectedResource) com.google.cloud.kms.inventory.v1.ProtectedResourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.kms.inventory.v1.KeyTrackingServiceProto - .internal_static_google_cloud_kms_inventory_v1_ProtectedResource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.kms.inventory.v1.KeyTrackingServiceProto.internal_static_google_cloud_kms_inventory_v1_ProtectedResource_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 5: 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 5: 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.kms.inventory.v1.KeyTrackingServiceProto - .internal_static_google_cloud_kms_inventory_v1_ProtectedResource_fieldAccessorTable + return com.google.cloud.kms.inventory.v1.KeyTrackingServiceProto.internal_static_google_cloud_kms_inventory_v1_ProtectedResource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.kms.inventory.v1.ProtectedResource.class, - com.google.cloud.kms.inventory.v1.ProtectedResource.Builder.class); + com.google.cloud.kms.inventory.v1.ProtectedResource.class, com.google.cloud.kms.inventory.v1.ProtectedResource.Builder.class); } // Construct using com.google.cloud.kms.inventory.v1.ProtectedResource.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1026,7 +960,8 @@ public Builder clear() { location_ = ""; internalGetMutableLabels().clear(); cryptoKeyVersion_ = ""; - cryptoKeyVersions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + cryptoKeyVersions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); createTime_ = null; if (createTimeBuilder_ != null) { createTimeBuilder_.dispose(); @@ -1036,9 +971,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.kms.inventory.v1.KeyTrackingServiceProto - .internal_static_google_cloud_kms_inventory_v1_ProtectedResource_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.kms.inventory.v1.KeyTrackingServiceProto.internal_static_google_cloud_kms_inventory_v1_ProtectedResource_descriptor; } @java.lang.Override @@ -1057,11 +992,8 @@ public com.google.cloud.kms.inventory.v1.ProtectedResource build() { @java.lang.Override public com.google.cloud.kms.inventory.v1.ProtectedResource buildPartial() { - com.google.cloud.kms.inventory.v1.ProtectedResource result = - new com.google.cloud.kms.inventory.v1.ProtectedResource(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.kms.inventory.v1.ProtectedResource result = new com.google.cloud.kms.inventory.v1.ProtectedResource(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -1098,7 +1030,9 @@ private void buildPartial0(com.google.cloud.kms.inventory.v1.ProtectedResource r result.cryptoKeyVersions_ = cryptoKeyVersions_; } if (((from_bitField0_ & 0x00000200) != 0)) { - result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null + ? createTime_ + : createTimeBuilder_.build(); } } @@ -1106,39 +1040,38 @@ private void buildPartial0(com.google.cloud.kms.inventory.v1.ProtectedResource r public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.kms.inventory.v1.ProtectedResource) { - return mergeFrom((com.google.cloud.kms.inventory.v1.ProtectedResource) other); + return mergeFrom((com.google.cloud.kms.inventory.v1.ProtectedResource)other); } else { super.mergeFrom(other); return this; @@ -1146,8 +1079,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.kms.inventory.v1.ProtectedResource other) { - if (other == com.google.cloud.kms.inventory.v1.ProtectedResource.getDefaultInstance()) - return this; + if (other == com.google.cloud.kms.inventory.v1.ProtectedResource.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -1178,7 +1110,8 @@ public Builder mergeFrom(com.google.cloud.kms.inventory.v1.ProtectedResource oth bitField0_ |= 0x00000020; onChanged(); } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); bitField0_ |= 0x00000040; if (!other.getCryptoKeyVersion().isEmpty()) { cryptoKeyVersion_ = other.cryptoKeyVersion_; @@ -1224,80 +1157,69 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - project_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - resourceType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 26 - case 34: - { - location_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 34 - case 42: - { - com.google.protobuf.MapEntry<java.lang.String, java.lang.String> labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableLabels() - .getMutableMap() - .put(labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00000040; - break; - } // case 42 - case 50: - { - cryptoKeyVersion_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000080; - break; - } // case 50 - case 58: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000200; - break; - } // case 58 - case 66: - { - cloudProduct_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 66 - case 74: - { - projectId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 74 - case 82: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureCryptoKeyVersionsIsMutable(); - cryptoKeyVersions_.add(s); - break; - } // case 82 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + project_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + resourceType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 26 + case 34: { + location_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 34 + case 42: { + com.google.protobuf.MapEntry<java.lang.String, java.lang.String> + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableLabels().getMutableMap().put( + labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000040; + break; + } // case 42 + case 50: { + cryptoKeyVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 50 + case 58: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 58 + case 66: { + cloudProduct_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 66 + case 74: { + projectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 74 + case 82: { + java.lang.String s = input.readStringRequireUtf8(); + ensureCryptoKeyVersionsIsMutable(); + cryptoKeyVersions_.add(s); + break; + } // case 82 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1307,13 +1229,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * * <pre> * The full resource name of the resource. * Example: @@ -1321,13 +1240,13 @@ public Builder mergeFrom( * </pre> * * <code>string name = 1;</code> - * * @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; @@ -1336,8 +1255,6 @@ public java.lang.String getName() { } } /** - * - * * <pre> * The full resource name of the resource. * Example: @@ -1345,14 +1262,15 @@ public java.lang.String getName() { * </pre> * * <code>string name = 1;</code> - * * @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 { @@ -1360,8 +1278,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * * <pre> * The full resource name of the resource. * Example: @@ -1369,22 +1285,18 @@ public com.google.protobuf.ByteString getNameBytes() { * </pre> * * <code>string name = 1;</code> - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * * <pre> * The full resource name of the resource. * Example: @@ -1392,7 +1304,6 @@ public Builder setName(java.lang.String value) { * </pre> * * <code>string name = 1;</code> - * * @return This builder for chaining. */ public Builder clearName() { @@ -1402,8 +1313,6 @@ public Builder clearName() { return this; } /** - * - * * <pre> * The full resource name of the resource. * Example: @@ -1411,14 +1320,12 @@ public Builder clearName() { * </pre> * * <code>string name = 1;</code> - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1428,20 +1335,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object project_ = ""; /** - * - * * <pre> * Format: `projects/{PROJECT_NUMBER}`. * </pre> * * <code>string project = 2;</code> - * * @return The project. */ public java.lang.String getProject() { java.lang.Object ref = project_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); project_ = s; return s; @@ -1450,21 +1355,20 @@ public java.lang.String getProject() { } } /** - * - * * <pre> * Format: `projects/{PROJECT_NUMBER}`. * </pre> * * <code>string project = 2;</code> - * * @return The bytes for project. */ - public com.google.protobuf.ByteString getProjectBytes() { + public com.google.protobuf.ByteString + getProjectBytes() { java.lang.Object ref = project_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); project_ = b; return b; } else { @@ -1472,35 +1376,28 @@ public com.google.protobuf.ByteString getProjectBytes() { } } /** - * - * * <pre> * Format: `projects/{PROJECT_NUMBER}`. * </pre> * * <code>string project = 2;</code> - * * @param value The project to set. * @return This builder for chaining. */ - public Builder setProject(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setProject( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } project_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * * <pre> * Format: `projects/{PROJECT_NUMBER}`. * </pre> * * <code>string project = 2;</code> - * * @return This builder for chaining. */ public Builder clearProject() { @@ -1510,21 +1407,17 @@ public Builder clearProject() { return this; } /** - * - * * <pre> * Format: `projects/{PROJECT_NUMBER}`. * </pre> * * <code>string project = 2;</code> - * * @param value The bytes for project to set. * @return This builder for chaining. */ - public Builder setProjectBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setProjectBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); project_ = value; bitField0_ |= 0x00000002; @@ -1534,20 +1427,18 @@ public Builder setProjectBytes(com.google.protobuf.ByteString value) { private java.lang.Object projectId_ = ""; /** - * - * * <pre> * The ID of the project that owns the resource. * </pre> * * <code>string project_id = 9;</code> - * * @return The projectId. */ public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -1556,21 +1447,20 @@ public java.lang.String getProjectId() { } } /** - * - * * <pre> * The ID of the project that owns the resource. * </pre> * * <code>string project_id = 9;</code> - * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString getProjectIdBytes() { + public com.google.protobuf.ByteString + getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -1578,35 +1468,28 @@ public com.google.protobuf.ByteString getProjectIdBytes() { } } /** - * - * * <pre> * The ID of the project that owns the resource. * </pre> * * <code>string project_id = 9;</code> - * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setProjectId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } projectId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * * <pre> * The ID of the project that owns the resource. * </pre> * * <code>string project_id = 9;</code> - * * @return This builder for chaining. */ public Builder clearProjectId() { @@ -1616,21 +1499,17 @@ public Builder clearProjectId() { return this; } /** - * - * * <pre> * The ID of the project that owns the resource. * </pre> * * <code>string project_id = 9;</code> - * * @param value The bytes for projectId to set. * @return This builder for chaining. */ - public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); projectId_ = value; bitField0_ |= 0x00000004; @@ -1640,21 +1519,19 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object cloudProduct_ = ""; /** - * - * * <pre> * The Cloud product that owns the resource. * Example: `compute` * </pre> * * <code>string cloud_product = 8;</code> - * * @return The cloudProduct. */ public java.lang.String getCloudProduct() { java.lang.Object ref = cloudProduct_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cloudProduct_ = s; return s; @@ -1663,22 +1540,21 @@ public java.lang.String getCloudProduct() { } } /** - * - * * <pre> * The Cloud product that owns the resource. * Example: `compute` * </pre> * * <code>string cloud_product = 8;</code> - * * @return The bytes for cloudProduct. */ - public com.google.protobuf.ByteString getCloudProductBytes() { + public com.google.protobuf.ByteString + getCloudProductBytes() { java.lang.Object ref = cloudProduct_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); cloudProduct_ = b; return b; } else { @@ -1686,37 +1562,30 @@ public com.google.protobuf.ByteString getCloudProductBytes() { } } /** - * - * * <pre> * The Cloud product that owns the resource. * Example: `compute` * </pre> * * <code>string cloud_product = 8;</code> - * * @param value The cloudProduct to set. * @return This builder for chaining. */ - public Builder setCloudProduct(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCloudProduct( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } cloudProduct_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * * <pre> * The Cloud product that owns the resource. * Example: `compute` * </pre> * * <code>string cloud_product = 8;</code> - * * @return This builder for chaining. */ public Builder clearCloudProduct() { @@ -1726,22 +1595,18 @@ public Builder clearCloudProduct() { return this; } /** - * - * * <pre> * The Cloud product that owns the resource. * Example: `compute` * </pre> * * <code>string cloud_product = 8;</code> - * * @param value The bytes for cloudProduct to set. * @return This builder for chaining. */ - public Builder setCloudProductBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCloudProductBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); cloudProduct_ = value; bitField0_ |= 0x00000008; @@ -1751,20 +1616,18 @@ public Builder setCloudProductBytes(com.google.protobuf.ByteString value) { private java.lang.Object resourceType_ = ""; /** - * - * * <pre> * Example: `compute.googleapis.com/Disk` * </pre> * * <code>string resource_type = 3;</code> - * * @return The resourceType. */ public java.lang.String getResourceType() { java.lang.Object ref = resourceType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceType_ = s; return s; @@ -1773,21 +1636,20 @@ public java.lang.String getResourceType() { } } /** - * - * * <pre> * Example: `compute.googleapis.com/Disk` * </pre> * * <code>string resource_type = 3;</code> - * * @return The bytes for resourceType. */ - public com.google.protobuf.ByteString getResourceTypeBytes() { + public com.google.protobuf.ByteString + getResourceTypeBytes() { java.lang.Object ref = resourceType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceType_ = b; return b; } else { @@ -1795,35 +1657,28 @@ public com.google.protobuf.ByteString getResourceTypeBytes() { } } /** - * - * * <pre> * Example: `compute.googleapis.com/Disk` * </pre> * * <code>string resource_type = 3;</code> - * * @param value The resourceType to set. * @return This builder for chaining. */ - public Builder setResourceType(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setResourceType( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } resourceType_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * * <pre> * Example: `compute.googleapis.com/Disk` * </pre> * * <code>string resource_type = 3;</code> - * * @return This builder for chaining. */ public Builder clearResourceType() { @@ -1833,21 +1688,17 @@ public Builder clearResourceType() { return this; } /** - * - * * <pre> * Example: `compute.googleapis.com/Disk` * </pre> * * <code>string resource_type = 3;</code> - * * @param value The bytes for resourceType to set. * @return This builder for chaining. */ - public Builder setResourceTypeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setResourceTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); resourceType_ = value; bitField0_ |= 0x00000010; @@ -1857,21 +1708,19 @@ public Builder setResourceTypeBytes(com.google.protobuf.ByteString value) { private java.lang.Object location_ = ""; /** - * - * * <pre> * Location can be `global`, regional like `us-east1`, or zonal like * `us-west1-b`. * </pre> * * <code>string location = 4;</code> - * * @return The location. */ public java.lang.String getLocation() { java.lang.Object ref = location_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); location_ = s; return s; @@ -1880,22 +1729,21 @@ public java.lang.String getLocation() { } } /** - * - * * <pre> * Location can be `global`, regional like `us-east1`, or zonal like * `us-west1-b`. * </pre> * * <code>string location = 4;</code> - * * @return The bytes for location. */ - public com.google.protobuf.ByteString getLocationBytes() { + public com.google.protobuf.ByteString + getLocationBytes() { java.lang.Object ref = location_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); location_ = b; return b; } else { @@ -1903,37 +1751,30 @@ public com.google.protobuf.ByteString getLocationBytes() { } } /** - * - * * <pre> * Location can be `global`, regional like `us-east1`, or zonal like * `us-west1-b`. * </pre> * * <code>string location = 4;</code> - * * @param value The location to set. * @return This builder for chaining. */ - public Builder setLocation(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLocation( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } location_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * * <pre> * Location can be `global`, regional like `us-east1`, or zonal like * `us-west1-b`. * </pre> * * <code>string location = 4;</code> - * * @return This builder for chaining. */ public Builder clearLocation() { @@ -1943,22 +1784,18 @@ public Builder clearLocation() { return this; } /** - * - * * <pre> * Location can be `global`, regional like `us-east1`, or zonal like * `us-west1-b`. * </pre> * * <code>string location = 4;</code> - * * @param value The bytes for location to set. * @return This builder for chaining. */ - public Builder setLocationBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLocationBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); location_ = value; bitField0_ |= 0x00000020; @@ -1966,19 +1803,21 @@ public Builder setLocationBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.protobuf.MapField<java.lang.String, java.lang.String> labels_; - - private com.google.protobuf.MapField<java.lang.String, java.lang.String> internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField<java.lang.String, java.lang.String> + 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<java.lang.String, java.lang.String> internalGetMutableLabels() { 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(); @@ -1987,13 +1826,10 @@ private com.google.protobuf.MapField<java.lang.String, java.lang.String> interna onChanged(); return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * * <pre> * A key-value pair of the resource's labels (v1) to their values. * </pre> @@ -2001,21 +1837,20 @@ public int getLabelsCount() { * <code>map<string, string> labels = 5;</code> */ @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<java.lang.String, java.lang.String> getLabels() { return getLabelsMap(); } /** - * - * * <pre> * A key-value pair of the resource's labels (v1) to their values. * </pre> @@ -2027,8 +1862,6 @@ public java.util.Map<java.lang.String, java.lang.String> getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * * <pre> * A key-value pair of the resource's labels (v1) to their values. * </pre> @@ -2036,19 +1869,17 @@ public java.util.Map<java.lang.String, java.lang.String> getLabelsMap() { * <code>map<string, string> labels = 5;</code> */ @java.lang.Override - public /* nullable */ java.lang.String getLabelsOrDefault( + public /* nullable */ +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map<java.lang.String, java.lang.String> map = internalGetLabels().getMap(); +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map<java.lang.String, java.lang.String> map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * * <pre> * A key-value pair of the resource's labels (v1) to their values. * </pre> @@ -2056,83 +1887,79 @@ public java.util.Map<java.lang.String, java.lang.String> getLabelsMap() { * <code>map<string, string> labels = 5;</code> */ @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map<java.lang.String, java.lang.String> map = internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map<java.lang.String, java.lang.String> map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } - public Builder clearLabels() { bitField0_ = (bitField0_ & ~0x00000040); - internalGetMutableLabels().getMutableMap().clear(); + internalGetMutableLabels().getMutableMap() + .clear(); return this; } /** - * - * * <pre> * A key-value pair of the resource's labels (v1) to their values. * </pre> * * <code>map<string, string> labels = 5;</code> */ - 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<java.lang.String, java.lang.String> getMutableLabels() { + public java.util.Map<java.lang.String, java.lang.String> + getMutableLabels() { bitField0_ |= 0x00000040; return internalGetMutableLabels().getMutableMap(); } /** - * - * * <pre> * A key-value pair of the resource's labels (v1) to their values. * </pre> * * <code>map<string, string> labels = 5;</code> */ - 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"); - } - internalGetMutableLabels().getMutableMap().put(key, value); + 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"); } + internalGetMutableLabels().getMutableMap() + .put(key, value); bitField0_ |= 0x00000040; return this; } /** - * - * * <pre> * A key-value pair of the resource's labels (v1) to their values. * </pre> * * <code>map<string, string> labels = 5;</code> */ - public Builder putAllLabels(java.util.Map<java.lang.String, java.lang.String> values) { - internalGetMutableLabels().getMutableMap().putAll(values); + public Builder putAllLabels( + java.util.Map<java.lang.String, java.lang.String> values) { + internalGetMutableLabels().getMutableMap() + .putAll(values); bitField0_ |= 0x00000040; return this; } private java.lang.Object cryptoKeyVersion_ = ""; /** - * - * * <pre> * The name of the Cloud KMS * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions?hl=en) @@ -2144,13 +1971,13 @@ public Builder putAllLabels(java.util.Map<java.lang.String, java.lang.String> va * </pre> * * <code>string crypto_key_version = 6 [(.google.api.resource_reference) = { ... }</code> - * * @return The cryptoKeyVersion. */ public java.lang.String getCryptoKeyVersion() { java.lang.Object ref = cryptoKeyVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cryptoKeyVersion_ = s; return s; @@ -2159,8 +1986,6 @@ public java.lang.String getCryptoKeyVersion() { } } /** - * - * * <pre> * The name of the Cloud KMS * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions?hl=en) @@ -2172,14 +1997,15 @@ public java.lang.String getCryptoKeyVersion() { * </pre> * * <code>string crypto_key_version = 6 [(.google.api.resource_reference) = { ... }</code> - * * @return The bytes for cryptoKeyVersion. */ - public com.google.protobuf.ByteString getCryptoKeyVersionBytes() { + public com.google.protobuf.ByteString + getCryptoKeyVersionBytes() { java.lang.Object ref = cryptoKeyVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); cryptoKeyVersion_ = b; return b; } else { @@ -2187,8 +2013,6 @@ public com.google.protobuf.ByteString getCryptoKeyVersionBytes() { } } /** - * - * * <pre> * The name of the Cloud KMS * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions?hl=en) @@ -2200,22 +2024,18 @@ public com.google.protobuf.ByteString getCryptoKeyVersionBytes() { * </pre> * * <code>string crypto_key_version = 6 [(.google.api.resource_reference) = { ... }</code> - * * @param value The cryptoKeyVersion to set. * @return This builder for chaining. */ - public Builder setCryptoKeyVersion(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCryptoKeyVersion( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } cryptoKeyVersion_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** - * - * * <pre> * The name of the Cloud KMS * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions?hl=en) @@ -2227,7 +2047,6 @@ public Builder setCryptoKeyVersion(java.lang.String value) { * </pre> * * <code>string crypto_key_version = 6 [(.google.api.resource_reference) = { ... }</code> - * * @return This builder for chaining. */ public Builder clearCryptoKeyVersion() { @@ -2237,8 +2056,6 @@ public Builder clearCryptoKeyVersion() { return this; } /** - * - * * <pre> * The name of the Cloud KMS * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions?hl=en) @@ -2250,14 +2067,12 @@ public Builder clearCryptoKeyVersion() { * </pre> * * <code>string crypto_key_version = 6 [(.google.api.resource_reference) = { ... }</code> - * * @param value The bytes for cryptoKeyVersion to set. * @return This builder for chaining. */ - public Builder setCryptoKeyVersionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCryptoKeyVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); cryptoKeyVersion_ = value; bitField0_ |= 0x00000080; @@ -2267,7 +2082,6 @@ public Builder setCryptoKeyVersionBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.LazyStringArrayList cryptoKeyVersions_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureCryptoKeyVersionsIsMutable() { if (!cryptoKeyVersions_.isModifiable()) { cryptoKeyVersions_ = new com.google.protobuf.LazyStringArrayList(cryptoKeyVersions_); @@ -2275,8 +2089,6 @@ private void ensureCryptoKeyVersionsIsMutable() { bitField0_ |= 0x00000100; } /** - * - * * <pre> * The names of the Cloud KMS * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions?hl=en) @@ -2286,18 +2098,15 @@ private void ensureCryptoKeyVersionsIsMutable() { * crypto_key_version. * </pre> * - * <code>repeated string crypto_key_versions = 10 [(.google.api.resource_reference) = { ... } - * </code> - * + * <code>repeated string crypto_key_versions = 10 [(.google.api.resource_reference) = { ... }</code> * @return A list containing the cryptoKeyVersions. */ - public com.google.protobuf.ProtocolStringList getCryptoKeyVersionsList() { + public com.google.protobuf.ProtocolStringList + getCryptoKeyVersionsList() { cryptoKeyVersions_.makeImmutable(); return cryptoKeyVersions_; } /** - * - * * <pre> * The names of the Cloud KMS * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions?hl=en) @@ -2307,17 +2116,13 @@ public com.google.protobuf.ProtocolStringList getCryptoKeyVersionsList() { * crypto_key_version. * </pre> * - * <code>repeated string crypto_key_versions = 10 [(.google.api.resource_reference) = { ... } - * </code> - * + * <code>repeated string crypto_key_versions = 10 [(.google.api.resource_reference) = { ... }</code> * @return The count of cryptoKeyVersions. */ public int getCryptoKeyVersionsCount() { return cryptoKeyVersions_.size(); } /** - * - * * <pre> * The names of the Cloud KMS * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions?hl=en) @@ -2327,9 +2132,7 @@ public int getCryptoKeyVersionsCount() { * crypto_key_version. * </pre> * - * <code>repeated string crypto_key_versions = 10 [(.google.api.resource_reference) = { ... } - * </code> - * + * <code>repeated string crypto_key_versions = 10 [(.google.api.resource_reference) = { ... }</code> * @param index The index of the element to return. * @return The cryptoKeyVersions at the given index. */ @@ -2337,8 +2140,6 @@ public java.lang.String getCryptoKeyVersions(int index) { return cryptoKeyVersions_.get(index); } /** - * - * * <pre> * The names of the Cloud KMS * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions?hl=en) @@ -2348,18 +2149,15 @@ public java.lang.String getCryptoKeyVersions(int index) { * crypto_key_version. * </pre> * - * <code>repeated string crypto_key_versions = 10 [(.google.api.resource_reference) = { ... } - * </code> - * + * <code>repeated string crypto_key_versions = 10 [(.google.api.resource_reference) = { ... }</code> * @param index The index of the value to return. * @return The bytes of the cryptoKeyVersions at the given index. */ - public com.google.protobuf.ByteString getCryptoKeyVersionsBytes(int index) { + public com.google.protobuf.ByteString + getCryptoKeyVersionsBytes(int index) { return cryptoKeyVersions_.getByteString(index); } /** - * - * * <pre> * The names of the Cloud KMS * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions?hl=en) @@ -2369,17 +2167,14 @@ public com.google.protobuf.ByteString getCryptoKeyVersionsBytes(int index) { * crypto_key_version. * </pre> * - * <code>repeated string crypto_key_versions = 10 [(.google.api.resource_reference) = { ... } - * </code> - * + * <code>repeated string crypto_key_versions = 10 [(.google.api.resource_reference) = { ... }</code> * @param index The index to set the value at. * @param value The cryptoKeyVersions to set. * @return This builder for chaining. */ - public Builder setCryptoKeyVersions(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCryptoKeyVersions( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureCryptoKeyVersionsIsMutable(); cryptoKeyVersions_.set(index, value); bitField0_ |= 0x00000100; @@ -2387,8 +2182,6 @@ public Builder setCryptoKeyVersions(int index, java.lang.String value) { return this; } /** - * - * * <pre> * The names of the Cloud KMS * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions?hl=en) @@ -2398,16 +2191,13 @@ public Builder setCryptoKeyVersions(int index, java.lang.String value) { * crypto_key_version. * </pre> * - * <code>repeated string crypto_key_versions = 10 [(.google.api.resource_reference) = { ... } - * </code> - * + * <code>repeated string crypto_key_versions = 10 [(.google.api.resource_reference) = { ... }</code> * @param value The cryptoKeyVersions to add. * @return This builder for chaining. */ - public Builder addCryptoKeyVersions(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addCryptoKeyVersions( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureCryptoKeyVersionsIsMutable(); cryptoKeyVersions_.add(value); bitField0_ |= 0x00000100; @@ -2415,8 +2205,6 @@ public Builder addCryptoKeyVersions(java.lang.String value) { return this; } /** - * - * * <pre> * The names of the Cloud KMS * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions?hl=en) @@ -2426,22 +2214,20 @@ public Builder addCryptoKeyVersions(java.lang.String value) { * crypto_key_version. * </pre> * - * <code>repeated string crypto_key_versions = 10 [(.google.api.resource_reference) = { ... } - * </code> - * + * <code>repeated string crypto_key_versions = 10 [(.google.api.resource_reference) = { ... }</code> * @param values The cryptoKeyVersions to add. * @return This builder for chaining. */ - public Builder addAllCryptoKeyVersions(java.lang.Iterable<java.lang.String> values) { + public Builder addAllCryptoKeyVersions( + java.lang.Iterable<java.lang.String> values) { ensureCryptoKeyVersionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, cryptoKeyVersions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, cryptoKeyVersions_); bitField0_ |= 0x00000100; onChanged(); return this; } /** - * - * * <pre> * The names of the Cloud KMS * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions?hl=en) @@ -2451,21 +2237,17 @@ public Builder addAllCryptoKeyVersions(java.lang.Iterable<java.lang.String> valu * crypto_key_version. * </pre> * - * <code>repeated string crypto_key_versions = 10 [(.google.api.resource_reference) = { ... } - * </code> - * + * <code>repeated string crypto_key_versions = 10 [(.google.api.resource_reference) = { ... }</code> * @return This builder for chaining. */ public Builder clearCryptoKeyVersions() { - cryptoKeyVersions_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000100); - ; + cryptoKeyVersions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000100);; onChanged(); return this; } /** - * - * * <pre> * The names of the Cloud KMS * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions?hl=en) @@ -2475,16 +2257,13 @@ public Builder clearCryptoKeyVersions() { * crypto_key_version. * </pre> * - * <code>repeated string crypto_key_versions = 10 [(.google.api.resource_reference) = { ... } - * </code> - * + * <code>repeated string crypto_key_versions = 10 [(.google.api.resource_reference) = { ... }</code> * @param value The bytes of the cryptoKeyVersions to add. * @return This builder for chaining. */ - public Builder addCryptoKeyVersionsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addCryptoKeyVersionsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureCryptoKeyVersionsIsMutable(); cryptoKeyVersions_.add(value); @@ -2495,61 +2274,42 @@ public Builder addCryptoKeyVersionsBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * * <pre> * Output only. The time at which this resource was created. The granularity * is in seconds. Timestamp.nanos will always be 0. * </pre> * - * <code> - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000200) != 0); } /** - * - * * <pre> * Output only. The time at which this resource was created. The granularity * is in seconds. Timestamp.nanos will always be 0. * </pre> * - * <code> - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @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(); } } /** - * - * * <pre> * Output only. The time at which this resource was created. The granularity * is in seconds. Timestamp.nanos will always be 0. * </pre> * - * <code> - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -2565,18 +2325,15 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * * <pre> * Output only. The time at which this resource was created. The granularity * is in seconds. Timestamp.nanos will always be 0. * </pre> * - * <code> - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -2587,22 +2344,18 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * * <pre> * Output only. The time at which this resource was created. The granularity * is in seconds. Timestamp.nanos will always be 0. * </pre> * - * <code> - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000200) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -2615,16 +2368,12 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * * <pre> * Output only. The time at which this resource was created. The granularity * is in seconds. Timestamp.nanos will always be 0. * </pre> * - * <code> - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000200); @@ -2637,16 +2386,12 @@ public Builder clearCreateTime() { return this; } /** - * - * * <pre> * Output only. The time at which this resource was created. The granularity * is in seconds. Timestamp.nanos will always be 0. * </pre> * - * <code> - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000200; @@ -2654,57 +2399,45 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * * <pre> * Output only. The time at which this resource was created. The granularity * is in seconds. Timestamp.nanos will always be 0. * </pre> * - * <code> - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ 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_; } } /** - * - * * <pre> * Output only. The time at which this resource was created. The granularity * is in seconds. Timestamp.nanos will always be 0. * </pre> * - * <code> - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ 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_; } - @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); } @@ -2714,12 +2447,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.kms.inventory.v1.ProtectedResource) } // @@protoc_insertion_point(class_scope:google.cloud.kms.inventory.v1.ProtectedResource) private static final com.google.cloud.kms.inventory.v1.ProtectedResource DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.kms.inventory.v1.ProtectedResource(); } @@ -2728,27 +2461,27 @@ public static com.google.cloud.kms.inventory.v1.ProtectedResource getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<ProtectedResource> PARSER = - new com.google.protobuf.AbstractParser<ProtectedResource>() { - @java.lang.Override - public ProtectedResource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<ProtectedResource> + PARSER = new com.google.protobuf.AbstractParser<ProtectedResource>() { + @java.lang.Override + public ProtectedResource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<ProtectedResource> parser() { return PARSER; @@ -2763,4 +2496,6 @@ public com.google.protobuf.Parser<ProtectedResource> getParserForType() { public com.google.cloud.kms.inventory.v1.ProtectedResource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ProtectedResourceOrBuilder.java b/owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ProtectedResourceOrBuilder.java similarity index 79% rename from java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ProtectedResourceOrBuilder.java rename to owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ProtectedResourceOrBuilder.java index 5a949a4738fc..49247ebc88f9 100644 --- a/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ProtectedResourceOrBuilder.java +++ b/owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ProtectedResourceOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/kms/inventory/v1/key_tracking_service.proto package com.google.cloud.kms.inventory.v1; -public interface ProtectedResourceOrBuilder - extends +public interface ProtectedResourceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.kms.inventory.v1.ProtectedResource) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * The full resource name of the resource. * Example: @@ -33,13 +15,10 @@ public interface ProtectedResourceOrBuilder * </pre> * * <code>string name = 1;</code> - * * @return The name. */ java.lang.String getName(); /** - * - * * <pre> * The full resource name of the resource. * Example: @@ -47,143 +26,116 @@ public interface ProtectedResourceOrBuilder * </pre> * * <code>string name = 1;</code> - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * * <pre> * Format: `projects/{PROJECT_NUMBER}`. * </pre> * * <code>string project = 2;</code> - * * @return The project. */ java.lang.String getProject(); /** - * - * * <pre> * Format: `projects/{PROJECT_NUMBER}`. * </pre> * * <code>string project = 2;</code> - * * @return The bytes for project. */ - com.google.protobuf.ByteString getProjectBytes(); + com.google.protobuf.ByteString + getProjectBytes(); /** - * - * * <pre> * The ID of the project that owns the resource. * </pre> * * <code>string project_id = 9;</code> - * * @return The projectId. */ java.lang.String getProjectId(); /** - * - * * <pre> * The ID of the project that owns the resource. * </pre> * * <code>string project_id = 9;</code> - * * @return The bytes for projectId. */ - com.google.protobuf.ByteString getProjectIdBytes(); + com.google.protobuf.ByteString + getProjectIdBytes(); /** - * - * * <pre> * The Cloud product that owns the resource. * Example: `compute` * </pre> * * <code>string cloud_product = 8;</code> - * * @return The cloudProduct. */ java.lang.String getCloudProduct(); /** - * - * * <pre> * The Cloud product that owns the resource. * Example: `compute` * </pre> * * <code>string cloud_product = 8;</code> - * * @return The bytes for cloudProduct. */ - com.google.protobuf.ByteString getCloudProductBytes(); + com.google.protobuf.ByteString + getCloudProductBytes(); /** - * - * * <pre> * Example: `compute.googleapis.com/Disk` * </pre> * * <code>string resource_type = 3;</code> - * * @return The resourceType. */ java.lang.String getResourceType(); /** - * - * * <pre> * Example: `compute.googleapis.com/Disk` * </pre> * * <code>string resource_type = 3;</code> - * * @return The bytes for resourceType. */ - com.google.protobuf.ByteString getResourceTypeBytes(); + com.google.protobuf.ByteString + getResourceTypeBytes(); /** - * - * * <pre> * Location can be `global`, regional like `us-east1`, or zonal like * `us-west1-b`. * </pre> * * <code>string location = 4;</code> - * * @return The location. */ java.lang.String getLocation(); /** - * - * * <pre> * Location can be `global`, regional like `us-east1`, or zonal like * `us-west1-b`. * </pre> * * <code>string location = 4;</code> - * * @return The bytes for location. */ - com.google.protobuf.ByteString getLocationBytes(); + com.google.protobuf.ByteString + getLocationBytes(); /** - * - * * <pre> * A key-value pair of the resource's labels (v1) to their values. * </pre> @@ -192,31 +144,30 @@ public interface ProtectedResourceOrBuilder */ int getLabelsCount(); /** - * - * * <pre> * A key-value pair of the resource's labels (v1) to their values. * </pre> * * <code>map<string, string> labels = 5;</code> */ - 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<java.lang.String, java.lang.String> getLabels(); + java.util.Map<java.lang.String, java.lang.String> + getLabels(); /** - * - * * <pre> * A key-value pair of the resource's labels (v1) to their values. * </pre> * * <code>map<string, string> labels = 5;</code> */ - java.util.Map<java.lang.String, java.lang.String> getLabelsMap(); + java.util.Map<java.lang.String, java.lang.String> + getLabelsMap(); /** - * - * * <pre> * A key-value pair of the resource's labels (v1) to their values. * </pre> @@ -224,24 +175,21 @@ public interface ProtectedResourceOrBuilder * <code>map<string, string> labels = 5;</code> */ /* nullable */ - java.lang.String getLabelsOrDefault( +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * * <pre> * A key-value pair of the resource's labels (v1) to their values. * </pre> * * <code>map<string, string> labels = 5;</code> */ - java.lang.String getLabelsOrThrow(java.lang.String key); + java.lang.String getLabelsOrThrow( + java.lang.String key); /** - * - * * <pre> * The name of the Cloud KMS * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions?hl=en) @@ -253,13 +201,10 @@ java.lang.String getLabelsOrDefault( * </pre> * * <code>string crypto_key_version = 6 [(.google.api.resource_reference) = { ... }</code> - * * @return The cryptoKeyVersion. */ java.lang.String getCryptoKeyVersion(); /** - * - * * <pre> * The name of the Cloud KMS * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions?hl=en) @@ -271,14 +216,12 @@ java.lang.String getLabelsOrDefault( * </pre> * * <code>string crypto_key_version = 6 [(.google.api.resource_reference) = { ... }</code> - * * @return The bytes for cryptoKeyVersion. */ - com.google.protobuf.ByteString getCryptoKeyVersionBytes(); + com.google.protobuf.ByteString + getCryptoKeyVersionBytes(); /** - * - * * <pre> * The names of the Cloud KMS * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions?hl=en) @@ -288,15 +231,12 @@ java.lang.String getLabelsOrDefault( * crypto_key_version. * </pre> * - * <code>repeated string crypto_key_versions = 10 [(.google.api.resource_reference) = { ... } - * </code> - * + * <code>repeated string crypto_key_versions = 10 [(.google.api.resource_reference) = { ... }</code> * @return A list containing the cryptoKeyVersions. */ - java.util.List<java.lang.String> getCryptoKeyVersionsList(); + java.util.List<java.lang.String> + getCryptoKeyVersionsList(); /** - * - * * <pre> * The names of the Cloud KMS * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions?hl=en) @@ -306,15 +246,11 @@ java.lang.String getLabelsOrDefault( * crypto_key_version. * </pre> * - * <code>repeated string crypto_key_versions = 10 [(.google.api.resource_reference) = { ... } - * </code> - * + * <code>repeated string crypto_key_versions = 10 [(.google.api.resource_reference) = { ... }</code> * @return The count of cryptoKeyVersions. */ int getCryptoKeyVersionsCount(); /** - * - * * <pre> * The names of the Cloud KMS * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions?hl=en) @@ -324,16 +260,12 @@ java.lang.String getLabelsOrDefault( * crypto_key_version. * </pre> * - * <code>repeated string crypto_key_versions = 10 [(.google.api.resource_reference) = { ... } - * </code> - * + * <code>repeated string crypto_key_versions = 10 [(.google.api.resource_reference) = { ... }</code> * @param index The index of the element to return. * @return The cryptoKeyVersions at the given index. */ java.lang.String getCryptoKeyVersions(int index); /** - * - * * <pre> * The names of the Cloud KMS * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions?hl=en) @@ -343,52 +275,40 @@ java.lang.String getLabelsOrDefault( * crypto_key_version. * </pre> * - * <code>repeated string crypto_key_versions = 10 [(.google.api.resource_reference) = { ... } - * </code> - * + * <code>repeated string crypto_key_versions = 10 [(.google.api.resource_reference) = { ... }</code> * @param index The index of the value to return. * @return The bytes of the cryptoKeyVersions at the given index. */ - com.google.protobuf.ByteString getCryptoKeyVersionsBytes(int index); + com.google.protobuf.ByteString + getCryptoKeyVersionsBytes(int index); /** - * - * * <pre> * Output only. The time at which this resource was created. The granularity * is in seconds. Timestamp.nanos will always be 0. * </pre> * - * <code>.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * * <pre> * Output only. The time at which this resource was created. The granularity * is in seconds. Timestamp.nanos will always be 0. * </pre> * - * <code>.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> - * + * <code>.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * * <pre> * Output only. The time at which this resource was created. The granularity * is in seconds. Timestamp.nanos will always be 0. * </pre> * - * <code>.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * </code> + * <code>.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); } diff --git a/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ProtectedResourcesSummary.java b/owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ProtectedResourcesSummary.java similarity index 62% rename from java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ProtectedResourcesSummary.java rename to owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ProtectedResourcesSummary.java index c5edcae7bc35..b50cbad09bbe 100644 --- a/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ProtectedResourcesSummary.java +++ b/owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ProtectedResourcesSummary.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/kms/inventory/v1/key_tracking_service.proto package com.google.cloud.kms.inventory.v1; /** - * - * * <pre> * Aggregate information about the resources protected by a Cloud KMS key in the * same Cloud organization as the key. @@ -28,34 +11,35 @@ * * Protobuf type {@code google.cloud.kms.inventory.v1.ProtectedResourcesSummary} */ -public final class ProtectedResourcesSummary extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ProtectedResourcesSummary extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.kms.inventory.v1.ProtectedResourcesSummary) ProtectedResourcesSummaryOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ProtectedResourcesSummary.newBuilder() to construct. private ProtectedResourcesSummary(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - private ProtectedResourcesSummary() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ProtectedResourcesSummary(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.kms.inventory.v1.KeyTrackingServiceProto - .internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.kms.inventory.v1.KeyTrackingServiceProto.internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 3: return internalGetResourceTypes(); @@ -64,27 +48,22 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { case 4: return internalGetLocations(); 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.kms.inventory.v1.KeyTrackingServiceProto - .internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_fieldAccessorTable + return com.google.cloud.kms.inventory.v1.KeyTrackingServiceProto.internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary.class, - com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary.Builder.class); + com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary.class, com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary.Builder.class); } public static final int NAME_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * * <pre> * The full name of the ProtectedResourcesSummary resource. * Example: @@ -92,7 +71,6 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { * </pre> * * <code>string name = 5;</code> - * * @return The name. */ @java.lang.Override @@ -101,15 +79,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; } } /** - * - * * <pre> * The full name of the ProtectedResourcesSummary resource. * Example: @@ -117,15 +94,16 @@ public java.lang.String getName() { * </pre> * * <code>string name = 5;</code> - * * @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 { @@ -136,15 +114,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int RESOURCE_COUNT_FIELD_NUMBER = 1; private long resourceCount_ = 0L; /** - * - * * <pre> * The total number of protected resources in the same Cloud organization as * the key. * </pre> * * <code>int64 resource_count = 1;</code> - * * @return The resourceCount. */ @java.lang.Override @@ -155,15 +130,12 @@ public long getResourceCount() { public static final int PROJECT_COUNT_FIELD_NUMBER = 2; private int projectCount_ = 0; /** - * - * * <pre> * The number of distinct Cloud projects in the same Cloud organization as the * key that have resources protected by the key. * </pre> * * <code>int32 project_count = 2;</code> - * * @return The projectCount. */ @java.lang.Override @@ -172,36 +144,32 @@ public int getProjectCount() { } public static final int RESOURCE_TYPES_FIELD_NUMBER = 3; - private static final class ResourceTypesDefaultEntryHolder { - static final com.google.protobuf.MapEntry<java.lang.String, java.lang.Long> defaultEntry = - com.google.protobuf.MapEntry.<java.lang.String, java.lang.Long>newDefaultInstance( - com.google.cloud.kms.inventory.v1.KeyTrackingServiceProto - .internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_ResourceTypesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.INT64, - 0L); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.Long> defaultEntry = + com.google.protobuf.MapEntry + .<java.lang.String, java.lang.Long>newDefaultInstance( + com.google.cloud.kms.inventory.v1.KeyTrackingServiceProto.internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_ResourceTypesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.INT64, + 0L); } - @SuppressWarnings("serial") - private com.google.protobuf.MapField<java.lang.String, java.lang.Long> resourceTypes_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.Long> resourceTypes_; private com.google.protobuf.MapField<java.lang.String, java.lang.Long> - internalGetResourceTypes() { + internalGetResourceTypes() { if (resourceTypes_ == null) { return com.google.protobuf.MapField.emptyMapField( ResourceTypesDefaultEntryHolder.defaultEntry); } return resourceTypes_; } - public int getResourceTypesCount() { return internalGetResourceTypes().getMap().size(); } /** - * - * * <pre> * The number of resources protected by the key grouped by resource type. * </pre> @@ -209,21 +177,20 @@ public int getResourceTypesCount() { * <code>map<string, int64> resource_types = 3;</code> */ @java.lang.Override - public boolean containsResourceTypes(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsResourceTypes( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetResourceTypes().getMap().containsKey(key); } - /** Use {@link #getResourceTypesMap()} instead. */ + /** + * Use {@link #getResourceTypesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map<java.lang.String, java.lang.Long> getResourceTypes() { return getResourceTypesMap(); } /** - * - * * <pre> * The number of resources protected by the key grouped by resource type. * </pre> @@ -235,8 +202,6 @@ public java.util.Map<java.lang.String, java.lang.Long> getResourceTypesMap() { return internalGetResourceTypes().getMap(); } /** - * - * * <pre> * The number of resources protected by the key grouped by resource type. * </pre> @@ -244,16 +209,15 @@ public java.util.Map<java.lang.String, java.lang.Long> getResourceTypesMap() { * <code>map<string, int64> resource_types = 3;</code> */ @java.lang.Override - public long getResourceTypesOrDefault(java.lang.String key, long defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map<java.lang.String, java.lang.Long> map = internalGetResourceTypes().getMap(); + public long getResourceTypesOrDefault( + java.lang.String key, + long defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map<java.lang.String, java.lang.Long> map = + internalGetResourceTypes().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * * <pre> * The number of resources protected by the key grouped by resource type. * </pre> @@ -261,11 +225,11 @@ public long getResourceTypesOrDefault(java.lang.String key, long defaultValue) { * <code>map<string, int64> resource_types = 3;</code> */ @java.lang.Override - public long getResourceTypesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map<java.lang.String, java.lang.Long> map = internalGetResourceTypes().getMap(); + public long getResourceTypesOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map<java.lang.String, java.lang.Long> map = + internalGetResourceTypes().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -273,36 +237,32 @@ public long getResourceTypesOrThrow(java.lang.String key) { } public static final int CLOUD_PRODUCTS_FIELD_NUMBER = 6; - private static final class CloudProductsDefaultEntryHolder { - static final com.google.protobuf.MapEntry<java.lang.String, java.lang.Long> defaultEntry = - com.google.protobuf.MapEntry.<java.lang.String, java.lang.Long>newDefaultInstance( - com.google.cloud.kms.inventory.v1.KeyTrackingServiceProto - .internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_CloudProductsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.INT64, - 0L); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.Long> defaultEntry = + com.google.protobuf.MapEntry + .<java.lang.String, java.lang.Long>newDefaultInstance( + com.google.cloud.kms.inventory.v1.KeyTrackingServiceProto.internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_CloudProductsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.INT64, + 0L); } - @SuppressWarnings("serial") - private com.google.protobuf.MapField<java.lang.String, java.lang.Long> cloudProducts_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.Long> cloudProducts_; private com.google.protobuf.MapField<java.lang.String, java.lang.Long> - internalGetCloudProducts() { + internalGetCloudProducts() { if (cloudProducts_ == null) { return com.google.protobuf.MapField.emptyMapField( CloudProductsDefaultEntryHolder.defaultEntry); } return cloudProducts_; } - public int getCloudProductsCount() { return internalGetCloudProducts().getMap().size(); } /** - * - * * <pre> * The number of resources protected by the key grouped by Cloud product. * </pre> @@ -310,21 +270,20 @@ public int getCloudProductsCount() { * <code>map<string, int64> cloud_products = 6;</code> */ @java.lang.Override - public boolean containsCloudProducts(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsCloudProducts( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetCloudProducts().getMap().containsKey(key); } - /** Use {@link #getCloudProductsMap()} instead. */ + /** + * Use {@link #getCloudProductsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map<java.lang.String, java.lang.Long> getCloudProducts() { return getCloudProductsMap(); } /** - * - * * <pre> * The number of resources protected by the key grouped by Cloud product. * </pre> @@ -336,8 +295,6 @@ public java.util.Map<java.lang.String, java.lang.Long> getCloudProductsMap() { return internalGetCloudProducts().getMap(); } /** - * - * * <pre> * The number of resources protected by the key grouped by Cloud product. * </pre> @@ -345,16 +302,15 @@ public java.util.Map<java.lang.String, java.lang.Long> getCloudProductsMap() { * <code>map<string, int64> cloud_products = 6;</code> */ @java.lang.Override - public long getCloudProductsOrDefault(java.lang.String key, long defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map<java.lang.String, java.lang.Long> map = internalGetCloudProducts().getMap(); + public long getCloudProductsOrDefault( + java.lang.String key, + long defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map<java.lang.String, java.lang.Long> map = + internalGetCloudProducts().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * * <pre> * The number of resources protected by the key grouped by Cloud product. * </pre> @@ -362,11 +318,11 @@ public long getCloudProductsOrDefault(java.lang.String key, long defaultValue) { * <code>map<string, int64> cloud_products = 6;</code> */ @java.lang.Override - public long getCloudProductsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map<java.lang.String, java.lang.Long> map = internalGetCloudProducts().getMap(); + public long getCloudProductsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map<java.lang.String, java.lang.Long> map = + internalGetCloudProducts().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -374,34 +330,32 @@ public long getCloudProductsOrThrow(java.lang.String key) { } public static final int LOCATIONS_FIELD_NUMBER = 4; - private static final class LocationsDefaultEntryHolder { - static final com.google.protobuf.MapEntry<java.lang.String, java.lang.Long> defaultEntry = - com.google.protobuf.MapEntry.<java.lang.String, java.lang.Long>newDefaultInstance( - com.google.cloud.kms.inventory.v1.KeyTrackingServiceProto - .internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_LocationsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.INT64, - 0L); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.Long> defaultEntry = + com.google.protobuf.MapEntry + .<java.lang.String, java.lang.Long>newDefaultInstance( + com.google.cloud.kms.inventory.v1.KeyTrackingServiceProto.internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_LocationsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.INT64, + 0L); } - @SuppressWarnings("serial") - private com.google.protobuf.MapField<java.lang.String, java.lang.Long> locations_; - - private com.google.protobuf.MapField<java.lang.String, java.lang.Long> internalGetLocations() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.Long> locations_; + private com.google.protobuf.MapField<java.lang.String, java.lang.Long> + internalGetLocations() { if (locations_ == null) { - return com.google.protobuf.MapField.emptyMapField(LocationsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LocationsDefaultEntryHolder.defaultEntry); } return locations_; } - public int getLocationsCount() { return internalGetLocations().getMap().size(); } /** - * - * * <pre> * The number of resources protected by the key grouped by region. * </pre> @@ -409,21 +363,20 @@ public int getLocationsCount() { * <code>map<string, int64> locations = 4;</code> */ @java.lang.Override - public boolean containsLocations(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsLocations( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetLocations().getMap().containsKey(key); } - /** Use {@link #getLocationsMap()} instead. */ + /** + * Use {@link #getLocationsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map<java.lang.String, java.lang.Long> getLocations() { return getLocationsMap(); } /** - * - * * <pre> * The number of resources protected by the key grouped by region. * </pre> @@ -435,8 +388,6 @@ public java.util.Map<java.lang.String, java.lang.Long> getLocationsMap() { return internalGetLocations().getMap(); } /** - * - * * <pre> * The number of resources protected by the key grouped by region. * </pre> @@ -444,16 +395,15 @@ public java.util.Map<java.lang.String, java.lang.Long> getLocationsMap() { * <code>map<string, int64> locations = 4;</code> */ @java.lang.Override - public long getLocationsOrDefault(java.lang.String key, long defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map<java.lang.String, java.lang.Long> map = internalGetLocations().getMap(); + public long getLocationsOrDefault( + java.lang.String key, + long defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map<java.lang.String, java.lang.Long> map = + internalGetLocations().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * * <pre> * The number of resources protected by the key grouped by region. * </pre> @@ -461,11 +411,11 @@ public long getLocationsOrDefault(java.lang.String key, long defaultValue) { * <code>map<string, int64> locations = 4;</code> */ @java.lang.Override - public long getLocationsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map<java.lang.String, java.lang.Long> map = internalGetLocations().getMap(); + public long getLocationsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map<java.lang.String, java.lang.Long> map = + internalGetLocations().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -473,7 +423,6 @@ public long getLocationsOrThrow(java.lang.String key) { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -485,22 +434,35 @@ 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 (resourceCount_ != 0L) { output.writeInt64(1, resourceCount_); } if (projectCount_ != 0) { output.writeInt32(2, projectCount_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetResourceTypes(), ResourceTypesDefaultEntryHolder.defaultEntry, 3); - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLocations(), LocationsDefaultEntryHolder.defaultEntry, 4); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetResourceTypes(), + ResourceTypesDefaultEntryHolder.defaultEntry, + 3); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLocations(), + LocationsDefaultEntryHolder.defaultEntry, + 4); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, name_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetCloudProducts(), CloudProductsDefaultEntryHolder.defaultEntry, 6); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetCloudProducts(), + CloudProductsDefaultEntryHolder.defaultEntry, + 6); getUnknownFields().writeTo(output); } @@ -511,43 +473,45 @@ public int getSerializedSize() { size = 0; if (resourceCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, resourceCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, resourceCount_); } if (projectCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, projectCount_); - } - for (java.util.Map.Entry<java.lang.String, java.lang.Long> entry : - internalGetResourceTypes().getMap().entrySet()) { - com.google.protobuf.MapEntry<java.lang.String, java.lang.Long> resourceTypes__ = - ResourceTypesDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, resourceTypes__); - } - for (java.util.Map.Entry<java.lang.String, java.lang.Long> entry : - internalGetLocations().getMap().entrySet()) { - com.google.protobuf.MapEntry<java.lang.String, java.lang.Long> locations__ = - LocationsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, locations__); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, projectCount_); + } + for (java.util.Map.Entry<java.lang.String, java.lang.Long> entry + : internalGetResourceTypes().getMap().entrySet()) { + com.google.protobuf.MapEntry<java.lang.String, java.lang.Long> + resourceTypes__ = ResourceTypesDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, resourceTypes__); + } + for (java.util.Map.Entry<java.lang.String, java.lang.Long> entry + : internalGetLocations().getMap().entrySet()) { + com.google.protobuf.MapEntry<java.lang.String, java.lang.Long> + locations__ = LocationsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, locations__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, name_); } - for (java.util.Map.Entry<java.lang.String, java.lang.Long> entry : - internalGetCloudProducts().getMap().entrySet()) { - com.google.protobuf.MapEntry<java.lang.String, java.lang.Long> cloudProducts__ = - CloudProductsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, cloudProducts__); + for (java.util.Map.Entry<java.lang.String, java.lang.Long> entry + : internalGetCloudProducts().getMap().entrySet()) { + com.google.protobuf.MapEntry<java.lang.String, java.lang.Long> + cloudProducts__ = CloudProductsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, cloudProducts__); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -557,20 +521,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.kms.inventory.v1.ProtectedResourcesSummary)) { return super.equals(obj); } - com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary other = - (com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary) obj; - - if (!getName().equals(other.getName())) return false; - if (getResourceCount() != other.getResourceCount()) return false; - if (getProjectCount() != other.getProjectCount()) return false; - if (!internalGetResourceTypes().equals(other.internalGetResourceTypes())) return false; - if (!internalGetCloudProducts().equals(other.internalGetCloudProducts())) return false; - if (!internalGetLocations().equals(other.internalGetLocations())) return false; + com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary other = (com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary) obj; + + if (!getName() + .equals(other.getName())) return false; + if (getResourceCount() + != other.getResourceCount()) return false; + if (getProjectCount() + != other.getProjectCount()) return false; + if (!internalGetResourceTypes().equals( + other.internalGetResourceTypes())) return false; + if (!internalGetCloudProducts().equals( + other.internalGetCloudProducts())) return false; + if (!internalGetLocations().equals( + other.internalGetLocations())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -585,7 +554,8 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + RESOURCE_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getResourceCount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getResourceCount()); hash = (37 * hash) + PROJECT_COUNT_FIELD_NUMBER; hash = (53 * hash) + getProjectCount(); if (!internalGetResourceTypes().getMap().isEmpty()) { @@ -606,104 +576,98 @@ public int hashCode() { } public static com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary 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.kms.inventory.v1.ProtectedResourcesSummary 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.kms.inventory.v1.ProtectedResourcesSummary parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary 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.kms.inventory.v1.ProtectedResourcesSummary parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary 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.kms.inventory.v1.ProtectedResourcesSummary parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary 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.kms.inventory.v1.ProtectedResourcesSummary parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary 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.kms.inventory.v1.ProtectedResourcesSummary 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.kms.inventory.v1.ProtectedResourcesSummary 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.kms.inventory.v1.ProtectedResourcesSummary prototype) { + public static Builder newBuilder(com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary 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; } /** - * - * * <pre> * Aggregate information about the resources protected by a Cloud KMS key in the * same Cloud organization as the key. @@ -711,17 +675,18 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.cloud.kms.inventory.v1.ProtectedResourcesSummary} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.cloud.kms.inventory.v1.ProtectedResourcesSummary) com.google.cloud.kms.inventory.v1.ProtectedResourcesSummaryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.kms.inventory.v1.KeyTrackingServiceProto - .internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.kms.inventory.v1.KeyTrackingServiceProto.internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 3: return internalGetResourceTypes(); @@ -730,12 +695,13 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { case 4: return internalGetLocations(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 3: return internalGetMutableResourceTypes(); @@ -744,27 +710,28 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) { case 4: return internalGetMutableLocations(); 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.kms.inventory.v1.KeyTrackingServiceProto - .internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_fieldAccessorTable + return com.google.cloud.kms.inventory.v1.KeyTrackingServiceProto.internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary.class, - com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary.Builder.class); + com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary.class, com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary.Builder.class); } // Construct using com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -779,9 +746,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.kms.inventory.v1.KeyTrackingServiceProto - .internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.kms.inventory.v1.KeyTrackingServiceProto.internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_descriptor; } @java.lang.Override @@ -800,11 +767,8 @@ public com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary build() { @java.lang.Override public com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary buildPartial() { - com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary result = - new com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary result = new com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -838,39 +802,38 @@ private void buildPartial0(com.google.cloud.kms.inventory.v1.ProtectedResourcesS 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.kms.inventory.v1.ProtectedResourcesSummary) { - return mergeFrom((com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary) other); + return mergeFrom((com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary)other); } else { super.mergeFrom(other); return this; @@ -878,8 +841,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary other) { - if (other == com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary.getDefaultInstance()) - return this; + if (other == com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -891,11 +853,14 @@ public Builder mergeFrom(com.google.cloud.kms.inventory.v1.ProtectedResourcesSum if (other.getProjectCount() != 0) { setProjectCount(other.getProjectCount()); } - internalGetMutableResourceTypes().mergeFrom(other.internalGetResourceTypes()); + internalGetMutableResourceTypes().mergeFrom( + other.internalGetResourceTypes()); bitField0_ |= 0x00000008; - internalGetMutableCloudProducts().mergeFrom(other.internalGetCloudProducts()); + internalGetMutableCloudProducts().mergeFrom( + other.internalGetCloudProducts()); bitField0_ |= 0x00000010; - internalGetMutableLocations().mergeFrom(other.internalGetLocations()); + internalGetMutableLocations().mergeFrom( + other.internalGetLocations()); bitField0_ |= 0x00000020; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -923,67 +888,54 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - resourceCount_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 8 - case 16: - { - projectCount_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 16 - case 26: - { - com.google.protobuf.MapEntry<java.lang.String, java.lang.Long> resourceTypes__ = - input.readMessage( - ResourceTypesDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableResourceTypes() - .getMutableMap() - .put(resourceTypes__.getKey(), resourceTypes__.getValue()); - bitField0_ |= 0x00000008; - break; - } // case 26 - case 34: - { - com.google.protobuf.MapEntry<java.lang.String, java.lang.Long> locations__ = - input.readMessage( - LocationsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableLocations() - .getMutableMap() - .put(locations__.getKey(), locations__.getValue()); - bitField0_ |= 0x00000020; - break; - } // case 34 - case 42: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 42 - case 50: - { - com.google.protobuf.MapEntry<java.lang.String, java.lang.Long> cloudProducts__ = - input.readMessage( - CloudProductsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableCloudProducts() - .getMutableMap() - .put(cloudProducts__.getKey(), cloudProducts__.getValue()); - bitField0_ |= 0x00000010; - break; - } // case 50 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + resourceCount_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 8 + case 16: { + projectCount_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 16 + case 26: { + com.google.protobuf.MapEntry<java.lang.String, java.lang.Long> + resourceTypes__ = input.readMessage( + ResourceTypesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableResourceTypes().getMutableMap().put( + resourceTypes__.getKey(), resourceTypes__.getValue()); + bitField0_ |= 0x00000008; + break; + } // case 26 + case 34: { + com.google.protobuf.MapEntry<java.lang.String, java.lang.Long> + locations__ = input.readMessage( + LocationsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableLocations().getMutableMap().put( + locations__.getKey(), locations__.getValue()); + bitField0_ |= 0x00000020; + break; + } // case 34 + case 42: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 42 + case 50: { + com.google.protobuf.MapEntry<java.lang.String, java.lang.Long> + cloudProducts__ = input.readMessage( + CloudProductsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableCloudProducts().getMutableMap().put( + cloudProducts__.getKey(), cloudProducts__.getValue()); + bitField0_ |= 0x00000010; + break; + } // case 50 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -993,13 +945,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * * <pre> * The full name of the ProtectedResourcesSummary resource. * Example: @@ -1007,13 +956,13 @@ public Builder mergeFrom( * </pre> * * <code>string name = 5;</code> - * * @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; @@ -1022,8 +971,6 @@ public java.lang.String getName() { } } /** - * - * * <pre> * The full name of the ProtectedResourcesSummary resource. * Example: @@ -1031,14 +978,15 @@ public java.lang.String getName() { * </pre> * * <code>string name = 5;</code> - * * @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 { @@ -1046,8 +994,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * * <pre> * The full name of the ProtectedResourcesSummary resource. * Example: @@ -1055,22 +1001,18 @@ public com.google.protobuf.ByteString getNameBytes() { * </pre> * * <code>string name = 5;</code> - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * * <pre> * The full name of the ProtectedResourcesSummary resource. * Example: @@ -1078,7 +1020,6 @@ public Builder setName(java.lang.String value) { * </pre> * * <code>string name = 5;</code> - * * @return This builder for chaining. */ public Builder clearName() { @@ -1088,8 +1029,6 @@ public Builder clearName() { return this; } /** - * - * * <pre> * The full name of the ProtectedResourcesSummary resource. * Example: @@ -1097,14 +1036,12 @@ public Builder clearName() { * </pre> * * <code>string name = 5;</code> - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1112,17 +1049,14 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } - private long resourceCount_; + private long resourceCount_ ; /** - * - * * <pre> * The total number of protected resources in the same Cloud organization as * the key. * </pre> * * <code>int64 resource_count = 1;</code> - * * @return The resourceCount. */ @java.lang.Override @@ -1130,15 +1064,12 @@ public long getResourceCount() { return resourceCount_; } /** - * - * * <pre> * The total number of protected resources in the same Cloud organization as * the key. * </pre> * * <code>int64 resource_count = 1;</code> - * * @param value The resourceCount to set. * @return This builder for chaining. */ @@ -1150,15 +1081,12 @@ public Builder setResourceCount(long value) { return this; } /** - * - * * <pre> * The total number of protected resources in the same Cloud organization as * the key. * </pre> * * <code>int64 resource_count = 1;</code> - * * @return This builder for chaining. */ public Builder clearResourceCount() { @@ -1168,17 +1096,14 @@ public Builder clearResourceCount() { return this; } - private int projectCount_; + private int projectCount_ ; /** - * - * * <pre> * The number of distinct Cloud projects in the same Cloud organization as the * key that have resources protected by the key. * </pre> * * <code>int32 project_count = 2;</code> - * * @return The projectCount. */ @java.lang.Override @@ -1186,15 +1111,12 @@ public int getProjectCount() { return projectCount_; } /** - * - * * <pre> * The number of distinct Cloud projects in the same Cloud organization as the * key that have resources protected by the key. * </pre> * * <code>int32 project_count = 2;</code> - * * @param value The projectCount to set. * @return This builder for chaining. */ @@ -1206,15 +1128,12 @@ public Builder setProjectCount(int value) { return this; } /** - * - * * <pre> * The number of distinct Cloud projects in the same Cloud organization as the * key that have resources protected by the key. * </pre> * * <code>int32 project_count = 2;</code> - * * @return This builder for chaining. */ public Builder clearProjectCount() { @@ -1224,8 +1143,8 @@ public Builder clearProjectCount() { return this; } - private com.google.protobuf.MapField<java.lang.String, java.lang.Long> resourceTypes_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.Long> resourceTypes_; private com.google.protobuf.MapField<java.lang.String, java.lang.Long> internalGetResourceTypes() { if (resourceTypes_ == null) { @@ -1234,12 +1153,11 @@ public Builder clearProjectCount() { } return resourceTypes_; } - private com.google.protobuf.MapField<java.lang.String, java.lang.Long> internalGetMutableResourceTypes() { if (resourceTypes_ == null) { - resourceTypes_ = - com.google.protobuf.MapField.newMapField(ResourceTypesDefaultEntryHolder.defaultEntry); + resourceTypes_ = com.google.protobuf.MapField.newMapField( + ResourceTypesDefaultEntryHolder.defaultEntry); } if (!resourceTypes_.isMutable()) { resourceTypes_ = resourceTypes_.copy(); @@ -1248,13 +1166,10 @@ public Builder clearProjectCount() { onChanged(); return resourceTypes_; } - public int getResourceTypesCount() { return internalGetResourceTypes().getMap().size(); } /** - * - * * <pre> * The number of resources protected by the key grouped by resource type. * </pre> @@ -1262,21 +1177,20 @@ public int getResourceTypesCount() { * <code>map<string, int64> resource_types = 3;</code> */ @java.lang.Override - public boolean containsResourceTypes(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsResourceTypes( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetResourceTypes().getMap().containsKey(key); } - /** Use {@link #getResourceTypesMap()} instead. */ + /** + * Use {@link #getResourceTypesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map<java.lang.String, java.lang.Long> getResourceTypes() { return getResourceTypesMap(); } /** - * - * * <pre> * The number of resources protected by the key grouped by resource type. * </pre> @@ -1288,8 +1202,6 @@ public java.util.Map<java.lang.String, java.lang.Long> getResourceTypesMap() { return internalGetResourceTypes().getMap(); } /** - * - * * <pre> * The number of resources protected by the key grouped by resource type. * </pre> @@ -1297,16 +1209,15 @@ public java.util.Map<java.lang.String, java.lang.Long> getResourceTypesMap() { * <code>map<string, int64> resource_types = 3;</code> */ @java.lang.Override - public long getResourceTypesOrDefault(java.lang.String key, long defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map<java.lang.String, java.lang.Long> map = internalGetResourceTypes().getMap(); + public long getResourceTypesOrDefault( + java.lang.String key, + long defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map<java.lang.String, java.lang.Long> map = + internalGetResourceTypes().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * * <pre> * The number of resources protected by the key grouped by resource type. * </pre> @@ -1314,79 +1225,79 @@ public long getResourceTypesOrDefault(java.lang.String key, long defaultValue) { * <code>map<string, int64> resource_types = 3;</code> */ @java.lang.Override - public long getResourceTypesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map<java.lang.String, java.lang.Long> map = internalGetResourceTypes().getMap(); + public long getResourceTypesOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map<java.lang.String, java.lang.Long> map = + internalGetResourceTypes().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } - public Builder clearResourceTypes() { bitField0_ = (bitField0_ & ~0x00000008); - internalGetMutableResourceTypes().getMutableMap().clear(); + internalGetMutableResourceTypes().getMutableMap() + .clear(); return this; } /** - * - * * <pre> * The number of resources protected by the key grouped by resource type. * </pre> * * <code>map<string, int64> resource_types = 3;</code> */ - public Builder removeResourceTypes(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableResourceTypes().getMutableMap().remove(key); + public Builder removeResourceTypes( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableResourceTypes().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map<java.lang.String, java.lang.Long> getMutableResourceTypes() { + public java.util.Map<java.lang.String, java.lang.Long> + getMutableResourceTypes() { bitField0_ |= 0x00000008; return internalGetMutableResourceTypes().getMutableMap(); } /** - * - * * <pre> * The number of resources protected by the key grouped by resource type. * </pre> * * <code>map<string, int64> resource_types = 3;</code> */ - public Builder putResourceTypes(java.lang.String key, long value) { - if (key == null) { - throw new NullPointerException("map key"); - } + public Builder putResourceTypes( + java.lang.String key, + long value) { + if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableResourceTypes().getMutableMap().put(key, value); + internalGetMutableResourceTypes().getMutableMap() + .put(key, value); bitField0_ |= 0x00000008; return this; } /** - * - * * <pre> * The number of resources protected by the key grouped by resource type. * </pre> * * <code>map<string, int64> resource_types = 3;</code> */ - public Builder putAllResourceTypes(java.util.Map<java.lang.String, java.lang.Long> values) { - internalGetMutableResourceTypes().getMutableMap().putAll(values); + public Builder putAllResourceTypes( + java.util.Map<java.lang.String, java.lang.Long> values) { + internalGetMutableResourceTypes().getMutableMap() + .putAll(values); bitField0_ |= 0x00000008; return this; } - private com.google.protobuf.MapField<java.lang.String, java.lang.Long> cloudProducts_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.Long> cloudProducts_; private com.google.protobuf.MapField<java.lang.String, java.lang.Long> internalGetCloudProducts() { if (cloudProducts_ == null) { @@ -1395,12 +1306,11 @@ public Builder putAllResourceTypes(java.util.Map<java.lang.String, java.lang.Lon } return cloudProducts_; } - private com.google.protobuf.MapField<java.lang.String, java.lang.Long> internalGetMutableCloudProducts() { if (cloudProducts_ == null) { - cloudProducts_ = - com.google.protobuf.MapField.newMapField(CloudProductsDefaultEntryHolder.defaultEntry); + cloudProducts_ = com.google.protobuf.MapField.newMapField( + CloudProductsDefaultEntryHolder.defaultEntry); } if (!cloudProducts_.isMutable()) { cloudProducts_ = cloudProducts_.copy(); @@ -1409,13 +1319,10 @@ public Builder putAllResourceTypes(java.util.Map<java.lang.String, java.lang.Lon onChanged(); return cloudProducts_; } - public int getCloudProductsCount() { return internalGetCloudProducts().getMap().size(); } /** - * - * * <pre> * The number of resources protected by the key grouped by Cloud product. * </pre> @@ -1423,21 +1330,20 @@ public int getCloudProductsCount() { * <code>map<string, int64> cloud_products = 6;</code> */ @java.lang.Override - public boolean containsCloudProducts(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsCloudProducts( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetCloudProducts().getMap().containsKey(key); } - /** Use {@link #getCloudProductsMap()} instead. */ + /** + * Use {@link #getCloudProductsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map<java.lang.String, java.lang.Long> getCloudProducts() { return getCloudProductsMap(); } /** - * - * * <pre> * The number of resources protected by the key grouped by Cloud product. * </pre> @@ -1449,8 +1355,6 @@ public java.util.Map<java.lang.String, java.lang.Long> getCloudProductsMap() { return internalGetCloudProducts().getMap(); } /** - * - * * <pre> * The number of resources protected by the key grouped by Cloud product. * </pre> @@ -1458,16 +1362,15 @@ public java.util.Map<java.lang.String, java.lang.Long> getCloudProductsMap() { * <code>map<string, int64> cloud_products = 6;</code> */ @java.lang.Override - public long getCloudProductsOrDefault(java.lang.String key, long defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map<java.lang.String, java.lang.Long> map = internalGetCloudProducts().getMap(); + public long getCloudProductsOrDefault( + java.lang.String key, + long defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map<java.lang.String, java.lang.Long> map = + internalGetCloudProducts().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * * <pre> * The number of resources protected by the key grouped by Cloud product. * </pre> @@ -1475,91 +1378,92 @@ public long getCloudProductsOrDefault(java.lang.String key, long defaultValue) { * <code>map<string, int64> cloud_products = 6;</code> */ @java.lang.Override - public long getCloudProductsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map<java.lang.String, java.lang.Long> map = internalGetCloudProducts().getMap(); + public long getCloudProductsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map<java.lang.String, java.lang.Long> map = + internalGetCloudProducts().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } - public Builder clearCloudProducts() { bitField0_ = (bitField0_ & ~0x00000010); - internalGetMutableCloudProducts().getMutableMap().clear(); + internalGetMutableCloudProducts().getMutableMap() + .clear(); return this; } /** - * - * * <pre> * The number of resources protected by the key grouped by Cloud product. * </pre> * * <code>map<string, int64> cloud_products = 6;</code> */ - public Builder removeCloudProducts(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableCloudProducts().getMutableMap().remove(key); + public Builder removeCloudProducts( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableCloudProducts().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map<java.lang.String, java.lang.Long> getMutableCloudProducts() { + public java.util.Map<java.lang.String, java.lang.Long> + getMutableCloudProducts() { bitField0_ |= 0x00000010; return internalGetMutableCloudProducts().getMutableMap(); } /** - * - * * <pre> * The number of resources protected by the key grouped by Cloud product. * </pre> * * <code>map<string, int64> cloud_products = 6;</code> */ - public Builder putCloudProducts(java.lang.String key, long value) { - if (key == null) { - throw new NullPointerException("map key"); - } + public Builder putCloudProducts( + java.lang.String key, + long value) { + if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableCloudProducts().getMutableMap().put(key, value); + internalGetMutableCloudProducts().getMutableMap() + .put(key, value); bitField0_ |= 0x00000010; return this; } /** - * - * * <pre> * The number of resources protected by the key grouped by Cloud product. * </pre> * * <code>map<string, int64> cloud_products = 6;</code> */ - public Builder putAllCloudProducts(java.util.Map<java.lang.String, java.lang.Long> values) { - internalGetMutableCloudProducts().getMutableMap().putAll(values); + public Builder putAllCloudProducts( + java.util.Map<java.lang.String, java.lang.Long> values) { + internalGetMutableCloudProducts().getMutableMap() + .putAll(values); bitField0_ |= 0x00000010; return this; } - private com.google.protobuf.MapField<java.lang.String, java.lang.Long> locations_; - - private com.google.protobuf.MapField<java.lang.String, java.lang.Long> internalGetLocations() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.Long> locations_; + private com.google.protobuf.MapField<java.lang.String, java.lang.Long> + internalGetLocations() { if (locations_ == null) { - return com.google.protobuf.MapField.emptyMapField(LocationsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LocationsDefaultEntryHolder.defaultEntry); } return locations_; } - private com.google.protobuf.MapField<java.lang.String, java.lang.Long> internalGetMutableLocations() { if (locations_ == null) { - locations_ = - com.google.protobuf.MapField.newMapField(LocationsDefaultEntryHolder.defaultEntry); + locations_ = com.google.protobuf.MapField.newMapField( + LocationsDefaultEntryHolder.defaultEntry); } if (!locations_.isMutable()) { locations_ = locations_.copy(); @@ -1568,13 +1472,10 @@ private com.google.protobuf.MapField<java.lang.String, java.lang.Long> internalG onChanged(); return locations_; } - public int getLocationsCount() { return internalGetLocations().getMap().size(); } /** - * - * * <pre> * The number of resources protected by the key grouped by region. * </pre> @@ -1582,21 +1483,20 @@ public int getLocationsCount() { * <code>map<string, int64> locations = 4;</code> */ @java.lang.Override - public boolean containsLocations(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsLocations( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetLocations().getMap().containsKey(key); } - /** Use {@link #getLocationsMap()} instead. */ + /** + * Use {@link #getLocationsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map<java.lang.String, java.lang.Long> getLocations() { return getLocationsMap(); } /** - * - * * <pre> * The number of resources protected by the key grouped by region. * </pre> @@ -1608,8 +1508,6 @@ public java.util.Map<java.lang.String, java.lang.Long> getLocationsMap() { return internalGetLocations().getMap(); } /** - * - * * <pre> * The number of resources protected by the key grouped by region. * </pre> @@ -1617,16 +1515,15 @@ public java.util.Map<java.lang.String, java.lang.Long> getLocationsMap() { * <code>map<string, int64> locations = 4;</code> */ @java.lang.Override - public long getLocationsOrDefault(java.lang.String key, long defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map<java.lang.String, java.lang.Long> map = internalGetLocations().getMap(); + public long getLocationsOrDefault( + java.lang.String key, + long defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map<java.lang.String, java.lang.Long> map = + internalGetLocations().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * * <pre> * The number of resources protected by the key grouped by region. * </pre> @@ -1634,79 +1531,79 @@ public long getLocationsOrDefault(java.lang.String key, long defaultValue) { * <code>map<string, int64> locations = 4;</code> */ @java.lang.Override - public long getLocationsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map<java.lang.String, java.lang.Long> map = internalGetLocations().getMap(); + public long getLocationsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map<java.lang.String, java.lang.Long> map = + internalGetLocations().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } - public Builder clearLocations() { bitField0_ = (bitField0_ & ~0x00000020); - internalGetMutableLocations().getMutableMap().clear(); + internalGetMutableLocations().getMutableMap() + .clear(); return this; } /** - * - * * <pre> * The number of resources protected by the key grouped by region. * </pre> * * <code>map<string, int64> locations = 4;</code> */ - public Builder removeLocations(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableLocations().getMutableMap().remove(key); + public Builder removeLocations( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableLocations().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map<java.lang.String, java.lang.Long> getMutableLocations() { + public java.util.Map<java.lang.String, java.lang.Long> + getMutableLocations() { bitField0_ |= 0x00000020; return internalGetMutableLocations().getMutableMap(); } /** - * - * * <pre> * The number of resources protected by the key grouped by region. * </pre> * * <code>map<string, int64> locations = 4;</code> */ - public Builder putLocations(java.lang.String key, long value) { - if (key == null) { - throw new NullPointerException("map key"); - } + public Builder putLocations( + java.lang.String key, + long value) { + if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableLocations().getMutableMap().put(key, value); + internalGetMutableLocations().getMutableMap() + .put(key, value); bitField0_ |= 0x00000020; return this; } /** - * - * * <pre> * The number of resources protected by the key grouped by region. * </pre> * * <code>map<string, int64> locations = 4;</code> */ - public Builder putAllLocations(java.util.Map<java.lang.String, java.lang.Long> values) { - internalGetMutableLocations().getMutableMap().putAll(values); + public Builder putAllLocations( + java.util.Map<java.lang.String, java.lang.Long> values) { + internalGetMutableLocations().getMutableMap() + .putAll(values); bitField0_ |= 0x00000020; 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); } @@ -1716,12 +1613,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.kms.inventory.v1.ProtectedResourcesSummary) } // @@protoc_insertion_point(class_scope:google.cloud.kms.inventory.v1.ProtectedResourcesSummary) private static final com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary(); } @@ -1730,27 +1627,27 @@ public static com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<ProtectedResourcesSummary> PARSER = - new com.google.protobuf.AbstractParser<ProtectedResourcesSummary>() { - @java.lang.Override - public ProtectedResourcesSummary parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<ProtectedResourcesSummary> + PARSER = new com.google.protobuf.AbstractParser<ProtectedResourcesSummary>() { + @java.lang.Override + public ProtectedResourcesSummary parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<ProtectedResourcesSummary> parser() { return PARSER; @@ -1765,4 +1662,6 @@ public com.google.protobuf.Parser<ProtectedResourcesSummary> getParserForType() public com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ProtectedResourcesSummaryName.java b/owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ProtectedResourcesSummaryName.java similarity index 100% rename from java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ProtectedResourcesSummaryName.java rename to owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ProtectedResourcesSummaryName.java diff --git a/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ProtectedResourcesSummaryOrBuilder.java b/owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ProtectedResourcesSummaryOrBuilder.java similarity index 67% rename from java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ProtectedResourcesSummaryOrBuilder.java rename to owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ProtectedResourcesSummaryOrBuilder.java index d59912f4bf83..97cb9cc6d686 100644 --- a/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ProtectedResourcesSummaryOrBuilder.java +++ b/owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ProtectedResourcesSummaryOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/kms/inventory/v1/key_tracking_service.proto package com.google.cloud.kms.inventory.v1; -public interface ProtectedResourcesSummaryOrBuilder - extends +public interface ProtectedResourcesSummaryOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.kms.inventory.v1.ProtectedResourcesSummary) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * The full name of the ProtectedResourcesSummary resource. * Example: @@ -33,13 +15,10 @@ public interface ProtectedResourcesSummaryOrBuilder * </pre> * * <code>string name = 5;</code> - * * @return The name. */ java.lang.String getName(); /** - * - * * <pre> * The full name of the ProtectedResourcesSummary resource. * Example: @@ -47,42 +26,34 @@ public interface ProtectedResourcesSummaryOrBuilder * </pre> * * <code>string name = 5;</code> - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * * <pre> * The total number of protected resources in the same Cloud organization as * the key. * </pre> * * <code>int64 resource_count = 1;</code> - * * @return The resourceCount. */ long getResourceCount(); /** - * - * * <pre> * The number of distinct Cloud projects in the same Cloud organization as the * key that have resources protected by the key. * </pre> * * <code>int32 project_count = 2;</code> - * * @return The projectCount. */ int getProjectCount(); /** - * - * * <pre> * The number of resources protected by the key grouped by resource type. * </pre> @@ -91,52 +62,50 @@ public interface ProtectedResourcesSummaryOrBuilder */ int getResourceTypesCount(); /** - * - * * <pre> * The number of resources protected by the key grouped by resource type. * </pre> * * <code>map<string, int64> resource_types = 3;</code> */ - boolean containsResourceTypes(java.lang.String key); - /** Use {@link #getResourceTypesMap()} instead. */ + boolean containsResourceTypes( + java.lang.String key); + /** + * Use {@link #getResourceTypesMap()} instead. + */ @java.lang.Deprecated - java.util.Map<java.lang.String, java.lang.Long> getResourceTypes(); + java.util.Map<java.lang.String, java.lang.Long> + getResourceTypes(); /** - * - * * <pre> * The number of resources protected by the key grouped by resource type. * </pre> * * <code>map<string, int64> resource_types = 3;</code> */ - java.util.Map<java.lang.String, java.lang.Long> getResourceTypesMap(); + java.util.Map<java.lang.String, java.lang.Long> + getResourceTypesMap(); /** - * - * * <pre> * The number of resources protected by the key grouped by resource type. * </pre> * * <code>map<string, int64> resource_types = 3;</code> */ - long getResourceTypesOrDefault(java.lang.String key, long defaultValue); + long getResourceTypesOrDefault( + java.lang.String key, + long defaultValue); /** - * - * * <pre> * The number of resources protected by the key grouped by resource type. * </pre> * * <code>map<string, int64> resource_types = 3;</code> */ - long getResourceTypesOrThrow(java.lang.String key); + long getResourceTypesOrThrow( + java.lang.String key); /** - * - * * <pre> * The number of resources protected by the key grouped by Cloud product. * </pre> @@ -145,52 +114,50 @@ public interface ProtectedResourcesSummaryOrBuilder */ int getCloudProductsCount(); /** - * - * * <pre> * The number of resources protected by the key grouped by Cloud product. * </pre> * * <code>map<string, int64> cloud_products = 6;</code> */ - boolean containsCloudProducts(java.lang.String key); - /** Use {@link #getCloudProductsMap()} instead. */ + boolean containsCloudProducts( + java.lang.String key); + /** + * Use {@link #getCloudProductsMap()} instead. + */ @java.lang.Deprecated - java.util.Map<java.lang.String, java.lang.Long> getCloudProducts(); + java.util.Map<java.lang.String, java.lang.Long> + getCloudProducts(); /** - * - * * <pre> * The number of resources protected by the key grouped by Cloud product. * </pre> * * <code>map<string, int64> cloud_products = 6;</code> */ - java.util.Map<java.lang.String, java.lang.Long> getCloudProductsMap(); + java.util.Map<java.lang.String, java.lang.Long> + getCloudProductsMap(); /** - * - * * <pre> * The number of resources protected by the key grouped by Cloud product. * </pre> * * <code>map<string, int64> cloud_products = 6;</code> */ - long getCloudProductsOrDefault(java.lang.String key, long defaultValue); + long getCloudProductsOrDefault( + java.lang.String key, + long defaultValue); /** - * - * * <pre> * The number of resources protected by the key grouped by Cloud product. * </pre> * * <code>map<string, int64> cloud_products = 6;</code> */ - long getCloudProductsOrThrow(java.lang.String key); + long getCloudProductsOrThrow( + java.lang.String key); /** - * - * * <pre> * The number of resources protected by the key grouped by region. * </pre> @@ -199,46 +166,46 @@ public interface ProtectedResourcesSummaryOrBuilder */ int getLocationsCount(); /** - * - * * <pre> * The number of resources protected by the key grouped by region. * </pre> * * <code>map<string, int64> locations = 4;</code> */ - boolean containsLocations(java.lang.String key); - /** Use {@link #getLocationsMap()} instead. */ + boolean containsLocations( + java.lang.String key); + /** + * Use {@link #getLocationsMap()} instead. + */ @java.lang.Deprecated - java.util.Map<java.lang.String, java.lang.Long> getLocations(); + java.util.Map<java.lang.String, java.lang.Long> + getLocations(); /** - * - * * <pre> * The number of resources protected by the key grouped by region. * </pre> * * <code>map<string, int64> locations = 4;</code> */ - java.util.Map<java.lang.String, java.lang.Long> getLocationsMap(); + java.util.Map<java.lang.String, java.lang.Long> + getLocationsMap(); /** - * - * * <pre> * The number of resources protected by the key grouped by region. * </pre> * * <code>map<string, int64> locations = 4;</code> */ - long getLocationsOrDefault(java.lang.String key, long defaultValue); + long getLocationsOrDefault( + java.lang.String key, + long defaultValue); /** - * - * * <pre> * The number of resources protected by the key grouped by region. * </pre> * * <code>map<string, int64> locations = 4;</code> */ - long getLocationsOrThrow(java.lang.String key); + long getLocationsOrThrow( + java.lang.String key); } diff --git a/owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/SearchProtectedResourcesRequest.java b/owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/SearchProtectedResourcesRequest.java new file mode 100644 index 000000000000..14a37a80d7db --- /dev/null +++ b/owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/SearchProtectedResourcesRequest.java @@ -0,0 +1,1467 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/kms/inventory/v1/key_tracking_service.proto + +package com.google.cloud.kms.inventory.v1; + +/** + * <pre> + * Request message for + * [KeyTrackingService.SearchProtectedResources][google.cloud.kms.inventory.v1.KeyTrackingService.SearchProtectedResources]. + * </pre> + * + * Protobuf type {@code google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest} + */ +public final class SearchProtectedResourcesRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest) + SearchProtectedResourcesRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use SearchProtectedResourcesRequest.newBuilder() to construct. + private SearchProtectedResourcesRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { + super(builder); + } + private SearchProtectedResourcesRequest() { + scope_ = ""; + cryptoKey_ = ""; + pageToken_ = ""; + resourceTypes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SearchProtectedResourcesRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.kms.inventory.v1.KeyTrackingServiceProto.internal_static_google_cloud_kms_inventory_v1_SearchProtectedResourcesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.kms.inventory.v1.KeyTrackingServiceProto.internal_static_google_cloud_kms_inventory_v1_SearchProtectedResourcesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest.class, com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest.Builder.class); + } + + public static final int SCOPE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object scope_ = ""; + /** + * <pre> + * Required. Resource name of the organization. + * Example: organizations/123 + * </pre> + * + * <code>string scope = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> + * @return The scope. + */ + @java.lang.Override + public java.lang.String getScope() { + java.lang.Object ref = scope_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + scope_ = s; + return s; + } + } + /** + * <pre> + * Required. Resource name of the organization. + * Example: organizations/123 + * </pre> + * + * <code>string scope = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> + * @return The bytes for scope. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getScopeBytes() { + java.lang.Object ref = scope_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + scope_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CRYPTO_KEY_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object cryptoKey_ = ""; + /** + * <pre> + * Required. The resource name of the + * [CryptoKey][google.cloud.kms.v1.CryptoKey]. + * </pre> + * + * <code>string crypto_key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> + * @return The cryptoKey. + */ + @java.lang.Override + public java.lang.String getCryptoKey() { + java.lang.Object ref = cryptoKey_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cryptoKey_ = s; + return s; + } + } + /** + * <pre> + * Required. The resource name of the + * [CryptoKey][google.cloud.kms.v1.CryptoKey]. + * </pre> + * + * <code>string crypto_key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> + * @return The bytes for cryptoKey. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getCryptoKeyBytes() { + java.lang.Object ref = cryptoKey_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + cryptoKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 3; + private int pageSize_ = 0; + /** + * <pre> + * The maximum number of resources to return. The service may return fewer + * than this value. + * If unspecified, at most 500 resources will be returned. + * The maximum value is 500; values above 500 will be coerced to 500. + * </pre> + * + * <code>int32 page_size = 3;</code> + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * <pre> + * A page token, received from a previous + * [KeyTrackingService.SearchProtectedResources][google.cloud.kms.inventory.v1.KeyTrackingService.SearchProtectedResources] + * call. Provide this to retrieve the subsequent page. + * + * When paginating, all other parameters provided to + * [KeyTrackingService.SearchProtectedResources][google.cloud.kms.inventory.v1.KeyTrackingService.SearchProtectedResources] + * must match the call that provided the page token. + * </pre> + * + * <code>string page_token = 4;</code> + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * <pre> + * A page token, received from a previous + * [KeyTrackingService.SearchProtectedResources][google.cloud.kms.inventory.v1.KeyTrackingService.SearchProtectedResources] + * call. Provide this to retrieve the subsequent page. + * + * When paginating, all other parameters provided to + * [KeyTrackingService.SearchProtectedResources][google.cloud.kms.inventory.v1.KeyTrackingService.SearchProtectedResources] + * must match the call that provided the page token. + * </pre> + * + * <code>string page_token = 4;</code> + * @return The bytes for pageToken. + */ + @java.lang.Override + 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); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESOURCE_TYPES_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList resourceTypes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * <pre> + * Optional. A list of resource types that this request searches for. If + * empty, it will search all the [trackable resource + * types](https://cloud.google.com/kms/docs/view-key-usage#tracked-resource-types). + * + * Regular expressions are also supported. For example: + * + * * `compute.googleapis.com.*` snapshots resources whose type starts + * with `compute.googleapis.com`. + * * `.*Image` snapshots resources whose type ends with `Image`. + * * `.*Image.*` snapshots resources whose type contains `Image`. + * + * See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported + * regular expression syntax. If the regular expression does not match any + * supported resource type, an INVALID_ARGUMENT error will be returned. + * </pre> + * + * <code>repeated string resource_types = 5 [(.google.api.field_behavior) = OPTIONAL];</code> + * @return A list containing the resourceTypes. + */ + public com.google.protobuf.ProtocolStringList + getResourceTypesList() { + return resourceTypes_; + } + /** + * <pre> + * Optional. A list of resource types that this request searches for. If + * empty, it will search all the [trackable resource + * types](https://cloud.google.com/kms/docs/view-key-usage#tracked-resource-types). + * + * Regular expressions are also supported. For example: + * + * * `compute.googleapis.com.*` snapshots resources whose type starts + * with `compute.googleapis.com`. + * * `.*Image` snapshots resources whose type ends with `Image`. + * * `.*Image.*` snapshots resources whose type contains `Image`. + * + * See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported + * regular expression syntax. If the regular expression does not match any + * supported resource type, an INVALID_ARGUMENT error will be returned. + * </pre> + * + * <code>repeated string resource_types = 5 [(.google.api.field_behavior) = OPTIONAL];</code> + * @return The count of resourceTypes. + */ + public int getResourceTypesCount() { + return resourceTypes_.size(); + } + /** + * <pre> + * Optional. A list of resource types that this request searches for. If + * empty, it will search all the [trackable resource + * types](https://cloud.google.com/kms/docs/view-key-usage#tracked-resource-types). + * + * Regular expressions are also supported. For example: + * + * * `compute.googleapis.com.*` snapshots resources whose type starts + * with `compute.googleapis.com`. + * * `.*Image` snapshots resources whose type ends with `Image`. + * * `.*Image.*` snapshots resources whose type contains `Image`. + * + * See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported + * regular expression syntax. If the regular expression does not match any + * supported resource type, an INVALID_ARGUMENT error will be returned. + * </pre> + * + * <code>repeated string resource_types = 5 [(.google.api.field_behavior) = OPTIONAL];</code> + * @param index The index of the element to return. + * @return The resourceTypes at the given index. + */ + public java.lang.String getResourceTypes(int index) { + return resourceTypes_.get(index); + } + /** + * <pre> + * Optional. A list of resource types that this request searches for. If + * empty, it will search all the [trackable resource + * types](https://cloud.google.com/kms/docs/view-key-usage#tracked-resource-types). + * + * Regular expressions are also supported. For example: + * + * * `compute.googleapis.com.*` snapshots resources whose type starts + * with `compute.googleapis.com`. + * * `.*Image` snapshots resources whose type ends with `Image`. + * * `.*Image.*` snapshots resources whose type contains `Image`. + * + * See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported + * regular expression syntax. If the regular expression does not match any + * supported resource type, an INVALID_ARGUMENT error will be returned. + * </pre> + * + * <code>repeated string resource_types = 5 [(.google.api.field_behavior) = OPTIONAL];</code> + * @param index The index of the value to return. + * @return The bytes of the resourceTypes at the given index. + */ + public com.google.protobuf.ByteString + getResourceTypesBytes(int index) { + return resourceTypes_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cryptoKey_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, cryptoKey_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(scope_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, scope_); + } + if (pageSize_ != 0) { + output.writeInt32(3, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pageToken_); + } + for (int i = 0; i < resourceTypes_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, resourceTypes_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cryptoKey_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, cryptoKey_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(scope_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, scope_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); + } + { + int dataSize = 0; + for (int i = 0; i < resourceTypes_.size(); i++) { + dataSize += computeStringSizeNoTag(resourceTypes_.getRaw(i)); + } + size += dataSize; + size += 1 * getResourceTypesList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest)) { + return super.equals(obj); + } + com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest other = (com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest) obj; + + if (!getScope() + .equals(other.getScope())) return false; + if (!getCryptoKey() + .equals(other.getCryptoKey())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getResourceTypesList() + .equals(other.getResourceTypesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SCOPE_FIELD_NUMBER; + hash = (53 * hash) + getScope().hashCode(); + hash = (37 * hash) + CRYPTO_KEY_FIELD_NUMBER; + hash = (53 * hash) + getCryptoKey().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + if (getResourceTypesCount() > 0) { + hash = (37 * hash) + RESOURCE_TYPES_FIELD_NUMBER; + hash = (53 * hash) + getResourceTypesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest 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.kms.inventory.v1.SearchProtectedResourcesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest 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.kms.inventory.v1.SearchProtectedResourcesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest 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.kms.inventory.v1.SearchProtectedResourcesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest parseDelimitedFrom( + java.io.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.kms.inventory.v1.SearchProtectedResourcesRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * <pre> + * Request message for + * [KeyTrackingService.SearchProtectedResources][google.cloud.kms.inventory.v1.KeyTrackingService.SearchProtectedResources]. + * </pre> + * + * Protobuf type {@code google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements + // @@protoc_insertion_point(builder_implements:google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest) + com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.kms.inventory.v1.KeyTrackingServiceProto.internal_static_google_cloud_kms_inventory_v1_SearchProtectedResourcesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.kms.inventory.v1.KeyTrackingServiceProto.internal_static_google_cloud_kms_inventory_v1_SearchProtectedResourcesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest.class, com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest.Builder.class); + } + + // Construct using com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + scope_ = ""; + cryptoKey_ = ""; + pageSize_ = 0; + pageToken_ = ""; + resourceTypes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.kms.inventory.v1.KeyTrackingServiceProto.internal_static_google_cloud_kms_inventory_v1_SearchProtectedResourcesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest getDefaultInstanceForType() { + return com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest build() { + com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest buildPartial() { + com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest result = new com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.scope_ = scope_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.cryptoKey_ = cryptoKey_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + resourceTypes_.makeImmutable(); + result.resourceTypes_ = resourceTypes_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest) { + return mergeFrom((com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest other) { + if (other == com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest.getDefaultInstance()) return this; + if (!other.getScope().isEmpty()) { + scope_ = other.scope_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getCryptoKey().isEmpty()) { + cryptoKey_ = other.cryptoKey_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.resourceTypes_.isEmpty()) { + if (resourceTypes_.isEmpty()) { + resourceTypes_ = other.resourceTypes_; + bitField0_ |= 0x00000010; + } else { + ensureResourceTypesIsMutable(); + resourceTypes_.addAll(other.resourceTypes_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + cryptoKey_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 10 + case 18: { + scope_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 18 + case 24: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + ensureResourceTypesIsMutable(); + resourceTypes_.add(s); + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object scope_ = ""; + /** + * <pre> + * Required. Resource name of the organization. + * Example: organizations/123 + * </pre> + * + * <code>string scope = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> + * @return The scope. + */ + public java.lang.String getScope() { + java.lang.Object ref = scope_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + scope_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * <pre> + * Required. Resource name of the organization. + * Example: organizations/123 + * </pre> + * + * <code>string scope = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> + * @return The bytes for scope. + */ + public com.google.protobuf.ByteString + getScopeBytes() { + java.lang.Object ref = scope_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + scope_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * <pre> + * Required. Resource name of the organization. + * Example: organizations/123 + * </pre> + * + * <code>string scope = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> + * @param value The scope to set. + * @return This builder for chaining. + */ + public Builder setScope( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + scope_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * <pre> + * Required. Resource name of the organization. + * Example: organizations/123 + * </pre> + * + * <code>string scope = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> + * @return This builder for chaining. + */ + public Builder clearScope() { + scope_ = getDefaultInstance().getScope(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * <pre> + * Required. Resource name of the organization. + * Example: organizations/123 + * </pre> + * + * <code>string scope = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> + * @param value The bytes for scope to set. + * @return This builder for chaining. + */ + public Builder setScopeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + scope_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object cryptoKey_ = ""; + /** + * <pre> + * Required. The resource name of the + * [CryptoKey][google.cloud.kms.v1.CryptoKey]. + * </pre> + * + * <code>string crypto_key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> + * @return The cryptoKey. + */ + public java.lang.String getCryptoKey() { + java.lang.Object ref = cryptoKey_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cryptoKey_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * <pre> + * Required. The resource name of the + * [CryptoKey][google.cloud.kms.v1.CryptoKey]. + * </pre> + * + * <code>string crypto_key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> + * @return The bytes for cryptoKey. + */ + public com.google.protobuf.ByteString + getCryptoKeyBytes() { + java.lang.Object ref = cryptoKey_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + cryptoKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * <pre> + * Required. The resource name of the + * [CryptoKey][google.cloud.kms.v1.CryptoKey]. + * </pre> + * + * <code>string crypto_key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> + * @param value The cryptoKey to set. + * @return This builder for chaining. + */ + public Builder setCryptoKey( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + cryptoKey_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * <pre> + * Required. The resource name of the + * [CryptoKey][google.cloud.kms.v1.CryptoKey]. + * </pre> + * + * <code>string crypto_key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> + * @return This builder for chaining. + */ + public Builder clearCryptoKey() { + cryptoKey_ = getDefaultInstance().getCryptoKey(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * <pre> + * Required. The resource name of the + * [CryptoKey][google.cloud.kms.v1.CryptoKey]. + * </pre> + * + * <code>string crypto_key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> + * @param value The bytes for cryptoKey to set. + * @return This builder for chaining. + */ + public Builder setCryptoKeyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + cryptoKey_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int pageSize_ ; + /** + * <pre> + * The maximum number of resources to return. The service may return fewer + * than this value. + * If unspecified, at most 500 resources will be returned. + * The maximum value is 500; values above 500 will be coerced to 500. + * </pre> + * + * <code>int32 page_size = 3;</code> + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * <pre> + * The maximum number of resources to return. The service may return fewer + * than this value. + * If unspecified, at most 500 resources will be returned. + * The maximum value is 500; values above 500 will be coerced to 500. + * </pre> + * + * <code>int32 page_size = 3;</code> + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * <pre> + * The maximum number of resources to return. The service may return fewer + * than this value. + * If unspecified, at most 500 resources will be returned. + * The maximum value is 500; values above 500 will be coerced to 500. + * </pre> + * + * <code>int32 page_size = 3;</code> + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000004); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * <pre> + * A page token, received from a previous + * [KeyTrackingService.SearchProtectedResources][google.cloud.kms.inventory.v1.KeyTrackingService.SearchProtectedResources] + * call. Provide this to retrieve the subsequent page. + * + * When paginating, all other parameters provided to + * [KeyTrackingService.SearchProtectedResources][google.cloud.kms.inventory.v1.KeyTrackingService.SearchProtectedResources] + * must match the call that provided the page token. + * </pre> + * + * <code>string page_token = 4;</code> + * @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; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * <pre> + * A page token, received from a previous + * [KeyTrackingService.SearchProtectedResources][google.cloud.kms.inventory.v1.KeyTrackingService.SearchProtectedResources] + * call. Provide this to retrieve the subsequent page. + * + * When paginating, all other parameters provided to + * [KeyTrackingService.SearchProtectedResources][google.cloud.kms.inventory.v1.KeyTrackingService.SearchProtectedResources] + * must match the call that provided the page token. + * </pre> + * + * <code>string page_token = 4;</code> + * @return The bytes for pageToken. + */ + 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); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * <pre> + * A page token, received from a previous + * [KeyTrackingService.SearchProtectedResources][google.cloud.kms.inventory.v1.KeyTrackingService.SearchProtectedResources] + * call. Provide this to retrieve the subsequent page. + * + * When paginating, all other parameters provided to + * [KeyTrackingService.SearchProtectedResources][google.cloud.kms.inventory.v1.KeyTrackingService.SearchProtectedResources] + * must match the call that provided the page token. + * </pre> + * + * <code>string page_token = 4;</code> + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + pageToken_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * <pre> + * A page token, received from a previous + * [KeyTrackingService.SearchProtectedResources][google.cloud.kms.inventory.v1.KeyTrackingService.SearchProtectedResources] + * call. Provide this to retrieve the subsequent page. + * + * When paginating, all other parameters provided to + * [KeyTrackingService.SearchProtectedResources][google.cloud.kms.inventory.v1.KeyTrackingService.SearchProtectedResources] + * must match the call that provided the page token. + * </pre> + * + * <code>string page_token = 4;</code> + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * <pre> + * A page token, received from a previous + * [KeyTrackingService.SearchProtectedResources][google.cloud.kms.inventory.v1.KeyTrackingService.SearchProtectedResources] + * call. Provide this to retrieve the subsequent page. + * + * When paginating, all other parameters provided to + * [KeyTrackingService.SearchProtectedResources][google.cloud.kms.inventory.v1.KeyTrackingService.SearchProtectedResources] + * must match the call that provided the page token. + * </pre> + * + * <code>string page_token = 4;</code> + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList resourceTypes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureResourceTypesIsMutable() { + if (!resourceTypes_.isModifiable()) { + resourceTypes_ = new com.google.protobuf.LazyStringArrayList(resourceTypes_); + } + bitField0_ |= 0x00000010; + } + /** + * <pre> + * Optional. A list of resource types that this request searches for. If + * empty, it will search all the [trackable resource + * types](https://cloud.google.com/kms/docs/view-key-usage#tracked-resource-types). + * + * Regular expressions are also supported. For example: + * + * * `compute.googleapis.com.*` snapshots resources whose type starts + * with `compute.googleapis.com`. + * * `.*Image` snapshots resources whose type ends with `Image`. + * * `.*Image.*` snapshots resources whose type contains `Image`. + * + * See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported + * regular expression syntax. If the regular expression does not match any + * supported resource type, an INVALID_ARGUMENT error will be returned. + * </pre> + * + * <code>repeated string resource_types = 5 [(.google.api.field_behavior) = OPTIONAL];</code> + * @return A list containing the resourceTypes. + */ + public com.google.protobuf.ProtocolStringList + getResourceTypesList() { + resourceTypes_.makeImmutable(); + return resourceTypes_; + } + /** + * <pre> + * Optional. A list of resource types that this request searches for. If + * empty, it will search all the [trackable resource + * types](https://cloud.google.com/kms/docs/view-key-usage#tracked-resource-types). + * + * Regular expressions are also supported. For example: + * + * * `compute.googleapis.com.*` snapshots resources whose type starts + * with `compute.googleapis.com`. + * * `.*Image` snapshots resources whose type ends with `Image`. + * * `.*Image.*` snapshots resources whose type contains `Image`. + * + * See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported + * regular expression syntax. If the regular expression does not match any + * supported resource type, an INVALID_ARGUMENT error will be returned. + * </pre> + * + * <code>repeated string resource_types = 5 [(.google.api.field_behavior) = OPTIONAL];</code> + * @return The count of resourceTypes. + */ + public int getResourceTypesCount() { + return resourceTypes_.size(); + } + /** + * <pre> + * Optional. A list of resource types that this request searches for. If + * empty, it will search all the [trackable resource + * types](https://cloud.google.com/kms/docs/view-key-usage#tracked-resource-types). + * + * Regular expressions are also supported. For example: + * + * * `compute.googleapis.com.*` snapshots resources whose type starts + * with `compute.googleapis.com`. + * * `.*Image` snapshots resources whose type ends with `Image`. + * * `.*Image.*` snapshots resources whose type contains `Image`. + * + * See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported + * regular expression syntax. If the regular expression does not match any + * supported resource type, an INVALID_ARGUMENT error will be returned. + * </pre> + * + * <code>repeated string resource_types = 5 [(.google.api.field_behavior) = OPTIONAL];</code> + * @param index The index of the element to return. + * @return The resourceTypes at the given index. + */ + public java.lang.String getResourceTypes(int index) { + return resourceTypes_.get(index); + } + /** + * <pre> + * Optional. A list of resource types that this request searches for. If + * empty, it will search all the [trackable resource + * types](https://cloud.google.com/kms/docs/view-key-usage#tracked-resource-types). + * + * Regular expressions are also supported. For example: + * + * * `compute.googleapis.com.*` snapshots resources whose type starts + * with `compute.googleapis.com`. + * * `.*Image` snapshots resources whose type ends with `Image`. + * * `.*Image.*` snapshots resources whose type contains `Image`. + * + * See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported + * regular expression syntax. If the regular expression does not match any + * supported resource type, an INVALID_ARGUMENT error will be returned. + * </pre> + * + * <code>repeated string resource_types = 5 [(.google.api.field_behavior) = OPTIONAL];</code> + * @param index The index of the value to return. + * @return The bytes of the resourceTypes at the given index. + */ + public com.google.protobuf.ByteString + getResourceTypesBytes(int index) { + return resourceTypes_.getByteString(index); + } + /** + * <pre> + * Optional. A list of resource types that this request searches for. If + * empty, it will search all the [trackable resource + * types](https://cloud.google.com/kms/docs/view-key-usage#tracked-resource-types). + * + * Regular expressions are also supported. For example: + * + * * `compute.googleapis.com.*` snapshots resources whose type starts + * with `compute.googleapis.com`. + * * `.*Image` snapshots resources whose type ends with `Image`. + * * `.*Image.*` snapshots resources whose type contains `Image`. + * + * See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported + * regular expression syntax. If the regular expression does not match any + * supported resource type, an INVALID_ARGUMENT error will be returned. + * </pre> + * + * <code>repeated string resource_types = 5 [(.google.api.field_behavior) = OPTIONAL];</code> + * @param index The index to set the value at. + * @param value The resourceTypes to set. + * @return This builder for chaining. + */ + public Builder setResourceTypes( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureResourceTypesIsMutable(); + resourceTypes_.set(index, value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * <pre> + * Optional. A list of resource types that this request searches for. If + * empty, it will search all the [trackable resource + * types](https://cloud.google.com/kms/docs/view-key-usage#tracked-resource-types). + * + * Regular expressions are also supported. For example: + * + * * `compute.googleapis.com.*` snapshots resources whose type starts + * with `compute.googleapis.com`. + * * `.*Image` snapshots resources whose type ends with `Image`. + * * `.*Image.*` snapshots resources whose type contains `Image`. + * + * See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported + * regular expression syntax. If the regular expression does not match any + * supported resource type, an INVALID_ARGUMENT error will be returned. + * </pre> + * + * <code>repeated string resource_types = 5 [(.google.api.field_behavior) = OPTIONAL];</code> + * @param value The resourceTypes to add. + * @return This builder for chaining. + */ + public Builder addResourceTypes( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureResourceTypesIsMutable(); + resourceTypes_.add(value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * <pre> + * Optional. A list of resource types that this request searches for. If + * empty, it will search all the [trackable resource + * types](https://cloud.google.com/kms/docs/view-key-usage#tracked-resource-types). + * + * Regular expressions are also supported. For example: + * + * * `compute.googleapis.com.*` snapshots resources whose type starts + * with `compute.googleapis.com`. + * * `.*Image` snapshots resources whose type ends with `Image`. + * * `.*Image.*` snapshots resources whose type contains `Image`. + * + * See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported + * regular expression syntax. If the regular expression does not match any + * supported resource type, an INVALID_ARGUMENT error will be returned. + * </pre> + * + * <code>repeated string resource_types = 5 [(.google.api.field_behavior) = OPTIONAL];</code> + * @param values The resourceTypes to add. + * @return This builder for chaining. + */ + public Builder addAllResourceTypes( + java.lang.Iterable<java.lang.String> values) { + ensureResourceTypesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, resourceTypes_); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * <pre> + * Optional. A list of resource types that this request searches for. If + * empty, it will search all the [trackable resource + * types](https://cloud.google.com/kms/docs/view-key-usage#tracked-resource-types). + * + * Regular expressions are also supported. For example: + * + * * `compute.googleapis.com.*` snapshots resources whose type starts + * with `compute.googleapis.com`. + * * `.*Image` snapshots resources whose type ends with `Image`. + * * `.*Image.*` snapshots resources whose type contains `Image`. + * + * See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported + * regular expression syntax. If the regular expression does not match any + * supported resource type, an INVALID_ARGUMENT error will be returned. + * </pre> + * + * <code>repeated string resource_types = 5 [(.google.api.field_behavior) = OPTIONAL];</code> + * @return This builder for chaining. + */ + public Builder clearResourceTypes() { + resourceTypes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010);; + onChanged(); + return this; + } + /** + * <pre> + * Optional. A list of resource types that this request searches for. If + * empty, it will search all the [trackable resource + * types](https://cloud.google.com/kms/docs/view-key-usage#tracked-resource-types). + * + * Regular expressions are also supported. For example: + * + * * `compute.googleapis.com.*` snapshots resources whose type starts + * with `compute.googleapis.com`. + * * `.*Image` snapshots resources whose type ends with `Image`. + * * `.*Image.*` snapshots resources whose type contains `Image`. + * + * See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported + * regular expression syntax. If the regular expression does not match any + * supported resource type, an INVALID_ARGUMENT error will be returned. + * </pre> + * + * <code>repeated string resource_types = 5 [(.google.api.field_behavior) = OPTIONAL];</code> + * @param value The bytes of the resourceTypes to add. + * @return This builder for chaining. + */ + public Builder addResourceTypesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureResourceTypesIsMutable(); + resourceTypes_.add(value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest) + private static final com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest(); + } + + public static com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser<SearchProtectedResourcesRequest> + PARSER = new com.google.protobuf.AbstractParser<SearchProtectedResourcesRequest>() { + @java.lang.Override + public SearchProtectedResourcesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser<SearchProtectedResourcesRequest> parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser<SearchProtectedResourcesRequest> getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/SearchProtectedResourcesRequestOrBuilder.java b/owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/SearchProtectedResourcesRequestOrBuilder.java new file mode 100644 index 000000000000..89d7d006cd7a --- /dev/null +++ b/owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/SearchProtectedResourcesRequestOrBuilder.java @@ -0,0 +1,191 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/kms/inventory/v1/key_tracking_service.proto + +package com.google.cloud.kms.inventory.v1; + +public interface SearchProtectedResourcesRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * <pre> + * Required. Resource name of the organization. + * Example: organizations/123 + * </pre> + * + * <code>string scope = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> + * @return The scope. + */ + java.lang.String getScope(); + /** + * <pre> + * Required. Resource name of the organization. + * Example: organizations/123 + * </pre> + * + * <code>string scope = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> + * @return The bytes for scope. + */ + com.google.protobuf.ByteString + getScopeBytes(); + + /** + * <pre> + * Required. The resource name of the + * [CryptoKey][google.cloud.kms.v1.CryptoKey]. + * </pre> + * + * <code>string crypto_key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> + * @return The cryptoKey. + */ + java.lang.String getCryptoKey(); + /** + * <pre> + * Required. The resource name of the + * [CryptoKey][google.cloud.kms.v1.CryptoKey]. + * </pre> + * + * <code>string crypto_key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> + * @return The bytes for cryptoKey. + */ + com.google.protobuf.ByteString + getCryptoKeyBytes(); + + /** + * <pre> + * The maximum number of resources to return. The service may return fewer + * than this value. + * If unspecified, at most 500 resources will be returned. + * The maximum value is 500; values above 500 will be coerced to 500. + * </pre> + * + * <code>int32 page_size = 3;</code> + * @return The pageSize. + */ + int getPageSize(); + + /** + * <pre> + * A page token, received from a previous + * [KeyTrackingService.SearchProtectedResources][google.cloud.kms.inventory.v1.KeyTrackingService.SearchProtectedResources] + * call. Provide this to retrieve the subsequent page. + * + * When paginating, all other parameters provided to + * [KeyTrackingService.SearchProtectedResources][google.cloud.kms.inventory.v1.KeyTrackingService.SearchProtectedResources] + * must match the call that provided the page token. + * </pre> + * + * <code>string page_token = 4;</code> + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * <pre> + * A page token, received from a previous + * [KeyTrackingService.SearchProtectedResources][google.cloud.kms.inventory.v1.KeyTrackingService.SearchProtectedResources] + * call. Provide this to retrieve the subsequent page. + * + * When paginating, all other parameters provided to + * [KeyTrackingService.SearchProtectedResources][google.cloud.kms.inventory.v1.KeyTrackingService.SearchProtectedResources] + * must match the call that provided the page token. + * </pre> + * + * <code>string page_token = 4;</code> + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString + getPageTokenBytes(); + + /** + * <pre> + * Optional. A list of resource types that this request searches for. If + * empty, it will search all the [trackable resource + * types](https://cloud.google.com/kms/docs/view-key-usage#tracked-resource-types). + * + * Regular expressions are also supported. For example: + * + * * `compute.googleapis.com.*` snapshots resources whose type starts + * with `compute.googleapis.com`. + * * `.*Image` snapshots resources whose type ends with `Image`. + * * `.*Image.*` snapshots resources whose type contains `Image`. + * + * See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported + * regular expression syntax. If the regular expression does not match any + * supported resource type, an INVALID_ARGUMENT error will be returned. + * </pre> + * + * <code>repeated string resource_types = 5 [(.google.api.field_behavior) = OPTIONAL];</code> + * @return A list containing the resourceTypes. + */ + java.util.List<java.lang.String> + getResourceTypesList(); + /** + * <pre> + * Optional. A list of resource types that this request searches for. If + * empty, it will search all the [trackable resource + * types](https://cloud.google.com/kms/docs/view-key-usage#tracked-resource-types). + * + * Regular expressions are also supported. For example: + * + * * `compute.googleapis.com.*` snapshots resources whose type starts + * with `compute.googleapis.com`. + * * `.*Image` snapshots resources whose type ends with `Image`. + * * `.*Image.*` snapshots resources whose type contains `Image`. + * + * See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported + * regular expression syntax. If the regular expression does not match any + * supported resource type, an INVALID_ARGUMENT error will be returned. + * </pre> + * + * <code>repeated string resource_types = 5 [(.google.api.field_behavior) = OPTIONAL];</code> + * @return The count of resourceTypes. + */ + int getResourceTypesCount(); + /** + * <pre> + * Optional. A list of resource types that this request searches for. If + * empty, it will search all the [trackable resource + * types](https://cloud.google.com/kms/docs/view-key-usage#tracked-resource-types). + * + * Regular expressions are also supported. For example: + * + * * `compute.googleapis.com.*` snapshots resources whose type starts + * with `compute.googleapis.com`. + * * `.*Image` snapshots resources whose type ends with `Image`. + * * `.*Image.*` snapshots resources whose type contains `Image`. + * + * See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported + * regular expression syntax. If the regular expression does not match any + * supported resource type, an INVALID_ARGUMENT error will be returned. + * </pre> + * + * <code>repeated string resource_types = 5 [(.google.api.field_behavior) = OPTIONAL];</code> + * @param index The index of the element to return. + * @return The resourceTypes at the given index. + */ + java.lang.String getResourceTypes(int index); + /** + * <pre> + * Optional. A list of resource types that this request searches for. If + * empty, it will search all the [trackable resource + * types](https://cloud.google.com/kms/docs/view-key-usage#tracked-resource-types). + * + * Regular expressions are also supported. For example: + * + * * `compute.googleapis.com.*` snapshots resources whose type starts + * with `compute.googleapis.com`. + * * `.*Image` snapshots resources whose type ends with `Image`. + * * `.*Image.*` snapshots resources whose type contains `Image`. + * + * See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported + * regular expression syntax. If the regular expression does not match any + * supported resource type, an INVALID_ARGUMENT error will be returned. + * </pre> + * + * <code>repeated string resource_types = 5 [(.google.api.field_behavior) = OPTIONAL];</code> + * @param index The index of the value to return. + * @return The bytes of the resourceTypes at the given index. + */ + com.google.protobuf.ByteString + getResourceTypesBytes(int index); +} diff --git a/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/SearchProtectedResourcesResponse.java b/owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/SearchProtectedResourcesResponse.java similarity index 68% rename from java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/SearchProtectedResourcesResponse.java rename to owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/SearchProtectedResourcesResponse.java index 4cbe302e9b83..215334b80afa 100644 --- a/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/SearchProtectedResourcesResponse.java +++ b/owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/SearchProtectedResourcesResponse.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/kms/inventory/v1/key_tracking_service.proto package com.google.cloud.kms.inventory.v1; /** - * - * * <pre> * Response message for * [KeyTrackingService.SearchProtectedResources][google.cloud.kms.inventory.v1.KeyTrackingService.SearchProtectedResources]. @@ -28,17 +11,15 @@ * * Protobuf type {@code google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse} */ -public final class SearchProtectedResourcesResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SearchProtectedResourcesResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse) SearchProtectedResourcesResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SearchProtectedResourcesResponse.newBuilder() to construct. - private SearchProtectedResourcesResponse( - com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { + private SearchProtectedResourcesResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } - private SearchProtectedResourcesResponse() { protectedResources_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -46,32 +27,28 @@ private SearchProtectedResourcesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SearchProtectedResourcesResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.kms.inventory.v1.KeyTrackingServiceProto - .internal_static_google_cloud_kms_inventory_v1_SearchProtectedResourcesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.kms.inventory.v1.KeyTrackingServiceProto.internal_static_google_cloud_kms_inventory_v1_SearchProtectedResourcesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.kms.inventory.v1.KeyTrackingServiceProto - .internal_static_google_cloud_kms_inventory_v1_SearchProtectedResourcesResponse_fieldAccessorTable + return com.google.cloud.kms.inventory.v1.KeyTrackingServiceProto.internal_static_google_cloud_kms_inventory_v1_SearchProtectedResourcesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse.class, - com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse.Builder.class); + com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse.class, com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse.Builder.class); } public static final int PROTECTED_RESOURCES_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List<com.google.cloud.kms.inventory.v1.ProtectedResource> protectedResources_; /** - * - * * <pre> * Protected resources for this page. * </pre> @@ -79,13 +56,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * <code>repeated .google.cloud.kms.inventory.v1.ProtectedResource protected_resources = 1;</code> */ @java.lang.Override - public java.util.List<com.google.cloud.kms.inventory.v1.ProtectedResource> - getProtectedResourcesList() { + public java.util.List<com.google.cloud.kms.inventory.v1.ProtectedResource> getProtectedResourcesList() { return protectedResources_; } /** - * - * * <pre> * Protected resources for this page. * </pre> @@ -93,13 +67,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * <code>repeated .google.cloud.kms.inventory.v1.ProtectedResource protected_resources = 1;</code> */ @java.lang.Override - public java.util.List<? extends com.google.cloud.kms.inventory.v1.ProtectedResourceOrBuilder> + public java.util.List<? extends com.google.cloud.kms.inventory.v1.ProtectedResourceOrBuilder> getProtectedResourcesOrBuilderList() { return protectedResources_; } /** - * - * * <pre> * Protected resources for this page. * </pre> @@ -111,8 +83,6 @@ public int getProtectedResourcesCount() { return protectedResources_.size(); } /** - * - * * <pre> * Protected resources for this page. * </pre> @@ -124,8 +94,6 @@ public com.google.cloud.kms.inventory.v1.ProtectedResource getProtectedResources return protectedResources_.get(index); } /** - * - * * <pre> * Protected resources for this page. * </pre> @@ -133,25 +101,21 @@ public com.google.cloud.kms.inventory.v1.ProtectedResource getProtectedResources * <code>repeated .google.cloud.kms.inventory.v1.ProtectedResource protected_resources = 1;</code> */ @java.lang.Override - public com.google.cloud.kms.inventory.v1.ProtectedResourceOrBuilder - getProtectedResourcesOrBuilder(int index) { + public com.google.cloud.kms.inventory.v1.ProtectedResourceOrBuilder getProtectedResourcesOrBuilder( + int index) { return protectedResources_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * * <pre> * A token that can be sent as `page_token` to retrieve the next page. * If this field is omitted, there are no subsequent pages. * </pre> * * <code>string next_page_token = 2;</code> - * * @return The nextPageToken. */ @java.lang.Override @@ -160,30 +124,30 @@ 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; } } /** - * - * * <pre> * A token that can be sent as `page_token` to retrieve the next page. * If this field is omitted, there are no subsequent pages. * </pre> * * <code>string next_page_token = 2;</code> - * * @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 { @@ -192,7 +156,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -204,7 +167,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 < protectedResources_.size(); i++) { output.writeMessage(1, protectedResources_.get(i)); } @@ -221,8 +185,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < protectedResources_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, protectedResources_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, protectedResources_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -235,16 +199,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.kms.inventory.v1.SearchProtectedResourcesResponse)) { return super.equals(obj); } - com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse other = - (com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse) obj; + com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse other = (com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse) obj; - if (!getProtectedResourcesList().equals(other.getProtectedResourcesList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getProtectedResourcesList() + .equals(other.getProtectedResourcesList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -268,105 +233,98 @@ public int hashCode() { } public static com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse 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.kms.inventory.v1.SearchProtectedResourcesResponse 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.kms.inventory.v1.SearchProtectedResourcesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse 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.kms.inventory.v1.SearchProtectedResourcesResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse 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.kms.inventory.v1.SearchProtectedResourcesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse 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.kms.inventory.v1.SearchProtectedResourcesResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse - parseDelimitedFrom( - java.io.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.kms.inventory.v1.SearchProtectedResourcesResponse parseDelimitedFrom( + java.io.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.kms.inventory.v1.SearchProtectedResourcesResponse 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.kms.inventory.v1.SearchProtectedResourcesResponse 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.kms.inventory.v1.SearchProtectedResourcesResponse prototype) { + public static Builder newBuilder(com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse 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; } /** - * - * * <pre> * Response message for * [KeyTrackingService.SearchProtectedResources][google.cloud.kms.inventory.v1.KeyTrackingService.SearchProtectedResources]. @@ -374,33 +332,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse) com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.kms.inventory.v1.KeyTrackingServiceProto - .internal_static_google_cloud_kms_inventory_v1_SearchProtectedResourcesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.kms.inventory.v1.KeyTrackingServiceProto.internal_static_google_cloud_kms_inventory_v1_SearchProtectedResourcesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.kms.inventory.v1.KeyTrackingServiceProto - .internal_static_google_cloud_kms_inventory_v1_SearchProtectedResourcesResponse_fieldAccessorTable + return com.google.cloud.kms.inventory.v1.KeyTrackingServiceProto.internal_static_google_cloud_kms_inventory_v1_SearchProtectedResourcesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse.class, - com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse.Builder.class); + com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse.class, com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse.Builder.class); } - // Construct using - // com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse.newBuilder() - private Builder() {} + // Construct using com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -417,16 +375,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.kms.inventory.v1.KeyTrackingServiceProto - .internal_static_google_cloud_kms_inventory_v1_SearchProtectedResourcesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.kms.inventory.v1.KeyTrackingServiceProto.internal_static_google_cloud_kms_inventory_v1_SearchProtectedResourcesResponse_descriptor; } @java.lang.Override - public com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse - getDefaultInstanceForType() { - return com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse - .getDefaultInstance(); + public com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse getDefaultInstanceForType() { + return com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse.getDefaultInstance(); } @java.lang.Override @@ -440,18 +396,14 @@ public com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse build( @java.lang.Override public com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse buildPartial() { - com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse result = - new com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse(this); + com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse result = new com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse result) { + private void buildPartialRepeatedFields(com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse result) { if (protectedResourcesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { protectedResources_ = java.util.Collections.unmodifiableList(protectedResources_); @@ -463,8 +415,7 @@ private void buildPartialRepeatedFields( } } - private void buildPartial0( - com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse result) { + private void buildPartial0(com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -475,51 +426,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse) { - return mergeFrom( - (com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse) other); + return mergeFrom((com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse other) { - if (other - == com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse other) { + if (other == com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse.getDefaultInstance()) return this; if (protectedResourcesBuilder_ == null) { if (!other.protectedResources_.isEmpty()) { if (protectedResources_.isEmpty()) { @@ -538,10 +484,9 @@ public Builder mergeFrom( protectedResourcesBuilder_ = null; protectedResources_ = other.protectedResources_; bitField0_ = (bitField0_ & ~0x00000001); - protectedResourcesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getProtectedResourcesFieldBuilder() - : null; + protectedResourcesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getProtectedResourcesFieldBuilder() : null; } else { protectedResourcesBuilder_.addAllMessages(other.protectedResources_); } @@ -578,33 +523,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.kms.inventory.v1.ProtectedResource m = - input.readMessage( - com.google.cloud.kms.inventory.v1.ProtectedResource.parser(), - extensionRegistry); - if (protectedResourcesBuilder_ == null) { - ensureProtectedResourcesIsMutable(); - protectedResources_.add(m); - } else { - protectedResourcesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.kms.inventory.v1.ProtectedResource m = + input.readMessage( + com.google.cloud.kms.inventory.v1.ProtectedResource.parser(), + extensionRegistry); + if (protectedResourcesBuilder_ == null) { + ensureProtectedResourcesIsMutable(); + protectedResources_.add(m); + } else { + protectedResourcesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -614,39 +556,28 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private java.util.List<com.google.cloud.kms.inventory.v1.ProtectedResource> - protectedResources_ = java.util.Collections.emptyList(); - + private java.util.List<com.google.cloud.kms.inventory.v1.ProtectedResource> protectedResources_ = + java.util.Collections.emptyList(); private void ensureProtectedResourcesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - protectedResources_ = - new java.util.ArrayList<com.google.cloud.kms.inventory.v1.ProtectedResource>( - protectedResources_); + protectedResources_ = new java.util.ArrayList<com.google.cloud.kms.inventory.v1.ProtectedResource>(protectedResources_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.kms.inventory.v1.ProtectedResource, - com.google.cloud.kms.inventory.v1.ProtectedResource.Builder, - com.google.cloud.kms.inventory.v1.ProtectedResourceOrBuilder> - protectedResourcesBuilder_; + com.google.cloud.kms.inventory.v1.ProtectedResource, com.google.cloud.kms.inventory.v1.ProtectedResource.Builder, com.google.cloud.kms.inventory.v1.ProtectedResourceOrBuilder> protectedResourcesBuilder_; /** - * - * * <pre> * Protected resources for this page. * </pre> * - * <code>repeated .google.cloud.kms.inventory.v1.ProtectedResource protected_resources = 1; - * </code> + * <code>repeated .google.cloud.kms.inventory.v1.ProtectedResource protected_resources = 1;</code> */ - public java.util.List<com.google.cloud.kms.inventory.v1.ProtectedResource> - getProtectedResourcesList() { + public java.util.List<com.google.cloud.kms.inventory.v1.ProtectedResource> getProtectedResourcesList() { if (protectedResourcesBuilder_ == null) { return java.util.Collections.unmodifiableList(protectedResources_); } else { @@ -654,14 +585,11 @@ private void ensureProtectedResourcesIsMutable() { } } /** - * - * * <pre> * Protected resources for this page. * </pre> * - * <code>repeated .google.cloud.kms.inventory.v1.ProtectedResource protected_resources = 1; - * </code> + * <code>repeated .google.cloud.kms.inventory.v1.ProtectedResource protected_resources = 1;</code> */ public int getProtectedResourcesCount() { if (protectedResourcesBuilder_ == null) { @@ -671,14 +599,11 @@ public int getProtectedResourcesCount() { } } /** - * - * * <pre> * Protected resources for this page. * </pre> * - * <code>repeated .google.cloud.kms.inventory.v1.ProtectedResource protected_resources = 1; - * </code> + * <code>repeated .google.cloud.kms.inventory.v1.ProtectedResource protected_resources = 1;</code> */ public com.google.cloud.kms.inventory.v1.ProtectedResource getProtectedResources(int index) { if (protectedResourcesBuilder_ == null) { @@ -688,14 +613,11 @@ public com.google.cloud.kms.inventory.v1.ProtectedResource getProtectedResources } } /** - * - * * <pre> * Protected resources for this page. * </pre> * - * <code>repeated .google.cloud.kms.inventory.v1.ProtectedResource protected_resources = 1; - * </code> + * <code>repeated .google.cloud.kms.inventory.v1.ProtectedResource protected_resources = 1;</code> */ public Builder setProtectedResources( int index, com.google.cloud.kms.inventory.v1.ProtectedResource value) { @@ -712,14 +634,11 @@ public Builder setProtectedResources( return this; } /** - * - * * <pre> * Protected resources for this page. * </pre> * - * <code>repeated .google.cloud.kms.inventory.v1.ProtectedResource protected_resources = 1; - * </code> + * <code>repeated .google.cloud.kms.inventory.v1.ProtectedResource protected_resources = 1;</code> */ public Builder setProtectedResources( int index, com.google.cloud.kms.inventory.v1.ProtectedResource.Builder builderForValue) { @@ -733,17 +652,13 @@ public Builder setProtectedResources( return this; } /** - * - * * <pre> * Protected resources for this page. * </pre> * - * <code>repeated .google.cloud.kms.inventory.v1.ProtectedResource protected_resources = 1; - * </code> + * <code>repeated .google.cloud.kms.inventory.v1.ProtectedResource protected_resources = 1;</code> */ - public Builder addProtectedResources( - com.google.cloud.kms.inventory.v1.ProtectedResource value) { + public Builder addProtectedResources(com.google.cloud.kms.inventory.v1.ProtectedResource value) { if (protectedResourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -757,14 +672,11 @@ public Builder addProtectedResources( return this; } /** - * - * * <pre> * Protected resources for this page. * </pre> * - * <code>repeated .google.cloud.kms.inventory.v1.ProtectedResource protected_resources = 1; - * </code> + * <code>repeated .google.cloud.kms.inventory.v1.ProtectedResource protected_resources = 1;</code> */ public Builder addProtectedResources( int index, com.google.cloud.kms.inventory.v1.ProtectedResource value) { @@ -781,14 +693,11 @@ public Builder addProtectedResources( return this; } /** - * - * * <pre> * Protected resources for this page. * </pre> * - * <code>repeated .google.cloud.kms.inventory.v1.ProtectedResource protected_resources = 1; - * </code> + * <code>repeated .google.cloud.kms.inventory.v1.ProtectedResource protected_resources = 1;</code> */ public Builder addProtectedResources( com.google.cloud.kms.inventory.v1.ProtectedResource.Builder builderForValue) { @@ -802,14 +711,11 @@ public Builder addProtectedResources( return this; } /** - * - * * <pre> * Protected resources for this page. * </pre> * - * <code>repeated .google.cloud.kms.inventory.v1.ProtectedResource protected_resources = 1; - * </code> + * <code>repeated .google.cloud.kms.inventory.v1.ProtectedResource protected_resources = 1;</code> */ public Builder addProtectedResources( int index, com.google.cloud.kms.inventory.v1.ProtectedResource.Builder builderForValue) { @@ -823,20 +729,18 @@ public Builder addProtectedResources( return this; } /** - * - * * <pre> * Protected resources for this page. * </pre> * - * <code>repeated .google.cloud.kms.inventory.v1.ProtectedResource protected_resources = 1; - * </code> + * <code>repeated .google.cloud.kms.inventory.v1.ProtectedResource protected_resources = 1;</code> */ public Builder addAllProtectedResources( java.lang.Iterable<? extends com.google.cloud.kms.inventory.v1.ProtectedResource> values) { if (protectedResourcesBuilder_ == null) { ensureProtectedResourcesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, protectedResources_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, protectedResources_); onChanged(); } else { protectedResourcesBuilder_.addAllMessages(values); @@ -844,14 +748,11 @@ public Builder addAllProtectedResources( return this; } /** - * - * * <pre> * Protected resources for this page. * </pre> * - * <code>repeated .google.cloud.kms.inventory.v1.ProtectedResource protected_resources = 1; - * </code> + * <code>repeated .google.cloud.kms.inventory.v1.ProtectedResource protected_resources = 1;</code> */ public Builder clearProtectedResources() { if (protectedResourcesBuilder_ == null) { @@ -864,14 +765,11 @@ public Builder clearProtectedResources() { return this; } /** - * - * * <pre> * Protected resources for this page. * </pre> * - * <code>repeated .google.cloud.kms.inventory.v1.ProtectedResource protected_resources = 1; - * </code> + * <code>repeated .google.cloud.kms.inventory.v1.ProtectedResource protected_resources = 1;</code> */ public Builder removeProtectedResources(int index) { if (protectedResourcesBuilder_ == null) { @@ -884,49 +782,39 @@ public Builder removeProtectedResources(int index) { return this; } /** - * - * * <pre> * Protected resources for this page. * </pre> * - * <code>repeated .google.cloud.kms.inventory.v1.ProtectedResource protected_resources = 1; - * </code> + * <code>repeated .google.cloud.kms.inventory.v1.ProtectedResource protected_resources = 1;</code> */ public com.google.cloud.kms.inventory.v1.ProtectedResource.Builder getProtectedResourcesBuilder( int index) { return getProtectedResourcesFieldBuilder().getBuilder(index); } /** - * - * * <pre> * Protected resources for this page. * </pre> * - * <code>repeated .google.cloud.kms.inventory.v1.ProtectedResource protected_resources = 1; - * </code> + * <code>repeated .google.cloud.kms.inventory.v1.ProtectedResource protected_resources = 1;</code> */ - public com.google.cloud.kms.inventory.v1.ProtectedResourceOrBuilder - getProtectedResourcesOrBuilder(int index) { + public com.google.cloud.kms.inventory.v1.ProtectedResourceOrBuilder getProtectedResourcesOrBuilder( + int index) { if (protectedResourcesBuilder_ == null) { - return protectedResources_.get(index); - } else { + return protectedResources_.get(index); } else { return protectedResourcesBuilder_.getMessageOrBuilder(index); } } /** - * - * * <pre> * Protected resources for this page. * </pre> * - * <code>repeated .google.cloud.kms.inventory.v1.ProtectedResource protected_resources = 1; - * </code> + * <code>repeated .google.cloud.kms.inventory.v1.ProtectedResource protected_resources = 1;</code> */ - public java.util.List<? extends com.google.cloud.kms.inventory.v1.ProtectedResourceOrBuilder> - getProtectedResourcesOrBuilderList() { + public java.util.List<? extends com.google.cloud.kms.inventory.v1.ProtectedResourceOrBuilder> + getProtectedResourcesOrBuilderList() { if (protectedResourcesBuilder_ != null) { return protectedResourcesBuilder_.getMessageOrBuilderList(); } else { @@ -934,62 +822,45 @@ public com.google.cloud.kms.inventory.v1.ProtectedResource.Builder getProtectedR } } /** - * - * * <pre> * Protected resources for this page. * </pre> * - * <code>repeated .google.cloud.kms.inventory.v1.ProtectedResource protected_resources = 1; - * </code> + * <code>repeated .google.cloud.kms.inventory.v1.ProtectedResource protected_resources = 1;</code> */ - public com.google.cloud.kms.inventory.v1.ProtectedResource.Builder - addProtectedResourcesBuilder() { - return getProtectedResourcesFieldBuilder() - .addBuilder(com.google.cloud.kms.inventory.v1.ProtectedResource.getDefaultInstance()); + public com.google.cloud.kms.inventory.v1.ProtectedResource.Builder addProtectedResourcesBuilder() { + return getProtectedResourcesFieldBuilder().addBuilder( + com.google.cloud.kms.inventory.v1.ProtectedResource.getDefaultInstance()); } /** - * - * * <pre> * Protected resources for this page. * </pre> * - * <code>repeated .google.cloud.kms.inventory.v1.ProtectedResource protected_resources = 1; - * </code> + * <code>repeated .google.cloud.kms.inventory.v1.ProtectedResource protected_resources = 1;</code> */ public com.google.cloud.kms.inventory.v1.ProtectedResource.Builder addProtectedResourcesBuilder( int index) { - return getProtectedResourcesFieldBuilder() - .addBuilder( - index, com.google.cloud.kms.inventory.v1.ProtectedResource.getDefaultInstance()); + return getProtectedResourcesFieldBuilder().addBuilder( + index, com.google.cloud.kms.inventory.v1.ProtectedResource.getDefaultInstance()); } /** - * - * * <pre> * Protected resources for this page. * </pre> * - * <code>repeated .google.cloud.kms.inventory.v1.ProtectedResource protected_resources = 1; - * </code> + * <code>repeated .google.cloud.kms.inventory.v1.ProtectedResource protected_resources = 1;</code> */ - public java.util.List<com.google.cloud.kms.inventory.v1.ProtectedResource.Builder> - getProtectedResourcesBuilderList() { + public java.util.List<com.google.cloud.kms.inventory.v1.ProtectedResource.Builder> + getProtectedResourcesBuilderList() { return getProtectedResourcesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.kms.inventory.v1.ProtectedResource, - com.google.cloud.kms.inventory.v1.ProtectedResource.Builder, - com.google.cloud.kms.inventory.v1.ProtectedResourceOrBuilder> + com.google.cloud.kms.inventory.v1.ProtectedResource, com.google.cloud.kms.inventory.v1.ProtectedResource.Builder, com.google.cloud.kms.inventory.v1.ProtectedResourceOrBuilder> getProtectedResourcesFieldBuilder() { if (protectedResourcesBuilder_ == null) { - protectedResourcesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.kms.inventory.v1.ProtectedResource, - com.google.cloud.kms.inventory.v1.ProtectedResource.Builder, - com.google.cloud.kms.inventory.v1.ProtectedResourceOrBuilder>( + protectedResourcesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.kms.inventory.v1.ProtectedResource, com.google.cloud.kms.inventory.v1.ProtectedResource.Builder, com.google.cloud.kms.inventory.v1.ProtectedResourceOrBuilder>( protectedResources_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1001,21 +872,19 @@ public com.google.cloud.kms.inventory.v1.ProtectedResource.Builder addProtectedR private java.lang.Object nextPageToken_ = ""; /** - * - * * <pre> * A token that can be sent as `page_token` to retrieve the next page. * If this field is omitted, there are no subsequent pages. * </pre> * * <code>string next_page_token = 2;</code> - * * @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; @@ -1024,22 +893,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * * <pre> * A token that can be sent as `page_token` to retrieve the next page. * If this field is omitted, there are no subsequent pages. * </pre> * * <code>string next_page_token = 2;</code> - * * @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 { @@ -1047,37 +915,30 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * * <pre> * A token that can be sent as `page_token` to retrieve the next page. * If this field is omitted, there are no subsequent pages. * </pre> * * <code>string next_page_token = 2;</code> - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * * <pre> * A token that can be sent as `page_token` to retrieve the next page. * If this field is omitted, there are no subsequent pages. * </pre> * * <code>string next_page_token = 2;</code> - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1087,31 +948,27 @@ public Builder clearNextPageToken() { return this; } /** - * - * * <pre> * A token that can be sent as `page_token` to retrieve the next page. * If this field is omitted, there are no subsequent pages. * </pre> * * <code>string next_page_token = 2;</code> - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; 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,43 +978,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse) - private static final com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse(); } - public static com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse - getDefaultInstance() { + public static com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<SearchProtectedResourcesResponse> PARSER = - new com.google.protobuf.AbstractParser<SearchProtectedResourcesResponse>() { - @java.lang.Override - public SearchProtectedResourcesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<SearchProtectedResourcesResponse> + PARSER = new com.google.protobuf.AbstractParser<SearchProtectedResourcesResponse>() { + @java.lang.Override + public SearchProtectedResourcesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<SearchProtectedResourcesResponse> parser() { return PARSER; @@ -1169,8 +1024,9 @@ public com.google.protobuf.Parser<SearchProtectedResourcesResponse> getParserFor } @java.lang.Override - public com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse - getDefaultInstanceForType() { + public com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/SearchProtectedResourcesResponseOrBuilder.java b/owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/SearchProtectedResourcesResponseOrBuilder.java similarity index 71% rename from java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/SearchProtectedResourcesResponseOrBuilder.java rename to owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/SearchProtectedResourcesResponseOrBuilder.java index 109f0f191eea..c9d81d1e1cfd 100644 --- a/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/SearchProtectedResourcesResponseOrBuilder.java +++ b/owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/SearchProtectedResourcesResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/kms/inventory/v1/key_tracking_service.proto package com.google.cloud.kms.inventory.v1; -public interface SearchProtectedResourcesResponseOrBuilder - extends +public interface SearchProtectedResourcesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse) com.google.protobuf.MessageOrBuilder { /** - * - * * <pre> * Protected resources for this page. * </pre> * * <code>repeated .google.cloud.kms.inventory.v1.ProtectedResource protected_resources = 1;</code> */ - java.util.List<com.google.cloud.kms.inventory.v1.ProtectedResource> getProtectedResourcesList(); + java.util.List<com.google.cloud.kms.inventory.v1.ProtectedResource> + getProtectedResourcesList(); /** - * - * * <pre> * Protected resources for this page. * </pre> @@ -44,8 +25,6 @@ public interface SearchProtectedResourcesResponseOrBuilder */ com.google.cloud.kms.inventory.v1.ProtectedResource getProtectedResources(int index); /** - * - * * <pre> * Protected resources for this page. * </pre> @@ -54,19 +33,15 @@ public interface SearchProtectedResourcesResponseOrBuilder */ int getProtectedResourcesCount(); /** - * - * * <pre> * Protected resources for this page. * </pre> * * <code>repeated .google.cloud.kms.inventory.v1.ProtectedResource protected_resources = 1;</code> */ - java.util.List<? extends com.google.cloud.kms.inventory.v1.ProtectedResourceOrBuilder> + java.util.List<? extends com.google.cloud.kms.inventory.v1.ProtectedResourceOrBuilder> getProtectedResourcesOrBuilderList(); /** - * - * * <pre> * Protected resources for this page. * </pre> @@ -77,29 +52,24 @@ com.google.cloud.kms.inventory.v1.ProtectedResourceOrBuilder getProtectedResourc int index); /** - * - * * <pre> * A token that can be sent as `page_token` to retrieve the next page. * If this field is omitted, there are no subsequent pages. * </pre> * * <code>string next_page_token = 2;</code> - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * * <pre> * A token that can be sent as `page_token` to retrieve the next page. * If this field is omitted, there are no subsequent pages. * </pre> * * <code>string next_page_token = 2;</code> - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/proto/google/cloud/kms/inventory/v1/key_dashboard_service.proto b/owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/proto/google/cloud/kms/inventory/v1/key_dashboard_service.proto similarity index 99% rename from java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/proto/google/cloud/kms/inventory/v1/key_dashboard_service.proto rename to owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/proto/google/cloud/kms/inventory/v1/key_dashboard_service.proto index d85c4ad5b396..fe6353e44cdd 100644 --- a/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/proto/google/cloud/kms/inventory/v1/key_dashboard_service.proto +++ b/owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/proto/google/cloud/kms/inventory/v1/key_dashboard_service.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/proto/google/cloud/kms/inventory/v1/key_tracking_service.proto b/owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/proto/google/cloud/kms/inventory/v1/key_tracking_service.proto similarity index 90% rename from java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/proto/google/cloud/kms/inventory/v1/key_tracking_service.proto rename to owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/proto/google/cloud/kms/inventory/v1/key_tracking_service.proto index a3f7252cf16d..fa324fd7815b 100644 --- a/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/proto/google/cloud/kms/inventory/v1/key_tracking_service.proto +++ b/owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/proto/google/cloud/kms/inventory/v1/key_tracking_service.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -139,6 +139,22 @@ message SearchProtectedResourcesRequest { // [KeyTrackingService.SearchProtectedResources][google.cloud.kms.inventory.v1.KeyTrackingService.SearchProtectedResources] // must match the call that provided the page token. string page_token = 4; + + // Optional. A list of resource types that this request searches for. If + // empty, it will search all the [trackable resource + // types](https://cloud.google.com/kms/docs/view-key-usage#tracked-resource-types). + // + // Regular expressions are also supported. For example: + // + // * `compute.googleapis.com.*` snapshots resources whose type starts + // with `compute.googleapis.com`. + // * `.*Image` snapshots resources whose type ends with `Image`. + // * `.*Image.*` snapshots resources whose type contains `Image`. + // + // See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported + // regular expression syntax. If the regular expression does not match any + // supported resource type, an INVALID_ARGUMENT error will be returned. + repeated string resource_types = 5 [(google.api.field_behavior) = OPTIONAL]; } // Response message for diff --git a/java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keydashboardservice/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-kmsinventory/v1/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keydashboardservice/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keydashboardservice/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/java-kmsinventory/v1/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keydashboardservice/create/SyncCreateSetCredentialsProvider.java diff --git a/java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keydashboardservice/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/java-kmsinventory/v1/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keydashboardservice/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keydashboardservice/create/SyncCreateSetCredentialsProvider1.java rename to owl-bot-staging/java-kmsinventory/v1/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keydashboardservice/create/SyncCreateSetCredentialsProvider1.java diff --git a/java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keydashboardservice/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-kmsinventory/v1/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keydashboardservice/create/SyncCreateSetEndpoint.java similarity index 100% rename from java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keydashboardservice/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/java-kmsinventory/v1/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keydashboardservice/create/SyncCreateSetEndpoint.java diff --git a/java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keydashboardservice/listcryptokeys/AsyncListCryptoKeys.java b/owl-bot-staging/java-kmsinventory/v1/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keydashboardservice/listcryptokeys/AsyncListCryptoKeys.java similarity index 100% rename from java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keydashboardservice/listcryptokeys/AsyncListCryptoKeys.java rename to owl-bot-staging/java-kmsinventory/v1/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keydashboardservice/listcryptokeys/AsyncListCryptoKeys.java diff --git a/java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keydashboardservice/listcryptokeys/AsyncListCryptoKeysPaged.java b/owl-bot-staging/java-kmsinventory/v1/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keydashboardservice/listcryptokeys/AsyncListCryptoKeysPaged.java similarity index 100% rename from java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keydashboardservice/listcryptokeys/AsyncListCryptoKeysPaged.java rename to owl-bot-staging/java-kmsinventory/v1/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keydashboardservice/listcryptokeys/AsyncListCryptoKeysPaged.java diff --git a/java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keydashboardservice/listcryptokeys/SyncListCryptoKeys.java b/owl-bot-staging/java-kmsinventory/v1/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keydashboardservice/listcryptokeys/SyncListCryptoKeys.java similarity index 100% rename from java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keydashboardservice/listcryptokeys/SyncListCryptoKeys.java rename to owl-bot-staging/java-kmsinventory/v1/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keydashboardservice/listcryptokeys/SyncListCryptoKeys.java diff --git a/java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keydashboardservice/listcryptokeys/SyncListCryptoKeysProjectname.java b/owl-bot-staging/java-kmsinventory/v1/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keydashboardservice/listcryptokeys/SyncListCryptoKeysProjectname.java similarity index 100% rename from java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keydashboardservice/listcryptokeys/SyncListCryptoKeysProjectname.java rename to owl-bot-staging/java-kmsinventory/v1/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keydashboardservice/listcryptokeys/SyncListCryptoKeysProjectname.java diff --git a/java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keydashboardservice/listcryptokeys/SyncListCryptoKeysString.java b/owl-bot-staging/java-kmsinventory/v1/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keydashboardservice/listcryptokeys/SyncListCryptoKeysString.java similarity index 100% rename from java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keydashboardservice/listcryptokeys/SyncListCryptoKeysString.java rename to owl-bot-staging/java-kmsinventory/v1/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keydashboardservice/listcryptokeys/SyncListCryptoKeysString.java diff --git a/java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keydashboardservicesettings/listcryptokeys/SyncListCryptoKeys.java b/owl-bot-staging/java-kmsinventory/v1/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keydashboardservicesettings/listcryptokeys/SyncListCryptoKeys.java similarity index 100% rename from java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keydashboardservicesettings/listcryptokeys/SyncListCryptoKeys.java rename to owl-bot-staging/java-kmsinventory/v1/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keydashboardservicesettings/listcryptokeys/SyncListCryptoKeys.java diff --git a/java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-kmsinventory/v1/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/java-kmsinventory/v1/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/create/SyncCreateSetCredentialsProvider.java diff --git a/java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/java-kmsinventory/v1/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/create/SyncCreateSetCredentialsProvider1.java rename to owl-bot-staging/java-kmsinventory/v1/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/create/SyncCreateSetCredentialsProvider1.java diff --git a/java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-kmsinventory/v1/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/create/SyncCreateSetEndpoint.java similarity index 100% rename from java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/java-kmsinventory/v1/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/create/SyncCreateSetEndpoint.java diff --git a/java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/getprotectedresourcessummary/AsyncGetProtectedResourcesSummary.java b/owl-bot-staging/java-kmsinventory/v1/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/getprotectedresourcessummary/AsyncGetProtectedResourcesSummary.java similarity index 100% rename from java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/getprotectedresourcessummary/AsyncGetProtectedResourcesSummary.java rename to owl-bot-staging/java-kmsinventory/v1/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/getprotectedresourcessummary/AsyncGetProtectedResourcesSummary.java diff --git a/java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/getprotectedresourcessummary/SyncGetProtectedResourcesSummary.java b/owl-bot-staging/java-kmsinventory/v1/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/getprotectedresourcessummary/SyncGetProtectedResourcesSummary.java similarity index 100% rename from java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/getprotectedresourcessummary/SyncGetProtectedResourcesSummary.java rename to owl-bot-staging/java-kmsinventory/v1/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/getprotectedresourcessummary/SyncGetProtectedResourcesSummary.java diff --git a/java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/getprotectedresourcessummary/SyncGetProtectedResourcesSummaryProtectedresourcessummaryname.java b/owl-bot-staging/java-kmsinventory/v1/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/getprotectedresourcessummary/SyncGetProtectedResourcesSummaryProtectedresourcessummaryname.java similarity index 100% rename from java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/getprotectedresourcessummary/SyncGetProtectedResourcesSummaryProtectedresourcessummaryname.java rename to owl-bot-staging/java-kmsinventory/v1/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/getprotectedresourcessummary/SyncGetProtectedResourcesSummaryProtectedresourcessummaryname.java diff --git a/java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/getprotectedresourcessummary/SyncGetProtectedResourcesSummaryString.java b/owl-bot-staging/java-kmsinventory/v1/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/getprotectedresourcessummary/SyncGetProtectedResourcesSummaryString.java similarity index 100% rename from java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/getprotectedresourcessummary/SyncGetProtectedResourcesSummaryString.java rename to owl-bot-staging/java-kmsinventory/v1/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/getprotectedresourcessummary/SyncGetProtectedResourcesSummaryString.java diff --git a/java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/searchprotectedresources/AsyncSearchProtectedResources.java b/owl-bot-staging/java-kmsinventory/v1/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/searchprotectedresources/AsyncSearchProtectedResources.java similarity index 96% rename from java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/searchprotectedresources/AsyncSearchProtectedResources.java rename to owl-bot-staging/java-kmsinventory/v1/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/searchprotectedresources/AsyncSearchProtectedResources.java index 8b84647b88c7..df1dd69d3ff7 100644 --- a/java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/searchprotectedresources/AsyncSearchProtectedResources.java +++ b/owl-bot-staging/java-kmsinventory/v1/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/searchprotectedresources/AsyncSearchProtectedResources.java @@ -22,6 +22,7 @@ import com.google.cloud.kms.inventory.v1.OrganizationName; import com.google.cloud.kms.inventory.v1.ProtectedResource; import com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest; +import java.util.ArrayList; public class AsyncSearchProtectedResources { @@ -42,6 +43,7 @@ public static void asyncSearchProtectedResources() throws Exception { .setCryptoKey(OrganizationName.of("[ORGANIZATION]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") + .addAllResourceTypes(new ArrayList<String>()) .build(); ApiFuture<ProtectedResource> future = keyTrackingServiceClient.searchProtectedResourcesPagedCallable().futureCall(request); diff --git a/java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/searchprotectedresources/AsyncSearchProtectedResourcesPaged.java b/owl-bot-staging/java-kmsinventory/v1/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/searchprotectedresources/AsyncSearchProtectedResourcesPaged.java similarity index 97% rename from java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/searchprotectedresources/AsyncSearchProtectedResourcesPaged.java rename to owl-bot-staging/java-kmsinventory/v1/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/searchprotectedresources/AsyncSearchProtectedResourcesPaged.java index f9f4811b521f..82bb1ba28bd6 100644 --- a/java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/searchprotectedresources/AsyncSearchProtectedResourcesPaged.java +++ b/owl-bot-staging/java-kmsinventory/v1/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/searchprotectedresources/AsyncSearchProtectedResourcesPaged.java @@ -23,6 +23,7 @@ import com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest; import com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse; import com.google.common.base.Strings; +import java.util.ArrayList; public class AsyncSearchProtectedResourcesPaged { @@ -43,6 +44,7 @@ public static void asyncSearchProtectedResourcesPaged() throws Exception { .setCryptoKey(OrganizationName.of("[ORGANIZATION]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") + .addAllResourceTypes(new ArrayList<String>()) .build(); while (true) { SearchProtectedResourcesResponse response = diff --git a/java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/searchprotectedresources/SyncSearchProtectedResources.java b/owl-bot-staging/java-kmsinventory/v1/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/searchprotectedresources/SyncSearchProtectedResources.java similarity index 96% rename from java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/searchprotectedresources/SyncSearchProtectedResources.java rename to owl-bot-staging/java-kmsinventory/v1/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/searchprotectedresources/SyncSearchProtectedResources.java index fad0f849b475..8594bf0c0c94 100644 --- a/java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/searchprotectedresources/SyncSearchProtectedResources.java +++ b/owl-bot-staging/java-kmsinventory/v1/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/searchprotectedresources/SyncSearchProtectedResources.java @@ -21,6 +21,7 @@ import com.google.cloud.kms.inventory.v1.OrganizationName; import com.google.cloud.kms.inventory.v1.ProtectedResource; import com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest; +import java.util.ArrayList; public class SyncSearchProtectedResources { @@ -41,6 +42,7 @@ public static void syncSearchProtectedResources() throws Exception { .setCryptoKey(OrganizationName.of("[ORGANIZATION]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") + .addAllResourceTypes(new ArrayList<String>()) .build(); for (ProtectedResource element : keyTrackingServiceClient.searchProtectedResources(request).iterateAll()) { diff --git a/java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/searchprotectedresources/SyncSearchProtectedResourcesOrganizationnameResourcename.java b/owl-bot-staging/java-kmsinventory/v1/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/searchprotectedresources/SyncSearchProtectedResourcesOrganizationnameResourcename.java similarity index 100% rename from java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/searchprotectedresources/SyncSearchProtectedResourcesOrganizationnameResourcename.java rename to owl-bot-staging/java-kmsinventory/v1/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/searchprotectedresources/SyncSearchProtectedResourcesOrganizationnameResourcename.java diff --git a/java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/searchprotectedresources/SyncSearchProtectedResourcesOrganizationnameString.java b/owl-bot-staging/java-kmsinventory/v1/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/searchprotectedresources/SyncSearchProtectedResourcesOrganizationnameString.java similarity index 100% rename from java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/searchprotectedresources/SyncSearchProtectedResourcesOrganizationnameString.java rename to owl-bot-staging/java-kmsinventory/v1/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/searchprotectedresources/SyncSearchProtectedResourcesOrganizationnameString.java diff --git a/java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/searchprotectedresources/SyncSearchProtectedResourcesStringResourcename.java b/owl-bot-staging/java-kmsinventory/v1/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/searchprotectedresources/SyncSearchProtectedResourcesStringResourcename.java similarity index 100% rename from java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/searchprotectedresources/SyncSearchProtectedResourcesStringResourcename.java rename to owl-bot-staging/java-kmsinventory/v1/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/searchprotectedresources/SyncSearchProtectedResourcesStringResourcename.java diff --git a/java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/searchprotectedresources/SyncSearchProtectedResourcesStringString.java b/owl-bot-staging/java-kmsinventory/v1/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/searchprotectedresources/SyncSearchProtectedResourcesStringString.java similarity index 100% rename from java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/searchprotectedresources/SyncSearchProtectedResourcesStringString.java rename to owl-bot-staging/java-kmsinventory/v1/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/searchprotectedresources/SyncSearchProtectedResourcesStringString.java diff --git a/java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservicesettings/getprotectedresourcessummary/SyncGetProtectedResourcesSummary.java b/owl-bot-staging/java-kmsinventory/v1/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservicesettings/getprotectedresourcessummary/SyncGetProtectedResourcesSummary.java similarity index 100% rename from java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservicesettings/getprotectedresourcessummary/SyncGetProtectedResourcesSummary.java rename to owl-bot-staging/java-kmsinventory/v1/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservicesettings/getprotectedresourcessummary/SyncGetProtectedResourcesSummary.java diff --git a/java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/stub/keydashboardservicestubsettings/listcryptokeys/SyncListCryptoKeys.java b/owl-bot-staging/java-kmsinventory/v1/samples/snippets/generated/com/google/cloud/kms/inventory/v1/stub/keydashboardservicestubsettings/listcryptokeys/SyncListCryptoKeys.java similarity index 100% rename from java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/stub/keydashboardservicestubsettings/listcryptokeys/SyncListCryptoKeys.java rename to owl-bot-staging/java-kmsinventory/v1/samples/snippets/generated/com/google/cloud/kms/inventory/v1/stub/keydashboardservicestubsettings/listcryptokeys/SyncListCryptoKeys.java diff --git a/java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/stub/keytrackingservicestubsettings/getprotectedresourcessummary/SyncGetProtectedResourcesSummary.java b/owl-bot-staging/java-kmsinventory/v1/samples/snippets/generated/com/google/cloud/kms/inventory/v1/stub/keytrackingservicestubsettings/getprotectedresourcessummary/SyncGetProtectedResourcesSummary.java similarity index 100% rename from java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/stub/keytrackingservicestubsettings/getprotectedresourcessummary/SyncGetProtectedResourcesSummary.java rename to owl-bot-staging/java-kmsinventory/v1/samples/snippets/generated/com/google/cloud/kms/inventory/v1/stub/keytrackingservicestubsettings/getprotectedresourcessummary/SyncGetProtectedResourcesSummary.java From ce529de883b4686e2fe403116d053c7a42987a81 Mon Sep 17 00:00:00 2001 From: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 13 Jul 2023 19:16:56 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20po?= =?UTF-8?q?st-processor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- java-kmsinventory/README.md | 4 +- .../v1/KeyDashboardServiceClient.java | 0 .../v1/KeyDashboardServiceSettings.java | 1 - .../v1/KeyTrackingServiceClient.java | 0 .../v1/KeyTrackingServiceSettings.java | 1 - .../kms/inventory/v1/gapic_metadata.json | 0 .../cloud/kms/inventory/v1/package-info.java | 0 ...rpcKeyDashboardServiceCallableFactory.java | 0 .../v1/stub/GrpcKeyDashboardServiceStub.java | 1 - ...GrpcKeyTrackingServiceCallableFactory.java | 0 .../v1/stub/GrpcKeyTrackingServiceStub.java | 1 - ...sonKeyDashboardServiceCallableFactory.java | 0 .../stub/HttpJsonKeyDashboardServiceStub.java | 0 ...JsonKeyTrackingServiceCallableFactory.java | 0 .../stub/HttpJsonKeyTrackingServiceStub.java | 0 .../v1/stub/KeyDashboardServiceStub.java | 0 .../stub/KeyDashboardServiceStubSettings.java | 0 .../v1/stub/KeyTrackingServiceStub.java | 0 .../stub/KeyTrackingServiceStubSettings.java | 0 ...KeyDashboardServiceClientHttpJsonTest.java | 0 .../v1/KeyDashboardServiceClientTest.java | 0 .../KeyTrackingServiceClientHttpJsonTest.java | 0 .../v1/KeyTrackingServiceClientTest.java | 0 .../inventory/v1/MockKeyDashboardService.java | 0 .../v1/MockKeyDashboardServiceImpl.java | 0 .../inventory/v1/MockKeyTrackingService.java | 0 .../v1/MockKeyTrackingServiceImpl.java | 0 .../inventory/v1/KeyDashboardServiceGrpc.java | 211 ++- .../inventory/v1/KeyTrackingServiceGrpc.java | 343 +++-- .../GetProtectedResourcesSummaryRequest.java | 389 +++-- ...ectedResourcesSummaryRequestOrBuilder.java | 56 + .../v1/KeyDashboardServiceProto.java | 117 ++ .../inventory/v1/KeyTrackingServiceProto.java | 272 ++++ .../inventory/v1/ListCryptoKeysRequest.java | 453 +++--- .../v1/ListCryptoKeysRequestOrBuilder.java | 47 +- .../inventory/v1/ListCryptoKeysResponse.java | 482 ++++--- .../v1/ListCryptoKeysResponseOrBuilder.java | 46 +- .../kms/inventory/v1/OrganizationName.java | 0 .../cloud/kms/inventory/v1/ProjectName.java | 0 .../kms/inventory/v1/ProtectedResource.java | 1283 ++++++++++------- .../v1/ProtectedResourceOrBuilder.java | 158 +- .../v1/ProtectedResourcesSummary.java | 1063 ++++++++------ .../v1/ProtectedResourcesSummaryName.java | 0 .../ProtectedResourcesSummaryOrBuilder.java | 123 +- .../v1/SearchProtectedResourcesRequest.java | 697 +++++---- ...rchProtectedResourcesRequestOrBuilder.java | 82 +- .../v1/SearchProtectedResourcesResponse.java | 578 +++++--- ...chProtectedResourcesResponseOrBuilder.java | 42 +- .../inventory/v1/key_dashboard_service.proto | 0 .../inventory/v1/key_tracking_service.proto | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../listcryptokeys/AsyncListCryptoKeys.java | 0 .../AsyncListCryptoKeysPaged.java | 0 .../listcryptokeys/SyncListCryptoKeys.java | 0 .../SyncListCryptoKeysProjectname.java | 0 .../SyncListCryptoKeysString.java | 0 .../listcryptokeys/SyncListCryptoKeys.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../AsyncGetProtectedResourcesSummary.java | 0 .../SyncGetProtectedResourcesSummary.java | 0 ...sSummaryProtectedresourcessummaryname.java | 0 ...yncGetProtectedResourcesSummaryString.java | 0 .../AsyncSearchProtectedResources.java | 0 .../AsyncSearchProtectedResourcesPaged.java | 0 .../SyncSearchProtectedResources.java | 0 ...ResourcesOrganizationnameResourcename.java | 0 ...tectedResourcesOrganizationnameString.java | 0 ...hProtectedResourcesStringResourcename.java | 0 ...cSearchProtectedResourcesStringString.java | 0 .../SyncGetProtectedResourcesSummary.java | 0 .../listcryptokeys/SyncListCryptoKeys.java | 0 .../SyncGetProtectedResourcesSummary.java | 0 ...ectedResourcesSummaryRequestOrBuilder.java | 31 - .../v1/KeyDashboardServiceProto.java | 101 -- .../inventory/v1/KeyTrackingServiceProto.java | 227 --- 79 files changed, 4128 insertions(+), 2681 deletions(-) rename {owl-bot-staging/java-kmsinventory/v1 => java-kmsinventory}/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/KeyDashboardServiceClient.java (100%) rename {owl-bot-staging/java-kmsinventory/v1 => java-kmsinventory}/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/KeyDashboardServiceSettings.java (99%) rename {owl-bot-staging/java-kmsinventory/v1 => java-kmsinventory}/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/KeyTrackingServiceClient.java (100%) rename {owl-bot-staging/java-kmsinventory/v1 => java-kmsinventory}/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/KeyTrackingServiceSettings.java (99%) rename {owl-bot-staging/java-kmsinventory/v1 => java-kmsinventory}/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/gapic_metadata.json (100%) rename {owl-bot-staging/java-kmsinventory/v1 => java-kmsinventory}/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/package-info.java (100%) rename {owl-bot-staging/java-kmsinventory/v1 => java-kmsinventory}/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/GrpcKeyDashboardServiceCallableFactory.java (100%) rename {owl-bot-staging/java-kmsinventory/v1 => java-kmsinventory}/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/GrpcKeyDashboardServiceStub.java (99%) rename {owl-bot-staging/java-kmsinventory/v1 => java-kmsinventory}/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/GrpcKeyTrackingServiceCallableFactory.java (100%) rename {owl-bot-staging/java-kmsinventory/v1 => java-kmsinventory}/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/GrpcKeyTrackingServiceStub.java (99%) rename {owl-bot-staging/java-kmsinventory/v1 => java-kmsinventory}/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/HttpJsonKeyDashboardServiceCallableFactory.java (100%) rename {owl-bot-staging/java-kmsinventory/v1 => java-kmsinventory}/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/HttpJsonKeyDashboardServiceStub.java (100%) rename {owl-bot-staging/java-kmsinventory/v1 => java-kmsinventory}/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/HttpJsonKeyTrackingServiceCallableFactory.java (100%) rename {owl-bot-staging/java-kmsinventory/v1 => java-kmsinventory}/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/HttpJsonKeyTrackingServiceStub.java (100%) rename {owl-bot-staging/java-kmsinventory/v1 => java-kmsinventory}/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/KeyDashboardServiceStub.java (100%) rename {owl-bot-staging/java-kmsinventory/v1 => java-kmsinventory}/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/KeyDashboardServiceStubSettings.java (100%) rename {owl-bot-staging/java-kmsinventory/v1 => java-kmsinventory}/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/KeyTrackingServiceStub.java (100%) rename {owl-bot-staging/java-kmsinventory/v1 => java-kmsinventory}/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/KeyTrackingServiceStubSettings.java (100%) rename {owl-bot-staging/java-kmsinventory/v1 => java-kmsinventory}/google-cloud-kmsinventory/src/test/java/com/google/cloud/kms/inventory/v1/KeyDashboardServiceClientHttpJsonTest.java (100%) rename {owl-bot-staging/java-kmsinventory/v1 => java-kmsinventory}/google-cloud-kmsinventory/src/test/java/com/google/cloud/kms/inventory/v1/KeyDashboardServiceClientTest.java (100%) rename {owl-bot-staging/java-kmsinventory/v1 => java-kmsinventory}/google-cloud-kmsinventory/src/test/java/com/google/cloud/kms/inventory/v1/KeyTrackingServiceClientHttpJsonTest.java (100%) rename {owl-bot-staging/java-kmsinventory/v1 => java-kmsinventory}/google-cloud-kmsinventory/src/test/java/com/google/cloud/kms/inventory/v1/KeyTrackingServiceClientTest.java (100%) rename {owl-bot-staging/java-kmsinventory/v1 => java-kmsinventory}/google-cloud-kmsinventory/src/test/java/com/google/cloud/kms/inventory/v1/MockKeyDashboardService.java (100%) rename {owl-bot-staging/java-kmsinventory/v1 => java-kmsinventory}/google-cloud-kmsinventory/src/test/java/com/google/cloud/kms/inventory/v1/MockKeyDashboardServiceImpl.java (100%) rename {owl-bot-staging/java-kmsinventory/v1 => java-kmsinventory}/google-cloud-kmsinventory/src/test/java/com/google/cloud/kms/inventory/v1/MockKeyTrackingService.java (100%) rename {owl-bot-staging/java-kmsinventory/v1 => java-kmsinventory}/google-cloud-kmsinventory/src/test/java/com/google/cloud/kms/inventory/v1/MockKeyTrackingServiceImpl.java (100%) rename {owl-bot-staging/java-kmsinventory/v1 => java-kmsinventory}/grpc-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/KeyDashboardServiceGrpc.java (58%) rename {owl-bot-staging/java-kmsinventory/v1 => java-kmsinventory}/grpc-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/KeyTrackingServiceGrpc.java (50%) rename {owl-bot-staging/java-kmsinventory/v1 => java-kmsinventory}/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/GetProtectedResourcesSummaryRequest.java (59%) create mode 100644 java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/GetProtectedResourcesSummaryRequestOrBuilder.java create mode 100644 java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/KeyDashboardServiceProto.java create mode 100644 java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/KeyTrackingServiceProto.java rename {owl-bot-staging/java-kmsinventory/v1 => java-kmsinventory}/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ListCryptoKeysRequest.java (68%) rename {owl-bot-staging/java-kmsinventory/v1 => java-kmsinventory}/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ListCryptoKeysRequestOrBuilder.java (60%) rename {owl-bot-staging/java-kmsinventory/v1 => java-kmsinventory}/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ListCryptoKeysResponse.java (72%) rename {owl-bot-staging/java-kmsinventory/v1 => java-kmsinventory}/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ListCryptoKeysResponseOrBuilder.java (67%) rename {owl-bot-staging/java-kmsinventory/v1 => java-kmsinventory}/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/OrganizationName.java (100%) rename {owl-bot-staging/java-kmsinventory/v1 => java-kmsinventory}/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ProjectName.java (100%) rename {owl-bot-staging/java-kmsinventory/v1 => java-kmsinventory}/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ProtectedResource.java (71%) rename {owl-bot-staging/java-kmsinventory/v1 => java-kmsinventory}/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ProtectedResourceOrBuilder.java (79%) rename {owl-bot-staging/java-kmsinventory/v1 => java-kmsinventory}/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ProtectedResourcesSummary.java (62%) rename {owl-bot-staging/java-kmsinventory/v1 => java-kmsinventory}/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ProtectedResourcesSummaryName.java (100%) rename {owl-bot-staging/java-kmsinventory/v1 => java-kmsinventory}/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ProtectedResourcesSummaryOrBuilder.java (67%) rename {owl-bot-staging/java-kmsinventory/v1 => java-kmsinventory}/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/SearchProtectedResourcesRequest.java (74%) rename {owl-bot-staging/java-kmsinventory/v1 => java-kmsinventory}/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/SearchProtectedResourcesRequestOrBuilder.java (79%) rename {owl-bot-staging/java-kmsinventory/v1 => java-kmsinventory}/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/SearchProtectedResourcesResponse.java (68%) rename {owl-bot-staging/java-kmsinventory/v1 => java-kmsinventory}/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/SearchProtectedResourcesResponseOrBuilder.java (71%) rename {owl-bot-staging/java-kmsinventory/v1 => java-kmsinventory}/proto-google-cloud-kmsinventory-v1/src/main/proto/google/cloud/kms/inventory/v1/key_dashboard_service.proto (100%) rename {owl-bot-staging/java-kmsinventory/v1 => java-kmsinventory}/proto-google-cloud-kmsinventory-v1/src/main/proto/google/cloud/kms/inventory/v1/key_tracking_service.proto (100%) rename {owl-bot-staging/java-kmsinventory/v1 => java-kmsinventory}/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keydashboardservice/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/java-kmsinventory/v1 => java-kmsinventory}/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keydashboardservice/create/SyncCreateSetCredentialsProvider1.java (100%) rename {owl-bot-staging/java-kmsinventory/v1 => java-kmsinventory}/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keydashboardservice/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/java-kmsinventory/v1 => java-kmsinventory}/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keydashboardservice/listcryptokeys/AsyncListCryptoKeys.java (100%) rename {owl-bot-staging/java-kmsinventory/v1 => java-kmsinventory}/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keydashboardservice/listcryptokeys/AsyncListCryptoKeysPaged.java (100%) rename {owl-bot-staging/java-kmsinventory/v1 => java-kmsinventory}/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keydashboardservice/listcryptokeys/SyncListCryptoKeys.java (100%) rename {owl-bot-staging/java-kmsinventory/v1 => java-kmsinventory}/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keydashboardservice/listcryptokeys/SyncListCryptoKeysProjectname.java (100%) rename {owl-bot-staging/java-kmsinventory/v1 => java-kmsinventory}/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keydashboardservice/listcryptokeys/SyncListCryptoKeysString.java (100%) rename {owl-bot-staging/java-kmsinventory/v1 => java-kmsinventory}/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keydashboardservicesettings/listcryptokeys/SyncListCryptoKeys.java (100%) rename {owl-bot-staging/java-kmsinventory/v1 => java-kmsinventory}/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/java-kmsinventory/v1 => java-kmsinventory}/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/create/SyncCreateSetCredentialsProvider1.java (100%) rename {owl-bot-staging/java-kmsinventory/v1 => java-kmsinventory}/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/java-kmsinventory/v1 => java-kmsinventory}/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/getprotectedresourcessummary/AsyncGetProtectedResourcesSummary.java (100%) rename {owl-bot-staging/java-kmsinventory/v1 => java-kmsinventory}/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/getprotectedresourcessummary/SyncGetProtectedResourcesSummary.java (100%) rename {owl-bot-staging/java-kmsinventory/v1 => java-kmsinventory}/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/getprotectedresourcessummary/SyncGetProtectedResourcesSummaryProtectedresourcessummaryname.java (100%) rename {owl-bot-staging/java-kmsinventory/v1 => java-kmsinventory}/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/getprotectedresourcessummary/SyncGetProtectedResourcesSummaryString.java (100%) rename {owl-bot-staging/java-kmsinventory/v1 => java-kmsinventory}/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/searchprotectedresources/AsyncSearchProtectedResources.java (100%) rename {owl-bot-staging/java-kmsinventory/v1 => java-kmsinventory}/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/searchprotectedresources/AsyncSearchProtectedResourcesPaged.java (100%) rename {owl-bot-staging/java-kmsinventory/v1 => java-kmsinventory}/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/searchprotectedresources/SyncSearchProtectedResources.java (100%) rename {owl-bot-staging/java-kmsinventory/v1 => java-kmsinventory}/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/searchprotectedresources/SyncSearchProtectedResourcesOrganizationnameResourcename.java (100%) rename {owl-bot-staging/java-kmsinventory/v1 => java-kmsinventory}/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/searchprotectedresources/SyncSearchProtectedResourcesOrganizationnameString.java (100%) rename {owl-bot-staging/java-kmsinventory/v1 => java-kmsinventory}/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/searchprotectedresources/SyncSearchProtectedResourcesStringResourcename.java (100%) rename {owl-bot-staging/java-kmsinventory/v1 => java-kmsinventory}/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/searchprotectedresources/SyncSearchProtectedResourcesStringString.java (100%) rename {owl-bot-staging/java-kmsinventory/v1 => java-kmsinventory}/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservicesettings/getprotectedresourcessummary/SyncGetProtectedResourcesSummary.java (100%) rename {owl-bot-staging/java-kmsinventory/v1 => java-kmsinventory}/samples/snippets/generated/com/google/cloud/kms/inventory/v1/stub/keydashboardservicestubsettings/listcryptokeys/SyncListCryptoKeys.java (100%) rename {owl-bot-staging/java-kmsinventory/v1 => java-kmsinventory}/samples/snippets/generated/com/google/cloud/kms/inventory/v1/stub/keytrackingservicestubsettings/getprotectedresourcessummary/SyncGetProtectedResourcesSummary.java (100%) delete mode 100644 owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/GetProtectedResourcesSummaryRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/KeyDashboardServiceProto.java delete mode 100644 owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/KeyTrackingServiceProto.java diff --git a/java-kmsinventory/README.md b/java-kmsinventory/README.md index 5764dbbed200..1188a213f8dd 100644 --- a/java-kmsinventory/README.md +++ b/java-kmsinventory/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: <dependency> <groupId>com.google.cloud</groupId> <artifactId>libraries-bom</artifactId> - <version>26.16.0</version> + <version>26.18.0</version> <type>pom</type> <scope>import</scope> </dependency> @@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-kmsinventory/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-kmsinventory.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-kmsinventory/0.8.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-kmsinventory/0.10.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/KeyDashboardServiceClient.java b/java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/KeyDashboardServiceClient.java similarity index 100% rename from owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/KeyDashboardServiceClient.java rename to java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/KeyDashboardServiceClient.java diff --git a/owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/KeyDashboardServiceSettings.java b/java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/KeyDashboardServiceSettings.java similarity index 99% rename from owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/KeyDashboardServiceSettings.java rename to java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/KeyDashboardServiceSettings.java index 92d9754d6b1d..9f6f8e87459c 100644 --- a/owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/KeyDashboardServiceSettings.java +++ b/java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/KeyDashboardServiceSettings.java @@ -28,7 +28,6 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.kms.inventory.v1.stub.KeyDashboardServiceStubSettings; diff --git a/owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/KeyTrackingServiceClient.java b/java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/KeyTrackingServiceClient.java similarity index 100% rename from owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/KeyTrackingServiceClient.java rename to java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/KeyTrackingServiceClient.java diff --git a/owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/KeyTrackingServiceSettings.java b/java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/KeyTrackingServiceSettings.java similarity index 99% rename from owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/KeyTrackingServiceSettings.java rename to java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/KeyTrackingServiceSettings.java index 839918c9a8c8..0981f36f8996 100644 --- a/owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/KeyTrackingServiceSettings.java +++ b/java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/KeyTrackingServiceSettings.java @@ -28,7 +28,6 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.kms.inventory.v1.stub.KeyTrackingServiceStubSettings; diff --git a/owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/gapic_metadata.json b/java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/gapic_metadata.json similarity index 100% rename from owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/gapic_metadata.json rename to java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/gapic_metadata.json diff --git a/owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/package-info.java b/java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/package-info.java similarity index 100% rename from owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/package-info.java rename to java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/package-info.java diff --git a/owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/GrpcKeyDashboardServiceCallableFactory.java b/java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/GrpcKeyDashboardServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/GrpcKeyDashboardServiceCallableFactory.java rename to java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/GrpcKeyDashboardServiceCallableFactory.java diff --git a/owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/GrpcKeyDashboardServiceStub.java b/java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/GrpcKeyDashboardServiceStub.java similarity index 99% rename from owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/GrpcKeyDashboardServiceStub.java rename to java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/GrpcKeyDashboardServiceStub.java index b599be952f69..1a635300a804 100644 --- a/owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/GrpcKeyDashboardServiceStub.java +++ b/java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/GrpcKeyDashboardServiceStub.java @@ -31,7 +31,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/GrpcKeyTrackingServiceCallableFactory.java b/java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/GrpcKeyTrackingServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/GrpcKeyTrackingServiceCallableFactory.java rename to java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/GrpcKeyTrackingServiceCallableFactory.java diff --git a/owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/GrpcKeyTrackingServiceStub.java b/java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/GrpcKeyTrackingServiceStub.java similarity index 99% rename from owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/GrpcKeyTrackingServiceStub.java rename to java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/GrpcKeyTrackingServiceStub.java index 1f9aedd7f228..f1b08063ae92 100644 --- a/owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/GrpcKeyTrackingServiceStub.java +++ b/java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/GrpcKeyTrackingServiceStub.java @@ -33,7 +33,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/HttpJsonKeyDashboardServiceCallableFactory.java b/java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/HttpJsonKeyDashboardServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/HttpJsonKeyDashboardServiceCallableFactory.java rename to java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/HttpJsonKeyDashboardServiceCallableFactory.java diff --git a/owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/HttpJsonKeyDashboardServiceStub.java b/java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/HttpJsonKeyDashboardServiceStub.java similarity index 100% rename from owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/HttpJsonKeyDashboardServiceStub.java rename to java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/HttpJsonKeyDashboardServiceStub.java diff --git a/owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/HttpJsonKeyTrackingServiceCallableFactory.java b/java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/HttpJsonKeyTrackingServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/HttpJsonKeyTrackingServiceCallableFactory.java rename to java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/HttpJsonKeyTrackingServiceCallableFactory.java diff --git a/owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/HttpJsonKeyTrackingServiceStub.java b/java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/HttpJsonKeyTrackingServiceStub.java similarity index 100% rename from owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/HttpJsonKeyTrackingServiceStub.java rename to java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/HttpJsonKeyTrackingServiceStub.java diff --git a/owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/KeyDashboardServiceStub.java b/java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/KeyDashboardServiceStub.java similarity index 100% rename from owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/KeyDashboardServiceStub.java rename to java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/KeyDashboardServiceStub.java diff --git a/owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/KeyDashboardServiceStubSettings.java b/java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/KeyDashboardServiceStubSettings.java similarity index 100% rename from owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/KeyDashboardServiceStubSettings.java rename to java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/KeyDashboardServiceStubSettings.java diff --git a/owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/KeyTrackingServiceStub.java b/java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/KeyTrackingServiceStub.java similarity index 100% rename from owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/KeyTrackingServiceStub.java rename to java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/KeyTrackingServiceStub.java diff --git a/owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/KeyTrackingServiceStubSettings.java b/java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/KeyTrackingServiceStubSettings.java similarity index 100% rename from owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/KeyTrackingServiceStubSettings.java rename to java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/KeyTrackingServiceStubSettings.java diff --git a/owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/test/java/com/google/cloud/kms/inventory/v1/KeyDashboardServiceClientHttpJsonTest.java b/java-kmsinventory/google-cloud-kmsinventory/src/test/java/com/google/cloud/kms/inventory/v1/KeyDashboardServiceClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/test/java/com/google/cloud/kms/inventory/v1/KeyDashboardServiceClientHttpJsonTest.java rename to java-kmsinventory/google-cloud-kmsinventory/src/test/java/com/google/cloud/kms/inventory/v1/KeyDashboardServiceClientHttpJsonTest.java diff --git a/owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/test/java/com/google/cloud/kms/inventory/v1/KeyDashboardServiceClientTest.java b/java-kmsinventory/google-cloud-kmsinventory/src/test/java/com/google/cloud/kms/inventory/v1/KeyDashboardServiceClientTest.java similarity index 100% rename from owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/test/java/com/google/cloud/kms/inventory/v1/KeyDashboardServiceClientTest.java rename to java-kmsinventory/google-cloud-kmsinventory/src/test/java/com/google/cloud/kms/inventory/v1/KeyDashboardServiceClientTest.java diff --git a/owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/test/java/com/google/cloud/kms/inventory/v1/KeyTrackingServiceClientHttpJsonTest.java b/java-kmsinventory/google-cloud-kmsinventory/src/test/java/com/google/cloud/kms/inventory/v1/KeyTrackingServiceClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/test/java/com/google/cloud/kms/inventory/v1/KeyTrackingServiceClientHttpJsonTest.java rename to java-kmsinventory/google-cloud-kmsinventory/src/test/java/com/google/cloud/kms/inventory/v1/KeyTrackingServiceClientHttpJsonTest.java diff --git a/owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/test/java/com/google/cloud/kms/inventory/v1/KeyTrackingServiceClientTest.java b/java-kmsinventory/google-cloud-kmsinventory/src/test/java/com/google/cloud/kms/inventory/v1/KeyTrackingServiceClientTest.java similarity index 100% rename from owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/test/java/com/google/cloud/kms/inventory/v1/KeyTrackingServiceClientTest.java rename to java-kmsinventory/google-cloud-kmsinventory/src/test/java/com/google/cloud/kms/inventory/v1/KeyTrackingServiceClientTest.java diff --git a/owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/test/java/com/google/cloud/kms/inventory/v1/MockKeyDashboardService.java b/java-kmsinventory/google-cloud-kmsinventory/src/test/java/com/google/cloud/kms/inventory/v1/MockKeyDashboardService.java similarity index 100% rename from owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/test/java/com/google/cloud/kms/inventory/v1/MockKeyDashboardService.java rename to java-kmsinventory/google-cloud-kmsinventory/src/test/java/com/google/cloud/kms/inventory/v1/MockKeyDashboardService.java diff --git a/owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/test/java/com/google/cloud/kms/inventory/v1/MockKeyDashboardServiceImpl.java b/java-kmsinventory/google-cloud-kmsinventory/src/test/java/com/google/cloud/kms/inventory/v1/MockKeyDashboardServiceImpl.java similarity index 100% rename from owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/test/java/com/google/cloud/kms/inventory/v1/MockKeyDashboardServiceImpl.java rename to java-kmsinventory/google-cloud-kmsinventory/src/test/java/com/google/cloud/kms/inventory/v1/MockKeyDashboardServiceImpl.java diff --git a/owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/test/java/com/google/cloud/kms/inventory/v1/MockKeyTrackingService.java b/java-kmsinventory/google-cloud-kmsinventory/src/test/java/com/google/cloud/kms/inventory/v1/MockKeyTrackingService.java similarity index 100% rename from owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/test/java/com/google/cloud/kms/inventory/v1/MockKeyTrackingService.java rename to java-kmsinventory/google-cloud-kmsinventory/src/test/java/com/google/cloud/kms/inventory/v1/MockKeyTrackingService.java diff --git a/owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/test/java/com/google/cloud/kms/inventory/v1/MockKeyTrackingServiceImpl.java b/java-kmsinventory/google-cloud-kmsinventory/src/test/java/com/google/cloud/kms/inventory/v1/MockKeyTrackingServiceImpl.java similarity index 100% rename from owl-bot-staging/java-kmsinventory/v1/google-cloud-kmsinventory/src/test/java/com/google/cloud/kms/inventory/v1/MockKeyTrackingServiceImpl.java rename to java-kmsinventory/google-cloud-kmsinventory/src/test/java/com/google/cloud/kms/inventory/v1/MockKeyTrackingServiceImpl.java diff --git a/owl-bot-staging/java-kmsinventory/v1/grpc-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/KeyDashboardServiceGrpc.java b/java-kmsinventory/grpc-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/KeyDashboardServiceGrpc.java similarity index 58% rename from owl-bot-staging/java-kmsinventory/v1/grpc-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/KeyDashboardServiceGrpc.java rename to java-kmsinventory/grpc-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/KeyDashboardServiceGrpc.java index f8e611f180cb..85123e1832f3 100644 --- a/owl-bot-staging/java-kmsinventory/v1/grpc-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/KeyDashboardServiceGrpc.java +++ b/java-kmsinventory/grpc-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/KeyDashboardServiceGrpc.java @@ -1,8 +1,25 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.google.cloud.kms.inventory.v1; import static io.grpc.MethodDescriptor.generateFullMethodName; /** + * + * * <pre> * Provides a cross-region view of all Cloud KMS keys in a given Cloud project. * </pre> @@ -18,82 +35,97 @@ private KeyDashboardServiceGrpc() {} public static final String SERVICE_NAME = "google.cloud.kms.inventory.v1.KeyDashboardService"; // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor<com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest, - com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse> getListCryptoKeysMethod; + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest, + com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse> + getListCryptoKeysMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ListCryptoKeys", requestType = com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest.class, responseType = com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor<com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest, - com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse> getListCryptoKeysMethod() { - io.grpc.MethodDescriptor<com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest, com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse> getListCryptoKeysMethod; + public static io.grpc.MethodDescriptor< + com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest, + com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse> + getListCryptoKeysMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest, + com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse> + getListCryptoKeysMethod; if ((getListCryptoKeysMethod = KeyDashboardServiceGrpc.getListCryptoKeysMethod) == null) { synchronized (KeyDashboardServiceGrpc.class) { if ((getListCryptoKeysMethod = KeyDashboardServiceGrpc.getListCryptoKeysMethod) == null) { - KeyDashboardServiceGrpc.getListCryptoKeysMethod = getListCryptoKeysMethod = - io.grpc.MethodDescriptor.<com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest, com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse>newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListCryptoKeys")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse.getDefaultInstance())) - .setSchemaDescriptor(new KeyDashboardServiceMethodDescriptorSupplier("ListCryptoKeys")) - .build(); + KeyDashboardServiceGrpc.getListCryptoKeysMethod = + getListCryptoKeysMethod = + io.grpc.MethodDescriptor + .<com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest, + com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse> + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListCryptoKeys")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new KeyDashboardServiceMethodDescriptorSupplier("ListCryptoKeys")) + .build(); } } } return getListCryptoKeysMethod; } - /** - * Creates a new async stub that supports all call types for the service - */ + /** Creates a new async stub that supports all call types for the service */ public static KeyDashboardServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory<KeyDashboardServiceStub> factory = - new io.grpc.stub.AbstractStub.StubFactory<KeyDashboardServiceStub>() { - @java.lang.Override - public KeyDashboardServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new KeyDashboardServiceStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory<KeyDashboardServiceStub>() { + @java.lang.Override + public KeyDashboardServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new KeyDashboardServiceStub(channel, callOptions); + } + }; return KeyDashboardServiceStub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ - public static KeyDashboardServiceBlockingStub newBlockingStub( - io.grpc.Channel channel) { + public static KeyDashboardServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory<KeyDashboardServiceBlockingStub> factory = - new io.grpc.stub.AbstractStub.StubFactory<KeyDashboardServiceBlockingStub>() { - @java.lang.Override - public KeyDashboardServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new KeyDashboardServiceBlockingStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory<KeyDashboardServiceBlockingStub>() { + @java.lang.Override + public KeyDashboardServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new KeyDashboardServiceBlockingStub(channel, callOptions); + } + }; return KeyDashboardServiceBlockingStub.newStub(factory, channel); } - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static KeyDashboardServiceFutureStub newFutureStub( - io.grpc.Channel channel) { + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static KeyDashboardServiceFutureStub newFutureStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory<KeyDashboardServiceFutureStub> factory = - new io.grpc.stub.AbstractStub.StubFactory<KeyDashboardServiceFutureStub>() { - @java.lang.Override - public KeyDashboardServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new KeyDashboardServiceFutureStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory<KeyDashboardServiceFutureStub>() { + @java.lang.Override + public KeyDashboardServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new KeyDashboardServiceFutureStub(channel, callOptions); + } + }; return KeyDashboardServiceFutureStub.newStub(factory, channel); } /** + * + * * <pre> * Provides a cross-region view of all Cloud KMS keys in a given Cloud project. * </pre> @@ -101,42 +133,49 @@ public KeyDashboardServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.Ca public interface AsyncService { /** + * + * * <pre> * Returns cryptographic keys managed by Cloud KMS in a given Cloud project. * Note that this data is sourced from snapshots, meaning it may not * completely reflect the actual state of key metadata at call time. * </pre> */ - default void listCryptoKeys(com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest request, - io.grpc.stub.StreamObserver<com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse> responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListCryptoKeysMethod(), responseObserver); + default void listCryptoKeys( + com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest request, + io.grpc.stub.StreamObserver<com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListCryptoKeysMethod(), responseObserver); } } /** * Base class for the server implementation of the service KeyDashboardService. + * * <pre> * Provides a cross-region view of all Cloud KMS keys in a given Cloud project. * </pre> */ - public static abstract class KeyDashboardServiceImplBase + public abstract static class KeyDashboardServiceImplBase implements io.grpc.BindableService, AsyncService { - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { return KeyDashboardServiceGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service KeyDashboardService. + * * <pre> * Provides a cross-region view of all Cloud KMS keys in a given Cloud project. * </pre> */ public static final class KeyDashboardServiceStub extends io.grpc.stub.AbstractAsyncStub<KeyDashboardServiceStub> { - private KeyDashboardServiceStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + private KeyDashboardServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -147,21 +186,28 @@ protected KeyDashboardServiceStub build( } /** + * + * * <pre> * Returns cryptographic keys managed by Cloud KMS in a given Cloud project. * Note that this data is sourced from snapshots, meaning it may not * completely reflect the actual state of key metadata at call time. * </pre> */ - public void listCryptoKeys(com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest request, - io.grpc.stub.StreamObserver<com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse> responseObserver) { + public void listCryptoKeys( + com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest request, + io.grpc.stub.StreamObserver<com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse> + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListCryptoKeysMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getListCryptoKeysMethod(), getCallOptions()), + request, + responseObserver); } } /** * A stub to allow clients to do synchronous rpc calls to service KeyDashboardService. + * * <pre> * Provides a cross-region view of all Cloud KMS keys in a given Cloud project. * </pre> @@ -180,13 +226,16 @@ protected KeyDashboardServiceBlockingStub build( } /** + * + * * <pre> * Returns cryptographic keys managed by Cloud KMS in a given Cloud project. * Note that this data is sourced from snapshots, meaning it may not * completely reflect the actual state of key metadata at call time. * </pre> */ - public com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse listCryptoKeys(com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest request) { + public com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse listCryptoKeys( + com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListCryptoKeysMethod(), getCallOptions(), request); } @@ -194,6 +243,7 @@ public com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse listCryptoKeys(c /** * A stub to allow clients to do ListenableFuture-style rpc calls to service KeyDashboardService. + * * <pre> * Provides a cross-region view of all Cloud KMS keys in a given Cloud project. * </pre> @@ -212,14 +262,17 @@ protected KeyDashboardServiceFutureStub build( } /** + * + * * <pre> * Returns cryptographic keys managed by Cloud KMS in a given Cloud project. * Note that this data is sourced from snapshots, meaning it may not * completely reflect the actual state of key metadata at call time. * </pre> */ - public com.google.common.util.concurrent.ListenableFuture<com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse> listCryptoKeys( - com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse> + listCryptoKeys(com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListCryptoKeysMethod(), getCallOptions()), request); } @@ -227,11 +280,11 @@ public com.google.common.util.concurrent.ListenableFuture<com.google.cloud.kms.i private static final int METHODID_LIST_CRYPTO_KEYS = 0; - private static final class MethodHandlers<Req, Resp> implements - io.grpc.stub.ServerCalls.UnaryMethod<Req, Resp>, - io.grpc.stub.ServerCalls.ServerStreamingMethod<Req, Resp>, - io.grpc.stub.ServerCalls.ClientStreamingMethod<Req, Resp>, - io.grpc.stub.ServerCalls.BidiStreamingMethod<Req, Resp> { + private static final class MethodHandlers<Req, Resp> + implements io.grpc.stub.ServerCalls.UnaryMethod<Req, Resp>, + io.grpc.stub.ServerCalls.ServerStreamingMethod<Req, Resp>, + io.grpc.stub.ServerCalls.ClientStreamingMethod<Req, Resp>, + io.grpc.stub.ServerCalls.BidiStreamingMethod<Req, Resp> { private final AsyncService serviceImpl; private final int methodId; @@ -245,8 +298,11 @@ private static final class MethodHandlers<Req, Resp> implements public void invoke(Req request, io.grpc.stub.StreamObserver<Resp> responseObserver) { switch (methodId) { case METHODID_LIST_CRYPTO_KEYS: - serviceImpl.listCryptoKeys((com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest) request, - (io.grpc.stub.StreamObserver<com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse>) responseObserver); + serviceImpl.listCryptoKeys( + (com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse>) + responseObserver); break; default: throw new AssertionError(); @@ -267,17 +323,18 @@ public io.grpc.stub.StreamObserver<Req> invoke( public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getListCryptoKeysMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest, - com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse>( - service, METHODID_LIST_CRYPTO_KEYS))) + getListCryptoKeysMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest, + com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse>( + service, METHODID_LIST_CRYPTO_KEYS))) .build(); } - private static abstract class KeyDashboardServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private abstract static class KeyDashboardServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { KeyDashboardServiceBaseDescriptorSupplier() {} @java.lang.Override @@ -319,10 +376,12 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (KeyDashboardServiceGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new KeyDashboardServiceFileDescriptorSupplier()) - .addMethod(getListCryptoKeysMethod()) - .build(); + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new KeyDashboardServiceFileDescriptorSupplier()) + .addMethod(getListCryptoKeysMethod()) + .build(); } } } diff --git a/owl-bot-staging/java-kmsinventory/v1/grpc-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/KeyTrackingServiceGrpc.java b/java-kmsinventory/grpc-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/KeyTrackingServiceGrpc.java similarity index 50% rename from owl-bot-staging/java-kmsinventory/v1/grpc-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/KeyTrackingServiceGrpc.java rename to java-kmsinventory/grpc-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/KeyTrackingServiceGrpc.java index 57ac8d043e59..fe4d42d2fe2e 100644 --- a/owl-bot-staging/java-kmsinventory/v1/grpc-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/KeyTrackingServiceGrpc.java +++ b/java-kmsinventory/grpc-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/KeyTrackingServiceGrpc.java @@ -1,8 +1,25 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.google.cloud.kms.inventory.v1; import static io.grpc.MethodDescriptor.generateFullMethodName; /** + * + * * <pre> * Returns information about the resources in an org that are protected by a * given Cloud KMS key via CMEK. @@ -19,113 +36,156 @@ private KeyTrackingServiceGrpc() {} public static final String SERVICE_NAME = "google.cloud.kms.inventory.v1.KeyTrackingService"; // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor<com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest, - com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary> getGetProtectedResourcesSummaryMethod; + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest, + com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary> + getGetProtectedResourcesSummaryMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetProtectedResourcesSummary", requestType = com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest.class, responseType = com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor<com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest, - com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary> getGetProtectedResourcesSummaryMethod() { - io.grpc.MethodDescriptor<com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest, com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary> getGetProtectedResourcesSummaryMethod; - if ((getGetProtectedResourcesSummaryMethod = KeyTrackingServiceGrpc.getGetProtectedResourcesSummaryMethod) == null) { + public static io.grpc.MethodDescriptor< + com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest, + com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary> + getGetProtectedResourcesSummaryMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest, + com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary> + getGetProtectedResourcesSummaryMethod; + if ((getGetProtectedResourcesSummaryMethod = + KeyTrackingServiceGrpc.getGetProtectedResourcesSummaryMethod) + == null) { synchronized (KeyTrackingServiceGrpc.class) { - if ((getGetProtectedResourcesSummaryMethod = KeyTrackingServiceGrpc.getGetProtectedResourcesSummaryMethod) == null) { - KeyTrackingServiceGrpc.getGetProtectedResourcesSummaryMethod = getGetProtectedResourcesSummaryMethod = - io.grpc.MethodDescriptor.<com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest, com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary>newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetProtectedResourcesSummary")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary.getDefaultInstance())) - .setSchemaDescriptor(new KeyTrackingServiceMethodDescriptorSupplier("GetProtectedResourcesSummary")) - .build(); + if ((getGetProtectedResourcesSummaryMethod = + KeyTrackingServiceGrpc.getGetProtectedResourcesSummaryMethod) + == null) { + KeyTrackingServiceGrpc.getGetProtectedResourcesSummaryMethod = + getGetProtectedResourcesSummaryMethod = + io.grpc.MethodDescriptor + .<com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest, + com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary> + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetProtectedResourcesSummary")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary + .getDefaultInstance())) + .setSchemaDescriptor( + new KeyTrackingServiceMethodDescriptorSupplier( + "GetProtectedResourcesSummary")) + .build(); } } } return getGetProtectedResourcesSummaryMethod; } - private static volatile io.grpc.MethodDescriptor<com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest, - com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse> getSearchProtectedResourcesMethod; + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest, + com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse> + getSearchProtectedResourcesMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "SearchProtectedResources", requestType = com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest.class, responseType = com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor<com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest, - com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse> getSearchProtectedResourcesMethod() { - io.grpc.MethodDescriptor<com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest, com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse> getSearchProtectedResourcesMethod; - if ((getSearchProtectedResourcesMethod = KeyTrackingServiceGrpc.getSearchProtectedResourcesMethod) == null) { + public static io.grpc.MethodDescriptor< + com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest, + com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse> + getSearchProtectedResourcesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest, + com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse> + getSearchProtectedResourcesMethod; + if ((getSearchProtectedResourcesMethod = + KeyTrackingServiceGrpc.getSearchProtectedResourcesMethod) + == null) { synchronized (KeyTrackingServiceGrpc.class) { - if ((getSearchProtectedResourcesMethod = KeyTrackingServiceGrpc.getSearchProtectedResourcesMethod) == null) { - KeyTrackingServiceGrpc.getSearchProtectedResourcesMethod = getSearchProtectedResourcesMethod = - io.grpc.MethodDescriptor.<com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest, com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse>newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SearchProtectedResources")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse.getDefaultInstance())) - .setSchemaDescriptor(new KeyTrackingServiceMethodDescriptorSupplier("SearchProtectedResources")) - .build(); + if ((getSearchProtectedResourcesMethod = + KeyTrackingServiceGrpc.getSearchProtectedResourcesMethod) + == null) { + KeyTrackingServiceGrpc.getSearchProtectedResourcesMethod = + getSearchProtectedResourcesMethod = + io.grpc.MethodDescriptor + .<com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest, + com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse> + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "SearchProtectedResources")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new KeyTrackingServiceMethodDescriptorSupplier( + "SearchProtectedResources")) + .build(); } } } return getSearchProtectedResourcesMethod; } - /** - * Creates a new async stub that supports all call types for the service - */ + /** Creates a new async stub that supports all call types for the service */ public static KeyTrackingServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory<KeyTrackingServiceStub> factory = - new io.grpc.stub.AbstractStub.StubFactory<KeyTrackingServiceStub>() { - @java.lang.Override - public KeyTrackingServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new KeyTrackingServiceStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory<KeyTrackingServiceStub>() { + @java.lang.Override + public KeyTrackingServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new KeyTrackingServiceStub(channel, callOptions); + } + }; return KeyTrackingServiceStub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ - public static KeyTrackingServiceBlockingStub newBlockingStub( - io.grpc.Channel channel) { + public static KeyTrackingServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory<KeyTrackingServiceBlockingStub> factory = - new io.grpc.stub.AbstractStub.StubFactory<KeyTrackingServiceBlockingStub>() { - @java.lang.Override - public KeyTrackingServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new KeyTrackingServiceBlockingStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory<KeyTrackingServiceBlockingStub>() { + @java.lang.Override + public KeyTrackingServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new KeyTrackingServiceBlockingStub(channel, callOptions); + } + }; return KeyTrackingServiceBlockingStub.newStub(factory, channel); } - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static KeyTrackingServiceFutureStub newFutureStub( - io.grpc.Channel channel) { + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static KeyTrackingServiceFutureStub newFutureStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory<KeyTrackingServiceFutureStub> factory = - new io.grpc.stub.AbstractStub.StubFactory<KeyTrackingServiceFutureStub>() { - @java.lang.Override - public KeyTrackingServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new KeyTrackingServiceFutureStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory<KeyTrackingServiceFutureStub>() { + @java.lang.Override + public KeyTrackingServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new KeyTrackingServiceFutureStub(channel, callOptions); + } + }; return KeyTrackingServiceFutureStub.newStub(factory, channel); } /** + * + * * <pre> * Returns information about the resources in an org that are protected by a * given Cloud KMS key via CMEK. @@ -134,6 +194,8 @@ public KeyTrackingServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.Cal public interface AsyncService { /** + * + * * <pre> * Returns aggregate information about the resources protected by the given * Cloud KMS [CryptoKey][google.cloud.kms.v1.CryptoKey]. Only resources within @@ -142,40 +204,52 @@ public interface AsyncService { * succeed. * </pre> */ - default void getProtectedResourcesSummary(com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest request, - io.grpc.stub.StreamObserver<com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary> responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetProtectedResourcesSummaryMethod(), responseObserver); + default void getProtectedResourcesSummary( + com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest request, + io.grpc.stub.StreamObserver<com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetProtectedResourcesSummaryMethod(), responseObserver); } /** + * + * * <pre> * Returns metadata about the resources protected by the given Cloud KMS * [CryptoKey][google.cloud.kms.v1.CryptoKey] in the given Cloud organization. * </pre> */ - default void searchProtectedResources(com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest request, - io.grpc.stub.StreamObserver<com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse> responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSearchProtectedResourcesMethod(), responseObserver); + default void searchProtectedResources( + com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSearchProtectedResourcesMethod(), responseObserver); } } /** * Base class for the server implementation of the service KeyTrackingService. + * * <pre> * Returns information about the resources in an org that are protected by a * given Cloud KMS key via CMEK. * </pre> */ - public static abstract class KeyTrackingServiceImplBase + public abstract static class KeyTrackingServiceImplBase implements io.grpc.BindableService, AsyncService { - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { return KeyTrackingServiceGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service KeyTrackingService. + * * <pre> * Returns information about the resources in an org that are protected by a * given Cloud KMS key via CMEK. @@ -183,8 +257,7 @@ public static abstract class KeyTrackingServiceImplBase */ public static final class KeyTrackingServiceStub extends io.grpc.stub.AbstractAsyncStub<KeyTrackingServiceStub> { - private KeyTrackingServiceStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + private KeyTrackingServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -195,6 +268,8 @@ protected KeyTrackingServiceStub build( } /** + * + * * <pre> * Returns aggregate information about the resources protected by the given * Cloud KMS [CryptoKey][google.cloud.kms.v1.CryptoKey]. Only resources within @@ -203,27 +278,39 @@ protected KeyTrackingServiceStub build( * succeed. * </pre> */ - public void getProtectedResourcesSummary(com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest request, - io.grpc.stub.StreamObserver<com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary> responseObserver) { + public void getProtectedResourcesSummary( + com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest request, + io.grpc.stub.StreamObserver<com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary> + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetProtectedResourcesSummaryMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getGetProtectedResourcesSummaryMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * * <pre> * Returns metadata about the resources protected by the given Cloud KMS * [CryptoKey][google.cloud.kms.v1.CryptoKey] in the given Cloud organization. * </pre> */ - public void searchProtectedResources(com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest request, - io.grpc.stub.StreamObserver<com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse> responseObserver) { + public void searchProtectedResources( + com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse> + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSearchProtectedResourcesMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getSearchProtectedResourcesMethod(), getCallOptions()), + request, + responseObserver); } } /** * A stub to allow clients to do synchronous rpc calls to service KeyTrackingService. + * * <pre> * Returns information about the resources in an org that are protected by a * given Cloud KMS key via CMEK. @@ -243,6 +330,8 @@ protected KeyTrackingServiceBlockingStub build( } /** + * + * * <pre> * Returns aggregate information about the resources protected by the given * Cloud KMS [CryptoKey][google.cloud.kms.v1.CryptoKey]. Only resources within @@ -251,18 +340,23 @@ protected KeyTrackingServiceBlockingStub build( * succeed. * </pre> */ - public com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary getProtectedResourcesSummary(com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest request) { + public com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary getProtectedResourcesSummary( + com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetProtectedResourcesSummaryMethod(), getCallOptions(), request); } /** + * + * * <pre> * Returns metadata about the resources protected by the given Cloud KMS * [CryptoKey][google.cloud.kms.v1.CryptoKey] in the given Cloud organization. * </pre> */ - public com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse searchProtectedResources(com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest request) { + public com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse + searchProtectedResources( + com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getSearchProtectedResourcesMethod(), getCallOptions(), request); } @@ -270,6 +364,7 @@ public com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse search /** * A stub to allow clients to do ListenableFuture-style rpc calls to service KeyTrackingService. + * * <pre> * Returns information about the resources in an org that are protected by a * given Cloud KMS key via CMEK. @@ -277,8 +372,7 @@ public com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse search */ public static final class KeyTrackingServiceFutureStub extends io.grpc.stub.AbstractFutureStub<KeyTrackingServiceFutureStub> { - private KeyTrackingServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + private KeyTrackingServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -289,6 +383,8 @@ protected KeyTrackingServiceFutureStub build( } /** + * + * * <pre> * Returns aggregate information about the resources protected by the given * Cloud KMS [CryptoKey][google.cloud.kms.v1.CryptoKey]. Only resources within @@ -297,20 +393,26 @@ protected KeyTrackingServiceFutureStub build( * succeed. * </pre> */ - public com.google.common.util.concurrent.ListenableFuture<com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary> getProtectedResourcesSummary( - com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary> + getProtectedResourcesSummary( + com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetProtectedResourcesSummaryMethod(), getCallOptions()), request); } /** + * + * * <pre> * Returns metadata about the resources protected by the given Cloud KMS * [CryptoKey][google.cloud.kms.v1.CryptoKey] in the given Cloud organization. * </pre> */ - public com.google.common.util.concurrent.ListenableFuture<com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse> searchProtectedResources( - com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse> + searchProtectedResources( + com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getSearchProtectedResourcesMethod(), getCallOptions()), request); } @@ -319,11 +421,11 @@ public com.google.common.util.concurrent.ListenableFuture<com.google.cloud.kms.i private static final int METHODID_GET_PROTECTED_RESOURCES_SUMMARY = 0; private static final int METHODID_SEARCH_PROTECTED_RESOURCES = 1; - private static final class MethodHandlers<Req, Resp> implements - io.grpc.stub.ServerCalls.UnaryMethod<Req, Resp>, - io.grpc.stub.ServerCalls.ServerStreamingMethod<Req, Resp>, - io.grpc.stub.ServerCalls.ClientStreamingMethod<Req, Resp>, - io.grpc.stub.ServerCalls.BidiStreamingMethod<Req, Resp> { + private static final class MethodHandlers<Req, Resp> + implements io.grpc.stub.ServerCalls.UnaryMethod<Req, Resp>, + io.grpc.stub.ServerCalls.ServerStreamingMethod<Req, Resp>, + io.grpc.stub.ServerCalls.ClientStreamingMethod<Req, Resp>, + io.grpc.stub.ServerCalls.BidiStreamingMethod<Req, Resp> { private final AsyncService serviceImpl; private final int methodId; @@ -337,12 +439,18 @@ private static final class MethodHandlers<Req, Resp> implements public void invoke(Req request, io.grpc.stub.StreamObserver<Resp> responseObserver) { switch (methodId) { case METHODID_GET_PROTECTED_RESOURCES_SUMMARY: - serviceImpl.getProtectedResourcesSummary((com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest) request, - (io.grpc.stub.StreamObserver<com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary>) responseObserver); + serviceImpl.getProtectedResourcesSummary( + (com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary>) + responseObserver); break; case METHODID_SEARCH_PROTECTED_RESOURCES: - serviceImpl.searchProtectedResources((com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest) request, - (io.grpc.stub.StreamObserver<com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse>) responseObserver); + serviceImpl.searchProtectedResources( + (com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse>) + responseObserver); break; default: throw new AssertionError(); @@ -363,24 +471,25 @@ public io.grpc.stub.StreamObserver<Req> invoke( public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getGetProtectedResourcesSummaryMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest, - com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary>( - service, METHODID_GET_PROTECTED_RESOURCES_SUMMARY))) + getGetProtectedResourcesSummaryMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest, + com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary>( + service, METHODID_GET_PROTECTED_RESOURCES_SUMMARY))) .addMethod( - getSearchProtectedResourcesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest, - com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse>( - service, METHODID_SEARCH_PROTECTED_RESOURCES))) + getSearchProtectedResourcesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest, + com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse>( + service, METHODID_SEARCH_PROTECTED_RESOURCES))) .build(); } - private static abstract class KeyTrackingServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private abstract static class KeyTrackingServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { KeyTrackingServiceBaseDescriptorSupplier() {} @java.lang.Override @@ -422,11 +531,13 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (KeyTrackingServiceGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new KeyTrackingServiceFileDescriptorSupplier()) - .addMethod(getGetProtectedResourcesSummaryMethod()) - .addMethod(getSearchProtectedResourcesMethod()) - .build(); + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new KeyTrackingServiceFileDescriptorSupplier()) + .addMethod(getGetProtectedResourcesSummaryMethod()) + .addMethod(getSearchProtectedResourcesMethod()) + .build(); } } } diff --git a/owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/GetProtectedResourcesSummaryRequest.java b/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/GetProtectedResourcesSummaryRequest.java similarity index 59% rename from owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/GetProtectedResourcesSummaryRequest.java rename to java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/GetProtectedResourcesSummaryRequest.java index 8e75ea6bcfd6..957bc0d90ee8 100644 --- a/owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/GetProtectedResourcesSummaryRequest.java +++ b/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/GetProtectedResourcesSummaryRequest.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/kms/inventory/v1/key_tracking_service.proto package com.google.cloud.kms.inventory.v1; /** + * + * * <pre> * Request message for * [KeyTrackingService.GetProtectedResourcesSummary][google.cloud.kms.inventory.v1.KeyTrackingService.GetProtectedResourcesSummary]. @@ -11,49 +28,59 @@ * * Protobuf type {@code google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest} */ -public final class GetProtectedResourcesSummaryRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetProtectedResourcesSummaryRequest + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest) GetProtectedResourcesSummaryRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetProtectedResourcesSummaryRequest.newBuilder() to construct. - private GetProtectedResourcesSummaryRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { + private GetProtectedResourcesSummaryRequest( + com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } + private GetProtectedResourcesSummaryRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetProtectedResourcesSummaryRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.kms.inventory.v1.KeyTrackingServiceProto.internal_static_google_cloud_kms_inventory_v1_GetProtectedResourcesSummaryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.kms.inventory.v1.KeyTrackingServiceProto + .internal_static_google_cloud_kms_inventory_v1_GetProtectedResourcesSummaryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.kms.inventory.v1.KeyTrackingServiceProto.internal_static_google_cloud_kms_inventory_v1_GetProtectedResourcesSummaryRequest_fieldAccessorTable + return com.google.cloud.kms.inventory.v1.KeyTrackingServiceProto + .internal_static_google_cloud_kms_inventory_v1_GetProtectedResourcesSummaryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest.class, com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest.Builder.class); + com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest.class, + com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * * <pre> * Required. The resource name of the * [CryptoKey][google.cloud.kms.v1.CryptoKey]. * </pre> * - * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> + * <code> + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * </code> + * * @return The name. */ @java.lang.Override @@ -62,30 +89,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * * <pre> * Required. The resource name of the * [CryptoKey][google.cloud.kms.v1.CryptoKey]. * </pre> * - * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> + * <code> + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * </code> + * * @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 { @@ -94,6 +123,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -105,8 +135,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_); } @@ -130,15 +159,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.kms.inventory.v1.GetProtectedResourcesSummaryRequest)) { return super.equals(obj); } - com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest other = (com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest) obj; + com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest other = + (com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -158,98 +187,105 @@ public int hashCode() { } public static com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest 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.kms.inventory.v1.GetProtectedResourcesSummaryRequest 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.kms.inventory.v1.GetProtectedResourcesSummaryRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest 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.kms.inventory.v1.GetProtectedResourcesSummaryRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest 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.kms.inventory.v1.GetProtectedResourcesSummaryRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest 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.kms.inventory.v1.GetProtectedResourcesSummaryRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest parseDelimitedFrom( - java.io.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.kms.inventory.v1.GetProtectedResourcesSummaryRequest + parseDelimitedFrom( + java.io.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.kms.inventory.v1.GetProtectedResourcesSummaryRequest 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.kms.inventory.v1.GetProtectedResourcesSummaryRequest 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.kms.inventory.v1.GetProtectedResourcesSummaryRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest 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; } /** + * + * * <pre> * Request message for * [KeyTrackingService.GetProtectedResourcesSummary][google.cloud.kms.inventory.v1.KeyTrackingService.GetProtectedResourcesSummary]. @@ -257,33 +293,33 @@ protected Builder newBuilderForType( * * Protobuf type {@code google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> + implements // @@protoc_insertion_point(builder_implements:google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest) com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.kms.inventory.v1.KeyTrackingServiceProto.internal_static_google_cloud_kms_inventory_v1_GetProtectedResourcesSummaryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.kms.inventory.v1.KeyTrackingServiceProto + .internal_static_google_cloud_kms_inventory_v1_GetProtectedResourcesSummaryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.kms.inventory.v1.KeyTrackingServiceProto.internal_static_google_cloud_kms_inventory_v1_GetProtectedResourcesSummaryRequest_fieldAccessorTable + return com.google.cloud.kms.inventory.v1.KeyTrackingServiceProto + .internal_static_google_cloud_kms_inventory_v1_GetProtectedResourcesSummaryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest.class, com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest.Builder.class); + com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest.class, + com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest.Builder.class); } - // Construct using com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -293,14 +329,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.kms.inventory.v1.KeyTrackingServiceProto.internal_static_google_cloud_kms_inventory_v1_GetProtectedResourcesSummaryRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.kms.inventory.v1.KeyTrackingServiceProto + .internal_static_google_cloud_kms_inventory_v1_GetProtectedResourcesSummaryRequest_descriptor; } @java.lang.Override - public com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest getDefaultInstanceForType() { - return com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest.getDefaultInstance(); + public com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest + getDefaultInstanceForType() { + return com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest + .getDefaultInstance(); } @java.lang.Override @@ -314,13 +352,17 @@ public com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest bui @java.lang.Override public com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest buildPartial() { - com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest result = new com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest result = + new com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest result) { + private void buildPartial0( + com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -331,46 +373,51 @@ private void buildPartial0(com.google.cloud.kms.inventory.v1.GetProtectedResourc 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.kms.inventory.v1.GetProtectedResourcesSummaryRequest) { - return mergeFrom((com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest)other); + return mergeFrom( + (com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest other) { - if (other == com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest other) { + if (other + == com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest + .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -402,17 +449,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -422,23 +471,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * * <pre> * Required. The resource name of the * [CryptoKey][google.cloud.kms.v1.CryptoKey]. * </pre> * - * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> + * <code> + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * </code> + * * @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; @@ -447,21 +501,24 @@ public java.lang.String getName() { } } /** + * + * * <pre> * Required. The resource name of the * [CryptoKey][google.cloud.kms.v1.CryptoKey]. * </pre> * - * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> + * <code> + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * </code> + * * @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 { @@ -469,30 +526,41 @@ public java.lang.String getName() { } } /** + * + * * <pre> * Required. The resource name of the * [CryptoKey][google.cloud.kms.v1.CryptoKey]. * </pre> * - * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> + * <code> + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * </code> + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * * <pre> * Required. The resource name of the * [CryptoKey][google.cloud.kms.v1.CryptoKey]. * </pre> * - * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> + * <code> + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * </code> + * * @return This builder for chaining. */ public Builder clearName() { @@ -502,27 +570,33 @@ public Builder clearName() { return this; } /** + * + * * <pre> * Required. The resource name of the * [CryptoKey][google.cloud.kms.v1.CryptoKey]. * </pre> * - * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> + * <code> + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * </code> + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -532,41 +606,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest) } // @@protoc_insertion_point(class_scope:google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest) - private static final com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest DEFAULT_INSTANCE; + private static final com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest(); } - public static com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest getDefaultInstance() { + public static com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<GetProtectedResourcesSummaryRequest> - PARSER = new com.google.protobuf.AbstractParser<GetProtectedResourcesSummaryRequest>() { - @java.lang.Override - public GetProtectedResourcesSummaryRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<GetProtectedResourcesSummaryRequest> PARSER = + new com.google.protobuf.AbstractParser<GetProtectedResourcesSummaryRequest>() { + @java.lang.Override + public GetProtectedResourcesSummaryRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<GetProtectedResourcesSummaryRequest> parser() { return PARSER; @@ -578,9 +654,8 @@ public com.google.protobuf.Parser<GetProtectedResourcesSummaryRequest> getParser } @java.lang.Override - public com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest getDefaultInstanceForType() { + public com.google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/GetProtectedResourcesSummaryRequestOrBuilder.java b/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/GetProtectedResourcesSummaryRequestOrBuilder.java new file mode 100644 index 000000000000..7e5adfa57a3c --- /dev/null +++ b/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/GetProtectedResourcesSummaryRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/kms/inventory/v1/key_tracking_service.proto + +package com.google.cloud.kms.inventory.v1; + +public interface GetProtectedResourcesSummaryRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + * <pre> + * Required. The resource name of the + * [CryptoKey][google.cloud.kms.v1.CryptoKey]. + * </pre> + * + * <code> + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * </code> + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + * <pre> + * Required. The resource name of the + * [CryptoKey][google.cloud.kms.v1.CryptoKey]. + * </pre> + * + * <code> + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * </code> + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/KeyDashboardServiceProto.java b/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/KeyDashboardServiceProto.java new file mode 100644 index 000000000000..b990cbe933a9 --- /dev/null +++ b/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/KeyDashboardServiceProto.java @@ -0,0 +1,117 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/kms/inventory/v1/key_dashboard_service.proto + +package com.google.cloud.kms.inventory.v1; + +public final class KeyDashboardServiceProto { + private KeyDashboardServiceProto() {} + + 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_kms_inventory_v1_ListCryptoKeysRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_kms_inventory_v1_ListCryptoKeysRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_kms_inventory_v1_ListCryptoKeysResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_kms_inventory_v1_ListCryptoKeysResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n9google/cloud/kms/inventory/v1/key_dash" + + "board_service.proto\022\035google.cloud.kms.in" + + "ventory.v1\032\034google/api/annotations.proto" + + "\032\027google/api/client.proto\032\037google/api/fi" + + "eld_behavior.proto\032\031google/api/resource." + + "proto\032#google/cloud/kms/v1/resources.pro" + + "to\"\220\001\n\025ListCryptoKeysRequest\022D\n\006parent\030\001" + + " \001(\tB4\342A\001\002\372A-\n+cloudresourcemanager.goog" + + "leapis.com/Project\022\027\n\tpage_size\030\002 \001(\005B\004\342" + + "A\001\001\022\030\n\npage_token\030\003 \001(\tB\004\342A\001\001\"f\n\026ListCry" + + "ptoKeysResponse\0223\n\013crypto_keys\030\001 \003(\0132\036.g" + + "oogle.cloud.kms.v1.CryptoKey\022\027\n\017next_pag" + + "e_token\030\002 \001(\t2\233\002\n\023KeyDashboardService\022\262\001" + + "\n\016ListCryptoKeys\0224.google.cloud.kms.inve" + + "ntory.v1.ListCryptoKeysRequest\0325.google." + + "cloud.kms.inventory.v1.ListCryptoKeysRes" + + "ponse\"3\332A\006parent\202\323\344\223\002$\022\"/v1/{parent=proj" + + "ects/*}/cryptoKeys\032O\312A\033kmsinventory.goog" + + "leapis.com\322A.https://www.googleapis.com/" + + "auth/cloud-platformB\303\001\n!com.google.cloud" + + ".kms.inventory.v1B\030KeyDashboardServicePr" + + "otoP\001Z?cloud.google.com/go/kms/inventory" + + "/apiv1/inventorypb;inventorypb\370\001\001\252\002\035Goog" + + "le.Cloud.Kms.Inventory.V1\312\002\035Google\\Cloud" + + "\\Kms\\Inventory\\V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.kms.v1.KmsResourcesProto.getDescriptor(), + }); + internal_static_google_cloud_kms_inventory_v1_ListCryptoKeysRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_kms_inventory_v1_ListCryptoKeysRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_kms_inventory_v1_ListCryptoKeysRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_kms_inventory_v1_ListCryptoKeysResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_kms_inventory_v1_ListCryptoKeysResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_kms_inventory_v1_ListCryptoKeysResponse_descriptor, + new java.lang.String[] { + "CryptoKeys", "NextPageToken", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.kms.v1.KmsResourcesProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/KeyTrackingServiceProto.java b/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/KeyTrackingServiceProto.java new file mode 100644 index 000000000000..35beb9fc70f4 --- /dev/null +++ b/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/KeyTrackingServiceProto.java @@ -0,0 +1,272 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/kms/inventory/v1/key_tracking_service.proto + +package com.google.cloud.kms.inventory.v1; + +public final class KeyTrackingServiceProto { + private KeyTrackingServiceProto() {} + + 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_kms_inventory_v1_GetProtectedResourcesSummaryRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_kms_inventory_v1_GetProtectedResourcesSummaryRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_ResourceTypesEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_ResourceTypesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_CloudProductsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_CloudProductsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_LocationsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_LocationsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_kms_inventory_v1_SearchProtectedResourcesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_kms_inventory_v1_SearchProtectedResourcesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_kms_inventory_v1_SearchProtectedResourcesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_kms_inventory_v1_SearchProtectedResourcesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_kms_inventory_v1_ProtectedResource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_kms_inventory_v1_ProtectedResource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_kms_inventory_v1_ProtectedResource_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_kms_inventory_v1_ProtectedResource_LabelsEntry_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n8google/cloud/kms/inventory/v1/key_trac" + + "king_service.proto\022\035google.cloud.kms.inv" + + "entory.v1\032\034google/api/annotations.proto\032" + + "\027google/api/client.proto\032\037google/api/fie" + + "ld_behavior.proto\032\031google/api/resource.p" + + "roto\032\037google/protobuf/timestamp.proto\"s\n" + + "#GetProtectedResourcesSummaryRequest\022L\n\004" + + "name\030\001 \001(\tB>\342A\001\002\372A7\n5kmsinventory.google" + + "apis.com/ProtectedResourcesSummary\"\340\006\n\031P" + + "rotectedResourcesSummary\022\014\n\004name\030\005 \001(\t\022\026" + + "\n\016resource_count\030\001 \001(\003\022\025\n\rproject_count\030" + + "\002 \001(\005\022c\n\016resource_types\030\003 \003(\0132K.google.c" + + "loud.kms.inventory.v1.ProtectedResources" + + "Summary.ResourceTypesEntry\022c\n\016cloud_prod" + + "ucts\030\006 \003(\0132K.google.cloud.kms.inventory." + + "v1.ProtectedResourcesSummary.CloudProduc" + + "tsEntry\022Z\n\tlocations\030\004 \003(\0132G.google.clou" + + "d.kms.inventory.v1.ProtectedResourcesSum" + + "mary.LocationsEntry\0324\n\022ResourceTypesEntr" + + "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\003:\0028\001\0324\n\022Clo" + + "udProductsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " + + "\001(\003:\0028\001\0320\n\016LocationsEntry\022\013\n\003key\030\001 \001(\t\022\r" + + "\n\005value\030\002 \001(\003:\0028\001:\301\002\352A\275\002\n5kmsinventory.g" + + "oogleapis.com/ProtectedResourcesSummary\022" + + "mprojects/{project}/locations/{location}" + + "/keyRings/{key_ring}/cryptoKeys/{crypto_" + + "key}/protectedResourcesSummary\022\224\001project" + + "s/{project}/locations/{location}/keyRing" + + "s/{key_ring}/cryptoKeys/{crypto_key}/cry" + + "ptoKeyVersions/{crypto_key_version}/prot" + + "ectedResourcesSummary\"\320\001\n\037SearchProtecte" + + "dResourcesRequest\022H\n\005scope\030\002 \001(\tB9\342A\001\002\372A" + + "2\n0cloudresourcemanager.googleapis.com/O" + + "rganization\022\036\n\ncrypto_key\030\001 \001(\tB\n\342A\001\002\372A\003" + + "\n\001*\022\021\n\tpage_size\030\003 \001(\005\022\022\n\npage_token\030\004 \001" + + "(\t\022\034\n\016resource_types\030\005 \003(\tB\004\342A\001\001\"\212\001\n Sea" + + "rchProtectedResourcesResponse\022M\n\023protect" + + "ed_resources\030\001 \003(\01320.google.cloud.kms.in" + + "ventory.v1.ProtectedResource\022\027\n\017next_pag" + + "e_token\030\002 \001(\t\"\372\003\n\021ProtectedResource\022\014\n\004n" + + "ame\030\001 \001(\t\022\017\n\007project\030\002 \001(\t\022\022\n\nproject_id" + + "\030\t \001(\t\022\025\n\rcloud_product\030\010 \001(\t\022\025\n\rresourc" + + "e_type\030\003 \001(\t\022\020\n\010location\030\004 \001(\t\022L\n\006labels" + + "\030\005 \003(\0132<.google.cloud.kms.inventory.v1.P" + + "rotectedResource.LabelsEntry\022I\n\022crypto_k" + + "ey_version\030\006 \001(\tB-\372A*\n(cloudkms.googleap" + + "is.com/CryptoKeyVersion\022J\n\023crypto_key_ve" + + "rsions\030\n \003(\tB-\372A*\n(cloudkms.googleapis.c" + + "om/CryptoKeyVersion\0225\n\013create_time\030\007 \001(\013" + + "2\032.google.protobuf.TimestampB\004\342A\001\003\032-\n\013La" + + "belsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" + + "\001:\'\352A$\n\037cloudasset.googleapis.com/Asset\022" + + "\001*2\332\004\n\022KeyTrackingService\022\201\002\n\034GetProtect" + + "edResourcesSummary\022B.google.cloud.kms.in" + + "ventory.v1.GetProtectedResourcesSummaryR" + + "equest\0328.google.cloud.kms.inventory.v1.P" + + "rotectedResourcesSummary\"c\332A\004name\202\323\344\223\002V\022" + + "T/v1/{name=projects/*/locations/*/keyRin" + + "gs/*/cryptoKeys/**}/protectedResourcesSu" + + "mmary\022\356\001\n\030SearchProtectedResources\022>.goo" + + "gle.cloud.kms.inventory.v1.SearchProtect" + + "edResourcesRequest\032?.google.cloud.kms.in" + + "ventory.v1.SearchProtectedResourcesRespo" + + "nse\"Q\332A\021scope, crypto_key\202\323\344\223\0027\0225/v1/{sc" + + "ope=organizations/*}/protectedResources:" + + "search\032O\312A\033kmsinventory.googleapis.com\322A" + + ".https://www.googleapis.com/auth/cloud-p" + + "latformB\302\001\n!com.google.cloud.kms.invento" + + "ry.v1B\027KeyTrackingServiceProtoP\001Z?cloud." + + "google.com/go/kms/inventory/apiv1/invent" + + "orypb;inventorypb\370\001\001\252\002\035Google.Cloud.Kms." + + "Inventory.V1\312\002\035Google\\Cloud\\Kms\\Inventor" + + "y\\V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_kms_inventory_v1_GetProtectedResourcesSummaryRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_kms_inventory_v1_GetProtectedResourcesSummaryRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_kms_inventory_v1_GetProtectedResourcesSummaryRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_descriptor, + new java.lang.String[] { + "Name", + "ResourceCount", + "ProjectCount", + "ResourceTypes", + "CloudProducts", + "Locations", + }); + internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_ResourceTypesEntry_descriptor = + internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_ResourceTypesEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_ResourceTypesEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_CloudProductsEntry_descriptor = + internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_CloudProductsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_CloudProductsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_LocationsEntry_descriptor = + internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_descriptor + .getNestedTypes() + .get(2); + internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_LocationsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_LocationsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_kms_inventory_v1_SearchProtectedResourcesRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_kms_inventory_v1_SearchProtectedResourcesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_kms_inventory_v1_SearchProtectedResourcesRequest_descriptor, + new java.lang.String[] { + "Scope", "CryptoKey", "PageSize", "PageToken", "ResourceTypes", + }); + internal_static_google_cloud_kms_inventory_v1_SearchProtectedResourcesResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_kms_inventory_v1_SearchProtectedResourcesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_kms_inventory_v1_SearchProtectedResourcesResponse_descriptor, + new java.lang.String[] { + "ProtectedResources", "NextPageToken", + }); + internal_static_google_cloud_kms_inventory_v1_ProtectedResource_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_kms_inventory_v1_ProtectedResource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_kms_inventory_v1_ProtectedResource_descriptor, + new java.lang.String[] { + "Name", + "Project", + "ProjectId", + "CloudProduct", + "ResourceType", + "Location", + "Labels", + "CryptoKeyVersion", + "CryptoKeyVersions", + "CreateTime", + }); + internal_static_google_cloud_kms_inventory_v1_ProtectedResource_LabelsEntry_descriptor = + internal_static_google_cloud_kms_inventory_v1_ProtectedResource_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_kms_inventory_v1_ProtectedResource_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_kms_inventory_v1_ProtectedResource_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ListCryptoKeysRequest.java b/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ListCryptoKeysRequest.java similarity index 68% rename from owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ListCryptoKeysRequest.java rename to java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ListCryptoKeysRequest.java index e5d02dfe9ae8..6b380a80646e 100644 --- a/owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ListCryptoKeysRequest.java +++ b/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ListCryptoKeysRequest.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/kms/inventory/v1/key_dashboard_service.proto package com.google.cloud.kms.inventory.v1; /** + * + * * <pre> * Request message for * [KeyDashboardService.ListCryptoKeys][google.cloud.kms.inventory.v1.KeyDashboardService.ListCryptoKeys]. @@ -11,15 +28,16 @@ * * Protobuf type {@code google.cloud.kms.inventory.v1.ListCryptoKeysRequest} */ -public final class ListCryptoKeysRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListCryptoKeysRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.kms.inventory.v1.ListCryptoKeysRequest) ListCryptoKeysRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListCryptoKeysRequest.newBuilder() to construct. private ListCryptoKeysRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } + private ListCryptoKeysRequest() { parent_ = ""; pageToken_ = ""; @@ -27,34 +45,41 @@ private ListCryptoKeysRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListCryptoKeysRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.kms.inventory.v1.KeyDashboardServiceProto.internal_static_google_cloud_kms_inventory_v1_ListCryptoKeysRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.kms.inventory.v1.KeyDashboardServiceProto + .internal_static_google_cloud_kms_inventory_v1_ListCryptoKeysRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.kms.inventory.v1.KeyDashboardServiceProto.internal_static_google_cloud_kms_inventory_v1_ListCryptoKeysRequest_fieldAccessorTable + return com.google.cloud.kms.inventory.v1.KeyDashboardServiceProto + .internal_static_google_cloud_kms_inventory_v1_ListCryptoKeysRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest.class, com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest.Builder.class); + com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest.class, + com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * * <pre> * Required. The Google Cloud project for which to retrieve key metadata, in * the format `projects/*` * </pre> * - * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> + * <code> + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * </code> + * * @return The parent. */ @java.lang.Override @@ -63,30 +88,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; } } /** + * + * * <pre> * Required. The Google Cloud project for which to retrieve key metadata, in * the format `projects/*` * </pre> * - * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> + * <code> + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * </code> + * * @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 { @@ -97,6 +124,8 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * * <pre> * Optional. The maximum number of keys to return. The service may return * fewer than this value. If unspecified, at most 1000 keys will be returned. @@ -104,6 +133,7 @@ public java.lang.String getParent() { * </pre> * * <code>int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL];</code> + * * @return The pageSize. */ @java.lang.Override @@ -112,15 +142,19 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * * <pre> * Optional. Pass this into a subsequent request in order to receive the next * page of results. * </pre> * * <code>string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];</code> + * * @return The pageToken. */ @java.lang.Override @@ -129,30 +163,30 @@ 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; } } /** + * + * * <pre> * Optional. Pass this into a subsequent request in order to receive the next * page of results. * </pre> * * <code>string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];</code> + * * @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 { @@ -161,6 +195,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -172,8 +207,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_); } @@ -196,8 +230,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_); @@ -210,19 +243,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.kms.inventory.v1.ListCryptoKeysRequest)) { return super.equals(obj); } - com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest other = (com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest) obj; + com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest other = + (com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -246,98 +277,104 @@ public int hashCode() { } public static com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest 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.kms.inventory.v1.ListCryptoKeysRequest 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.kms.inventory.v1.ListCryptoKeysRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest 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.kms.inventory.v1.ListCryptoKeysRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest 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.kms.inventory.v1.ListCryptoKeysRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest 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.kms.inventory.v1.ListCryptoKeysRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest 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.kms.inventory.v1.ListCryptoKeysRequest 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.kms.inventory.v1.ListCryptoKeysRequest 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.kms.inventory.v1.ListCryptoKeysRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest 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; } /** + * + * * <pre> * Request message for * [KeyDashboardService.ListCryptoKeys][google.cloud.kms.inventory.v1.KeyDashboardService.ListCryptoKeys]. @@ -345,33 +382,32 @@ protected Builder newBuilderForType( * * Protobuf type {@code google.cloud.kms.inventory.v1.ListCryptoKeysRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> + implements // @@protoc_insertion_point(builder_implements:google.cloud.kms.inventory.v1.ListCryptoKeysRequest) com.google.cloud.kms.inventory.v1.ListCryptoKeysRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.kms.inventory.v1.KeyDashboardServiceProto.internal_static_google_cloud_kms_inventory_v1_ListCryptoKeysRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.kms.inventory.v1.KeyDashboardServiceProto + .internal_static_google_cloud_kms_inventory_v1_ListCryptoKeysRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.kms.inventory.v1.KeyDashboardServiceProto.internal_static_google_cloud_kms_inventory_v1_ListCryptoKeysRequest_fieldAccessorTable + return com.google.cloud.kms.inventory.v1.KeyDashboardServiceProto + .internal_static_google_cloud_kms_inventory_v1_ListCryptoKeysRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest.class, com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest.Builder.class); + com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest.class, + com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest.Builder.class); } // Construct using com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -383,9 +419,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.kms.inventory.v1.KeyDashboardServiceProto.internal_static_google_cloud_kms_inventory_v1_ListCryptoKeysRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.kms.inventory.v1.KeyDashboardServiceProto + .internal_static_google_cloud_kms_inventory_v1_ListCryptoKeysRequest_descriptor; } @java.lang.Override @@ -404,8 +440,11 @@ public com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest build() { @java.lang.Override public com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest buildPartial() { - com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest result = new com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest result = + new com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -427,38 +466,39 @@ private void buildPartial0(com.google.cloud.kms.inventory.v1.ListCryptoKeysReque 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.kms.inventory.v1.ListCryptoKeysRequest) { - return mergeFrom((com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest)other); + return mergeFrom((com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest) other); } else { super.mergeFrom(other); return this; @@ -466,7 +506,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest other) { - if (other == com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -506,27 +547,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -536,23 +581,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * * <pre> * Required. The Google Cloud project for which to retrieve key metadata, in * the format `projects/*` * </pre> * - * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> + * <code> + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * </code> + * * @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; @@ -561,21 +611,24 @@ public java.lang.String getParent() { } } /** + * + * * <pre> * Required. The Google Cloud project for which to retrieve key metadata, in * the format `projects/*` * </pre> * - * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> + * <code> + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * </code> + * * @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 { @@ -583,30 +636,41 @@ public java.lang.String getParent() { } } /** + * + * * <pre> * Required. The Google Cloud project for which to retrieve key metadata, in * the format `projects/*` * </pre> * - * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> + * <code> + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * </code> + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * * <pre> * Required. The Google Cloud project for which to retrieve key metadata, in * the format `projects/*` * </pre> * - * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> + * <code> + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * </code> + * * @return This builder for chaining. */ public Builder clearParent() { @@ -616,18 +680,24 @@ public Builder clearParent() { return this; } /** + * + * * <pre> * Required. The Google Cloud project for which to retrieve key metadata, in * the format `projects/*` * </pre> * - * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> + * <code> + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * </code> + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -635,8 +705,10 @@ public Builder setParentBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * * <pre> * Optional. The maximum number of keys to return. The service may return * fewer than this value. If unspecified, at most 1000 keys will be returned. @@ -644,6 +716,7 @@ public Builder setParentBytes( * </pre> * * <code>int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL];</code> + * * @return The pageSize. */ @java.lang.Override @@ -651,6 +724,8 @@ public int getPageSize() { return pageSize_; } /** + * + * * <pre> * Optional. The maximum number of keys to return. The service may return * fewer than this value. If unspecified, at most 1000 keys will be returned. @@ -658,6 +733,7 @@ public int getPageSize() { * </pre> * * <code>int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL];</code> + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -669,6 +745,8 @@ public Builder setPageSize(int value) { return this; } /** + * + * * <pre> * Optional. The maximum number of keys to return. The service may return * fewer than this value. If unspecified, at most 1000 keys will be returned. @@ -676,6 +754,7 @@ public Builder setPageSize(int value) { * </pre> * * <code>int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL];</code> + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -687,19 +766,21 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * * <pre> * Optional. Pass this into a subsequent request in order to receive the next * page of results. * </pre> * * <code>string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];</code> + * * @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; @@ -708,21 +789,22 @@ public java.lang.String getPageToken() { } } /** + * + * * <pre> * Optional. Pass this into a subsequent request in order to receive the next * page of results. * </pre> * * <code>string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];</code> + * * @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 { @@ -730,30 +812,37 @@ public java.lang.String getPageToken() { } } /** + * + * * <pre> * Optional. Pass this into a subsequent request in order to receive the next * page of results. * </pre> * * <code>string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];</code> + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * * <pre> * Optional. Pass this into a subsequent request in order to receive the next * page of results. * </pre> * * <code>string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];</code> + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -763,27 +852,31 @@ public Builder clearPageToken() { return this; } /** + * + * * <pre> * Optional. Pass this into a subsequent request in order to receive the next * page of results. * </pre> * * <code>string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];</code> + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; 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); } @@ -793,12 +886,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.kms.inventory.v1.ListCryptoKeysRequest) } // @@protoc_insertion_point(class_scope:google.cloud.kms.inventory.v1.ListCryptoKeysRequest) private static final com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest(); } @@ -807,27 +900,27 @@ public static com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<ListCryptoKeysRequest> - PARSER = new com.google.protobuf.AbstractParser<ListCryptoKeysRequest>() { - @java.lang.Override - public ListCryptoKeysRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<ListCryptoKeysRequest> PARSER = + new com.google.protobuf.AbstractParser<ListCryptoKeysRequest>() { + @java.lang.Override + public ListCryptoKeysRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<ListCryptoKeysRequest> parser() { return PARSER; @@ -842,6 +935,4 @@ public com.google.protobuf.Parser<ListCryptoKeysRequest> getParserForType() { public com.google.cloud.kms.inventory.v1.ListCryptoKeysRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ListCryptoKeysRequestOrBuilder.java b/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ListCryptoKeysRequestOrBuilder.java similarity index 60% rename from owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ListCryptoKeysRequestOrBuilder.java rename to java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ListCryptoKeysRequestOrBuilder.java index 5a24b524393a..deea8ade57d2 100644 --- a/owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ListCryptoKeysRequestOrBuilder.java +++ b/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ListCryptoKeysRequestOrBuilder.java @@ -1,35 +1,62 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/kms/inventory/v1/key_dashboard_service.proto package com.google.cloud.kms.inventory.v1; -public interface ListCryptoKeysRequestOrBuilder extends +public interface ListCryptoKeysRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.kms.inventory.v1.ListCryptoKeysRequest) com.google.protobuf.MessageOrBuilder { /** + * + * * <pre> * Required. The Google Cloud project for which to retrieve key metadata, in * the format `projects/*` * </pre> * - * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> + * <code> + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * </code> + * * @return The parent. */ java.lang.String getParent(); /** + * + * * <pre> * Required. The Google Cloud project for which to retrieve key metadata, in * the format `projects/*` * </pre> * - * <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> + * <code> + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * </code> + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * * <pre> * Optional. The maximum number of keys to return. The service may return * fewer than this value. If unspecified, at most 1000 keys will be returned. @@ -37,29 +64,35 @@ public interface ListCryptoKeysRequestOrBuilder extends * </pre> * * <code>int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL];</code> + * * @return The pageSize. */ int getPageSize(); /** + * + * * <pre> * Optional. Pass this into a subsequent request in order to receive the next * page of results. * </pre> * * <code>string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];</code> + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * * <pre> * Optional. Pass this into a subsequent request in order to receive the next * page of results. * </pre> * * <code>string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];</code> + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ListCryptoKeysResponse.java b/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ListCryptoKeysResponse.java similarity index 72% rename from owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ListCryptoKeysResponse.java rename to java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ListCryptoKeysResponse.java index 788201a059ff..bfbb2bd960f6 100644 --- a/owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ListCryptoKeysResponse.java +++ b/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ListCryptoKeysResponse.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/kms/inventory/v1/key_dashboard_service.proto package com.google.cloud.kms.inventory.v1; /** + * + * * <pre> * Response message for * [KeyDashboardService.ListCryptoKeys][google.cloud.kms.inventory.v1.KeyDashboardService.ListCryptoKeys]. @@ -11,15 +28,16 @@ * * Protobuf type {@code google.cloud.kms.inventory.v1.ListCryptoKeysResponse} */ -public final class ListCryptoKeysResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListCryptoKeysResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.kms.inventory.v1.ListCryptoKeysResponse) ListCryptoKeysResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListCryptoKeysResponse.newBuilder() to construct. private ListCryptoKeysResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } + private ListCryptoKeysResponse() { cryptoKeys_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -27,28 +45,32 @@ private ListCryptoKeysResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListCryptoKeysResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.kms.inventory.v1.KeyDashboardServiceProto.internal_static_google_cloud_kms_inventory_v1_ListCryptoKeysResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.kms.inventory.v1.KeyDashboardServiceProto + .internal_static_google_cloud_kms_inventory_v1_ListCryptoKeysResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.kms.inventory.v1.KeyDashboardServiceProto.internal_static_google_cloud_kms_inventory_v1_ListCryptoKeysResponse_fieldAccessorTable + return com.google.cloud.kms.inventory.v1.KeyDashboardServiceProto + .internal_static_google_cloud_kms_inventory_v1_ListCryptoKeysResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse.class, com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse.Builder.class); + com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse.class, + com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse.Builder.class); } public static final int CRYPTO_KEYS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List<com.google.cloud.kms.v1.CryptoKey> cryptoKeys_; /** + * + * * <pre> * The list of [CryptoKeys][google.cloud.kms.v1.CryptoKey]. * </pre> @@ -60,6 +82,8 @@ public java.util.List<com.google.cloud.kms.v1.CryptoKey> getCryptoKeysList() { return cryptoKeys_; } /** + * + * * <pre> * The list of [CryptoKeys][google.cloud.kms.v1.CryptoKey]. * </pre> @@ -67,11 +91,13 @@ public java.util.List<com.google.cloud.kms.v1.CryptoKey> getCryptoKeysList() { * <code>repeated .google.cloud.kms.v1.CryptoKey crypto_keys = 1;</code> */ @java.lang.Override - public java.util.List<? extends com.google.cloud.kms.v1.CryptoKeyOrBuilder> + public java.util.List<? extends com.google.cloud.kms.v1.CryptoKeyOrBuilder> getCryptoKeysOrBuilderList() { return cryptoKeys_; } /** + * + * * <pre> * The list of [CryptoKeys][google.cloud.kms.v1.CryptoKey]. * </pre> @@ -83,6 +109,8 @@ public int getCryptoKeysCount() { return cryptoKeys_.size(); } /** + * + * * <pre> * The list of [CryptoKeys][google.cloud.kms.v1.CryptoKey]. * </pre> @@ -94,6 +122,8 @@ public com.google.cloud.kms.v1.CryptoKey getCryptoKeys(int index) { return cryptoKeys_.get(index); } /** + * + * * <pre> * The list of [CryptoKeys][google.cloud.kms.v1.CryptoKey]. * </pre> @@ -101,21 +131,24 @@ public com.google.cloud.kms.v1.CryptoKey getCryptoKeys(int index) { * <code>repeated .google.cloud.kms.v1.CryptoKey crypto_keys = 1;</code> */ @java.lang.Override - public com.google.cloud.kms.v1.CryptoKeyOrBuilder getCryptoKeysOrBuilder( - int index) { + public com.google.cloud.kms.v1.CryptoKeyOrBuilder getCryptoKeysOrBuilder(int index) { return cryptoKeys_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * * <pre> * The page token returned from the previous response if the next page is * desired. * </pre> * * <code>string next_page_token = 2;</code> + * * @return The nextPageToken. */ @java.lang.Override @@ -124,30 +157,30 @@ 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; } } /** + * + * * <pre> * The page token returned from the previous response if the next page is * desired. * </pre> * * <code>string next_page_token = 2;</code> + * * @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 { @@ -156,6 +189,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -167,8 +201,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < cryptoKeys_.size(); i++) { output.writeMessage(1, cryptoKeys_.get(i)); } @@ -185,8 +218,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < cryptoKeys_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, cryptoKeys_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, cryptoKeys_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -199,17 +231,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.kms.inventory.v1.ListCryptoKeysResponse)) { return super.equals(obj); } - com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse other = (com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse) obj; + com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse other = + (com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse) obj; - if (!getCryptoKeysList() - .equals(other.getCryptoKeysList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getCryptoKeysList().equals(other.getCryptoKeysList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -233,98 +264,104 @@ public int hashCode() { } public static com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse 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.kms.inventory.v1.ListCryptoKeysResponse 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.kms.inventory.v1.ListCryptoKeysResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse 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.kms.inventory.v1.ListCryptoKeysResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse 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.kms.inventory.v1.ListCryptoKeysResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse 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.kms.inventory.v1.ListCryptoKeysResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse 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.kms.inventory.v1.ListCryptoKeysResponse 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.kms.inventory.v1.ListCryptoKeysResponse 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.kms.inventory.v1.ListCryptoKeysResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse 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; } /** + * + * * <pre> * Response message for * [KeyDashboardService.ListCryptoKeys][google.cloud.kms.inventory.v1.KeyDashboardService.ListCryptoKeys]. @@ -332,33 +369,32 @@ protected Builder newBuilderForType( * * Protobuf type {@code google.cloud.kms.inventory.v1.ListCryptoKeysResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> + implements // @@protoc_insertion_point(builder_implements:google.cloud.kms.inventory.v1.ListCryptoKeysResponse) com.google.cloud.kms.inventory.v1.ListCryptoKeysResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.kms.inventory.v1.KeyDashboardServiceProto.internal_static_google_cloud_kms_inventory_v1_ListCryptoKeysResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.kms.inventory.v1.KeyDashboardServiceProto + .internal_static_google_cloud_kms_inventory_v1_ListCryptoKeysResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.kms.inventory.v1.KeyDashboardServiceProto.internal_static_google_cloud_kms_inventory_v1_ListCryptoKeysResponse_fieldAccessorTable + return com.google.cloud.kms.inventory.v1.KeyDashboardServiceProto + .internal_static_google_cloud_kms_inventory_v1_ListCryptoKeysResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse.class, com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse.Builder.class); + com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse.class, + com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse.Builder.class); } // Construct using com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -375,9 +411,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.kms.inventory.v1.KeyDashboardServiceProto.internal_static_google_cloud_kms_inventory_v1_ListCryptoKeysResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.kms.inventory.v1.KeyDashboardServiceProto + .internal_static_google_cloud_kms_inventory_v1_ListCryptoKeysResponse_descriptor; } @java.lang.Override @@ -396,14 +432,18 @@ public com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse build() { @java.lang.Override public com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse buildPartial() { - com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse result = new com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse(this); + com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse result = + new com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse result) { + private void buildPartialRepeatedFields( + com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse result) { if (cryptoKeysBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { cryptoKeys_ = java.util.Collections.unmodifiableList(cryptoKeys_); @@ -426,38 +466,39 @@ private void buildPartial0(com.google.cloud.kms.inventory.v1.ListCryptoKeysRespo 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.kms.inventory.v1.ListCryptoKeysResponse) { - return mergeFrom((com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse)other); + return mergeFrom((com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse) other); } else { super.mergeFrom(other); return this; @@ -465,7 +506,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse other) { - if (other == com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse.getDefaultInstance()) + return this; if (cryptoKeysBuilder_ == null) { if (!other.cryptoKeys_.isEmpty()) { if (cryptoKeys_.isEmpty()) { @@ -484,9 +526,10 @@ public Builder mergeFrom(com.google.cloud.kms.inventory.v1.ListCryptoKeysRespons cryptoKeysBuilder_ = null; cryptoKeys_ = other.cryptoKeys_; bitField0_ = (bitField0_ & ~0x00000001); - cryptoKeysBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getCryptoKeysFieldBuilder() : null; + cryptoKeysBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getCryptoKeysFieldBuilder() + : null; } else { cryptoKeysBuilder_.addAllMessages(other.cryptoKeys_); } @@ -523,30 +566,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.kms.v1.CryptoKey m = - input.readMessage( - com.google.cloud.kms.v1.CryptoKey.parser(), - extensionRegistry); - if (cryptoKeysBuilder_ == null) { - ensureCryptoKeysIsMutable(); - cryptoKeys_.add(m); - } else { - cryptoKeysBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.kms.v1.CryptoKey m = + input.readMessage( + com.google.cloud.kms.v1.CryptoKey.parser(), extensionRegistry); + if (cryptoKeysBuilder_ == null) { + ensureCryptoKeysIsMutable(); + cryptoKeys_.add(m); + } else { + cryptoKeysBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -556,21 +601,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List<com.google.cloud.kms.v1.CryptoKey> cryptoKeys_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureCryptoKeysIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { cryptoKeys_ = new java.util.ArrayList<com.google.cloud.kms.v1.CryptoKey>(cryptoKeys_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.kms.v1.CryptoKey, com.google.cloud.kms.v1.CryptoKey.Builder, com.google.cloud.kms.v1.CryptoKeyOrBuilder> cryptoKeysBuilder_; + com.google.cloud.kms.v1.CryptoKey, + com.google.cloud.kms.v1.CryptoKey.Builder, + com.google.cloud.kms.v1.CryptoKeyOrBuilder> + cryptoKeysBuilder_; /** + * + * * <pre> * The list of [CryptoKeys][google.cloud.kms.v1.CryptoKey]. * </pre> @@ -585,6 +637,8 @@ public java.util.List<com.google.cloud.kms.v1.CryptoKey> getCryptoKeysList() { } } /** + * + * * <pre> * The list of [CryptoKeys][google.cloud.kms.v1.CryptoKey]. * </pre> @@ -599,6 +653,8 @@ public int getCryptoKeysCount() { } } /** + * + * * <pre> * The list of [CryptoKeys][google.cloud.kms.v1.CryptoKey]. * </pre> @@ -613,14 +669,15 @@ public com.google.cloud.kms.v1.CryptoKey getCryptoKeys(int index) { } } /** + * + * * <pre> * The list of [CryptoKeys][google.cloud.kms.v1.CryptoKey]. * </pre> * * <code>repeated .google.cloud.kms.v1.CryptoKey crypto_keys = 1;</code> */ - public Builder setCryptoKeys( - int index, com.google.cloud.kms.v1.CryptoKey value) { + public Builder setCryptoKeys(int index, com.google.cloud.kms.v1.CryptoKey value) { if (cryptoKeysBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -634,6 +691,8 @@ public Builder setCryptoKeys( return this; } /** + * + * * <pre> * The list of [CryptoKeys][google.cloud.kms.v1.CryptoKey]. * </pre> @@ -652,6 +711,8 @@ public Builder setCryptoKeys( return this; } /** + * + * * <pre> * The list of [CryptoKeys][google.cloud.kms.v1.CryptoKey]. * </pre> @@ -672,14 +733,15 @@ public Builder addCryptoKeys(com.google.cloud.kms.v1.CryptoKey value) { return this; } /** + * + * * <pre> * The list of [CryptoKeys][google.cloud.kms.v1.CryptoKey]. * </pre> * * <code>repeated .google.cloud.kms.v1.CryptoKey crypto_keys = 1;</code> */ - public Builder addCryptoKeys( - int index, com.google.cloud.kms.v1.CryptoKey value) { + public Builder addCryptoKeys(int index, com.google.cloud.kms.v1.CryptoKey value) { if (cryptoKeysBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -693,14 +755,15 @@ public Builder addCryptoKeys( return this; } /** + * + * * <pre> * The list of [CryptoKeys][google.cloud.kms.v1.CryptoKey]. * </pre> * * <code>repeated .google.cloud.kms.v1.CryptoKey crypto_keys = 1;</code> */ - public Builder addCryptoKeys( - com.google.cloud.kms.v1.CryptoKey.Builder builderForValue) { + public Builder addCryptoKeys(com.google.cloud.kms.v1.CryptoKey.Builder builderForValue) { if (cryptoKeysBuilder_ == null) { ensureCryptoKeysIsMutable(); cryptoKeys_.add(builderForValue.build()); @@ -711,6 +774,8 @@ public Builder addCryptoKeys( return this; } /** + * + * * <pre> * The list of [CryptoKeys][google.cloud.kms.v1.CryptoKey]. * </pre> @@ -729,6 +794,8 @@ public Builder addCryptoKeys( return this; } /** + * + * * <pre> * The list of [CryptoKeys][google.cloud.kms.v1.CryptoKey]. * </pre> @@ -739,8 +806,7 @@ public Builder addAllCryptoKeys( java.lang.Iterable<? extends com.google.cloud.kms.v1.CryptoKey> values) { if (cryptoKeysBuilder_ == null) { ensureCryptoKeysIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, cryptoKeys_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, cryptoKeys_); onChanged(); } else { cryptoKeysBuilder_.addAllMessages(values); @@ -748,6 +814,8 @@ public Builder addAllCryptoKeys( return this; } /** + * + * * <pre> * The list of [CryptoKeys][google.cloud.kms.v1.CryptoKey]. * </pre> @@ -765,6 +833,8 @@ public Builder clearCryptoKeys() { return this; } /** + * + * * <pre> * The list of [CryptoKeys][google.cloud.kms.v1.CryptoKey]. * </pre> @@ -782,39 +852,44 @@ public Builder removeCryptoKeys(int index) { return this; } /** + * + * * <pre> * The list of [CryptoKeys][google.cloud.kms.v1.CryptoKey]. * </pre> * * <code>repeated .google.cloud.kms.v1.CryptoKey crypto_keys = 1;</code> */ - public com.google.cloud.kms.v1.CryptoKey.Builder getCryptoKeysBuilder( - int index) { + public com.google.cloud.kms.v1.CryptoKey.Builder getCryptoKeysBuilder(int index) { return getCryptoKeysFieldBuilder().getBuilder(index); } /** + * + * * <pre> * The list of [CryptoKeys][google.cloud.kms.v1.CryptoKey]. * </pre> * * <code>repeated .google.cloud.kms.v1.CryptoKey crypto_keys = 1;</code> */ - public com.google.cloud.kms.v1.CryptoKeyOrBuilder getCryptoKeysOrBuilder( - int index) { + public com.google.cloud.kms.v1.CryptoKeyOrBuilder getCryptoKeysOrBuilder(int index) { if (cryptoKeysBuilder_ == null) { - return cryptoKeys_.get(index); } else { + return cryptoKeys_.get(index); + } else { return cryptoKeysBuilder_.getMessageOrBuilder(index); } } /** + * + * * <pre> * The list of [CryptoKeys][google.cloud.kms.v1.CryptoKey]. * </pre> * * <code>repeated .google.cloud.kms.v1.CryptoKey crypto_keys = 1;</code> */ - public java.util.List<? extends com.google.cloud.kms.v1.CryptoKeyOrBuilder> - getCryptoKeysOrBuilderList() { + public java.util.List<? extends com.google.cloud.kms.v1.CryptoKeyOrBuilder> + getCryptoKeysOrBuilderList() { if (cryptoKeysBuilder_ != null) { return cryptoKeysBuilder_.getMessageOrBuilderList(); } else { @@ -822,6 +897,8 @@ public com.google.cloud.kms.v1.CryptoKeyOrBuilder getCryptoKeysOrBuilder( } } /** + * + * * <pre> * The list of [CryptoKeys][google.cloud.kms.v1.CryptoKey]. * </pre> @@ -829,42 +906,47 @@ public com.google.cloud.kms.v1.CryptoKeyOrBuilder getCryptoKeysOrBuilder( * <code>repeated .google.cloud.kms.v1.CryptoKey crypto_keys = 1;</code> */ public com.google.cloud.kms.v1.CryptoKey.Builder addCryptoKeysBuilder() { - return getCryptoKeysFieldBuilder().addBuilder( - com.google.cloud.kms.v1.CryptoKey.getDefaultInstance()); + return getCryptoKeysFieldBuilder() + .addBuilder(com.google.cloud.kms.v1.CryptoKey.getDefaultInstance()); } /** + * + * * <pre> * The list of [CryptoKeys][google.cloud.kms.v1.CryptoKey]. * </pre> * * <code>repeated .google.cloud.kms.v1.CryptoKey crypto_keys = 1;</code> */ - public com.google.cloud.kms.v1.CryptoKey.Builder addCryptoKeysBuilder( - int index) { - return getCryptoKeysFieldBuilder().addBuilder( - index, com.google.cloud.kms.v1.CryptoKey.getDefaultInstance()); + public com.google.cloud.kms.v1.CryptoKey.Builder addCryptoKeysBuilder(int index) { + return getCryptoKeysFieldBuilder() + .addBuilder(index, com.google.cloud.kms.v1.CryptoKey.getDefaultInstance()); } /** + * + * * <pre> * The list of [CryptoKeys][google.cloud.kms.v1.CryptoKey]. * </pre> * * <code>repeated .google.cloud.kms.v1.CryptoKey crypto_keys = 1;</code> */ - public java.util.List<com.google.cloud.kms.v1.CryptoKey.Builder> - getCryptoKeysBuilderList() { + public java.util.List<com.google.cloud.kms.v1.CryptoKey.Builder> getCryptoKeysBuilderList() { return getCryptoKeysFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.kms.v1.CryptoKey, com.google.cloud.kms.v1.CryptoKey.Builder, com.google.cloud.kms.v1.CryptoKeyOrBuilder> + com.google.cloud.kms.v1.CryptoKey, + com.google.cloud.kms.v1.CryptoKey.Builder, + com.google.cloud.kms.v1.CryptoKeyOrBuilder> getCryptoKeysFieldBuilder() { if (cryptoKeysBuilder_ == null) { - cryptoKeysBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.kms.v1.CryptoKey, com.google.cloud.kms.v1.CryptoKey.Builder, com.google.cloud.kms.v1.CryptoKeyOrBuilder>( - cryptoKeys_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + cryptoKeysBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.kms.v1.CryptoKey, + com.google.cloud.kms.v1.CryptoKey.Builder, + com.google.cloud.kms.v1.CryptoKeyOrBuilder>( + cryptoKeys_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); cryptoKeys_ = null; } return cryptoKeysBuilder_; @@ -872,19 +954,21 @@ public com.google.cloud.kms.v1.CryptoKey.Builder addCryptoKeysBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * * <pre> * The page token returned from the previous response if the next page is * desired. * </pre> * * <code>string next_page_token = 2;</code> + * * @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; @@ -893,21 +977,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * * <pre> * The page token returned from the previous response if the next page is * desired. * </pre> * * <code>string next_page_token = 2;</code> + * * @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 { @@ -915,30 +1000,37 @@ public java.lang.String getNextPageToken() { } } /** + * + * * <pre> * The page token returned from the previous response if the next page is * desired. * </pre> * * <code>string next_page_token = 2;</code> + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * * <pre> * The page token returned from the previous response if the next page is * desired. * </pre> * * <code>string next_page_token = 2;</code> + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -948,27 +1040,31 @@ public Builder clearNextPageToken() { return this; } /** + * + * * <pre> * The page token returned from the previous response if the next page is * desired. * </pre> * * <code>string next_page_token = 2;</code> + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; 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); } @@ -978,12 +1074,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.kms.inventory.v1.ListCryptoKeysResponse) } // @@protoc_insertion_point(class_scope:google.cloud.kms.inventory.v1.ListCryptoKeysResponse) private static final com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse(); } @@ -992,27 +1088,27 @@ public static com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<ListCryptoKeysResponse> - PARSER = new com.google.protobuf.AbstractParser<ListCryptoKeysResponse>() { - @java.lang.Override - public ListCryptoKeysResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<ListCryptoKeysResponse> PARSER = + new com.google.protobuf.AbstractParser<ListCryptoKeysResponse>() { + @java.lang.Override + public ListCryptoKeysResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<ListCryptoKeysResponse> parser() { return PARSER; @@ -1027,6 +1123,4 @@ public com.google.protobuf.Parser<ListCryptoKeysResponse> getParserForType() { public com.google.cloud.kms.inventory.v1.ListCryptoKeysResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ListCryptoKeysResponseOrBuilder.java b/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ListCryptoKeysResponseOrBuilder.java similarity index 67% rename from owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ListCryptoKeysResponseOrBuilder.java rename to java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ListCryptoKeysResponseOrBuilder.java index e3cc65c29dc0..304e5032bdc6 100644 --- a/owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ListCryptoKeysResponseOrBuilder.java +++ b/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ListCryptoKeysResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/kms/inventory/v1/key_dashboard_service.proto package com.google.cloud.kms.inventory.v1; -public interface ListCryptoKeysResponseOrBuilder extends +public interface ListCryptoKeysResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.kms.inventory.v1.ListCryptoKeysResponse) com.google.protobuf.MessageOrBuilder { /** + * + * * <pre> * The list of [CryptoKeys][google.cloud.kms.v1.CryptoKey]. * </pre> * * <code>repeated .google.cloud.kms.v1.CryptoKey crypto_keys = 1;</code> */ - java.util.List<com.google.cloud.kms.v1.CryptoKey> - getCryptoKeysList(); + java.util.List<com.google.cloud.kms.v1.CryptoKey> getCryptoKeysList(); /** + * + * * <pre> * The list of [CryptoKeys][google.cloud.kms.v1.CryptoKey]. * </pre> @@ -25,6 +44,8 @@ public interface ListCryptoKeysResponseOrBuilder extends */ com.google.cloud.kms.v1.CryptoKey getCryptoKeys(int index); /** + * + * * <pre> * The list of [CryptoKeys][google.cloud.kms.v1.CryptoKey]. * </pre> @@ -33,43 +54,50 @@ public interface ListCryptoKeysResponseOrBuilder extends */ int getCryptoKeysCount(); /** + * + * * <pre> * The list of [CryptoKeys][google.cloud.kms.v1.CryptoKey]. * </pre> * * <code>repeated .google.cloud.kms.v1.CryptoKey crypto_keys = 1;</code> */ - java.util.List<? extends com.google.cloud.kms.v1.CryptoKeyOrBuilder> - getCryptoKeysOrBuilderList(); + java.util.List<? extends com.google.cloud.kms.v1.CryptoKeyOrBuilder> getCryptoKeysOrBuilderList(); /** + * + * * <pre> * The list of [CryptoKeys][google.cloud.kms.v1.CryptoKey]. * </pre> * * <code>repeated .google.cloud.kms.v1.CryptoKey crypto_keys = 1;</code> */ - com.google.cloud.kms.v1.CryptoKeyOrBuilder getCryptoKeysOrBuilder( - int index); + com.google.cloud.kms.v1.CryptoKeyOrBuilder getCryptoKeysOrBuilder(int index); /** + * + * * <pre> * The page token returned from the previous response if the next page is * desired. * </pre> * * <code>string next_page_token = 2;</code> + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * * <pre> * The page token returned from the previous response if the next page is * desired. * </pre> * * <code>string next_page_token = 2;</code> + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/OrganizationName.java b/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/OrganizationName.java similarity index 100% rename from owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/OrganizationName.java rename to java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/OrganizationName.java diff --git a/owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ProjectName.java b/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ProjectName.java similarity index 100% rename from owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ProjectName.java rename to java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ProjectName.java diff --git a/owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ProtectedResource.java b/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ProtectedResource.java similarity index 71% rename from owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ProtectedResource.java rename to java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ProtectedResource.java index 4a8390b3362a..737389d5a946 100644 --- a/owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ProtectedResource.java +++ b/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ProtectedResource.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/kms/inventory/v1/key_tracking_service.proto package com.google.cloud.kms.inventory.v1; /** + * + * * <pre> * Metadata about a resource protected by a Cloud KMS key. * </pre> * * Protobuf type {@code google.cloud.kms.inventory.v1.ProtectedResource} */ -public final class ProtectedResource extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ProtectedResource extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.kms.inventory.v1.ProtectedResource) ProtectedResourceOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ProtectedResource.newBuilder() to construct. private ProtectedResource(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } + private ProtectedResource() { name_ = ""; project_ = ""; @@ -27,46 +45,48 @@ private ProtectedResource() { resourceType_ = ""; location_ = ""; cryptoKeyVersion_ = ""; - cryptoKeyVersions_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + cryptoKeyVersions_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ProtectedResource(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.kms.inventory.v1.KeyTrackingServiceProto.internal_static_google_cloud_kms_inventory_v1_ProtectedResource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.kms.inventory.v1.KeyTrackingServiceProto + .internal_static_google_cloud_kms_inventory_v1_ProtectedResource_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 5: 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.kms.inventory.v1.KeyTrackingServiceProto.internal_static_google_cloud_kms_inventory_v1_ProtectedResource_fieldAccessorTable + return com.google.cloud.kms.inventory.v1.KeyTrackingServiceProto + .internal_static_google_cloud_kms_inventory_v1_ProtectedResource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.kms.inventory.v1.ProtectedResource.class, com.google.cloud.kms.inventory.v1.ProtectedResource.Builder.class); + com.google.cloud.kms.inventory.v1.ProtectedResource.class, + com.google.cloud.kms.inventory.v1.ProtectedResource.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * * <pre> * The full resource name of the resource. * Example: @@ -74,6 +94,7 @@ protected com.google.protobuf.MapField internalGetMapField( * </pre> * * <code>string name = 1;</code> + * * @return The name. */ @java.lang.Override @@ -82,14 +103,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; } } /** + * + * * <pre> * The full resource name of the resource. * Example: @@ -97,16 +119,15 @@ public java.lang.String getName() { * </pre> * * <code>string name = 1;</code> + * * @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 { @@ -115,14 +136,18 @@ public java.lang.String getName() { } public static final int PROJECT_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object project_ = ""; /** + * + * * <pre> * Format: `projects/{PROJECT_NUMBER}`. * </pre> * * <code>string project = 2;</code> + * * @return The project. */ @java.lang.Override @@ -131,29 +156,29 @@ public java.lang.String getProject() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); project_ = s; return s; } } /** + * + * * <pre> * Format: `projects/{PROJECT_NUMBER}`. * </pre> * * <code>string project = 2;</code> + * * @return The bytes for project. */ @java.lang.Override - public com.google.protobuf.ByteString - getProjectBytes() { + public com.google.protobuf.ByteString getProjectBytes() { java.lang.Object ref = project_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); project_ = b; return b; } else { @@ -162,14 +187,18 @@ public java.lang.String getProject() { } public static final int PROJECT_ID_FIELD_NUMBER = 9; + @SuppressWarnings("serial") private volatile java.lang.Object projectId_ = ""; /** + * + * * <pre> * The ID of the project that owns the resource. * </pre> * * <code>string project_id = 9;</code> + * * @return The projectId. */ @java.lang.Override @@ -178,29 +207,29 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** + * + * * <pre> * The ID of the project that owns the resource. * </pre> * * <code>string project_id = 9;</code> + * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString - getProjectIdBytes() { + public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); projectId_ = b; return b; } else { @@ -209,15 +238,19 @@ public java.lang.String getProjectId() { } public static final int CLOUD_PRODUCT_FIELD_NUMBER = 8; + @SuppressWarnings("serial") private volatile java.lang.Object cloudProduct_ = ""; /** + * + * * <pre> * The Cloud product that owns the resource. * Example: `compute` * </pre> * * <code>string cloud_product = 8;</code> + * * @return The cloudProduct. */ @java.lang.Override @@ -226,30 +259,30 @@ public java.lang.String getCloudProduct() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cloudProduct_ = s; return s; } } /** + * + * * <pre> * The Cloud product that owns the resource. * Example: `compute` * </pre> * * <code>string cloud_product = 8;</code> + * * @return The bytes for cloudProduct. */ @java.lang.Override - public com.google.protobuf.ByteString - getCloudProductBytes() { + public com.google.protobuf.ByteString getCloudProductBytes() { java.lang.Object ref = cloudProduct_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); cloudProduct_ = b; return b; } else { @@ -258,14 +291,18 @@ public java.lang.String getCloudProduct() { } public static final int RESOURCE_TYPE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object resourceType_ = ""; /** + * + * * <pre> * Example: `compute.googleapis.com/Disk` * </pre> * * <code>string resource_type = 3;</code> + * * @return The resourceType. */ @java.lang.Override @@ -274,29 +311,29 @@ public java.lang.String getResourceType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceType_ = s; return s; } } /** + * + * * <pre> * Example: `compute.googleapis.com/Disk` * </pre> * * <code>string resource_type = 3;</code> + * * @return The bytes for resourceType. */ @java.lang.Override - public com.google.protobuf.ByteString - getResourceTypeBytes() { + public com.google.protobuf.ByteString getResourceTypeBytes() { java.lang.Object ref = resourceType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceType_ = b; return b; } else { @@ -305,15 +342,19 @@ public java.lang.String getResourceType() { } public static final int LOCATION_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object location_ = ""; /** + * + * * <pre> * Location can be `global`, regional like `us-east1`, or zonal like * `us-west1-b`. * </pre> * * <code>string location = 4;</code> + * * @return The location. */ @java.lang.Override @@ -322,30 +363,30 @@ public java.lang.String getLocation() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); location_ = s; return s; } } /** + * + * * <pre> * Location can be `global`, regional like `us-east1`, or zonal like * `us-west1-b`. * </pre> * * <code>string location = 4;</code> + * * @return The bytes for location. */ @java.lang.Override - public com.google.protobuf.ByteString - getLocationBytes() { + public com.google.protobuf.ByteString getLocationBytes() { java.lang.Object ref = location_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); location_ = b; return b; } else { @@ -354,32 +395,34 @@ public java.lang.String getLocation() { } public static final int LABELS_FIELD_NUMBER = 5; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .<java.lang.String, java.lang.String>newDefaultInstance( - com.google.cloud.kms.inventory.v1.KeyTrackingServiceProto.internal_static_google_cloud_kms_inventory_v1_ProtectedResource_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.<java.lang.String, java.lang.String>newDefaultInstance( + com.google.cloud.kms.inventory.v1.KeyTrackingServiceProto + .internal_static_google_cloud_kms_inventory_v1_ProtectedResource_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField<java.lang.String, java.lang.String> - internalGetLabels() { + private com.google.protobuf.MapField<java.lang.String, java.lang.String> labels_; + + private com.google.protobuf.MapField<java.lang.String, java.lang.String> internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * * <pre> * A key-value pair of the resource's labels (v1) to their values. * </pre> @@ -387,20 +430,21 @@ public int getLabelsCount() { * <code>map<string, string> labels = 5;</code> */ @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<java.lang.String, java.lang.String> getLabels() { return getLabelsMap(); } /** + * + * * <pre> * A key-value pair of the resource's labels (v1) to their values. * </pre> @@ -412,6 +456,8 @@ public java.util.Map<java.lang.String, java.lang.String> getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * * <pre> * A key-value pair of the resource's labels (v1) to their values. * </pre> @@ -419,17 +465,19 @@ public java.util.Map<java.lang.String, java.lang.String> getLabelsMap() { * <code>map<string, string> labels = 5;</code> */ @java.lang.Override - public /* nullable */ -java.lang.String getLabelsOrDefault( + public /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map<java.lang.String, java.lang.String> map = - internalGetLabels().getMap(); + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map<java.lang.String, java.lang.String> map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * * <pre> * A key-value pair of the resource's labels (v1) to their values. * </pre> @@ -437,11 +485,11 @@ java.lang.String getLabelsOrDefault( * <code>map<string, string> labels = 5;</code> */ @java.lang.Override - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map<java.lang.String, java.lang.String> map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map<java.lang.String, java.lang.String> map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -449,9 +497,12 @@ public java.lang.String getLabelsOrThrow( } public static final int CRYPTO_KEY_VERSION_FIELD_NUMBER = 6; + @SuppressWarnings("serial") private volatile java.lang.Object cryptoKeyVersion_ = ""; /** + * + * * <pre> * The name of the Cloud KMS * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions?hl=en) @@ -463,6 +514,7 @@ public java.lang.String getLabelsOrThrow( * </pre> * * <code>string crypto_key_version = 6 [(.google.api.resource_reference) = { ... }</code> + * * @return The cryptoKeyVersion. */ @java.lang.Override @@ -471,14 +523,15 @@ public java.lang.String getCryptoKeyVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cryptoKeyVersion_ = s; return s; } } /** + * + * * <pre> * The name of the Cloud KMS * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions?hl=en) @@ -490,16 +543,15 @@ public java.lang.String getCryptoKeyVersion() { * </pre> * * <code>string crypto_key_version = 6 [(.google.api.resource_reference) = { ... }</code> + * * @return The bytes for cryptoKeyVersion. */ @java.lang.Override - public com.google.protobuf.ByteString - getCryptoKeyVersionBytes() { + public com.google.protobuf.ByteString getCryptoKeyVersionBytes() { java.lang.Object ref = cryptoKeyVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); cryptoKeyVersion_ = b; return b; } else { @@ -508,10 +560,13 @@ public java.lang.String getCryptoKeyVersion() { } public static final int CRYPTO_KEY_VERSIONS_FIELD_NUMBER = 10; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList cryptoKeyVersions_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * * <pre> * The names of the Cloud KMS * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions?hl=en) @@ -521,14 +576,17 @@ public java.lang.String getCryptoKeyVersion() { * crypto_key_version. * </pre> * - * <code>repeated string crypto_key_versions = 10 [(.google.api.resource_reference) = { ... }</code> + * <code>repeated string crypto_key_versions = 10 [(.google.api.resource_reference) = { ... } + * </code> + * * @return A list containing the cryptoKeyVersions. */ - public com.google.protobuf.ProtocolStringList - getCryptoKeyVersionsList() { + public com.google.protobuf.ProtocolStringList getCryptoKeyVersionsList() { return cryptoKeyVersions_; } /** + * + * * <pre> * The names of the Cloud KMS * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions?hl=en) @@ -538,13 +596,17 @@ public java.lang.String getCryptoKeyVersion() { * crypto_key_version. * </pre> * - * <code>repeated string crypto_key_versions = 10 [(.google.api.resource_reference) = { ... }</code> + * <code>repeated string crypto_key_versions = 10 [(.google.api.resource_reference) = { ... } + * </code> + * * @return The count of cryptoKeyVersions. */ public int getCryptoKeyVersionsCount() { return cryptoKeyVersions_.size(); } /** + * + * * <pre> * The names of the Cloud KMS * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions?hl=en) @@ -554,7 +616,9 @@ public int getCryptoKeyVersionsCount() { * crypto_key_version. * </pre> * - * <code>repeated string crypto_key_versions = 10 [(.google.api.resource_reference) = { ... }</code> + * <code>repeated string crypto_key_versions = 10 [(.google.api.resource_reference) = { ... } + * </code> + * * @param index The index of the element to return. * @return The cryptoKeyVersions at the given index. */ @@ -562,6 +626,8 @@ public java.lang.String getCryptoKeyVersions(int index) { return cryptoKeyVersions_.get(index); } /** + * + * * <pre> * The names of the Cloud KMS * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions?hl=en) @@ -571,24 +637,29 @@ public java.lang.String getCryptoKeyVersions(int index) { * crypto_key_version. * </pre> * - * <code>repeated string crypto_key_versions = 10 [(.google.api.resource_reference) = { ... }</code> + * <code>repeated string crypto_key_versions = 10 [(.google.api.resource_reference) = { ... } + * </code> + * * @param index The index of the value to return. * @return The bytes of the cryptoKeyVersions at the given index. */ - public com.google.protobuf.ByteString - getCryptoKeyVersionsBytes(int index) { + public com.google.protobuf.ByteString getCryptoKeyVersionsBytes(int index) { return cryptoKeyVersions_.getByteString(index); } public static final int CREATE_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp createTime_; /** + * + * * <pre> * Output only. The time at which this resource was created. The granularity * is in seconds. Timestamp.nanos will always be 0. * </pre> * - * <code>.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> + * <code>.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * </code> + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -596,12 +667,16 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * * <pre> * Output only. The time at which this resource was created. The granularity * is in seconds. Timestamp.nanos will always be 0. * </pre> * - * <code>.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> + * <code>.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * </code> + * * @return The createTime. */ @java.lang.Override @@ -609,12 +684,15 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * * <pre> * Output only. The time at which this resource was created. The granularity * is in seconds. Timestamp.nanos will always be 0. * </pre> * - * <code>.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> + * <code>.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * </code> */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -622,6 +700,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -633,8 +712,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_); } @@ -647,12 +725,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, location_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 5); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 5); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cryptoKeyVersion_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, cryptoKeyVersion_); } @@ -689,22 +763,21 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, location_); } - for (java.util.Map.Entry<java.lang.String, java.lang.String> entry - : internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry<java.lang.String, java.lang.String> - labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, labels__); + for (java.util.Map.Entry<java.lang.String, java.lang.String> entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry<java.lang.String, java.lang.String> labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, labels__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cryptoKeyVersion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, cryptoKeyVersion_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getCreateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cloudProduct_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, cloudProduct_); @@ -728,35 +801,26 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.kms.inventory.v1.ProtectedResource)) { return super.equals(obj); } - com.google.cloud.kms.inventory.v1.ProtectedResource other = (com.google.cloud.kms.inventory.v1.ProtectedResource) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getProject() - .equals(other.getProject())) return false; - if (!getProjectId() - .equals(other.getProjectId())) return false; - if (!getCloudProduct() - .equals(other.getCloudProduct())) return false; - if (!getResourceType() - .equals(other.getResourceType())) return false; - if (!getLocation() - .equals(other.getLocation())) return false; - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; - if (!getCryptoKeyVersion() - .equals(other.getCryptoKeyVersion())) return false; - if (!getCryptoKeyVersionsList() - .equals(other.getCryptoKeyVersionsList())) return false; + com.google.cloud.kms.inventory.v1.ProtectedResource other = + (com.google.cloud.kms.inventory.v1.ProtectedResource) obj; + + if (!getName().equals(other.getName())) return false; + if (!getProject().equals(other.getProject())) return false; + if (!getProjectId().equals(other.getProjectId())) return false; + if (!getCloudProduct().equals(other.getCloudProduct())) return false; + if (!getResourceType().equals(other.getResourceType())) return false; + if (!getLocation().equals(other.getLocation())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getCryptoKeyVersion().equals(other.getCryptoKeyVersion())) return false; + if (!getCryptoKeyVersionsList().equals(other.getCryptoKeyVersionsList())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -801,153 +865,155 @@ public int hashCode() { } public static com.google.cloud.kms.inventory.v1.ProtectedResource 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.kms.inventory.v1.ProtectedResource 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.kms.inventory.v1.ProtectedResource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.kms.inventory.v1.ProtectedResource 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.kms.inventory.v1.ProtectedResource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.kms.inventory.v1.ProtectedResource 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.kms.inventory.v1.ProtectedResource parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.kms.inventory.v1.ProtectedResource parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.kms.inventory.v1.ProtectedResource 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.kms.inventory.v1.ProtectedResource parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.kms.inventory.v1.ProtectedResource parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.kms.inventory.v1.ProtectedResource 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.kms.inventory.v1.ProtectedResource 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.kms.inventory.v1.ProtectedResource 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.kms.inventory.v1.ProtectedResource 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; } /** + * + * * <pre> * Metadata about a resource protected by a Cloud KMS key. * </pre> * * Protobuf type {@code google.cloud.kms.inventory.v1.ProtectedResource} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> + implements // @@protoc_insertion_point(builder_implements:google.cloud.kms.inventory.v1.ProtectedResource) com.google.cloud.kms.inventory.v1.ProtectedResourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.kms.inventory.v1.KeyTrackingServiceProto.internal_static_google_cloud_kms_inventory_v1_ProtectedResource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.kms.inventory.v1.KeyTrackingServiceProto + .internal_static_google_cloud_kms_inventory_v1_ProtectedResource_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 5: 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 5: 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.kms.inventory.v1.KeyTrackingServiceProto.internal_static_google_cloud_kms_inventory_v1_ProtectedResource_fieldAccessorTable + return com.google.cloud.kms.inventory.v1.KeyTrackingServiceProto + .internal_static_google_cloud_kms_inventory_v1_ProtectedResource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.kms.inventory.v1.ProtectedResource.class, com.google.cloud.kms.inventory.v1.ProtectedResource.Builder.class); + com.google.cloud.kms.inventory.v1.ProtectedResource.class, + com.google.cloud.kms.inventory.v1.ProtectedResource.Builder.class); } // Construct using com.google.cloud.kms.inventory.v1.ProtectedResource.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -960,8 +1026,7 @@ public Builder clear() { location_ = ""; internalGetMutableLabels().clear(); cryptoKeyVersion_ = ""; - cryptoKeyVersions_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + cryptoKeyVersions_ = com.google.protobuf.LazyStringArrayList.emptyList(); createTime_ = null; if (createTimeBuilder_ != null) { createTimeBuilder_.dispose(); @@ -971,9 +1036,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.kms.inventory.v1.KeyTrackingServiceProto.internal_static_google_cloud_kms_inventory_v1_ProtectedResource_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.kms.inventory.v1.KeyTrackingServiceProto + .internal_static_google_cloud_kms_inventory_v1_ProtectedResource_descriptor; } @java.lang.Override @@ -992,8 +1057,11 @@ public com.google.cloud.kms.inventory.v1.ProtectedResource build() { @java.lang.Override public com.google.cloud.kms.inventory.v1.ProtectedResource buildPartial() { - com.google.cloud.kms.inventory.v1.ProtectedResource result = new com.google.cloud.kms.inventory.v1.ProtectedResource(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.kms.inventory.v1.ProtectedResource result = + new com.google.cloud.kms.inventory.v1.ProtectedResource(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -1030,9 +1098,7 @@ private void buildPartial0(com.google.cloud.kms.inventory.v1.ProtectedResource r result.cryptoKeyVersions_ = cryptoKeyVersions_; } if (((from_bitField0_ & 0x00000200) != 0)) { - result.createTime_ = createTimeBuilder_ == null - ? createTime_ - : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); } } @@ -1040,38 +1106,39 @@ private void buildPartial0(com.google.cloud.kms.inventory.v1.ProtectedResource r public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.kms.inventory.v1.ProtectedResource) { - return mergeFrom((com.google.cloud.kms.inventory.v1.ProtectedResource)other); + return mergeFrom((com.google.cloud.kms.inventory.v1.ProtectedResource) other); } else { super.mergeFrom(other); return this; @@ -1079,7 +1146,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.kms.inventory.v1.ProtectedResource other) { - if (other == com.google.cloud.kms.inventory.v1.ProtectedResource.getDefaultInstance()) return this; + if (other == com.google.cloud.kms.inventory.v1.ProtectedResource.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -1110,8 +1178,7 @@ public Builder mergeFrom(com.google.cloud.kms.inventory.v1.ProtectedResource oth bitField0_ |= 0x00000020; onChanged(); } - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); bitField0_ |= 0x00000040; if (!other.getCryptoKeyVersion().isEmpty()) { cryptoKeyVersion_ = other.cryptoKeyVersion_; @@ -1157,69 +1224,80 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - project_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - resourceType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 26 - case 34: { - location_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 34 - case 42: { - com.google.protobuf.MapEntry<java.lang.String, java.lang.String> - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableLabels().getMutableMap().put( - labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00000040; - break; - } // case 42 - case 50: { - cryptoKeyVersion_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000080; - break; - } // case 50 - case 58: { - input.readMessage( - getCreateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000200; - break; - } // case 58 - case 66: { - cloudProduct_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 66 - case 74: { - projectId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 74 - case 82: { - java.lang.String s = input.readStringRequireUtf8(); - ensureCryptoKeyVersionsIsMutable(); - cryptoKeyVersions_.add(s); - break; - } // case 82 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + project_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + resourceType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 26 + case 34: + { + location_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 34 + case 42: + { + com.google.protobuf.MapEntry<java.lang.String, java.lang.String> labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000040; + break; + } // case 42 + case 50: + { + cryptoKeyVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 50 + case 58: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 58 + case 66: + { + cloudProduct_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 66 + case 74: + { + projectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 74 + case 82: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureCryptoKeyVersionsIsMutable(); + cryptoKeyVersions_.add(s); + break; + } // case 82 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1229,10 +1307,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * * <pre> * The full resource name of the resource. * Example: @@ -1240,13 +1321,13 @@ public Builder mergeFrom( * </pre> * * <code>string name = 1;</code> + * * @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; @@ -1255,6 +1336,8 @@ public java.lang.String getName() { } } /** + * + * * <pre> * The full resource name of the resource. * Example: @@ -1262,15 +1345,14 @@ public java.lang.String getName() { * </pre> * * <code>string name = 1;</code> + * * @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 { @@ -1278,6 +1360,8 @@ public java.lang.String getName() { } } /** + * + * * <pre> * The full resource name of the resource. * Example: @@ -1285,18 +1369,22 @@ public java.lang.String getName() { * </pre> * * <code>string name = 1;</code> + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * * <pre> * The full resource name of the resource. * Example: @@ -1304,6 +1392,7 @@ public Builder setName( * </pre> * * <code>string name = 1;</code> + * * @return This builder for chaining. */ public Builder clearName() { @@ -1313,6 +1402,8 @@ public Builder clearName() { return this; } /** + * + * * <pre> * The full resource name of the resource. * Example: @@ -1320,12 +1411,14 @@ public Builder clearName() { * </pre> * * <code>string name = 1;</code> + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1335,18 +1428,20 @@ public Builder setNameBytes( private java.lang.Object project_ = ""; /** + * + * * <pre> * Format: `projects/{PROJECT_NUMBER}`. * </pre> * * <code>string project = 2;</code> + * * @return The project. */ public java.lang.String getProject() { java.lang.Object ref = project_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); project_ = s; return s; @@ -1355,20 +1450,21 @@ public java.lang.String getProject() { } } /** + * + * * <pre> * Format: `projects/{PROJECT_NUMBER}`. * </pre> * * <code>string project = 2;</code> + * * @return The bytes for project. */ - public com.google.protobuf.ByteString - getProjectBytes() { + public com.google.protobuf.ByteString getProjectBytes() { java.lang.Object ref = project_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); project_ = b; return b; } else { @@ -1376,28 +1472,35 @@ public java.lang.String getProject() { } } /** + * + * * <pre> * Format: `projects/{PROJECT_NUMBER}`. * </pre> * * <code>string project = 2;</code> + * * @param value The project to set. * @return This builder for chaining. */ - public Builder setProject( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setProject(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } project_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * * <pre> * Format: `projects/{PROJECT_NUMBER}`. * </pre> * * <code>string project = 2;</code> + * * @return This builder for chaining. */ public Builder clearProject() { @@ -1407,17 +1510,21 @@ public Builder clearProject() { return this; } /** + * + * * <pre> * Format: `projects/{PROJECT_NUMBER}`. * </pre> * * <code>string project = 2;</code> + * * @param value The bytes for project to set. * @return This builder for chaining. */ - public Builder setProjectBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setProjectBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); project_ = value; bitField0_ |= 0x00000002; @@ -1427,18 +1534,20 @@ public Builder setProjectBytes( private java.lang.Object projectId_ = ""; /** + * + * * <pre> * The ID of the project that owns the resource. * </pre> * * <code>string project_id = 9;</code> + * * @return The projectId. */ public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -1447,20 +1556,21 @@ public java.lang.String getProjectId() { } } /** + * + * * <pre> * The ID of the project that owns the resource. * </pre> * * <code>string project_id = 9;</code> + * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString - getProjectIdBytes() { + public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); projectId_ = b; return b; } else { @@ -1468,28 +1578,35 @@ public java.lang.String getProjectId() { } } /** + * + * * <pre> * The ID of the project that owns the resource. * </pre> * * <code>string project_id = 9;</code> + * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setProjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } projectId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * * <pre> * The ID of the project that owns the resource. * </pre> * * <code>string project_id = 9;</code> + * * @return This builder for chaining. */ public Builder clearProjectId() { @@ -1499,17 +1616,21 @@ public Builder clearProjectId() { return this; } /** + * + * * <pre> * The ID of the project that owns the resource. * </pre> * * <code>string project_id = 9;</code> + * * @param value The bytes for projectId to set. * @return This builder for chaining. */ - public Builder setProjectIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); projectId_ = value; bitField0_ |= 0x00000004; @@ -1519,19 +1640,21 @@ public Builder setProjectIdBytes( private java.lang.Object cloudProduct_ = ""; /** + * + * * <pre> * The Cloud product that owns the resource. * Example: `compute` * </pre> * * <code>string cloud_product = 8;</code> + * * @return The cloudProduct. */ public java.lang.String getCloudProduct() { java.lang.Object ref = cloudProduct_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cloudProduct_ = s; return s; @@ -1540,21 +1663,22 @@ public java.lang.String getCloudProduct() { } } /** + * + * * <pre> * The Cloud product that owns the resource. * Example: `compute` * </pre> * * <code>string cloud_product = 8;</code> + * * @return The bytes for cloudProduct. */ - public com.google.protobuf.ByteString - getCloudProductBytes() { + public com.google.protobuf.ByteString getCloudProductBytes() { java.lang.Object ref = cloudProduct_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); cloudProduct_ = b; return b; } else { @@ -1562,30 +1686,37 @@ public java.lang.String getCloudProduct() { } } /** + * + * * <pre> * The Cloud product that owns the resource. * Example: `compute` * </pre> * * <code>string cloud_product = 8;</code> + * * @param value The cloudProduct to set. * @return This builder for chaining. */ - public Builder setCloudProduct( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setCloudProduct(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } cloudProduct_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * * <pre> * The Cloud product that owns the resource. * Example: `compute` * </pre> * * <code>string cloud_product = 8;</code> + * * @return This builder for chaining. */ public Builder clearCloudProduct() { @@ -1595,18 +1726,22 @@ public Builder clearCloudProduct() { return this; } /** + * + * * <pre> * The Cloud product that owns the resource. * Example: `compute` * </pre> * * <code>string cloud_product = 8;</code> + * * @param value The bytes for cloudProduct to set. * @return This builder for chaining. */ - public Builder setCloudProductBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setCloudProductBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); cloudProduct_ = value; bitField0_ |= 0x00000008; @@ -1616,18 +1751,20 @@ public Builder setCloudProductBytes( private java.lang.Object resourceType_ = ""; /** + * + * * <pre> * Example: `compute.googleapis.com/Disk` * </pre> * * <code>string resource_type = 3;</code> + * * @return The resourceType. */ public java.lang.String getResourceType() { java.lang.Object ref = resourceType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceType_ = s; return s; @@ -1636,20 +1773,21 @@ public java.lang.String getResourceType() { } } /** + * + * * <pre> * Example: `compute.googleapis.com/Disk` * </pre> * * <code>string resource_type = 3;</code> + * * @return The bytes for resourceType. */ - public com.google.protobuf.ByteString - getResourceTypeBytes() { + public com.google.protobuf.ByteString getResourceTypeBytes() { java.lang.Object ref = resourceType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceType_ = b; return b; } else { @@ -1657,28 +1795,35 @@ public java.lang.String getResourceType() { } } /** + * + * * <pre> * Example: `compute.googleapis.com/Disk` * </pre> * * <code>string resource_type = 3;</code> + * * @param value The resourceType to set. * @return This builder for chaining. */ - public Builder setResourceType( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setResourceType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } resourceType_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * * <pre> * Example: `compute.googleapis.com/Disk` * </pre> * * <code>string resource_type = 3;</code> + * * @return This builder for chaining. */ public Builder clearResourceType() { @@ -1688,17 +1833,21 @@ public Builder clearResourceType() { return this; } /** + * + * * <pre> * Example: `compute.googleapis.com/Disk` * </pre> * * <code>string resource_type = 3;</code> + * * @param value The bytes for resourceType to set. * @return This builder for chaining. */ - public Builder setResourceTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setResourceTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); resourceType_ = value; bitField0_ |= 0x00000010; @@ -1708,19 +1857,21 @@ public Builder setResourceTypeBytes( private java.lang.Object location_ = ""; /** + * + * * <pre> * Location can be `global`, regional like `us-east1`, or zonal like * `us-west1-b`. * </pre> * * <code>string location = 4;</code> + * * @return The location. */ public java.lang.String getLocation() { java.lang.Object ref = location_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); location_ = s; return s; @@ -1729,21 +1880,22 @@ public java.lang.String getLocation() { } } /** + * + * * <pre> * Location can be `global`, regional like `us-east1`, or zonal like * `us-west1-b`. * </pre> * * <code>string location = 4;</code> + * * @return The bytes for location. */ - public com.google.protobuf.ByteString - getLocationBytes() { + public com.google.protobuf.ByteString getLocationBytes() { java.lang.Object ref = location_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); location_ = b; return b; } else { @@ -1751,30 +1903,37 @@ public java.lang.String getLocation() { } } /** + * + * * <pre> * Location can be `global`, regional like `us-east1`, or zonal like * `us-west1-b`. * </pre> * * <code>string location = 4;</code> + * * @param value The location to set. * @return This builder for chaining. */ - public Builder setLocation( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setLocation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } location_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** + * + * * <pre> * Location can be `global`, regional like `us-east1`, or zonal like * `us-west1-b`. * </pre> * * <code>string location = 4;</code> + * * @return This builder for chaining. */ public Builder clearLocation() { @@ -1784,18 +1943,22 @@ public Builder clearLocation() { return this; } /** + * + * * <pre> * Location can be `global`, regional like `us-east1`, or zonal like * `us-west1-b`. * </pre> * * <code>string location = 4;</code> + * * @param value The bytes for location to set. * @return This builder for chaining. */ - public Builder setLocationBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setLocationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); location_ = value; bitField0_ |= 0x00000020; @@ -1803,21 +1966,19 @@ public Builder setLocationBytes( return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField<java.lang.String, java.lang.String> - internalGetLabels() { + private com.google.protobuf.MapField<java.lang.String, java.lang.String> labels_; + + private com.google.protobuf.MapField<java.lang.String, java.lang.String> 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<java.lang.String, java.lang.String> internalGetMutableLabels() { 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(); @@ -1826,10 +1987,13 @@ public Builder setLocationBytes( onChanged(); return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * * <pre> * A key-value pair of the resource's labels (v1) to their values. * </pre> @@ -1837,20 +2001,21 @@ public int getLabelsCount() { * <code>map<string, string> labels = 5;</code> */ @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<java.lang.String, java.lang.String> getLabels() { return getLabelsMap(); } /** + * + * * <pre> * A key-value pair of the resource's labels (v1) to their values. * </pre> @@ -1862,6 +2027,8 @@ public java.util.Map<java.lang.String, java.lang.String> getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * * <pre> * A key-value pair of the resource's labels (v1) to their values. * </pre> @@ -1869,17 +2036,19 @@ public java.util.Map<java.lang.String, java.lang.String> getLabelsMap() { * <code>map<string, string> labels = 5;</code> */ @java.lang.Override - public /* nullable */ -java.lang.String getLabelsOrDefault( + public /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map<java.lang.String, java.lang.String> map = - internalGetLabels().getMap(); + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map<java.lang.String, java.lang.String> map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * * <pre> * A key-value pair of the resource's labels (v1) to their values. * </pre> @@ -1887,79 +2056,83 @@ java.lang.String getLabelsOrDefault( * <code>map<string, string> labels = 5;</code> */ @java.lang.Override - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map<java.lang.String, java.lang.String> map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map<java.lang.String, java.lang.String> map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } + public Builder clearLabels() { bitField0_ = (bitField0_ & ~0x00000040); - internalGetMutableLabels().getMutableMap() - .clear(); + internalGetMutableLabels().getMutableMap().clear(); return this; } /** + * + * * <pre> * A key-value pair of the resource's labels (v1) to their values. * </pre> * * <code>map<string, string> labels = 5;</code> */ - 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<java.lang.String, java.lang.String> - getMutableLabels() { + public java.util.Map<java.lang.String, java.lang.String> getMutableLabels() { bitField0_ |= 0x00000040; return internalGetMutableLabels().getMutableMap(); } /** + * + * * <pre> * A key-value pair of the resource's labels (v1) to their values. * </pre> * * <code>map<string, string> labels = 5;</code> */ - 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"); } - internalGetMutableLabels().getMutableMap() - .put(key, value); + 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"); + } + internalGetMutableLabels().getMutableMap().put(key, value); bitField0_ |= 0x00000040; return this; } /** + * + * * <pre> * A key-value pair of the resource's labels (v1) to their values. * </pre> * * <code>map<string, string> labels = 5;</code> */ - public Builder putAllLabels( - java.util.Map<java.lang.String, java.lang.String> values) { - internalGetMutableLabels().getMutableMap() - .putAll(values); + public Builder putAllLabels(java.util.Map<java.lang.String, java.lang.String> values) { + internalGetMutableLabels().getMutableMap().putAll(values); bitField0_ |= 0x00000040; return this; } private java.lang.Object cryptoKeyVersion_ = ""; /** + * + * * <pre> * The name of the Cloud KMS * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions?hl=en) @@ -1971,13 +2144,13 @@ public Builder putAllLabels( * </pre> * * <code>string crypto_key_version = 6 [(.google.api.resource_reference) = { ... }</code> + * * @return The cryptoKeyVersion. */ public java.lang.String getCryptoKeyVersion() { java.lang.Object ref = cryptoKeyVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cryptoKeyVersion_ = s; return s; @@ -1986,6 +2159,8 @@ public java.lang.String getCryptoKeyVersion() { } } /** + * + * * <pre> * The name of the Cloud KMS * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions?hl=en) @@ -1997,15 +2172,14 @@ public java.lang.String getCryptoKeyVersion() { * </pre> * * <code>string crypto_key_version = 6 [(.google.api.resource_reference) = { ... }</code> + * * @return The bytes for cryptoKeyVersion. */ - public com.google.protobuf.ByteString - getCryptoKeyVersionBytes() { + public com.google.protobuf.ByteString getCryptoKeyVersionBytes() { java.lang.Object ref = cryptoKeyVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); cryptoKeyVersion_ = b; return b; } else { @@ -2013,6 +2187,8 @@ public java.lang.String getCryptoKeyVersion() { } } /** + * + * * <pre> * The name of the Cloud KMS * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions?hl=en) @@ -2024,18 +2200,22 @@ public java.lang.String getCryptoKeyVersion() { * </pre> * * <code>string crypto_key_version = 6 [(.google.api.resource_reference) = { ... }</code> + * * @param value The cryptoKeyVersion to set. * @return This builder for chaining. */ - public Builder setCryptoKeyVersion( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setCryptoKeyVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } cryptoKeyVersion_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** + * + * * <pre> * The name of the Cloud KMS * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions?hl=en) @@ -2047,6 +2227,7 @@ public Builder setCryptoKeyVersion( * </pre> * * <code>string crypto_key_version = 6 [(.google.api.resource_reference) = { ... }</code> + * * @return This builder for chaining. */ public Builder clearCryptoKeyVersion() { @@ -2056,6 +2237,8 @@ public Builder clearCryptoKeyVersion() { return this; } /** + * + * * <pre> * The name of the Cloud KMS * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions?hl=en) @@ -2067,12 +2250,14 @@ public Builder clearCryptoKeyVersion() { * </pre> * * <code>string crypto_key_version = 6 [(.google.api.resource_reference) = { ... }</code> + * * @param value The bytes for cryptoKeyVersion to set. * @return This builder for chaining. */ - public Builder setCryptoKeyVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setCryptoKeyVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); cryptoKeyVersion_ = value; bitField0_ |= 0x00000080; @@ -2082,6 +2267,7 @@ public Builder setCryptoKeyVersionBytes( private com.google.protobuf.LazyStringArrayList cryptoKeyVersions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureCryptoKeyVersionsIsMutable() { if (!cryptoKeyVersions_.isModifiable()) { cryptoKeyVersions_ = new com.google.protobuf.LazyStringArrayList(cryptoKeyVersions_); @@ -2089,6 +2275,8 @@ private void ensureCryptoKeyVersionsIsMutable() { bitField0_ |= 0x00000100; } /** + * + * * <pre> * The names of the Cloud KMS * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions?hl=en) @@ -2098,15 +2286,18 @@ private void ensureCryptoKeyVersionsIsMutable() { * crypto_key_version. * </pre> * - * <code>repeated string crypto_key_versions = 10 [(.google.api.resource_reference) = { ... }</code> + * <code>repeated string crypto_key_versions = 10 [(.google.api.resource_reference) = { ... } + * </code> + * * @return A list containing the cryptoKeyVersions. */ - public com.google.protobuf.ProtocolStringList - getCryptoKeyVersionsList() { + public com.google.protobuf.ProtocolStringList getCryptoKeyVersionsList() { cryptoKeyVersions_.makeImmutable(); return cryptoKeyVersions_; } /** + * + * * <pre> * The names of the Cloud KMS * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions?hl=en) @@ -2116,13 +2307,17 @@ private void ensureCryptoKeyVersionsIsMutable() { * crypto_key_version. * </pre> * - * <code>repeated string crypto_key_versions = 10 [(.google.api.resource_reference) = { ... }</code> + * <code>repeated string crypto_key_versions = 10 [(.google.api.resource_reference) = { ... } + * </code> + * * @return The count of cryptoKeyVersions. */ public int getCryptoKeyVersionsCount() { return cryptoKeyVersions_.size(); } /** + * + * * <pre> * The names of the Cloud KMS * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions?hl=en) @@ -2132,7 +2327,9 @@ public int getCryptoKeyVersionsCount() { * crypto_key_version. * </pre> * - * <code>repeated string crypto_key_versions = 10 [(.google.api.resource_reference) = { ... }</code> + * <code>repeated string crypto_key_versions = 10 [(.google.api.resource_reference) = { ... } + * </code> + * * @param index The index of the element to return. * @return The cryptoKeyVersions at the given index. */ @@ -2140,6 +2337,8 @@ public java.lang.String getCryptoKeyVersions(int index) { return cryptoKeyVersions_.get(index); } /** + * + * * <pre> * The names of the Cloud KMS * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions?hl=en) @@ -2149,15 +2348,18 @@ public java.lang.String getCryptoKeyVersions(int index) { * crypto_key_version. * </pre> * - * <code>repeated string crypto_key_versions = 10 [(.google.api.resource_reference) = { ... }</code> + * <code>repeated string crypto_key_versions = 10 [(.google.api.resource_reference) = { ... } + * </code> + * * @param index The index of the value to return. * @return The bytes of the cryptoKeyVersions at the given index. */ - public com.google.protobuf.ByteString - getCryptoKeyVersionsBytes(int index) { + public com.google.protobuf.ByteString getCryptoKeyVersionsBytes(int index) { return cryptoKeyVersions_.getByteString(index); } /** + * + * * <pre> * The names of the Cloud KMS * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions?hl=en) @@ -2167,14 +2369,17 @@ public java.lang.String getCryptoKeyVersions(int index) { * crypto_key_version. * </pre> * - * <code>repeated string crypto_key_versions = 10 [(.google.api.resource_reference) = { ... }</code> + * <code>repeated string crypto_key_versions = 10 [(.google.api.resource_reference) = { ... } + * </code> + * * @param index The index to set the value at. * @param value The cryptoKeyVersions to set. * @return This builder for chaining. */ - public Builder setCryptoKeyVersions( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setCryptoKeyVersions(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureCryptoKeyVersionsIsMutable(); cryptoKeyVersions_.set(index, value); bitField0_ |= 0x00000100; @@ -2182,6 +2387,8 @@ public Builder setCryptoKeyVersions( return this; } /** + * + * * <pre> * The names of the Cloud KMS * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions?hl=en) @@ -2191,13 +2398,16 @@ public Builder setCryptoKeyVersions( * crypto_key_version. * </pre> * - * <code>repeated string crypto_key_versions = 10 [(.google.api.resource_reference) = { ... }</code> + * <code>repeated string crypto_key_versions = 10 [(.google.api.resource_reference) = { ... } + * </code> + * * @param value The cryptoKeyVersions to add. * @return This builder for chaining. */ - public Builder addCryptoKeyVersions( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addCryptoKeyVersions(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureCryptoKeyVersionsIsMutable(); cryptoKeyVersions_.add(value); bitField0_ |= 0x00000100; @@ -2205,6 +2415,8 @@ public Builder addCryptoKeyVersions( return this; } /** + * + * * <pre> * The names of the Cloud KMS * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions?hl=en) @@ -2214,20 +2426,22 @@ public Builder addCryptoKeyVersions( * crypto_key_version. * </pre> * - * <code>repeated string crypto_key_versions = 10 [(.google.api.resource_reference) = { ... }</code> + * <code>repeated string crypto_key_versions = 10 [(.google.api.resource_reference) = { ... } + * </code> + * * @param values The cryptoKeyVersions to add. * @return This builder for chaining. */ - public Builder addAllCryptoKeyVersions( - java.lang.Iterable<java.lang.String> values) { + public Builder addAllCryptoKeyVersions(java.lang.Iterable<java.lang.String> values) { ensureCryptoKeyVersionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, cryptoKeyVersions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, cryptoKeyVersions_); bitField0_ |= 0x00000100; onChanged(); return this; } /** + * + * * <pre> * The names of the Cloud KMS * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions?hl=en) @@ -2237,17 +2451,21 @@ public Builder addAllCryptoKeyVersions( * crypto_key_version. * </pre> * - * <code>repeated string crypto_key_versions = 10 [(.google.api.resource_reference) = { ... }</code> + * <code>repeated string crypto_key_versions = 10 [(.google.api.resource_reference) = { ... } + * </code> + * * @return This builder for chaining. */ public Builder clearCryptoKeyVersions() { - cryptoKeyVersions_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000100);; + cryptoKeyVersions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000100); + ; onChanged(); return this; } /** + * + * * <pre> * The names of the Cloud KMS * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions?hl=en) @@ -2257,13 +2475,16 @@ public Builder clearCryptoKeyVersions() { * crypto_key_version. * </pre> * - * <code>repeated string crypto_key_versions = 10 [(.google.api.resource_reference) = { ... }</code> + * <code>repeated string crypto_key_versions = 10 [(.google.api.resource_reference) = { ... } + * </code> + * * @param value The bytes of the cryptoKeyVersions to add. * @return This builder for chaining. */ - public Builder addCryptoKeyVersionsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addCryptoKeyVersionsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureCryptoKeyVersionsIsMutable(); cryptoKeyVersions_.add(value); @@ -2274,42 +2495,61 @@ public Builder addCryptoKeyVersionsBytes( 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_; /** + * + * * <pre> * Output only. The time at which this resource was created. The granularity * is in seconds. Timestamp.nanos will always be 0. * </pre> * - * <code>.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> + * <code> + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * </code> + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000200) != 0); } /** + * + * * <pre> * Output only. The time at which this resource was created. The granularity * is in seconds. Timestamp.nanos will always be 0. * </pre> * - * <code>.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> + * <code> + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * </code> + * * @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(); } } /** + * + * * <pre> * Output only. The time at which this resource was created. The granularity * is in seconds. Timestamp.nanos will always be 0. * </pre> * - * <code>.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> + * <code> + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * </code> */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -2325,15 +2565,18 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * * <pre> * Output only. The time at which this resource was created. The granularity * is in seconds. Timestamp.nanos will always be 0. * </pre> * - * <code>.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> + * <code> + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * </code> */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -2344,18 +2587,22 @@ public Builder setCreateTime( return this; } /** + * + * * <pre> * Output only. The time at which this resource was created. The granularity * is in seconds. Timestamp.nanos will always be 0. * </pre> * - * <code>.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> + * <code> + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * </code> */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000200) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -2368,12 +2615,16 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * * <pre> * Output only. The time at which this resource was created. The granularity * is in seconds. Timestamp.nanos will always be 0. * </pre> * - * <code>.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> + * <code> + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * </code> */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000200); @@ -2386,12 +2637,16 @@ public Builder clearCreateTime() { return this; } /** + * + * * <pre> * Output only. The time at which this resource was created. The granularity * is in seconds. Timestamp.nanos will always be 0. * </pre> * - * <code>.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> + * <code> + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * </code> */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000200; @@ -2399,45 +2654,57 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * * <pre> * Output only. The time at which this resource was created. The granularity * is in seconds. Timestamp.nanos will always be 0. * </pre> * - * <code>.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> + * <code> + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * </code> */ 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_; } } /** + * + * * <pre> * Output only. The time at which this resource was created. The granularity * is in seconds. Timestamp.nanos will always be 0. * </pre> * - * <code>.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> + * <code> + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * </code> */ 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_; } + @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); } @@ -2447,12 +2714,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.kms.inventory.v1.ProtectedResource) } // @@protoc_insertion_point(class_scope:google.cloud.kms.inventory.v1.ProtectedResource) private static final com.google.cloud.kms.inventory.v1.ProtectedResource DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.kms.inventory.v1.ProtectedResource(); } @@ -2461,27 +2728,27 @@ public static com.google.cloud.kms.inventory.v1.ProtectedResource getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<ProtectedResource> - PARSER = new com.google.protobuf.AbstractParser<ProtectedResource>() { - @java.lang.Override - public ProtectedResource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<ProtectedResource> PARSER = + new com.google.protobuf.AbstractParser<ProtectedResource>() { + @java.lang.Override + public ProtectedResource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<ProtectedResource> parser() { return PARSER; @@ -2496,6 +2763,4 @@ public com.google.protobuf.Parser<ProtectedResource> getParserForType() { public com.google.cloud.kms.inventory.v1.ProtectedResource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ProtectedResourceOrBuilder.java b/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ProtectedResourceOrBuilder.java similarity index 79% rename from owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ProtectedResourceOrBuilder.java rename to java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ProtectedResourceOrBuilder.java index 49247ebc88f9..5a949a4738fc 100644 --- a/owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ProtectedResourceOrBuilder.java +++ b/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ProtectedResourceOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/kms/inventory/v1/key_tracking_service.proto package com.google.cloud.kms.inventory.v1; -public interface ProtectedResourceOrBuilder extends +public interface ProtectedResourceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.kms.inventory.v1.ProtectedResource) com.google.protobuf.MessageOrBuilder { /** + * + * * <pre> * The full resource name of the resource. * Example: @@ -15,10 +33,13 @@ public interface ProtectedResourceOrBuilder extends * </pre> * * <code>string name = 1;</code> + * * @return The name. */ java.lang.String getName(); /** + * + * * <pre> * The full resource name of the resource. * Example: @@ -26,116 +47,143 @@ public interface ProtectedResourceOrBuilder extends * </pre> * * <code>string name = 1;</code> + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * * <pre> * Format: `projects/{PROJECT_NUMBER}`. * </pre> * * <code>string project = 2;</code> + * * @return The project. */ java.lang.String getProject(); /** + * + * * <pre> * Format: `projects/{PROJECT_NUMBER}`. * </pre> * * <code>string project = 2;</code> + * * @return The bytes for project. */ - com.google.protobuf.ByteString - getProjectBytes(); + com.google.protobuf.ByteString getProjectBytes(); /** + * + * * <pre> * The ID of the project that owns the resource. * </pre> * * <code>string project_id = 9;</code> + * * @return The projectId. */ java.lang.String getProjectId(); /** + * + * * <pre> * The ID of the project that owns the resource. * </pre> * * <code>string project_id = 9;</code> + * * @return The bytes for projectId. */ - com.google.protobuf.ByteString - getProjectIdBytes(); + com.google.protobuf.ByteString getProjectIdBytes(); /** + * + * * <pre> * The Cloud product that owns the resource. * Example: `compute` * </pre> * * <code>string cloud_product = 8;</code> + * * @return The cloudProduct. */ java.lang.String getCloudProduct(); /** + * + * * <pre> * The Cloud product that owns the resource. * Example: `compute` * </pre> * * <code>string cloud_product = 8;</code> + * * @return The bytes for cloudProduct. */ - com.google.protobuf.ByteString - getCloudProductBytes(); + com.google.protobuf.ByteString getCloudProductBytes(); /** + * + * * <pre> * Example: `compute.googleapis.com/Disk` * </pre> * * <code>string resource_type = 3;</code> + * * @return The resourceType. */ java.lang.String getResourceType(); /** + * + * * <pre> * Example: `compute.googleapis.com/Disk` * </pre> * * <code>string resource_type = 3;</code> + * * @return The bytes for resourceType. */ - com.google.protobuf.ByteString - getResourceTypeBytes(); + com.google.protobuf.ByteString getResourceTypeBytes(); /** + * + * * <pre> * Location can be `global`, regional like `us-east1`, or zonal like * `us-west1-b`. * </pre> * * <code>string location = 4;</code> + * * @return The location. */ java.lang.String getLocation(); /** + * + * * <pre> * Location can be `global`, regional like `us-east1`, or zonal like * `us-west1-b`. * </pre> * * <code>string location = 4;</code> + * * @return The bytes for location. */ - com.google.protobuf.ByteString - getLocationBytes(); + com.google.protobuf.ByteString getLocationBytes(); /** + * + * * <pre> * A key-value pair of the resource's labels (v1) to their values. * </pre> @@ -144,30 +192,31 @@ public interface ProtectedResourceOrBuilder extends */ int getLabelsCount(); /** + * + * * <pre> * A key-value pair of the resource's labels (v1) to their values. * </pre> * * <code>map<string, string> labels = 5;</code> */ - 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<java.lang.String, java.lang.String> - getLabels(); + java.util.Map<java.lang.String, java.lang.String> getLabels(); /** + * + * * <pre> * A key-value pair of the resource's labels (v1) to their values. * </pre> * * <code>map<string, string> labels = 5;</code> */ - java.util.Map<java.lang.String, java.lang.String> - getLabelsMap(); + java.util.Map<java.lang.String, java.lang.String> getLabelsMap(); /** + * + * * <pre> * A key-value pair of the resource's labels (v1) to their values. * </pre> @@ -175,21 +224,24 @@ boolean containsLabels( * <code>map<string, string> labels = 5;</code> */ /* nullable */ -java.lang.String getLabelsOrDefault( + java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * * <pre> * A key-value pair of the resource's labels (v1) to their values. * </pre> * * <code>map<string, string> labels = 5;</code> */ - java.lang.String getLabelsOrThrow( - java.lang.String key); + java.lang.String getLabelsOrThrow(java.lang.String key); /** + * + * * <pre> * The name of the Cloud KMS * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions?hl=en) @@ -201,10 +253,13 @@ java.lang.String getLabelsOrThrow( * </pre> * * <code>string crypto_key_version = 6 [(.google.api.resource_reference) = { ... }</code> + * * @return The cryptoKeyVersion. */ java.lang.String getCryptoKeyVersion(); /** + * + * * <pre> * The name of the Cloud KMS * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions?hl=en) @@ -216,12 +271,14 @@ java.lang.String getLabelsOrThrow( * </pre> * * <code>string crypto_key_version = 6 [(.google.api.resource_reference) = { ... }</code> + * * @return The bytes for cryptoKeyVersion. */ - com.google.protobuf.ByteString - getCryptoKeyVersionBytes(); + com.google.protobuf.ByteString getCryptoKeyVersionBytes(); /** + * + * * <pre> * The names of the Cloud KMS * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions?hl=en) @@ -231,12 +288,15 @@ java.lang.String getLabelsOrThrow( * crypto_key_version. * </pre> * - * <code>repeated string crypto_key_versions = 10 [(.google.api.resource_reference) = { ... }</code> + * <code>repeated string crypto_key_versions = 10 [(.google.api.resource_reference) = { ... } + * </code> + * * @return A list containing the cryptoKeyVersions. */ - java.util.List<java.lang.String> - getCryptoKeyVersionsList(); + java.util.List<java.lang.String> getCryptoKeyVersionsList(); /** + * + * * <pre> * The names of the Cloud KMS * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions?hl=en) @@ -246,11 +306,15 @@ java.lang.String getLabelsOrThrow( * crypto_key_version. * </pre> * - * <code>repeated string crypto_key_versions = 10 [(.google.api.resource_reference) = { ... }</code> + * <code>repeated string crypto_key_versions = 10 [(.google.api.resource_reference) = { ... } + * </code> + * * @return The count of cryptoKeyVersions. */ int getCryptoKeyVersionsCount(); /** + * + * * <pre> * The names of the Cloud KMS * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions?hl=en) @@ -260,12 +324,16 @@ java.lang.String getLabelsOrThrow( * crypto_key_version. * </pre> * - * <code>repeated string crypto_key_versions = 10 [(.google.api.resource_reference) = { ... }</code> + * <code>repeated string crypto_key_versions = 10 [(.google.api.resource_reference) = { ... } + * </code> + * * @param index The index of the element to return. * @return The cryptoKeyVersions at the given index. */ java.lang.String getCryptoKeyVersions(int index); /** + * + * * <pre> * The names of the Cloud KMS * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions?hl=en) @@ -275,40 +343,52 @@ java.lang.String getLabelsOrThrow( * crypto_key_version. * </pre> * - * <code>repeated string crypto_key_versions = 10 [(.google.api.resource_reference) = { ... }</code> + * <code>repeated string crypto_key_versions = 10 [(.google.api.resource_reference) = { ... } + * </code> + * * @param index The index of the value to return. * @return The bytes of the cryptoKeyVersions at the given index. */ - com.google.protobuf.ByteString - getCryptoKeyVersionsBytes(int index); + com.google.protobuf.ByteString getCryptoKeyVersionsBytes(int index); /** + * + * * <pre> * Output only. The time at which this resource was created. The granularity * is in seconds. Timestamp.nanos will always be 0. * </pre> * - * <code>.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> + * <code>.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * </code> + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * * <pre> * Output only. The time at which this resource was created. The granularity * is in seconds. Timestamp.nanos will always be 0. * </pre> * - * <code>.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> + * <code>.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * </code> + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * * <pre> * Output only. The time at which this resource was created. The granularity * is in seconds. Timestamp.nanos will always be 0. * </pre> * - * <code>.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> + * <code>.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * </code> */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); } diff --git a/owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ProtectedResourcesSummary.java b/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ProtectedResourcesSummary.java similarity index 62% rename from owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ProtectedResourcesSummary.java rename to java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ProtectedResourcesSummary.java index b50cbad09bbe..c5edcae7bc35 100644 --- a/owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ProtectedResourcesSummary.java +++ b/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ProtectedResourcesSummary.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/kms/inventory/v1/key_tracking_service.proto package com.google.cloud.kms.inventory.v1; /** + * + * * <pre> * Aggregate information about the resources protected by a Cloud KMS key in the * same Cloud organization as the key. @@ -11,35 +28,34 @@ * * Protobuf type {@code google.cloud.kms.inventory.v1.ProtectedResourcesSummary} */ -public final class ProtectedResourcesSummary extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ProtectedResourcesSummary extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.kms.inventory.v1.ProtectedResourcesSummary) ProtectedResourcesSummaryOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ProtectedResourcesSummary.newBuilder() to construct. private ProtectedResourcesSummary(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } + private ProtectedResourcesSummary() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ProtectedResourcesSummary(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.kms.inventory.v1.KeyTrackingServiceProto.internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.kms.inventory.v1.KeyTrackingServiceProto + .internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 3: return internalGetResourceTypes(); @@ -48,22 +64,27 @@ protected com.google.protobuf.MapField internalGetMapField( case 4: return internalGetLocations(); 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.kms.inventory.v1.KeyTrackingServiceProto.internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_fieldAccessorTable + return com.google.cloud.kms.inventory.v1.KeyTrackingServiceProto + .internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary.class, com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary.Builder.class); + com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary.class, + com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary.Builder.class); } public static final int NAME_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * * <pre> * The full name of the ProtectedResourcesSummary resource. * Example: @@ -71,6 +92,7 @@ protected com.google.protobuf.MapField internalGetMapField( * </pre> * * <code>string name = 5;</code> + * * @return The name. */ @java.lang.Override @@ -79,14 +101,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; } } /** + * + * * <pre> * The full name of the ProtectedResourcesSummary resource. * Example: @@ -94,16 +117,15 @@ public java.lang.String getName() { * </pre> * * <code>string name = 5;</code> + * * @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 { @@ -114,12 +136,15 @@ public java.lang.String getName() { public static final int RESOURCE_COUNT_FIELD_NUMBER = 1; private long resourceCount_ = 0L; /** + * + * * <pre> * The total number of protected resources in the same Cloud organization as * the key. * </pre> * * <code>int64 resource_count = 1;</code> + * * @return The resourceCount. */ @java.lang.Override @@ -130,12 +155,15 @@ public long getResourceCount() { public static final int PROJECT_COUNT_FIELD_NUMBER = 2; private int projectCount_ = 0; /** + * + * * <pre> * The number of distinct Cloud projects in the same Cloud organization as the * key that have resources protected by the key. * </pre> * * <code>int32 project_count = 2;</code> + * * @return The projectCount. */ @java.lang.Override @@ -144,32 +172,36 @@ public int getProjectCount() { } public static final int RESOURCE_TYPES_FIELD_NUMBER = 3; + private static final class ResourceTypesDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.Long> defaultEntry = - com.google.protobuf.MapEntry - .<java.lang.String, java.lang.Long>newDefaultInstance( - com.google.cloud.kms.inventory.v1.KeyTrackingServiceProto.internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_ResourceTypesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.INT64, - 0L); + static final com.google.protobuf.MapEntry<java.lang.String, java.lang.Long> defaultEntry = + com.google.protobuf.MapEntry.<java.lang.String, java.lang.Long>newDefaultInstance( + com.google.cloud.kms.inventory.v1.KeyTrackingServiceProto + .internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_ResourceTypesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.INT64, + 0L); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.Long> resourceTypes_; + private com.google.protobuf.MapField<java.lang.String, java.lang.Long> resourceTypes_; + private com.google.protobuf.MapField<java.lang.String, java.lang.Long> - internalGetResourceTypes() { + internalGetResourceTypes() { if (resourceTypes_ == null) { return com.google.protobuf.MapField.emptyMapField( ResourceTypesDefaultEntryHolder.defaultEntry); } return resourceTypes_; } + public int getResourceTypesCount() { return internalGetResourceTypes().getMap().size(); } /** + * + * * <pre> * The number of resources protected by the key grouped by resource type. * </pre> @@ -177,20 +209,21 @@ public int getResourceTypesCount() { * <code>map<string, int64> resource_types = 3;</code> */ @java.lang.Override - public boolean containsResourceTypes( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsResourceTypes(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetResourceTypes().getMap().containsKey(key); } - /** - * Use {@link #getResourceTypesMap()} instead. - */ + /** Use {@link #getResourceTypesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map<java.lang.String, java.lang.Long> getResourceTypes() { return getResourceTypesMap(); } /** + * + * * <pre> * The number of resources protected by the key grouped by resource type. * </pre> @@ -202,6 +235,8 @@ public java.util.Map<java.lang.String, java.lang.Long> getResourceTypesMap() { return internalGetResourceTypes().getMap(); } /** + * + * * <pre> * The number of resources protected by the key grouped by resource type. * </pre> @@ -209,15 +244,16 @@ public java.util.Map<java.lang.String, java.lang.Long> getResourceTypesMap() { * <code>map<string, int64> resource_types = 3;</code> */ @java.lang.Override - public long getResourceTypesOrDefault( - java.lang.String key, - long defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map<java.lang.String, java.lang.Long> map = - internalGetResourceTypes().getMap(); + public long getResourceTypesOrDefault(java.lang.String key, long defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map<java.lang.String, java.lang.Long> map = internalGetResourceTypes().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * * <pre> * The number of resources protected by the key grouped by resource type. * </pre> @@ -225,11 +261,11 @@ public long getResourceTypesOrDefault( * <code>map<string, int64> resource_types = 3;</code> */ @java.lang.Override - public long getResourceTypesOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map<java.lang.String, java.lang.Long> map = - internalGetResourceTypes().getMap(); + public long getResourceTypesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map<java.lang.String, java.lang.Long> map = internalGetResourceTypes().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -237,32 +273,36 @@ public long getResourceTypesOrThrow( } public static final int CLOUD_PRODUCTS_FIELD_NUMBER = 6; + private static final class CloudProductsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.Long> defaultEntry = - com.google.protobuf.MapEntry - .<java.lang.String, java.lang.Long>newDefaultInstance( - com.google.cloud.kms.inventory.v1.KeyTrackingServiceProto.internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_CloudProductsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.INT64, - 0L); + static final com.google.protobuf.MapEntry<java.lang.String, java.lang.Long> defaultEntry = + com.google.protobuf.MapEntry.<java.lang.String, java.lang.Long>newDefaultInstance( + com.google.cloud.kms.inventory.v1.KeyTrackingServiceProto + .internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_CloudProductsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.INT64, + 0L); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.Long> cloudProducts_; + private com.google.protobuf.MapField<java.lang.String, java.lang.Long> cloudProducts_; + private com.google.protobuf.MapField<java.lang.String, java.lang.Long> - internalGetCloudProducts() { + internalGetCloudProducts() { if (cloudProducts_ == null) { return com.google.protobuf.MapField.emptyMapField( CloudProductsDefaultEntryHolder.defaultEntry); } return cloudProducts_; } + public int getCloudProductsCount() { return internalGetCloudProducts().getMap().size(); } /** + * + * * <pre> * The number of resources protected by the key grouped by Cloud product. * </pre> @@ -270,20 +310,21 @@ public int getCloudProductsCount() { * <code>map<string, int64> cloud_products = 6;</code> */ @java.lang.Override - public boolean containsCloudProducts( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsCloudProducts(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetCloudProducts().getMap().containsKey(key); } - /** - * Use {@link #getCloudProductsMap()} instead. - */ + /** Use {@link #getCloudProductsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map<java.lang.String, java.lang.Long> getCloudProducts() { return getCloudProductsMap(); } /** + * + * * <pre> * The number of resources protected by the key grouped by Cloud product. * </pre> @@ -295,6 +336,8 @@ public java.util.Map<java.lang.String, java.lang.Long> getCloudProductsMap() { return internalGetCloudProducts().getMap(); } /** + * + * * <pre> * The number of resources protected by the key grouped by Cloud product. * </pre> @@ -302,15 +345,16 @@ public java.util.Map<java.lang.String, java.lang.Long> getCloudProductsMap() { * <code>map<string, int64> cloud_products = 6;</code> */ @java.lang.Override - public long getCloudProductsOrDefault( - java.lang.String key, - long defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map<java.lang.String, java.lang.Long> map = - internalGetCloudProducts().getMap(); + public long getCloudProductsOrDefault(java.lang.String key, long defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map<java.lang.String, java.lang.Long> map = internalGetCloudProducts().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * * <pre> * The number of resources protected by the key grouped by Cloud product. * </pre> @@ -318,11 +362,11 @@ public long getCloudProductsOrDefault( * <code>map<string, int64> cloud_products = 6;</code> */ @java.lang.Override - public long getCloudProductsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map<java.lang.String, java.lang.Long> map = - internalGetCloudProducts().getMap(); + public long getCloudProductsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map<java.lang.String, java.lang.Long> map = internalGetCloudProducts().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -330,32 +374,34 @@ public long getCloudProductsOrThrow( } public static final int LOCATIONS_FIELD_NUMBER = 4; + private static final class LocationsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.Long> defaultEntry = - com.google.protobuf.MapEntry - .<java.lang.String, java.lang.Long>newDefaultInstance( - com.google.cloud.kms.inventory.v1.KeyTrackingServiceProto.internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_LocationsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.INT64, - 0L); + static final com.google.protobuf.MapEntry<java.lang.String, java.lang.Long> defaultEntry = + com.google.protobuf.MapEntry.<java.lang.String, java.lang.Long>newDefaultInstance( + com.google.cloud.kms.inventory.v1.KeyTrackingServiceProto + .internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_LocationsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.INT64, + 0L); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.Long> locations_; - private com.google.protobuf.MapField<java.lang.String, java.lang.Long> - internalGetLocations() { + private com.google.protobuf.MapField<java.lang.String, java.lang.Long> locations_; + + private com.google.protobuf.MapField<java.lang.String, java.lang.Long> internalGetLocations() { if (locations_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LocationsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LocationsDefaultEntryHolder.defaultEntry); } return locations_; } + public int getLocationsCount() { return internalGetLocations().getMap().size(); } /** + * + * * <pre> * The number of resources protected by the key grouped by region. * </pre> @@ -363,20 +409,21 @@ public int getLocationsCount() { * <code>map<string, int64> locations = 4;</code> */ @java.lang.Override - public boolean containsLocations( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsLocations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetLocations().getMap().containsKey(key); } - /** - * Use {@link #getLocationsMap()} instead. - */ + /** Use {@link #getLocationsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map<java.lang.String, java.lang.Long> getLocations() { return getLocationsMap(); } /** + * + * * <pre> * The number of resources protected by the key grouped by region. * </pre> @@ -388,6 +435,8 @@ public java.util.Map<java.lang.String, java.lang.Long> getLocationsMap() { return internalGetLocations().getMap(); } /** + * + * * <pre> * The number of resources protected by the key grouped by region. * </pre> @@ -395,15 +444,16 @@ public java.util.Map<java.lang.String, java.lang.Long> getLocationsMap() { * <code>map<string, int64> locations = 4;</code> */ @java.lang.Override - public long getLocationsOrDefault( - java.lang.String key, - long defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map<java.lang.String, java.lang.Long> map = - internalGetLocations().getMap(); + public long getLocationsOrDefault(java.lang.String key, long defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map<java.lang.String, java.lang.Long> map = internalGetLocations().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * * <pre> * The number of resources protected by the key grouped by region. * </pre> @@ -411,11 +461,11 @@ public long getLocationsOrDefault( * <code>map<string, int64> locations = 4;</code> */ @java.lang.Override - public long getLocationsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map<java.lang.String, java.lang.Long> map = - internalGetLocations().getMap(); + public long getLocationsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map<java.lang.String, java.lang.Long> map = internalGetLocations().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -423,6 +473,7 @@ public long getLocationsOrThrow( } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -434,35 +485,22 @@ 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 (resourceCount_ != 0L) { output.writeInt64(1, resourceCount_); } if (projectCount_ != 0) { output.writeInt32(2, projectCount_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetResourceTypes(), - ResourceTypesDefaultEntryHolder.defaultEntry, - 3); - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLocations(), - LocationsDefaultEntryHolder.defaultEntry, - 4); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetResourceTypes(), ResourceTypesDefaultEntryHolder.defaultEntry, 3); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLocations(), LocationsDefaultEntryHolder.defaultEntry, 4); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, name_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetCloudProducts(), - CloudProductsDefaultEntryHolder.defaultEntry, - 6); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetCloudProducts(), CloudProductsDefaultEntryHolder.defaultEntry, 6); getUnknownFields().writeTo(output); } @@ -473,45 +511,43 @@ public int getSerializedSize() { size = 0; if (resourceCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, resourceCount_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, resourceCount_); } if (projectCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, projectCount_); - } - for (java.util.Map.Entry<java.lang.String, java.lang.Long> entry - : internalGetResourceTypes().getMap().entrySet()) { - com.google.protobuf.MapEntry<java.lang.String, java.lang.Long> - resourceTypes__ = ResourceTypesDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, resourceTypes__); - } - for (java.util.Map.Entry<java.lang.String, java.lang.Long> entry - : internalGetLocations().getMap().entrySet()) { - com.google.protobuf.MapEntry<java.lang.String, java.lang.Long> - locations__ = LocationsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, locations__); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, projectCount_); + } + for (java.util.Map.Entry<java.lang.String, java.lang.Long> entry : + internalGetResourceTypes().getMap().entrySet()) { + com.google.protobuf.MapEntry<java.lang.String, java.lang.Long> resourceTypes__ = + ResourceTypesDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, resourceTypes__); + } + for (java.util.Map.Entry<java.lang.String, java.lang.Long> entry : + internalGetLocations().getMap().entrySet()) { + com.google.protobuf.MapEntry<java.lang.String, java.lang.Long> locations__ = + LocationsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, locations__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, name_); } - for (java.util.Map.Entry<java.lang.String, java.lang.Long> entry - : internalGetCloudProducts().getMap().entrySet()) { - com.google.protobuf.MapEntry<java.lang.String, java.lang.Long> - cloudProducts__ = CloudProductsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, cloudProducts__); + for (java.util.Map.Entry<java.lang.String, java.lang.Long> entry : + internalGetCloudProducts().getMap().entrySet()) { + com.google.protobuf.MapEntry<java.lang.String, java.lang.Long> cloudProducts__ = + CloudProductsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, cloudProducts__); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -521,25 +557,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.kms.inventory.v1.ProtectedResourcesSummary)) { return super.equals(obj); } - com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary other = (com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary) obj; - - if (!getName() - .equals(other.getName())) return false; - if (getResourceCount() - != other.getResourceCount()) return false; - if (getProjectCount() - != other.getProjectCount()) return false; - if (!internalGetResourceTypes().equals( - other.internalGetResourceTypes())) return false; - if (!internalGetCloudProducts().equals( - other.internalGetCloudProducts())) return false; - if (!internalGetLocations().equals( - other.internalGetLocations())) return false; + com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary other = + (com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary) obj; + + if (!getName().equals(other.getName())) return false; + if (getResourceCount() != other.getResourceCount()) return false; + if (getProjectCount() != other.getProjectCount()) return false; + if (!internalGetResourceTypes().equals(other.internalGetResourceTypes())) return false; + if (!internalGetCloudProducts().equals(other.internalGetCloudProducts())) return false; + if (!internalGetLocations().equals(other.internalGetLocations())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -554,8 +585,7 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + RESOURCE_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getResourceCount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getResourceCount()); hash = (37 * hash) + PROJECT_COUNT_FIELD_NUMBER; hash = (53 * hash) + getProjectCount(); if (!internalGetResourceTypes().getMap().isEmpty()) { @@ -576,98 +606,104 @@ public int hashCode() { } public static com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary 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.kms.inventory.v1.ProtectedResourcesSummary 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.kms.inventory.v1.ProtectedResourcesSummary parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary 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.kms.inventory.v1.ProtectedResourcesSummary parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary 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.kms.inventory.v1.ProtectedResourcesSummary parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary 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.kms.inventory.v1.ProtectedResourcesSummary parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary 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.kms.inventory.v1.ProtectedResourcesSummary 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.kms.inventory.v1.ProtectedResourcesSummary 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.kms.inventory.v1.ProtectedResourcesSummary prototype) { + + public static Builder newBuilder( + com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary 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; } /** + * + * * <pre> * Aggregate information about the resources protected by a Cloud KMS key in the * same Cloud organization as the key. @@ -675,18 +711,17 @@ protected Builder newBuilderForType( * * Protobuf type {@code google.cloud.kms.inventory.v1.ProtectedResourcesSummary} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> + implements // @@protoc_insertion_point(builder_implements:google.cloud.kms.inventory.v1.ProtectedResourcesSummary) com.google.cloud.kms.inventory.v1.ProtectedResourcesSummaryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.kms.inventory.v1.KeyTrackingServiceProto.internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.kms.inventory.v1.KeyTrackingServiceProto + .internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 3: return internalGetResourceTypes(); @@ -695,13 +730,12 @@ protected com.google.protobuf.MapField internalGetMapField( case 4: return internalGetLocations(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 3: return internalGetMutableResourceTypes(); @@ -710,28 +744,27 @@ protected com.google.protobuf.MapField internalGetMutableMapField( case 4: return internalGetMutableLocations(); 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.kms.inventory.v1.KeyTrackingServiceProto.internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_fieldAccessorTable + return com.google.cloud.kms.inventory.v1.KeyTrackingServiceProto + .internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary.class, com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary.Builder.class); + com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary.class, + com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary.Builder.class); } // Construct using com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -746,9 +779,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.kms.inventory.v1.KeyTrackingServiceProto.internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.kms.inventory.v1.KeyTrackingServiceProto + .internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_descriptor; } @java.lang.Override @@ -767,8 +800,11 @@ public com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary build() { @java.lang.Override public com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary buildPartial() { - com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary result = new com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary result = + new com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -802,38 +838,39 @@ private void buildPartial0(com.google.cloud.kms.inventory.v1.ProtectedResourcesS 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.kms.inventory.v1.ProtectedResourcesSummary) { - return mergeFrom((com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary)other); + return mergeFrom((com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary) other); } else { super.mergeFrom(other); return this; @@ -841,7 +878,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary other) { - if (other == com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary.getDefaultInstance()) return this; + if (other == com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -853,14 +891,11 @@ public Builder mergeFrom(com.google.cloud.kms.inventory.v1.ProtectedResourcesSum if (other.getProjectCount() != 0) { setProjectCount(other.getProjectCount()); } - internalGetMutableResourceTypes().mergeFrom( - other.internalGetResourceTypes()); + internalGetMutableResourceTypes().mergeFrom(other.internalGetResourceTypes()); bitField0_ |= 0x00000008; - internalGetMutableCloudProducts().mergeFrom( - other.internalGetCloudProducts()); + internalGetMutableCloudProducts().mergeFrom(other.internalGetCloudProducts()); bitField0_ |= 0x00000010; - internalGetMutableLocations().mergeFrom( - other.internalGetLocations()); + internalGetMutableLocations().mergeFrom(other.internalGetLocations()); bitField0_ |= 0x00000020; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -888,54 +923,67 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - resourceCount_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 8 - case 16: { - projectCount_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 16 - case 26: { - com.google.protobuf.MapEntry<java.lang.String, java.lang.Long> - resourceTypes__ = input.readMessage( - ResourceTypesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableResourceTypes().getMutableMap().put( - resourceTypes__.getKey(), resourceTypes__.getValue()); - bitField0_ |= 0x00000008; - break; - } // case 26 - case 34: { - com.google.protobuf.MapEntry<java.lang.String, java.lang.Long> - locations__ = input.readMessage( - LocationsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableLocations().getMutableMap().put( - locations__.getKey(), locations__.getValue()); - bitField0_ |= 0x00000020; - break; - } // case 34 - case 42: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 42 - case 50: { - com.google.protobuf.MapEntry<java.lang.String, java.lang.Long> - cloudProducts__ = input.readMessage( - CloudProductsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableCloudProducts().getMutableMap().put( - cloudProducts__.getKey(), cloudProducts__.getValue()); - bitField0_ |= 0x00000010; - break; - } // case 50 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + resourceCount_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 8 + case 16: + { + projectCount_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 16 + case 26: + { + com.google.protobuf.MapEntry<java.lang.String, java.lang.Long> resourceTypes__ = + input.readMessage( + ResourceTypesDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableResourceTypes() + .getMutableMap() + .put(resourceTypes__.getKey(), resourceTypes__.getValue()); + bitField0_ |= 0x00000008; + break; + } // case 26 + case 34: + { + com.google.protobuf.MapEntry<java.lang.String, java.lang.Long> locations__ = + input.readMessage( + LocationsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLocations() + .getMutableMap() + .put(locations__.getKey(), locations__.getValue()); + bitField0_ |= 0x00000020; + break; + } // case 34 + case 42: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 42 + case 50: + { + com.google.protobuf.MapEntry<java.lang.String, java.lang.Long> cloudProducts__ = + input.readMessage( + CloudProductsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableCloudProducts() + .getMutableMap() + .put(cloudProducts__.getKey(), cloudProducts__.getValue()); + bitField0_ |= 0x00000010; + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -945,10 +993,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * * <pre> * The full name of the ProtectedResourcesSummary resource. * Example: @@ -956,13 +1007,13 @@ public Builder mergeFrom( * </pre> * * <code>string name = 5;</code> + * * @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; @@ -971,6 +1022,8 @@ public java.lang.String getName() { } } /** + * + * * <pre> * The full name of the ProtectedResourcesSummary resource. * Example: @@ -978,15 +1031,14 @@ public java.lang.String getName() { * </pre> * * <code>string name = 5;</code> + * * @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 { @@ -994,6 +1046,8 @@ public java.lang.String getName() { } } /** + * + * * <pre> * The full name of the ProtectedResourcesSummary resource. * Example: @@ -1001,18 +1055,22 @@ public java.lang.String getName() { * </pre> * * <code>string name = 5;</code> + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * * <pre> * The full name of the ProtectedResourcesSummary resource. * Example: @@ -1020,6 +1078,7 @@ public Builder setName( * </pre> * * <code>string name = 5;</code> + * * @return This builder for chaining. */ public Builder clearName() { @@ -1029,6 +1088,8 @@ public Builder clearName() { return this; } /** + * + * * <pre> * The full name of the ProtectedResourcesSummary resource. * Example: @@ -1036,12 +1097,14 @@ public Builder clearName() { * </pre> * * <code>string name = 5;</code> + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1049,14 +1112,17 @@ public Builder setNameBytes( return this; } - private long resourceCount_ ; + private long resourceCount_; /** + * + * * <pre> * The total number of protected resources in the same Cloud organization as * the key. * </pre> * * <code>int64 resource_count = 1;</code> + * * @return The resourceCount. */ @java.lang.Override @@ -1064,12 +1130,15 @@ public long getResourceCount() { return resourceCount_; } /** + * + * * <pre> * The total number of protected resources in the same Cloud organization as * the key. * </pre> * * <code>int64 resource_count = 1;</code> + * * @param value The resourceCount to set. * @return This builder for chaining. */ @@ -1081,12 +1150,15 @@ public Builder setResourceCount(long value) { return this; } /** + * + * * <pre> * The total number of protected resources in the same Cloud organization as * the key. * </pre> * * <code>int64 resource_count = 1;</code> + * * @return This builder for chaining. */ public Builder clearResourceCount() { @@ -1096,14 +1168,17 @@ public Builder clearResourceCount() { return this; } - private int projectCount_ ; + private int projectCount_; /** + * + * * <pre> * The number of distinct Cloud projects in the same Cloud organization as the * key that have resources protected by the key. * </pre> * * <code>int32 project_count = 2;</code> + * * @return The projectCount. */ @java.lang.Override @@ -1111,12 +1186,15 @@ public int getProjectCount() { return projectCount_; } /** + * + * * <pre> * The number of distinct Cloud projects in the same Cloud organization as the * key that have resources protected by the key. * </pre> * * <code>int32 project_count = 2;</code> + * * @param value The projectCount to set. * @return This builder for chaining. */ @@ -1128,12 +1206,15 @@ public Builder setProjectCount(int value) { return this; } /** + * + * * <pre> * The number of distinct Cloud projects in the same Cloud organization as the * key that have resources protected by the key. * </pre> * * <code>int32 project_count = 2;</code> + * * @return This builder for chaining. */ public Builder clearProjectCount() { @@ -1143,8 +1224,8 @@ public Builder clearProjectCount() { return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.Long> resourceTypes_; + private com.google.protobuf.MapField<java.lang.String, java.lang.Long> resourceTypes_; + private com.google.protobuf.MapField<java.lang.String, java.lang.Long> internalGetResourceTypes() { if (resourceTypes_ == null) { @@ -1153,11 +1234,12 @@ public Builder clearProjectCount() { } return resourceTypes_; } + private com.google.protobuf.MapField<java.lang.String, java.lang.Long> internalGetMutableResourceTypes() { if (resourceTypes_ == null) { - resourceTypes_ = com.google.protobuf.MapField.newMapField( - ResourceTypesDefaultEntryHolder.defaultEntry); + resourceTypes_ = + com.google.protobuf.MapField.newMapField(ResourceTypesDefaultEntryHolder.defaultEntry); } if (!resourceTypes_.isMutable()) { resourceTypes_ = resourceTypes_.copy(); @@ -1166,10 +1248,13 @@ public Builder clearProjectCount() { onChanged(); return resourceTypes_; } + public int getResourceTypesCount() { return internalGetResourceTypes().getMap().size(); } /** + * + * * <pre> * The number of resources protected by the key grouped by resource type. * </pre> @@ -1177,20 +1262,21 @@ public int getResourceTypesCount() { * <code>map<string, int64> resource_types = 3;</code> */ @java.lang.Override - public boolean containsResourceTypes( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsResourceTypes(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetResourceTypes().getMap().containsKey(key); } - /** - * Use {@link #getResourceTypesMap()} instead. - */ + /** Use {@link #getResourceTypesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map<java.lang.String, java.lang.Long> getResourceTypes() { return getResourceTypesMap(); } /** + * + * * <pre> * The number of resources protected by the key grouped by resource type. * </pre> @@ -1202,6 +1288,8 @@ public java.util.Map<java.lang.String, java.lang.Long> getResourceTypesMap() { return internalGetResourceTypes().getMap(); } /** + * + * * <pre> * The number of resources protected by the key grouped by resource type. * </pre> @@ -1209,15 +1297,16 @@ public java.util.Map<java.lang.String, java.lang.Long> getResourceTypesMap() { * <code>map<string, int64> resource_types = 3;</code> */ @java.lang.Override - public long getResourceTypesOrDefault( - java.lang.String key, - long defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map<java.lang.String, java.lang.Long> map = - internalGetResourceTypes().getMap(); + public long getResourceTypesOrDefault(java.lang.String key, long defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map<java.lang.String, java.lang.Long> map = internalGetResourceTypes().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * * <pre> * The number of resources protected by the key grouped by resource type. * </pre> @@ -1225,79 +1314,79 @@ public long getResourceTypesOrDefault( * <code>map<string, int64> resource_types = 3;</code> */ @java.lang.Override - public long getResourceTypesOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map<java.lang.String, java.lang.Long> map = - internalGetResourceTypes().getMap(); + public long getResourceTypesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map<java.lang.String, java.lang.Long> map = internalGetResourceTypes().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } + public Builder clearResourceTypes() { bitField0_ = (bitField0_ & ~0x00000008); - internalGetMutableResourceTypes().getMutableMap() - .clear(); + internalGetMutableResourceTypes().getMutableMap().clear(); return this; } /** + * + * * <pre> * The number of resources protected by the key grouped by resource type. * </pre> * * <code>map<string, int64> resource_types = 3;</code> */ - public Builder removeResourceTypes( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableResourceTypes().getMutableMap() - .remove(key); + public Builder removeResourceTypes(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableResourceTypes().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map<java.lang.String, java.lang.Long> - getMutableResourceTypes() { + public java.util.Map<java.lang.String, java.lang.Long> getMutableResourceTypes() { bitField0_ |= 0x00000008; return internalGetMutableResourceTypes().getMutableMap(); } /** + * + * * <pre> * The number of resources protected by the key grouped by resource type. * </pre> * * <code>map<string, int64> resource_types = 3;</code> */ - public Builder putResourceTypes( - java.lang.String key, - long value) { - if (key == null) { throw new NullPointerException("map key"); } + public Builder putResourceTypes(java.lang.String key, long value) { + if (key == null) { + throw new NullPointerException("map key"); + } - internalGetMutableResourceTypes().getMutableMap() - .put(key, value); + internalGetMutableResourceTypes().getMutableMap().put(key, value); bitField0_ |= 0x00000008; return this; } /** + * + * * <pre> * The number of resources protected by the key grouped by resource type. * </pre> * * <code>map<string, int64> resource_types = 3;</code> */ - public Builder putAllResourceTypes( - java.util.Map<java.lang.String, java.lang.Long> values) { - internalGetMutableResourceTypes().getMutableMap() - .putAll(values); + public Builder putAllResourceTypes(java.util.Map<java.lang.String, java.lang.Long> values) { + internalGetMutableResourceTypes().getMutableMap().putAll(values); bitField0_ |= 0x00000008; return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.Long> cloudProducts_; + private com.google.protobuf.MapField<java.lang.String, java.lang.Long> cloudProducts_; + private com.google.protobuf.MapField<java.lang.String, java.lang.Long> internalGetCloudProducts() { if (cloudProducts_ == null) { @@ -1306,11 +1395,12 @@ public Builder putAllResourceTypes( } return cloudProducts_; } + private com.google.protobuf.MapField<java.lang.String, java.lang.Long> internalGetMutableCloudProducts() { if (cloudProducts_ == null) { - cloudProducts_ = com.google.protobuf.MapField.newMapField( - CloudProductsDefaultEntryHolder.defaultEntry); + cloudProducts_ = + com.google.protobuf.MapField.newMapField(CloudProductsDefaultEntryHolder.defaultEntry); } if (!cloudProducts_.isMutable()) { cloudProducts_ = cloudProducts_.copy(); @@ -1319,10 +1409,13 @@ public Builder putAllResourceTypes( onChanged(); return cloudProducts_; } + public int getCloudProductsCount() { return internalGetCloudProducts().getMap().size(); } /** + * + * * <pre> * The number of resources protected by the key grouped by Cloud product. * </pre> @@ -1330,20 +1423,21 @@ public int getCloudProductsCount() { * <code>map<string, int64> cloud_products = 6;</code> */ @java.lang.Override - public boolean containsCloudProducts( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsCloudProducts(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetCloudProducts().getMap().containsKey(key); } - /** - * Use {@link #getCloudProductsMap()} instead. - */ + /** Use {@link #getCloudProductsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map<java.lang.String, java.lang.Long> getCloudProducts() { return getCloudProductsMap(); } /** + * + * * <pre> * The number of resources protected by the key grouped by Cloud product. * </pre> @@ -1355,6 +1449,8 @@ public java.util.Map<java.lang.String, java.lang.Long> getCloudProductsMap() { return internalGetCloudProducts().getMap(); } /** + * + * * <pre> * The number of resources protected by the key grouped by Cloud product. * </pre> @@ -1362,15 +1458,16 @@ public java.util.Map<java.lang.String, java.lang.Long> getCloudProductsMap() { * <code>map<string, int64> cloud_products = 6;</code> */ @java.lang.Override - public long getCloudProductsOrDefault( - java.lang.String key, - long defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map<java.lang.String, java.lang.Long> map = - internalGetCloudProducts().getMap(); + public long getCloudProductsOrDefault(java.lang.String key, long defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map<java.lang.String, java.lang.Long> map = internalGetCloudProducts().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * * <pre> * The number of resources protected by the key grouped by Cloud product. * </pre> @@ -1378,92 +1475,91 @@ public long getCloudProductsOrDefault( * <code>map<string, int64> cloud_products = 6;</code> */ @java.lang.Override - public long getCloudProductsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map<java.lang.String, java.lang.Long> map = - internalGetCloudProducts().getMap(); + public long getCloudProductsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map<java.lang.String, java.lang.Long> map = internalGetCloudProducts().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } + public Builder clearCloudProducts() { bitField0_ = (bitField0_ & ~0x00000010); - internalGetMutableCloudProducts().getMutableMap() - .clear(); + internalGetMutableCloudProducts().getMutableMap().clear(); return this; } /** + * + * * <pre> * The number of resources protected by the key grouped by Cloud product. * </pre> * * <code>map<string, int64> cloud_products = 6;</code> */ - public Builder removeCloudProducts( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableCloudProducts().getMutableMap() - .remove(key); + public Builder removeCloudProducts(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableCloudProducts().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map<java.lang.String, java.lang.Long> - getMutableCloudProducts() { + public java.util.Map<java.lang.String, java.lang.Long> getMutableCloudProducts() { bitField0_ |= 0x00000010; return internalGetMutableCloudProducts().getMutableMap(); } /** + * + * * <pre> * The number of resources protected by the key grouped by Cloud product. * </pre> * * <code>map<string, int64> cloud_products = 6;</code> */ - public Builder putCloudProducts( - java.lang.String key, - long value) { - if (key == null) { throw new NullPointerException("map key"); } + public Builder putCloudProducts(java.lang.String key, long value) { + if (key == null) { + throw new NullPointerException("map key"); + } - internalGetMutableCloudProducts().getMutableMap() - .put(key, value); + internalGetMutableCloudProducts().getMutableMap().put(key, value); bitField0_ |= 0x00000010; return this; } /** + * + * * <pre> * The number of resources protected by the key grouped by Cloud product. * </pre> * * <code>map<string, int64> cloud_products = 6;</code> */ - public Builder putAllCloudProducts( - java.util.Map<java.lang.String, java.lang.Long> values) { - internalGetMutableCloudProducts().getMutableMap() - .putAll(values); + public Builder putAllCloudProducts(java.util.Map<java.lang.String, java.lang.Long> values) { + internalGetMutableCloudProducts().getMutableMap().putAll(values); bitField0_ |= 0x00000010; return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.Long> locations_; - private com.google.protobuf.MapField<java.lang.String, java.lang.Long> - internalGetLocations() { + private com.google.protobuf.MapField<java.lang.String, java.lang.Long> locations_; + + private com.google.protobuf.MapField<java.lang.String, java.lang.Long> internalGetLocations() { if (locations_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LocationsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LocationsDefaultEntryHolder.defaultEntry); } return locations_; } + private com.google.protobuf.MapField<java.lang.String, java.lang.Long> internalGetMutableLocations() { if (locations_ == null) { - locations_ = com.google.protobuf.MapField.newMapField( - LocationsDefaultEntryHolder.defaultEntry); + locations_ = + com.google.protobuf.MapField.newMapField(LocationsDefaultEntryHolder.defaultEntry); } if (!locations_.isMutable()) { locations_ = locations_.copy(); @@ -1472,10 +1568,13 @@ public Builder putAllCloudProducts( onChanged(); return locations_; } + public int getLocationsCount() { return internalGetLocations().getMap().size(); } /** + * + * * <pre> * The number of resources protected by the key grouped by region. * </pre> @@ -1483,20 +1582,21 @@ public int getLocationsCount() { * <code>map<string, int64> locations = 4;</code> */ @java.lang.Override - public boolean containsLocations( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsLocations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetLocations().getMap().containsKey(key); } - /** - * Use {@link #getLocationsMap()} instead. - */ + /** Use {@link #getLocationsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map<java.lang.String, java.lang.Long> getLocations() { return getLocationsMap(); } /** + * + * * <pre> * The number of resources protected by the key grouped by region. * </pre> @@ -1508,6 +1608,8 @@ public java.util.Map<java.lang.String, java.lang.Long> getLocationsMap() { return internalGetLocations().getMap(); } /** + * + * * <pre> * The number of resources protected by the key grouped by region. * </pre> @@ -1515,15 +1617,16 @@ public java.util.Map<java.lang.String, java.lang.Long> getLocationsMap() { * <code>map<string, int64> locations = 4;</code> */ @java.lang.Override - public long getLocationsOrDefault( - java.lang.String key, - long defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map<java.lang.String, java.lang.Long> map = - internalGetLocations().getMap(); + public long getLocationsOrDefault(java.lang.String key, long defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map<java.lang.String, java.lang.Long> map = internalGetLocations().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * * <pre> * The number of resources protected by the key grouped by region. * </pre> @@ -1531,79 +1634,79 @@ public long getLocationsOrDefault( * <code>map<string, int64> locations = 4;</code> */ @java.lang.Override - public long getLocationsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map<java.lang.String, java.lang.Long> map = - internalGetLocations().getMap(); + public long getLocationsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map<java.lang.String, java.lang.Long> map = internalGetLocations().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } + public Builder clearLocations() { bitField0_ = (bitField0_ & ~0x00000020); - internalGetMutableLocations().getMutableMap() - .clear(); + internalGetMutableLocations().getMutableMap().clear(); return this; } /** + * + * * <pre> * The number of resources protected by the key grouped by region. * </pre> * * <code>map<string, int64> locations = 4;</code> */ - public Builder removeLocations( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableLocations().getMutableMap() - .remove(key); + public Builder removeLocations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLocations().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map<java.lang.String, java.lang.Long> - getMutableLocations() { + public java.util.Map<java.lang.String, java.lang.Long> getMutableLocations() { bitField0_ |= 0x00000020; return internalGetMutableLocations().getMutableMap(); } /** + * + * * <pre> * The number of resources protected by the key grouped by region. * </pre> * * <code>map<string, int64> locations = 4;</code> */ - public Builder putLocations( - java.lang.String key, - long value) { - if (key == null) { throw new NullPointerException("map key"); } + public Builder putLocations(java.lang.String key, long value) { + if (key == null) { + throw new NullPointerException("map key"); + } - internalGetMutableLocations().getMutableMap() - .put(key, value); + internalGetMutableLocations().getMutableMap().put(key, value); bitField0_ |= 0x00000020; return this; } /** + * + * * <pre> * The number of resources protected by the key grouped by region. * </pre> * * <code>map<string, int64> locations = 4;</code> */ - public Builder putAllLocations( - java.util.Map<java.lang.String, java.lang.Long> values) { - internalGetMutableLocations().getMutableMap() - .putAll(values); + public Builder putAllLocations(java.util.Map<java.lang.String, java.lang.Long> values) { + internalGetMutableLocations().getMutableMap().putAll(values); bitField0_ |= 0x00000020; 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); } @@ -1613,12 +1716,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.kms.inventory.v1.ProtectedResourcesSummary) } // @@protoc_insertion_point(class_scope:google.cloud.kms.inventory.v1.ProtectedResourcesSummary) private static final com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary(); } @@ -1627,27 +1730,27 @@ public static com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<ProtectedResourcesSummary> - PARSER = new com.google.protobuf.AbstractParser<ProtectedResourcesSummary>() { - @java.lang.Override - public ProtectedResourcesSummary parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<ProtectedResourcesSummary> PARSER = + new com.google.protobuf.AbstractParser<ProtectedResourcesSummary>() { + @java.lang.Override + public ProtectedResourcesSummary parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<ProtectedResourcesSummary> parser() { return PARSER; @@ -1662,6 +1765,4 @@ public com.google.protobuf.Parser<ProtectedResourcesSummary> getParserForType() public com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ProtectedResourcesSummaryName.java b/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ProtectedResourcesSummaryName.java similarity index 100% rename from owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ProtectedResourcesSummaryName.java rename to java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ProtectedResourcesSummaryName.java diff --git a/owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ProtectedResourcesSummaryOrBuilder.java b/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ProtectedResourcesSummaryOrBuilder.java similarity index 67% rename from owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ProtectedResourcesSummaryOrBuilder.java rename to java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ProtectedResourcesSummaryOrBuilder.java index 97cb9cc6d686..d59912f4bf83 100644 --- a/owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ProtectedResourcesSummaryOrBuilder.java +++ b/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ProtectedResourcesSummaryOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/kms/inventory/v1/key_tracking_service.proto package com.google.cloud.kms.inventory.v1; -public interface ProtectedResourcesSummaryOrBuilder extends +public interface ProtectedResourcesSummaryOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.kms.inventory.v1.ProtectedResourcesSummary) com.google.protobuf.MessageOrBuilder { /** + * + * * <pre> * The full name of the ProtectedResourcesSummary resource. * Example: @@ -15,10 +33,13 @@ public interface ProtectedResourcesSummaryOrBuilder extends * </pre> * * <code>string name = 5;</code> + * * @return The name. */ java.lang.String getName(); /** + * + * * <pre> * The full name of the ProtectedResourcesSummary resource. * Example: @@ -26,34 +47,42 @@ public interface ProtectedResourcesSummaryOrBuilder extends * </pre> * * <code>string name = 5;</code> + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * * <pre> * The total number of protected resources in the same Cloud organization as * the key. * </pre> * * <code>int64 resource_count = 1;</code> + * * @return The resourceCount. */ long getResourceCount(); /** + * + * * <pre> * The number of distinct Cloud projects in the same Cloud organization as the * key that have resources protected by the key. * </pre> * * <code>int32 project_count = 2;</code> + * * @return The projectCount. */ int getProjectCount(); /** + * + * * <pre> * The number of resources protected by the key grouped by resource type. * </pre> @@ -62,50 +91,52 @@ public interface ProtectedResourcesSummaryOrBuilder extends */ int getResourceTypesCount(); /** + * + * * <pre> * The number of resources protected by the key grouped by resource type. * </pre> * * <code>map<string, int64> resource_types = 3;</code> */ - boolean containsResourceTypes( - java.lang.String key); - /** - * Use {@link #getResourceTypesMap()} instead. - */ + boolean containsResourceTypes(java.lang.String key); + /** Use {@link #getResourceTypesMap()} instead. */ @java.lang.Deprecated - java.util.Map<java.lang.String, java.lang.Long> - getResourceTypes(); + java.util.Map<java.lang.String, java.lang.Long> getResourceTypes(); /** + * + * * <pre> * The number of resources protected by the key grouped by resource type. * </pre> * * <code>map<string, int64> resource_types = 3;</code> */ - java.util.Map<java.lang.String, java.lang.Long> - getResourceTypesMap(); + java.util.Map<java.lang.String, java.lang.Long> getResourceTypesMap(); /** + * + * * <pre> * The number of resources protected by the key grouped by resource type. * </pre> * * <code>map<string, int64> resource_types = 3;</code> */ - long getResourceTypesOrDefault( - java.lang.String key, - long defaultValue); + long getResourceTypesOrDefault(java.lang.String key, long defaultValue); /** + * + * * <pre> * The number of resources protected by the key grouped by resource type. * </pre> * * <code>map<string, int64> resource_types = 3;</code> */ - long getResourceTypesOrThrow( - java.lang.String key); + long getResourceTypesOrThrow(java.lang.String key); /** + * + * * <pre> * The number of resources protected by the key grouped by Cloud product. * </pre> @@ -114,50 +145,52 @@ long getResourceTypesOrThrow( */ int getCloudProductsCount(); /** + * + * * <pre> * The number of resources protected by the key grouped by Cloud product. * </pre> * * <code>map<string, int64> cloud_products = 6;</code> */ - boolean containsCloudProducts( - java.lang.String key); - /** - * Use {@link #getCloudProductsMap()} instead. - */ + boolean containsCloudProducts(java.lang.String key); + /** Use {@link #getCloudProductsMap()} instead. */ @java.lang.Deprecated - java.util.Map<java.lang.String, java.lang.Long> - getCloudProducts(); + java.util.Map<java.lang.String, java.lang.Long> getCloudProducts(); /** + * + * * <pre> * The number of resources protected by the key grouped by Cloud product. * </pre> * * <code>map<string, int64> cloud_products = 6;</code> */ - java.util.Map<java.lang.String, java.lang.Long> - getCloudProductsMap(); + java.util.Map<java.lang.String, java.lang.Long> getCloudProductsMap(); /** + * + * * <pre> * The number of resources protected by the key grouped by Cloud product. * </pre> * * <code>map<string, int64> cloud_products = 6;</code> */ - long getCloudProductsOrDefault( - java.lang.String key, - long defaultValue); + long getCloudProductsOrDefault(java.lang.String key, long defaultValue); /** + * + * * <pre> * The number of resources protected by the key grouped by Cloud product. * </pre> * * <code>map<string, int64> cloud_products = 6;</code> */ - long getCloudProductsOrThrow( - java.lang.String key); + long getCloudProductsOrThrow(java.lang.String key); /** + * + * * <pre> * The number of resources protected by the key grouped by region. * </pre> @@ -166,46 +199,46 @@ long getCloudProductsOrThrow( */ int getLocationsCount(); /** + * + * * <pre> * The number of resources protected by the key grouped by region. * </pre> * * <code>map<string, int64> locations = 4;</code> */ - boolean containsLocations( - java.lang.String key); - /** - * Use {@link #getLocationsMap()} instead. - */ + boolean containsLocations(java.lang.String key); + /** Use {@link #getLocationsMap()} instead. */ @java.lang.Deprecated - java.util.Map<java.lang.String, java.lang.Long> - getLocations(); + java.util.Map<java.lang.String, java.lang.Long> getLocations(); /** + * + * * <pre> * The number of resources protected by the key grouped by region. * </pre> * * <code>map<string, int64> locations = 4;</code> */ - java.util.Map<java.lang.String, java.lang.Long> - getLocationsMap(); + java.util.Map<java.lang.String, java.lang.Long> getLocationsMap(); /** + * + * * <pre> * The number of resources protected by the key grouped by region. * </pre> * * <code>map<string, int64> locations = 4;</code> */ - long getLocationsOrDefault( - java.lang.String key, - long defaultValue); + long getLocationsOrDefault(java.lang.String key, long defaultValue); /** + * + * * <pre> * The number of resources protected by the key grouped by region. * </pre> * * <code>map<string, int64> locations = 4;</code> */ - long getLocationsOrThrow( - java.lang.String key); + long getLocationsOrThrow(java.lang.String key); } diff --git a/owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/SearchProtectedResourcesRequest.java b/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/SearchProtectedResourcesRequest.java similarity index 74% rename from owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/SearchProtectedResourcesRequest.java rename to java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/SearchProtectedResourcesRequest.java index 14a37a80d7db..0e7a7608ea5a 100644 --- a/owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/SearchProtectedResourcesRequest.java +++ b/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/SearchProtectedResourcesRequest.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/kms/inventory/v1/key_tracking_service.proto package com.google.cloud.kms.inventory.v1; /** + * + * * <pre> * Request message for * [KeyTrackingService.SearchProtectedResources][google.cloud.kms.inventory.v1.KeyTrackingService.SearchProtectedResources]. @@ -11,53 +28,61 @@ * * Protobuf type {@code google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest} */ -public final class SearchProtectedResourcesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SearchProtectedResourcesRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest) SearchProtectedResourcesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SearchProtectedResourcesRequest.newBuilder() to construct. - private SearchProtectedResourcesRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { + private SearchProtectedResourcesRequest( + com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } + private SearchProtectedResourcesRequest() { scope_ = ""; cryptoKey_ = ""; pageToken_ = ""; - resourceTypes_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + resourceTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SearchProtectedResourcesRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.kms.inventory.v1.KeyTrackingServiceProto.internal_static_google_cloud_kms_inventory_v1_SearchProtectedResourcesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.kms.inventory.v1.KeyTrackingServiceProto + .internal_static_google_cloud_kms_inventory_v1_SearchProtectedResourcesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.kms.inventory.v1.KeyTrackingServiceProto.internal_static_google_cloud_kms_inventory_v1_SearchProtectedResourcesRequest_fieldAccessorTable + return com.google.cloud.kms.inventory.v1.KeyTrackingServiceProto + .internal_static_google_cloud_kms_inventory_v1_SearchProtectedResourcesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest.class, com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest.Builder.class); + com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest.class, + com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest.Builder.class); } public static final int SCOPE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object scope_ = ""; /** + * + * * <pre> * Required. Resource name of the organization. * Example: organizations/123 * </pre> * - * <code>string scope = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> + * <code> + * string scope = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * </code> + * * @return The scope. */ @java.lang.Override @@ -66,30 +91,32 @@ public java.lang.String getScope() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); scope_ = s; return s; } } /** + * + * * <pre> * Required. Resource name of the organization. * Example: organizations/123 * </pre> * - * <code>string scope = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> + * <code> + * string scope = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * </code> + * * @return The bytes for scope. */ @java.lang.Override - public com.google.protobuf.ByteString - getScopeBytes() { + public com.google.protobuf.ByteString getScopeBytes() { java.lang.Object ref = scope_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); scope_ = b; return b; } else { @@ -98,15 +125,21 @@ public java.lang.String getScope() { } public static final int CRYPTO_KEY_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object cryptoKey_ = ""; /** + * + * * <pre> * Required. The resource name of the * [CryptoKey][google.cloud.kms.v1.CryptoKey]. * </pre> * - * <code>string crypto_key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> + * <code> + * string crypto_key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * </code> + * * @return The cryptoKey. */ @java.lang.Override @@ -115,30 +148,32 @@ public java.lang.String getCryptoKey() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cryptoKey_ = s; return s; } } /** + * + * * <pre> * Required. The resource name of the * [CryptoKey][google.cloud.kms.v1.CryptoKey]. * </pre> * - * <code>string crypto_key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> + * <code> + * string crypto_key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * </code> + * * @return The bytes for cryptoKey. */ @java.lang.Override - public com.google.protobuf.ByteString - getCryptoKeyBytes() { + public com.google.protobuf.ByteString getCryptoKeyBytes() { java.lang.Object ref = cryptoKey_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); cryptoKey_ = b; return b; } else { @@ -149,6 +184,8 @@ public java.lang.String getCryptoKey() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_ = 0; /** + * + * * <pre> * The maximum number of resources to return. The service may return fewer * than this value. @@ -157,6 +194,7 @@ public java.lang.String getCryptoKey() { * </pre> * * <code>int32 page_size = 3;</code> + * * @return The pageSize. */ @java.lang.Override @@ -165,9 +203,12 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * * <pre> * A page token, received from a previous * [KeyTrackingService.SearchProtectedResources][google.cloud.kms.inventory.v1.KeyTrackingService.SearchProtectedResources] @@ -179,6 +220,7 @@ public int getPageSize() { * </pre> * * <code>string page_token = 4;</code> + * * @return The pageToken. */ @java.lang.Override @@ -187,14 +229,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; } } /** + * + * * <pre> * A page token, received from a previous * [KeyTrackingService.SearchProtectedResources][google.cloud.kms.inventory.v1.KeyTrackingService.SearchProtectedResources] @@ -206,16 +249,15 @@ public java.lang.String getPageToken() { * </pre> * * <code>string page_token = 4;</code> + * * @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 { @@ -224,10 +266,13 @@ public java.lang.String getPageToken() { } public static final int RESOURCE_TYPES_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList resourceTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * * <pre> * Optional. A list of resource types that this request searches for. If * empty, it will search all the [trackable resource @@ -246,13 +291,15 @@ public java.lang.String getPageToken() { * </pre> * * <code>repeated string resource_types = 5 [(.google.api.field_behavior) = OPTIONAL];</code> + * * @return A list containing the resourceTypes. */ - public com.google.protobuf.ProtocolStringList - getResourceTypesList() { + public com.google.protobuf.ProtocolStringList getResourceTypesList() { return resourceTypes_; } /** + * + * * <pre> * Optional. A list of resource types that this request searches for. If * empty, it will search all the [trackable resource @@ -271,12 +318,15 @@ public java.lang.String getPageToken() { * </pre> * * <code>repeated string resource_types = 5 [(.google.api.field_behavior) = OPTIONAL];</code> + * * @return The count of resourceTypes. */ public int getResourceTypesCount() { return resourceTypes_.size(); } /** + * + * * <pre> * Optional. A list of resource types that this request searches for. If * empty, it will search all the [trackable resource @@ -295,6 +345,7 @@ public int getResourceTypesCount() { * </pre> * * <code>repeated string resource_types = 5 [(.google.api.field_behavior) = OPTIONAL];</code> + * * @param index The index of the element to return. * @return The resourceTypes at the given index. */ @@ -302,6 +353,8 @@ public java.lang.String getResourceTypes(int index) { return resourceTypes_.get(index); } /** + * + * * <pre> * Optional. A list of resource types that this request searches for. If * empty, it will search all the [trackable resource @@ -320,15 +373,16 @@ public java.lang.String getResourceTypes(int index) { * </pre> * * <code>repeated string resource_types = 5 [(.google.api.field_behavior) = OPTIONAL];</code> + * * @param index The index of the value to return. * @return The bytes of the resourceTypes at the given index. */ - public com.google.protobuf.ByteString - getResourceTypesBytes(int index) { + public com.google.protobuf.ByteString getResourceTypesBytes(int index) { return resourceTypes_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -340,8 +394,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(cryptoKey_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, cryptoKey_); } @@ -373,8 +426,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, scope_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); @@ -395,23 +447,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest)) { return super.equals(obj); } - com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest other = (com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest) obj; - - if (!getScope() - .equals(other.getScope())) return false; - if (!getCryptoKey() - .equals(other.getCryptoKey())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (!getResourceTypesList() - .equals(other.getResourceTypesList())) return false; + com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest other = + (com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest) obj; + + if (!getScope().equals(other.getScope())) return false; + if (!getCryptoKey().equals(other.getCryptoKey())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getResourceTypesList().equals(other.getResourceTypesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -441,98 +489,105 @@ public int hashCode() { } public static com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest 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.kms.inventory.v1.SearchProtectedResourcesRequest 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.kms.inventory.v1.SearchProtectedResourcesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest 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.kms.inventory.v1.SearchProtectedResourcesRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest 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.kms.inventory.v1.SearchProtectedResourcesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest 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.kms.inventory.v1.SearchProtectedResourcesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest parseDelimitedFrom( - java.io.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.kms.inventory.v1.SearchProtectedResourcesRequest + parseDelimitedFrom( + java.io.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.kms.inventory.v1.SearchProtectedResourcesRequest 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.kms.inventory.v1.SearchProtectedResourcesRequest 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.kms.inventory.v1.SearchProtectedResourcesRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest 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; } /** + * + * * <pre> * Request message for * [KeyTrackingService.SearchProtectedResources][google.cloud.kms.inventory.v1.KeyTrackingService.SearchProtectedResources]. @@ -540,33 +595,33 @@ protected Builder newBuilderForType( * * Protobuf type {@code google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> + implements // @@protoc_insertion_point(builder_implements:google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest) com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.kms.inventory.v1.KeyTrackingServiceProto.internal_static_google_cloud_kms_inventory_v1_SearchProtectedResourcesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.kms.inventory.v1.KeyTrackingServiceProto + .internal_static_google_cloud_kms_inventory_v1_SearchProtectedResourcesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.kms.inventory.v1.KeyTrackingServiceProto.internal_static_google_cloud_kms_inventory_v1_SearchProtectedResourcesRequest_fieldAccessorTable + return com.google.cloud.kms.inventory.v1.KeyTrackingServiceProto + .internal_static_google_cloud_kms_inventory_v1_SearchProtectedResourcesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest.class, com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest.Builder.class); + com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest.class, + com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest.Builder.class); } - // Construct using com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -575,19 +630,19 @@ public Builder clear() { cryptoKey_ = ""; pageSize_ = 0; pageToken_ = ""; - resourceTypes_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + resourceTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.kms.inventory.v1.KeyTrackingServiceProto.internal_static_google_cloud_kms_inventory_v1_SearchProtectedResourcesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.kms.inventory.v1.KeyTrackingServiceProto + .internal_static_google_cloud_kms_inventory_v1_SearchProtectedResourcesRequest_descriptor; } @java.lang.Override - public com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest getDefaultInstanceForType() { + public com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest + getDefaultInstanceForType() { return com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest.getDefaultInstance(); } @@ -602,13 +657,17 @@ public com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest build() @java.lang.Override public com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest buildPartial() { - com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest result = new com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest result = + new com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest result) { + private void buildPartial0( + com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.scope_ = scope_; @@ -632,46 +691,50 @@ private void buildPartial0(com.google.cloud.kms.inventory.v1.SearchProtectedReso 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.kms.inventory.v1.SearchProtectedResourcesRequest) { - return mergeFrom((com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest)other); + return mergeFrom((com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest other) { - if (other == com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest other) { + if (other + == com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest.getDefaultInstance()) + return this; if (!other.getScope().isEmpty()) { scope_ = other.scope_; bitField0_ |= 0x00000001; @@ -726,38 +789,44 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - cryptoKey_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 10 - case 18: { - scope_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 18 - case 24: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - ensureResourceTypesIsMutable(); - resourceTypes_.add(s); - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + cryptoKey_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 10 + case 18: + { + scope_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 18 + case 24: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureResourceTypesIsMutable(); + resourceTypes_.add(s); + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -767,23 +836,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object scope_ = ""; /** + * + * * <pre> * Required. Resource name of the organization. * Example: organizations/123 * </pre> * - * <code>string scope = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> + * <code> + * string scope = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * </code> + * * @return The scope. */ public java.lang.String getScope() { java.lang.Object ref = scope_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); scope_ = s; return s; @@ -792,21 +866,24 @@ public java.lang.String getScope() { } } /** + * + * * <pre> * Required. Resource name of the organization. * Example: organizations/123 * </pre> * - * <code>string scope = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> + * <code> + * string scope = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * </code> + * * @return The bytes for scope. */ - public com.google.protobuf.ByteString - getScopeBytes() { + public com.google.protobuf.ByteString getScopeBytes() { java.lang.Object ref = scope_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); scope_ = b; return b; } else { @@ -814,30 +891,41 @@ public java.lang.String getScope() { } } /** + * + * * <pre> * Required. Resource name of the organization. * Example: organizations/123 * </pre> * - * <code>string scope = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> + * <code> + * string scope = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * </code> + * * @param value The scope to set. * @return This builder for chaining. */ - public Builder setScope( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setScope(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } scope_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * * <pre> * Required. Resource name of the organization. * Example: organizations/123 * </pre> * - * <code>string scope = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> + * <code> + * string scope = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * </code> + * * @return This builder for chaining. */ public Builder clearScope() { @@ -847,18 +935,24 @@ public Builder clearScope() { return this; } /** + * + * * <pre> * Required. Resource name of the organization. * Example: organizations/123 * </pre> * - * <code>string scope = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> + * <code> + * string scope = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * </code> + * * @param value The bytes for scope to set. * @return This builder for chaining. */ - public Builder setScopeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setScopeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); scope_ = value; bitField0_ |= 0x00000001; @@ -868,19 +962,23 @@ public Builder setScopeBytes( private java.lang.Object cryptoKey_ = ""; /** + * + * * <pre> * Required. The resource name of the * [CryptoKey][google.cloud.kms.v1.CryptoKey]. * </pre> * - * <code>string crypto_key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> + * <code> + * string crypto_key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * </code> + * * @return The cryptoKey. */ public java.lang.String getCryptoKey() { java.lang.Object ref = cryptoKey_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cryptoKey_ = s; return s; @@ -889,21 +987,24 @@ public java.lang.String getCryptoKey() { } } /** + * + * * <pre> * Required. The resource name of the * [CryptoKey][google.cloud.kms.v1.CryptoKey]. * </pre> * - * <code>string crypto_key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> + * <code> + * string crypto_key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * </code> + * * @return The bytes for cryptoKey. */ - public com.google.protobuf.ByteString - getCryptoKeyBytes() { + public com.google.protobuf.ByteString getCryptoKeyBytes() { java.lang.Object ref = cryptoKey_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); cryptoKey_ = b; return b; } else { @@ -911,30 +1012,41 @@ public java.lang.String getCryptoKey() { } } /** + * + * * <pre> * Required. The resource name of the * [CryptoKey][google.cloud.kms.v1.CryptoKey]. * </pre> * - * <code>string crypto_key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> + * <code> + * string crypto_key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * </code> + * * @param value The cryptoKey to set. * @return This builder for chaining. */ - public Builder setCryptoKey( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setCryptoKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } cryptoKey_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * * <pre> * Required. The resource name of the * [CryptoKey][google.cloud.kms.v1.CryptoKey]. * </pre> * - * <code>string crypto_key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> + * <code> + * string crypto_key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * </code> + * * @return This builder for chaining. */ public Builder clearCryptoKey() { @@ -944,18 +1056,24 @@ public Builder clearCryptoKey() { return this; } /** + * + * * <pre> * Required. The resource name of the * [CryptoKey][google.cloud.kms.v1.CryptoKey]. * </pre> * - * <code>string crypto_key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> + * <code> + * string crypto_key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * </code> + * * @param value The bytes for cryptoKey to set. * @return This builder for chaining. */ - public Builder setCryptoKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setCryptoKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); cryptoKey_ = value; bitField0_ |= 0x00000002; @@ -963,8 +1081,10 @@ public Builder setCryptoKeyBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * * <pre> * The maximum number of resources to return. The service may return fewer * than this value. @@ -973,6 +1093,7 @@ public Builder setCryptoKeyBytes( * </pre> * * <code>int32 page_size = 3;</code> + * * @return The pageSize. */ @java.lang.Override @@ -980,6 +1101,8 @@ public int getPageSize() { return pageSize_; } /** + * + * * <pre> * The maximum number of resources to return. The service may return fewer * than this value. @@ -988,6 +1111,7 @@ public int getPageSize() { * </pre> * * <code>int32 page_size = 3;</code> + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -999,6 +1123,8 @@ public Builder setPageSize(int value) { return this; } /** + * + * * <pre> * The maximum number of resources to return. The service may return fewer * than this value. @@ -1007,6 +1133,7 @@ public Builder setPageSize(int value) { * </pre> * * <code>int32 page_size = 3;</code> + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -1018,6 +1145,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * * <pre> * A page token, received from a previous * [KeyTrackingService.SearchProtectedResources][google.cloud.kms.inventory.v1.KeyTrackingService.SearchProtectedResources] @@ -1029,13 +1158,13 @@ public Builder clearPageSize() { * </pre> * * <code>string page_token = 4;</code> + * * @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; @@ -1044,6 +1173,8 @@ public java.lang.String getPageToken() { } } /** + * + * * <pre> * A page token, received from a previous * [KeyTrackingService.SearchProtectedResources][google.cloud.kms.inventory.v1.KeyTrackingService.SearchProtectedResources] @@ -1055,15 +1186,14 @@ public java.lang.String getPageToken() { * </pre> * * <code>string page_token = 4;</code> + * * @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 { @@ -1071,6 +1201,8 @@ public java.lang.String getPageToken() { } } /** + * + * * <pre> * A page token, received from a previous * [KeyTrackingService.SearchProtectedResources][google.cloud.kms.inventory.v1.KeyTrackingService.SearchProtectedResources] @@ -1082,18 +1214,22 @@ public java.lang.String getPageToken() { * </pre> * * <code>string page_token = 4;</code> + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * * <pre> * A page token, received from a previous * [KeyTrackingService.SearchProtectedResources][google.cloud.kms.inventory.v1.KeyTrackingService.SearchProtectedResources] @@ -1105,6 +1241,7 @@ public Builder setPageToken( * </pre> * * <code>string page_token = 4;</code> + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -1114,6 +1251,8 @@ public Builder clearPageToken() { return this; } /** + * + * * <pre> * A page token, received from a previous * [KeyTrackingService.SearchProtectedResources][google.cloud.kms.inventory.v1.KeyTrackingService.SearchProtectedResources] @@ -1125,12 +1264,14 @@ public Builder clearPageToken() { * </pre> * * <code>string page_token = 4;</code> + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000008; @@ -1140,6 +1281,7 @@ public Builder setPageTokenBytes( private com.google.protobuf.LazyStringArrayList resourceTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureResourceTypesIsMutable() { if (!resourceTypes_.isModifiable()) { resourceTypes_ = new com.google.protobuf.LazyStringArrayList(resourceTypes_); @@ -1147,6 +1289,8 @@ private void ensureResourceTypesIsMutable() { bitField0_ |= 0x00000010; } /** + * + * * <pre> * Optional. A list of resource types that this request searches for. If * empty, it will search all the [trackable resource @@ -1165,14 +1309,16 @@ private void ensureResourceTypesIsMutable() { * </pre> * * <code>repeated string resource_types = 5 [(.google.api.field_behavior) = OPTIONAL];</code> + * * @return A list containing the resourceTypes. */ - public com.google.protobuf.ProtocolStringList - getResourceTypesList() { + public com.google.protobuf.ProtocolStringList getResourceTypesList() { resourceTypes_.makeImmutable(); return resourceTypes_; } /** + * + * * <pre> * Optional. A list of resource types that this request searches for. If * empty, it will search all the [trackable resource @@ -1191,12 +1337,15 @@ private void ensureResourceTypesIsMutable() { * </pre> * * <code>repeated string resource_types = 5 [(.google.api.field_behavior) = OPTIONAL];</code> + * * @return The count of resourceTypes. */ public int getResourceTypesCount() { return resourceTypes_.size(); } /** + * + * * <pre> * Optional. A list of resource types that this request searches for. If * empty, it will search all the [trackable resource @@ -1215,6 +1364,7 @@ public int getResourceTypesCount() { * </pre> * * <code>repeated string resource_types = 5 [(.google.api.field_behavior) = OPTIONAL];</code> + * * @param index The index of the element to return. * @return The resourceTypes at the given index. */ @@ -1222,6 +1372,8 @@ public java.lang.String getResourceTypes(int index) { return resourceTypes_.get(index); } /** + * + * * <pre> * Optional. A list of resource types that this request searches for. If * empty, it will search all the [trackable resource @@ -1240,14 +1392,16 @@ public java.lang.String getResourceTypes(int index) { * </pre> * * <code>repeated string resource_types = 5 [(.google.api.field_behavior) = OPTIONAL];</code> + * * @param index The index of the value to return. * @return The bytes of the resourceTypes at the given index. */ - public com.google.protobuf.ByteString - getResourceTypesBytes(int index) { + public com.google.protobuf.ByteString getResourceTypesBytes(int index) { return resourceTypes_.getByteString(index); } /** + * + * * <pre> * Optional. A list of resource types that this request searches for. If * empty, it will search all the [trackable resource @@ -1266,13 +1420,15 @@ public java.lang.String getResourceTypes(int index) { * </pre> * * <code>repeated string resource_types = 5 [(.google.api.field_behavior) = OPTIONAL];</code> + * * @param index The index to set the value at. * @param value The resourceTypes to set. * @return This builder for chaining. */ - public Builder setResourceTypes( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setResourceTypes(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureResourceTypesIsMutable(); resourceTypes_.set(index, value); bitField0_ |= 0x00000010; @@ -1280,6 +1436,8 @@ public Builder setResourceTypes( return this; } /** + * + * * <pre> * Optional. A list of resource types that this request searches for. If * empty, it will search all the [trackable resource @@ -1298,12 +1456,14 @@ public Builder setResourceTypes( * </pre> * * <code>repeated string resource_types = 5 [(.google.api.field_behavior) = OPTIONAL];</code> + * * @param value The resourceTypes to add. * @return This builder for chaining. */ - public Builder addResourceTypes( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addResourceTypes(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureResourceTypesIsMutable(); resourceTypes_.add(value); bitField0_ |= 0x00000010; @@ -1311,6 +1471,8 @@ public Builder addResourceTypes( return this; } /** + * + * * <pre> * Optional. A list of resource types that this request searches for. If * empty, it will search all the [trackable resource @@ -1329,19 +1491,20 @@ public Builder addResourceTypes( * </pre> * * <code>repeated string resource_types = 5 [(.google.api.field_behavior) = OPTIONAL];</code> + * * @param values The resourceTypes to add. * @return This builder for chaining. */ - public Builder addAllResourceTypes( - java.lang.Iterable<java.lang.String> values) { + public Builder addAllResourceTypes(java.lang.Iterable<java.lang.String> values) { ensureResourceTypesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, resourceTypes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, resourceTypes_); bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * * <pre> * Optional. A list of resource types that this request searches for. If * empty, it will search all the [trackable resource @@ -1360,16 +1523,19 @@ public Builder addAllResourceTypes( * </pre> * * <code>repeated string resource_types = 5 [(.google.api.field_behavior) = OPTIONAL];</code> + * * @return This builder for chaining. */ public Builder clearResourceTypes() { - resourceTypes_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010);; + resourceTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + ; onChanged(); return this; } /** + * + * * <pre> * Optional. A list of resource types that this request searches for. If * empty, it will search all the [trackable resource @@ -1388,12 +1554,14 @@ public Builder clearResourceTypes() { * </pre> * * <code>repeated string resource_types = 5 [(.google.api.field_behavior) = OPTIONAL];</code> + * * @param value The bytes of the resourceTypes to add. * @return This builder for chaining. */ - public Builder addResourceTypesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addResourceTypesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureResourceTypesIsMutable(); resourceTypes_.add(value); @@ -1401,9 +1569,9 @@ public Builder addResourceTypesBytes( 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); } @@ -1413,41 +1581,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest) - private static final com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest DEFAULT_INSTANCE; + private static final com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest(); } - public static com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest getDefaultInstance() { + public static com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<SearchProtectedResourcesRequest> - PARSER = new com.google.protobuf.AbstractParser<SearchProtectedResourcesRequest>() { - @java.lang.Override - public SearchProtectedResourcesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<SearchProtectedResourcesRequest> PARSER = + new com.google.protobuf.AbstractParser<SearchProtectedResourcesRequest>() { + @java.lang.Override + public SearchProtectedResourcesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<SearchProtectedResourcesRequest> parser() { return PARSER; @@ -1459,9 +1629,8 @@ public com.google.protobuf.Parser<SearchProtectedResourcesRequest> getParserForT } @java.lang.Override - public com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest getDefaultInstanceForType() { + public com.google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/SearchProtectedResourcesRequestOrBuilder.java b/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/SearchProtectedResourcesRequestOrBuilder.java similarity index 79% rename from owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/SearchProtectedResourcesRequestOrBuilder.java rename to java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/SearchProtectedResourcesRequestOrBuilder.java index 89d7d006cd7a..1ff8feaa23c2 100644 --- a/owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/SearchProtectedResourcesRequestOrBuilder.java +++ b/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/SearchProtectedResourcesRequestOrBuilder.java @@ -1,57 +1,93 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/kms/inventory/v1/key_tracking_service.proto package com.google.cloud.kms.inventory.v1; -public interface SearchProtectedResourcesRequestOrBuilder extends +public interface SearchProtectedResourcesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.kms.inventory.v1.SearchProtectedResourcesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * * <pre> * Required. Resource name of the organization. * Example: organizations/123 * </pre> * - * <code>string scope = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> + * <code> + * string scope = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * </code> + * * @return The scope. */ java.lang.String getScope(); /** + * + * * <pre> * Required. Resource name of the organization. * Example: organizations/123 * </pre> * - * <code>string scope = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> + * <code> + * string scope = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * </code> + * * @return The bytes for scope. */ - com.google.protobuf.ByteString - getScopeBytes(); + com.google.protobuf.ByteString getScopeBytes(); /** + * + * * <pre> * Required. The resource name of the * [CryptoKey][google.cloud.kms.v1.CryptoKey]. * </pre> * - * <code>string crypto_key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> + * <code> + * string crypto_key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * </code> + * * @return The cryptoKey. */ java.lang.String getCryptoKey(); /** + * + * * <pre> * Required. The resource name of the * [CryptoKey][google.cloud.kms.v1.CryptoKey]. * </pre> * - * <code>string crypto_key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> + * <code> + * string crypto_key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * </code> + * * @return The bytes for cryptoKey. */ - com.google.protobuf.ByteString - getCryptoKeyBytes(); + com.google.protobuf.ByteString getCryptoKeyBytes(); /** + * + * * <pre> * The maximum number of resources to return. The service may return fewer * than this value. @@ -60,11 +96,14 @@ public interface SearchProtectedResourcesRequestOrBuilder extends * </pre> * * <code>int32 page_size = 3;</code> + * * @return The pageSize. */ int getPageSize(); /** + * + * * <pre> * A page token, received from a previous * [KeyTrackingService.SearchProtectedResources][google.cloud.kms.inventory.v1.KeyTrackingService.SearchProtectedResources] @@ -76,10 +115,13 @@ public interface SearchProtectedResourcesRequestOrBuilder extends * </pre> * * <code>string page_token = 4;</code> + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * * <pre> * A page token, received from a previous * [KeyTrackingService.SearchProtectedResources][google.cloud.kms.inventory.v1.KeyTrackingService.SearchProtectedResources] @@ -91,12 +133,14 @@ public interface SearchProtectedResourcesRequestOrBuilder extends * </pre> * * <code>string page_token = 4;</code> + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * * <pre> * Optional. A list of resource types that this request searches for. If * empty, it will search all the [trackable resource @@ -115,11 +159,13 @@ public interface SearchProtectedResourcesRequestOrBuilder extends * </pre> * * <code>repeated string resource_types = 5 [(.google.api.field_behavior) = OPTIONAL];</code> + * * @return A list containing the resourceTypes. */ - java.util.List<java.lang.String> - getResourceTypesList(); + java.util.List<java.lang.String> getResourceTypesList(); /** + * + * * <pre> * Optional. A list of resource types that this request searches for. If * empty, it will search all the [trackable resource @@ -138,10 +184,13 @@ public interface SearchProtectedResourcesRequestOrBuilder extends * </pre> * * <code>repeated string resource_types = 5 [(.google.api.field_behavior) = OPTIONAL];</code> + * * @return The count of resourceTypes. */ int getResourceTypesCount(); /** + * + * * <pre> * Optional. A list of resource types that this request searches for. If * empty, it will search all the [trackable resource @@ -160,11 +209,14 @@ public interface SearchProtectedResourcesRequestOrBuilder extends * </pre> * * <code>repeated string resource_types = 5 [(.google.api.field_behavior) = OPTIONAL];</code> + * * @param index The index of the element to return. * @return The resourceTypes at the given index. */ java.lang.String getResourceTypes(int index); /** + * + * * <pre> * Optional. A list of resource types that this request searches for. If * empty, it will search all the [trackable resource @@ -183,9 +235,9 @@ public interface SearchProtectedResourcesRequestOrBuilder extends * </pre> * * <code>repeated string resource_types = 5 [(.google.api.field_behavior) = OPTIONAL];</code> + * * @param index The index of the value to return. * @return The bytes of the resourceTypes at the given index. */ - com.google.protobuf.ByteString - getResourceTypesBytes(int index); + com.google.protobuf.ByteString getResourceTypesBytes(int index); } diff --git a/owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/SearchProtectedResourcesResponse.java b/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/SearchProtectedResourcesResponse.java similarity index 68% rename from owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/SearchProtectedResourcesResponse.java rename to java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/SearchProtectedResourcesResponse.java index 215334b80afa..4cbe302e9b83 100644 --- a/owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/SearchProtectedResourcesResponse.java +++ b/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/SearchProtectedResourcesResponse.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/kms/inventory/v1/key_tracking_service.proto package com.google.cloud.kms.inventory.v1; /** + * + * * <pre> * Response message for * [KeyTrackingService.SearchProtectedResources][google.cloud.kms.inventory.v1.KeyTrackingService.SearchProtectedResources]. @@ -11,15 +28,17 @@ * * Protobuf type {@code google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse} */ -public final class SearchProtectedResourcesResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SearchProtectedResourcesResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse) SearchProtectedResourcesResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SearchProtectedResourcesResponse.newBuilder() to construct. - private SearchProtectedResourcesResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { + private SearchProtectedResourcesResponse( + com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } + private SearchProtectedResourcesResponse() { protectedResources_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -27,28 +46,32 @@ private SearchProtectedResourcesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SearchProtectedResourcesResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.kms.inventory.v1.KeyTrackingServiceProto.internal_static_google_cloud_kms_inventory_v1_SearchProtectedResourcesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.kms.inventory.v1.KeyTrackingServiceProto + .internal_static_google_cloud_kms_inventory_v1_SearchProtectedResourcesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.kms.inventory.v1.KeyTrackingServiceProto.internal_static_google_cloud_kms_inventory_v1_SearchProtectedResourcesResponse_fieldAccessorTable + return com.google.cloud.kms.inventory.v1.KeyTrackingServiceProto + .internal_static_google_cloud_kms_inventory_v1_SearchProtectedResourcesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse.class, com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse.Builder.class); + com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse.class, + com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse.Builder.class); } public static final int PROTECTED_RESOURCES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List<com.google.cloud.kms.inventory.v1.ProtectedResource> protectedResources_; /** + * + * * <pre> * Protected resources for this page. * </pre> @@ -56,10 +79,13 @@ protected java.lang.Object newInstance( * <code>repeated .google.cloud.kms.inventory.v1.ProtectedResource protected_resources = 1;</code> */ @java.lang.Override - public java.util.List<com.google.cloud.kms.inventory.v1.ProtectedResource> getProtectedResourcesList() { + public java.util.List<com.google.cloud.kms.inventory.v1.ProtectedResource> + getProtectedResourcesList() { return protectedResources_; } /** + * + * * <pre> * Protected resources for this page. * </pre> @@ -67,11 +93,13 @@ public java.util.List<com.google.cloud.kms.inventory.v1.ProtectedResource> getPr * <code>repeated .google.cloud.kms.inventory.v1.ProtectedResource protected_resources = 1;</code> */ @java.lang.Override - public java.util.List<? extends com.google.cloud.kms.inventory.v1.ProtectedResourceOrBuilder> + public java.util.List<? extends com.google.cloud.kms.inventory.v1.ProtectedResourceOrBuilder> getProtectedResourcesOrBuilderList() { return protectedResources_; } /** + * + * * <pre> * Protected resources for this page. * </pre> @@ -83,6 +111,8 @@ public int getProtectedResourcesCount() { return protectedResources_.size(); } /** + * + * * <pre> * Protected resources for this page. * </pre> @@ -94,6 +124,8 @@ public com.google.cloud.kms.inventory.v1.ProtectedResource getProtectedResources return protectedResources_.get(index); } /** + * + * * <pre> * Protected resources for this page. * </pre> @@ -101,21 +133,25 @@ public com.google.cloud.kms.inventory.v1.ProtectedResource getProtectedResources * <code>repeated .google.cloud.kms.inventory.v1.ProtectedResource protected_resources = 1;</code> */ @java.lang.Override - public com.google.cloud.kms.inventory.v1.ProtectedResourceOrBuilder getProtectedResourcesOrBuilder( - int index) { + public com.google.cloud.kms.inventory.v1.ProtectedResourceOrBuilder + getProtectedResourcesOrBuilder(int index) { return protectedResources_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * * <pre> * A token that can be sent as `page_token` to retrieve the next page. * If this field is omitted, there are no subsequent pages. * </pre> * * <code>string next_page_token = 2;</code> + * * @return The nextPageToken. */ @java.lang.Override @@ -124,30 +160,30 @@ 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; } } /** + * + * * <pre> * A token that can be sent as `page_token` to retrieve the next page. * If this field is omitted, there are no subsequent pages. * </pre> * * <code>string next_page_token = 2;</code> + * * @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 { @@ -156,6 +192,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -167,8 +204,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 < protectedResources_.size(); i++) { output.writeMessage(1, protectedResources_.get(i)); } @@ -185,8 +221,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < protectedResources_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, protectedResources_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, protectedResources_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -199,17 +235,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.kms.inventory.v1.SearchProtectedResourcesResponse)) { return super.equals(obj); } - com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse other = (com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse) obj; + com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse other = + (com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse) obj; - if (!getProtectedResourcesList() - .equals(other.getProtectedResourcesList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getProtectedResourcesList().equals(other.getProtectedResourcesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -233,98 +268,105 @@ public int hashCode() { } public static com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse 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.kms.inventory.v1.SearchProtectedResourcesResponse 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.kms.inventory.v1.SearchProtectedResourcesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse 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.kms.inventory.v1.SearchProtectedResourcesResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse 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.kms.inventory.v1.SearchProtectedResourcesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse 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.kms.inventory.v1.SearchProtectedResourcesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse parseDelimitedFrom( - java.io.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.kms.inventory.v1.SearchProtectedResourcesResponse + parseDelimitedFrom( + java.io.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.kms.inventory.v1.SearchProtectedResourcesResponse 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.kms.inventory.v1.SearchProtectedResourcesResponse 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.kms.inventory.v1.SearchProtectedResourcesResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse 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; } /** + * + * * <pre> * Response message for * [KeyTrackingService.SearchProtectedResources][google.cloud.kms.inventory.v1.KeyTrackingService.SearchProtectedResources]. @@ -332,33 +374,33 @@ protected Builder newBuilderForType( * * Protobuf type {@code google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> + implements // @@protoc_insertion_point(builder_implements:google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse) com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.kms.inventory.v1.KeyTrackingServiceProto.internal_static_google_cloud_kms_inventory_v1_SearchProtectedResourcesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.kms.inventory.v1.KeyTrackingServiceProto + .internal_static_google_cloud_kms_inventory_v1_SearchProtectedResourcesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.kms.inventory.v1.KeyTrackingServiceProto.internal_static_google_cloud_kms_inventory_v1_SearchProtectedResourcesResponse_fieldAccessorTable + return com.google.cloud.kms.inventory.v1.KeyTrackingServiceProto + .internal_static_google_cloud_kms_inventory_v1_SearchProtectedResourcesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse.class, com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse.Builder.class); + com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse.class, + com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse.Builder.class); } - // Construct using com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -375,14 +417,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.kms.inventory.v1.KeyTrackingServiceProto.internal_static_google_cloud_kms_inventory_v1_SearchProtectedResourcesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.kms.inventory.v1.KeyTrackingServiceProto + .internal_static_google_cloud_kms_inventory_v1_SearchProtectedResourcesResponse_descriptor; } @java.lang.Override - public com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse getDefaultInstanceForType() { - return com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse.getDefaultInstance(); + public com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse + getDefaultInstanceForType() { + return com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse + .getDefaultInstance(); } @java.lang.Override @@ -396,14 +440,18 @@ public com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse build( @java.lang.Override public com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse buildPartial() { - com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse result = new com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse(this); + com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse result = + new com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse result) { + private void buildPartialRepeatedFields( + com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse result) { if (protectedResourcesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { protectedResources_ = java.util.Collections.unmodifiableList(protectedResources_); @@ -415,7 +463,8 @@ private void buildPartialRepeatedFields(com.google.cloud.kms.inventory.v1.Search } } - private void buildPartial0(com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse result) { + private void buildPartial0( + com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -426,46 +475,51 @@ private void buildPartial0(com.google.cloud.kms.inventory.v1.SearchProtectedReso 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.kms.inventory.v1.SearchProtectedResourcesResponse) { - return mergeFrom((com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse)other); + return mergeFrom( + (com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse other) { - if (other == com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse other) { + if (other + == com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse + .getDefaultInstance()) return this; if (protectedResourcesBuilder_ == null) { if (!other.protectedResources_.isEmpty()) { if (protectedResources_.isEmpty()) { @@ -484,9 +538,10 @@ public Builder mergeFrom(com.google.cloud.kms.inventory.v1.SearchProtectedResour protectedResourcesBuilder_ = null; protectedResources_ = other.protectedResources_; bitField0_ = (bitField0_ & ~0x00000001); - protectedResourcesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getProtectedResourcesFieldBuilder() : null; + protectedResourcesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getProtectedResourcesFieldBuilder() + : null; } else { protectedResourcesBuilder_.addAllMessages(other.protectedResources_); } @@ -523,30 +578,33 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.kms.inventory.v1.ProtectedResource m = - input.readMessage( - com.google.cloud.kms.inventory.v1.ProtectedResource.parser(), - extensionRegistry); - if (protectedResourcesBuilder_ == null) { - ensureProtectedResourcesIsMutable(); - protectedResources_.add(m); - } else { - protectedResourcesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.kms.inventory.v1.ProtectedResource m = + input.readMessage( + com.google.cloud.kms.inventory.v1.ProtectedResource.parser(), + extensionRegistry); + if (protectedResourcesBuilder_ == null) { + ensureProtectedResourcesIsMutable(); + protectedResources_.add(m); + } else { + protectedResourcesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -556,28 +614,39 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private java.util.List<com.google.cloud.kms.inventory.v1.ProtectedResource> protectedResources_ = - java.util.Collections.emptyList(); + private java.util.List<com.google.cloud.kms.inventory.v1.ProtectedResource> + protectedResources_ = java.util.Collections.emptyList(); + private void ensureProtectedResourcesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - protectedResources_ = new java.util.ArrayList<com.google.cloud.kms.inventory.v1.ProtectedResource>(protectedResources_); + protectedResources_ = + new java.util.ArrayList<com.google.cloud.kms.inventory.v1.ProtectedResource>( + protectedResources_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.kms.inventory.v1.ProtectedResource, com.google.cloud.kms.inventory.v1.ProtectedResource.Builder, com.google.cloud.kms.inventory.v1.ProtectedResourceOrBuilder> protectedResourcesBuilder_; + com.google.cloud.kms.inventory.v1.ProtectedResource, + com.google.cloud.kms.inventory.v1.ProtectedResource.Builder, + com.google.cloud.kms.inventory.v1.ProtectedResourceOrBuilder> + protectedResourcesBuilder_; /** + * + * * <pre> * Protected resources for this page. * </pre> * - * <code>repeated .google.cloud.kms.inventory.v1.ProtectedResource protected_resources = 1;</code> + * <code>repeated .google.cloud.kms.inventory.v1.ProtectedResource protected_resources = 1; + * </code> */ - public java.util.List<com.google.cloud.kms.inventory.v1.ProtectedResource> getProtectedResourcesList() { + public java.util.List<com.google.cloud.kms.inventory.v1.ProtectedResource> + getProtectedResourcesList() { if (protectedResourcesBuilder_ == null) { return java.util.Collections.unmodifiableList(protectedResources_); } else { @@ -585,11 +654,14 @@ public java.util.List<com.google.cloud.kms.inventory.v1.ProtectedResource> getPr } } /** + * + * * <pre> * Protected resources for this page. * </pre> * - * <code>repeated .google.cloud.kms.inventory.v1.ProtectedResource protected_resources = 1;</code> + * <code>repeated .google.cloud.kms.inventory.v1.ProtectedResource protected_resources = 1; + * </code> */ public int getProtectedResourcesCount() { if (protectedResourcesBuilder_ == null) { @@ -599,11 +671,14 @@ public int getProtectedResourcesCount() { } } /** + * + * * <pre> * Protected resources for this page. * </pre> * - * <code>repeated .google.cloud.kms.inventory.v1.ProtectedResource protected_resources = 1;</code> + * <code>repeated .google.cloud.kms.inventory.v1.ProtectedResource protected_resources = 1; + * </code> */ public com.google.cloud.kms.inventory.v1.ProtectedResource getProtectedResources(int index) { if (protectedResourcesBuilder_ == null) { @@ -613,11 +688,14 @@ public com.google.cloud.kms.inventory.v1.ProtectedResource getProtectedResources } } /** + * + * * <pre> * Protected resources for this page. * </pre> * - * <code>repeated .google.cloud.kms.inventory.v1.ProtectedResource protected_resources = 1;</code> + * <code>repeated .google.cloud.kms.inventory.v1.ProtectedResource protected_resources = 1; + * </code> */ public Builder setProtectedResources( int index, com.google.cloud.kms.inventory.v1.ProtectedResource value) { @@ -634,11 +712,14 @@ public Builder setProtectedResources( return this; } /** + * + * * <pre> * Protected resources for this page. * </pre> * - * <code>repeated .google.cloud.kms.inventory.v1.ProtectedResource protected_resources = 1;</code> + * <code>repeated .google.cloud.kms.inventory.v1.ProtectedResource protected_resources = 1; + * </code> */ public Builder setProtectedResources( int index, com.google.cloud.kms.inventory.v1.ProtectedResource.Builder builderForValue) { @@ -652,13 +733,17 @@ public Builder setProtectedResources( return this; } /** + * + * * <pre> * Protected resources for this page. * </pre> * - * <code>repeated .google.cloud.kms.inventory.v1.ProtectedResource protected_resources = 1;</code> + * <code>repeated .google.cloud.kms.inventory.v1.ProtectedResource protected_resources = 1; + * </code> */ - public Builder addProtectedResources(com.google.cloud.kms.inventory.v1.ProtectedResource value) { + public Builder addProtectedResources( + com.google.cloud.kms.inventory.v1.ProtectedResource value) { if (protectedResourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -672,11 +757,14 @@ public Builder addProtectedResources(com.google.cloud.kms.inventory.v1.Protected return this; } /** + * + * * <pre> * Protected resources for this page. * </pre> * - * <code>repeated .google.cloud.kms.inventory.v1.ProtectedResource protected_resources = 1;</code> + * <code>repeated .google.cloud.kms.inventory.v1.ProtectedResource protected_resources = 1; + * </code> */ public Builder addProtectedResources( int index, com.google.cloud.kms.inventory.v1.ProtectedResource value) { @@ -693,11 +781,14 @@ public Builder addProtectedResources( return this; } /** + * + * * <pre> * Protected resources for this page. * </pre> * - * <code>repeated .google.cloud.kms.inventory.v1.ProtectedResource protected_resources = 1;</code> + * <code>repeated .google.cloud.kms.inventory.v1.ProtectedResource protected_resources = 1; + * </code> */ public Builder addProtectedResources( com.google.cloud.kms.inventory.v1.ProtectedResource.Builder builderForValue) { @@ -711,11 +802,14 @@ public Builder addProtectedResources( return this; } /** + * + * * <pre> * Protected resources for this page. * </pre> * - * <code>repeated .google.cloud.kms.inventory.v1.ProtectedResource protected_resources = 1;</code> + * <code>repeated .google.cloud.kms.inventory.v1.ProtectedResource protected_resources = 1; + * </code> */ public Builder addProtectedResources( int index, com.google.cloud.kms.inventory.v1.ProtectedResource.Builder builderForValue) { @@ -729,18 +823,20 @@ public Builder addProtectedResources( return this; } /** + * + * * <pre> * Protected resources for this page. * </pre> * - * <code>repeated .google.cloud.kms.inventory.v1.ProtectedResource protected_resources = 1;</code> + * <code>repeated .google.cloud.kms.inventory.v1.ProtectedResource protected_resources = 1; + * </code> */ public Builder addAllProtectedResources( java.lang.Iterable<? extends com.google.cloud.kms.inventory.v1.ProtectedResource> values) { if (protectedResourcesBuilder_ == null) { ensureProtectedResourcesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, protectedResources_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, protectedResources_); onChanged(); } else { protectedResourcesBuilder_.addAllMessages(values); @@ -748,11 +844,14 @@ public Builder addAllProtectedResources( return this; } /** + * + * * <pre> * Protected resources for this page. * </pre> * - * <code>repeated .google.cloud.kms.inventory.v1.ProtectedResource protected_resources = 1;</code> + * <code>repeated .google.cloud.kms.inventory.v1.ProtectedResource protected_resources = 1; + * </code> */ public Builder clearProtectedResources() { if (protectedResourcesBuilder_ == null) { @@ -765,11 +864,14 @@ public Builder clearProtectedResources() { return this; } /** + * + * * <pre> * Protected resources for this page. * </pre> * - * <code>repeated .google.cloud.kms.inventory.v1.ProtectedResource protected_resources = 1;</code> + * <code>repeated .google.cloud.kms.inventory.v1.ProtectedResource protected_resources = 1; + * </code> */ public Builder removeProtectedResources(int index) { if (protectedResourcesBuilder_ == null) { @@ -782,39 +884,49 @@ public Builder removeProtectedResources(int index) { return this; } /** + * + * * <pre> * Protected resources for this page. * </pre> * - * <code>repeated .google.cloud.kms.inventory.v1.ProtectedResource protected_resources = 1;</code> + * <code>repeated .google.cloud.kms.inventory.v1.ProtectedResource protected_resources = 1; + * </code> */ public com.google.cloud.kms.inventory.v1.ProtectedResource.Builder getProtectedResourcesBuilder( int index) { return getProtectedResourcesFieldBuilder().getBuilder(index); } /** + * + * * <pre> * Protected resources for this page. * </pre> * - * <code>repeated .google.cloud.kms.inventory.v1.ProtectedResource protected_resources = 1;</code> + * <code>repeated .google.cloud.kms.inventory.v1.ProtectedResource protected_resources = 1; + * </code> */ - public com.google.cloud.kms.inventory.v1.ProtectedResourceOrBuilder getProtectedResourcesOrBuilder( - int index) { + public com.google.cloud.kms.inventory.v1.ProtectedResourceOrBuilder + getProtectedResourcesOrBuilder(int index) { if (protectedResourcesBuilder_ == null) { - return protectedResources_.get(index); } else { + return protectedResources_.get(index); + } else { return protectedResourcesBuilder_.getMessageOrBuilder(index); } } /** + * + * * <pre> * Protected resources for this page. * </pre> * - * <code>repeated .google.cloud.kms.inventory.v1.ProtectedResource protected_resources = 1;</code> + * <code>repeated .google.cloud.kms.inventory.v1.ProtectedResource protected_resources = 1; + * </code> */ - public java.util.List<? extends com.google.cloud.kms.inventory.v1.ProtectedResourceOrBuilder> - getProtectedResourcesOrBuilderList() { + public java.util.List<? extends com.google.cloud.kms.inventory.v1.ProtectedResourceOrBuilder> + getProtectedResourcesOrBuilderList() { if (protectedResourcesBuilder_ != null) { return protectedResourcesBuilder_.getMessageOrBuilderList(); } else { @@ -822,45 +934,62 @@ public com.google.cloud.kms.inventory.v1.ProtectedResourceOrBuilder getProtected } } /** + * + * * <pre> * Protected resources for this page. * </pre> * - * <code>repeated .google.cloud.kms.inventory.v1.ProtectedResource protected_resources = 1;</code> + * <code>repeated .google.cloud.kms.inventory.v1.ProtectedResource protected_resources = 1; + * </code> */ - public com.google.cloud.kms.inventory.v1.ProtectedResource.Builder addProtectedResourcesBuilder() { - return getProtectedResourcesFieldBuilder().addBuilder( - com.google.cloud.kms.inventory.v1.ProtectedResource.getDefaultInstance()); + public com.google.cloud.kms.inventory.v1.ProtectedResource.Builder + addProtectedResourcesBuilder() { + return getProtectedResourcesFieldBuilder() + .addBuilder(com.google.cloud.kms.inventory.v1.ProtectedResource.getDefaultInstance()); } /** + * + * * <pre> * Protected resources for this page. * </pre> * - * <code>repeated .google.cloud.kms.inventory.v1.ProtectedResource protected_resources = 1;</code> + * <code>repeated .google.cloud.kms.inventory.v1.ProtectedResource protected_resources = 1; + * </code> */ public com.google.cloud.kms.inventory.v1.ProtectedResource.Builder addProtectedResourcesBuilder( int index) { - return getProtectedResourcesFieldBuilder().addBuilder( - index, com.google.cloud.kms.inventory.v1.ProtectedResource.getDefaultInstance()); + return getProtectedResourcesFieldBuilder() + .addBuilder( + index, com.google.cloud.kms.inventory.v1.ProtectedResource.getDefaultInstance()); } /** + * + * * <pre> * Protected resources for this page. * </pre> * - * <code>repeated .google.cloud.kms.inventory.v1.ProtectedResource protected_resources = 1;</code> + * <code>repeated .google.cloud.kms.inventory.v1.ProtectedResource protected_resources = 1; + * </code> */ - public java.util.List<com.google.cloud.kms.inventory.v1.ProtectedResource.Builder> - getProtectedResourcesBuilderList() { + public java.util.List<com.google.cloud.kms.inventory.v1.ProtectedResource.Builder> + getProtectedResourcesBuilderList() { return getProtectedResourcesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.kms.inventory.v1.ProtectedResource, com.google.cloud.kms.inventory.v1.ProtectedResource.Builder, com.google.cloud.kms.inventory.v1.ProtectedResourceOrBuilder> + com.google.cloud.kms.inventory.v1.ProtectedResource, + com.google.cloud.kms.inventory.v1.ProtectedResource.Builder, + com.google.cloud.kms.inventory.v1.ProtectedResourceOrBuilder> getProtectedResourcesFieldBuilder() { if (protectedResourcesBuilder_ == null) { - protectedResourcesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.kms.inventory.v1.ProtectedResource, com.google.cloud.kms.inventory.v1.ProtectedResource.Builder, com.google.cloud.kms.inventory.v1.ProtectedResourceOrBuilder>( + protectedResourcesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.kms.inventory.v1.ProtectedResource, + com.google.cloud.kms.inventory.v1.ProtectedResource.Builder, + com.google.cloud.kms.inventory.v1.ProtectedResourceOrBuilder>( protectedResources_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -872,19 +1001,21 @@ public com.google.cloud.kms.inventory.v1.ProtectedResource.Builder addProtectedR private java.lang.Object nextPageToken_ = ""; /** + * + * * <pre> * A token that can be sent as `page_token` to retrieve the next page. * If this field is omitted, there are no subsequent pages. * </pre> * * <code>string next_page_token = 2;</code> + * * @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; @@ -893,21 +1024,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * * <pre> * A token that can be sent as `page_token` to retrieve the next page. * If this field is omitted, there are no subsequent pages. * </pre> * * <code>string next_page_token = 2;</code> + * * @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 { @@ -915,30 +1047,37 @@ public java.lang.String getNextPageToken() { } } /** + * + * * <pre> * A token that can be sent as `page_token` to retrieve the next page. * If this field is omitted, there are no subsequent pages. * </pre> * * <code>string next_page_token = 2;</code> + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * * <pre> * A token that can be sent as `page_token` to retrieve the next page. * If this field is omitted, there are no subsequent pages. * </pre> * * <code>string next_page_token = 2;</code> + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -948,27 +1087,31 @@ public Builder clearNextPageToken() { return this; } /** + * + * * <pre> * A token that can be sent as `page_token` to retrieve the next page. * If this field is omitted, there are no subsequent pages. * </pre> * * <code>string next_page_token = 2;</code> + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; 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); } @@ -978,41 +1121,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse) - private static final com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse DEFAULT_INSTANCE; + private static final com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse(); } - public static com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse getDefaultInstance() { + public static com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser<SearchProtectedResourcesResponse> - PARSER = new com.google.protobuf.AbstractParser<SearchProtectedResourcesResponse>() { - @java.lang.Override - public SearchProtectedResourcesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser<SearchProtectedResourcesResponse> PARSER = + new com.google.protobuf.AbstractParser<SearchProtectedResourcesResponse>() { + @java.lang.Override + public SearchProtectedResourcesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser<SearchProtectedResourcesResponse> parser() { return PARSER; @@ -1024,9 +1169,8 @@ public com.google.protobuf.Parser<SearchProtectedResourcesResponse> getParserFor } @java.lang.Override - public com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse getDefaultInstanceForType() { + public com.google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/SearchProtectedResourcesResponseOrBuilder.java b/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/SearchProtectedResourcesResponseOrBuilder.java similarity index 71% rename from owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/SearchProtectedResourcesResponseOrBuilder.java rename to java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/SearchProtectedResourcesResponseOrBuilder.java index c9d81d1e1cfd..109f0f191eea 100644 --- a/owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/SearchProtectedResourcesResponseOrBuilder.java +++ b/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/SearchProtectedResourcesResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/kms/inventory/v1/key_tracking_service.proto package com.google.cloud.kms.inventory.v1; -public interface SearchProtectedResourcesResponseOrBuilder extends +public interface SearchProtectedResourcesResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse) com.google.protobuf.MessageOrBuilder { /** + * + * * <pre> * Protected resources for this page. * </pre> * * <code>repeated .google.cloud.kms.inventory.v1.ProtectedResource protected_resources = 1;</code> */ - java.util.List<com.google.cloud.kms.inventory.v1.ProtectedResource> - getProtectedResourcesList(); + java.util.List<com.google.cloud.kms.inventory.v1.ProtectedResource> getProtectedResourcesList(); /** + * + * * <pre> * Protected resources for this page. * </pre> @@ -25,6 +44,8 @@ public interface SearchProtectedResourcesResponseOrBuilder extends */ com.google.cloud.kms.inventory.v1.ProtectedResource getProtectedResources(int index); /** + * + * * <pre> * Protected resources for this page. * </pre> @@ -33,15 +54,19 @@ public interface SearchProtectedResourcesResponseOrBuilder extends */ int getProtectedResourcesCount(); /** + * + * * <pre> * Protected resources for this page. * </pre> * * <code>repeated .google.cloud.kms.inventory.v1.ProtectedResource protected_resources = 1;</code> */ - java.util.List<? extends com.google.cloud.kms.inventory.v1.ProtectedResourceOrBuilder> + java.util.List<? extends com.google.cloud.kms.inventory.v1.ProtectedResourceOrBuilder> getProtectedResourcesOrBuilderList(); /** + * + * * <pre> * Protected resources for this page. * </pre> @@ -52,24 +77,29 @@ com.google.cloud.kms.inventory.v1.ProtectedResourceOrBuilder getProtectedResourc int index); /** + * + * * <pre> * A token that can be sent as `page_token` to retrieve the next page. * If this field is omitted, there are no subsequent pages. * </pre> * * <code>string next_page_token = 2;</code> + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * * <pre> * A token that can be sent as `page_token` to retrieve the next page. * If this field is omitted, there are no subsequent pages. * </pre> * * <code>string next_page_token = 2;</code> + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/proto/google/cloud/kms/inventory/v1/key_dashboard_service.proto b/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/proto/google/cloud/kms/inventory/v1/key_dashboard_service.proto similarity index 100% rename from owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/proto/google/cloud/kms/inventory/v1/key_dashboard_service.proto rename to java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/proto/google/cloud/kms/inventory/v1/key_dashboard_service.proto diff --git a/owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/proto/google/cloud/kms/inventory/v1/key_tracking_service.proto b/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/proto/google/cloud/kms/inventory/v1/key_tracking_service.proto similarity index 100% rename from owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/proto/google/cloud/kms/inventory/v1/key_tracking_service.proto rename to java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/proto/google/cloud/kms/inventory/v1/key_tracking_service.proto diff --git a/owl-bot-staging/java-kmsinventory/v1/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keydashboardservice/create/SyncCreateSetCredentialsProvider.java b/java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keydashboardservice/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/java-kmsinventory/v1/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keydashboardservice/create/SyncCreateSetCredentialsProvider.java rename to java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keydashboardservice/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/java-kmsinventory/v1/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keydashboardservice/create/SyncCreateSetCredentialsProvider1.java b/java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keydashboardservice/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from owl-bot-staging/java-kmsinventory/v1/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keydashboardservice/create/SyncCreateSetCredentialsProvider1.java rename to java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keydashboardservice/create/SyncCreateSetCredentialsProvider1.java diff --git a/owl-bot-staging/java-kmsinventory/v1/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keydashboardservice/create/SyncCreateSetEndpoint.java b/java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keydashboardservice/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/java-kmsinventory/v1/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keydashboardservice/create/SyncCreateSetEndpoint.java rename to java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keydashboardservice/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/java-kmsinventory/v1/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keydashboardservice/listcryptokeys/AsyncListCryptoKeys.java b/java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keydashboardservice/listcryptokeys/AsyncListCryptoKeys.java similarity index 100% rename from owl-bot-staging/java-kmsinventory/v1/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keydashboardservice/listcryptokeys/AsyncListCryptoKeys.java rename to java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keydashboardservice/listcryptokeys/AsyncListCryptoKeys.java diff --git a/owl-bot-staging/java-kmsinventory/v1/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keydashboardservice/listcryptokeys/AsyncListCryptoKeysPaged.java b/java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keydashboardservice/listcryptokeys/AsyncListCryptoKeysPaged.java similarity index 100% rename from owl-bot-staging/java-kmsinventory/v1/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keydashboardservice/listcryptokeys/AsyncListCryptoKeysPaged.java rename to java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keydashboardservice/listcryptokeys/AsyncListCryptoKeysPaged.java diff --git a/owl-bot-staging/java-kmsinventory/v1/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keydashboardservice/listcryptokeys/SyncListCryptoKeys.java b/java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keydashboardservice/listcryptokeys/SyncListCryptoKeys.java similarity index 100% rename from owl-bot-staging/java-kmsinventory/v1/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keydashboardservice/listcryptokeys/SyncListCryptoKeys.java rename to java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keydashboardservice/listcryptokeys/SyncListCryptoKeys.java diff --git a/owl-bot-staging/java-kmsinventory/v1/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keydashboardservice/listcryptokeys/SyncListCryptoKeysProjectname.java b/java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keydashboardservice/listcryptokeys/SyncListCryptoKeysProjectname.java similarity index 100% rename from owl-bot-staging/java-kmsinventory/v1/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keydashboardservice/listcryptokeys/SyncListCryptoKeysProjectname.java rename to java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keydashboardservice/listcryptokeys/SyncListCryptoKeysProjectname.java diff --git a/owl-bot-staging/java-kmsinventory/v1/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keydashboardservice/listcryptokeys/SyncListCryptoKeysString.java b/java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keydashboardservice/listcryptokeys/SyncListCryptoKeysString.java similarity index 100% rename from owl-bot-staging/java-kmsinventory/v1/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keydashboardservice/listcryptokeys/SyncListCryptoKeysString.java rename to java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keydashboardservice/listcryptokeys/SyncListCryptoKeysString.java diff --git a/owl-bot-staging/java-kmsinventory/v1/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keydashboardservicesettings/listcryptokeys/SyncListCryptoKeys.java b/java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keydashboardservicesettings/listcryptokeys/SyncListCryptoKeys.java similarity index 100% rename from owl-bot-staging/java-kmsinventory/v1/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keydashboardservicesettings/listcryptokeys/SyncListCryptoKeys.java rename to java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keydashboardservicesettings/listcryptokeys/SyncListCryptoKeys.java diff --git a/owl-bot-staging/java-kmsinventory/v1/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/create/SyncCreateSetCredentialsProvider.java b/java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/java-kmsinventory/v1/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/create/SyncCreateSetCredentialsProvider.java rename to java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/java-kmsinventory/v1/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/create/SyncCreateSetCredentialsProvider1.java b/java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from owl-bot-staging/java-kmsinventory/v1/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/create/SyncCreateSetCredentialsProvider1.java rename to java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/create/SyncCreateSetCredentialsProvider1.java diff --git a/owl-bot-staging/java-kmsinventory/v1/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/create/SyncCreateSetEndpoint.java b/java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/java-kmsinventory/v1/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/create/SyncCreateSetEndpoint.java rename to java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/java-kmsinventory/v1/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/getprotectedresourcessummary/AsyncGetProtectedResourcesSummary.java b/java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/getprotectedresourcessummary/AsyncGetProtectedResourcesSummary.java similarity index 100% rename from owl-bot-staging/java-kmsinventory/v1/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/getprotectedresourcessummary/AsyncGetProtectedResourcesSummary.java rename to java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/getprotectedresourcessummary/AsyncGetProtectedResourcesSummary.java diff --git a/owl-bot-staging/java-kmsinventory/v1/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/getprotectedresourcessummary/SyncGetProtectedResourcesSummary.java b/java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/getprotectedresourcessummary/SyncGetProtectedResourcesSummary.java similarity index 100% rename from owl-bot-staging/java-kmsinventory/v1/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/getprotectedresourcessummary/SyncGetProtectedResourcesSummary.java rename to java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/getprotectedresourcessummary/SyncGetProtectedResourcesSummary.java diff --git a/owl-bot-staging/java-kmsinventory/v1/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/getprotectedresourcessummary/SyncGetProtectedResourcesSummaryProtectedresourcessummaryname.java b/java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/getprotectedresourcessummary/SyncGetProtectedResourcesSummaryProtectedresourcessummaryname.java similarity index 100% rename from owl-bot-staging/java-kmsinventory/v1/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/getprotectedresourcessummary/SyncGetProtectedResourcesSummaryProtectedresourcessummaryname.java rename to java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/getprotectedresourcessummary/SyncGetProtectedResourcesSummaryProtectedresourcessummaryname.java diff --git a/owl-bot-staging/java-kmsinventory/v1/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/getprotectedresourcessummary/SyncGetProtectedResourcesSummaryString.java b/java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/getprotectedresourcessummary/SyncGetProtectedResourcesSummaryString.java similarity index 100% rename from owl-bot-staging/java-kmsinventory/v1/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/getprotectedresourcessummary/SyncGetProtectedResourcesSummaryString.java rename to java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/getprotectedresourcessummary/SyncGetProtectedResourcesSummaryString.java diff --git a/owl-bot-staging/java-kmsinventory/v1/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/searchprotectedresources/AsyncSearchProtectedResources.java b/java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/searchprotectedresources/AsyncSearchProtectedResources.java similarity index 100% rename from owl-bot-staging/java-kmsinventory/v1/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/searchprotectedresources/AsyncSearchProtectedResources.java rename to java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/searchprotectedresources/AsyncSearchProtectedResources.java diff --git a/owl-bot-staging/java-kmsinventory/v1/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/searchprotectedresources/AsyncSearchProtectedResourcesPaged.java b/java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/searchprotectedresources/AsyncSearchProtectedResourcesPaged.java similarity index 100% rename from owl-bot-staging/java-kmsinventory/v1/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/searchprotectedresources/AsyncSearchProtectedResourcesPaged.java rename to java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/searchprotectedresources/AsyncSearchProtectedResourcesPaged.java diff --git a/owl-bot-staging/java-kmsinventory/v1/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/searchprotectedresources/SyncSearchProtectedResources.java b/java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/searchprotectedresources/SyncSearchProtectedResources.java similarity index 100% rename from owl-bot-staging/java-kmsinventory/v1/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/searchprotectedresources/SyncSearchProtectedResources.java rename to java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/searchprotectedresources/SyncSearchProtectedResources.java diff --git a/owl-bot-staging/java-kmsinventory/v1/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/searchprotectedresources/SyncSearchProtectedResourcesOrganizationnameResourcename.java b/java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/searchprotectedresources/SyncSearchProtectedResourcesOrganizationnameResourcename.java similarity index 100% rename from owl-bot-staging/java-kmsinventory/v1/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/searchprotectedresources/SyncSearchProtectedResourcesOrganizationnameResourcename.java rename to java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/searchprotectedresources/SyncSearchProtectedResourcesOrganizationnameResourcename.java diff --git a/owl-bot-staging/java-kmsinventory/v1/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/searchprotectedresources/SyncSearchProtectedResourcesOrganizationnameString.java b/java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/searchprotectedresources/SyncSearchProtectedResourcesOrganizationnameString.java similarity index 100% rename from owl-bot-staging/java-kmsinventory/v1/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/searchprotectedresources/SyncSearchProtectedResourcesOrganizationnameString.java rename to java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/searchprotectedresources/SyncSearchProtectedResourcesOrganizationnameString.java diff --git a/owl-bot-staging/java-kmsinventory/v1/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/searchprotectedresources/SyncSearchProtectedResourcesStringResourcename.java b/java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/searchprotectedresources/SyncSearchProtectedResourcesStringResourcename.java similarity index 100% rename from owl-bot-staging/java-kmsinventory/v1/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/searchprotectedresources/SyncSearchProtectedResourcesStringResourcename.java rename to java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/searchprotectedresources/SyncSearchProtectedResourcesStringResourcename.java diff --git a/owl-bot-staging/java-kmsinventory/v1/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/searchprotectedresources/SyncSearchProtectedResourcesStringString.java b/java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/searchprotectedresources/SyncSearchProtectedResourcesStringString.java similarity index 100% rename from owl-bot-staging/java-kmsinventory/v1/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/searchprotectedresources/SyncSearchProtectedResourcesStringString.java rename to java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservice/searchprotectedresources/SyncSearchProtectedResourcesStringString.java diff --git a/owl-bot-staging/java-kmsinventory/v1/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservicesettings/getprotectedresourcessummary/SyncGetProtectedResourcesSummary.java b/java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservicesettings/getprotectedresourcessummary/SyncGetProtectedResourcesSummary.java similarity index 100% rename from owl-bot-staging/java-kmsinventory/v1/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservicesettings/getprotectedresourcessummary/SyncGetProtectedResourcesSummary.java rename to java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/keytrackingservicesettings/getprotectedresourcessummary/SyncGetProtectedResourcesSummary.java diff --git a/owl-bot-staging/java-kmsinventory/v1/samples/snippets/generated/com/google/cloud/kms/inventory/v1/stub/keydashboardservicestubsettings/listcryptokeys/SyncListCryptoKeys.java b/java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/stub/keydashboardservicestubsettings/listcryptokeys/SyncListCryptoKeys.java similarity index 100% rename from owl-bot-staging/java-kmsinventory/v1/samples/snippets/generated/com/google/cloud/kms/inventory/v1/stub/keydashboardservicestubsettings/listcryptokeys/SyncListCryptoKeys.java rename to java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/stub/keydashboardservicestubsettings/listcryptokeys/SyncListCryptoKeys.java diff --git a/owl-bot-staging/java-kmsinventory/v1/samples/snippets/generated/com/google/cloud/kms/inventory/v1/stub/keytrackingservicestubsettings/getprotectedresourcessummary/SyncGetProtectedResourcesSummary.java b/java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/stub/keytrackingservicestubsettings/getprotectedresourcessummary/SyncGetProtectedResourcesSummary.java similarity index 100% rename from owl-bot-staging/java-kmsinventory/v1/samples/snippets/generated/com/google/cloud/kms/inventory/v1/stub/keytrackingservicestubsettings/getprotectedresourcessummary/SyncGetProtectedResourcesSummary.java rename to java-kmsinventory/samples/snippets/generated/com/google/cloud/kms/inventory/v1/stub/keytrackingservicestubsettings/getprotectedresourcessummary/SyncGetProtectedResourcesSummary.java diff --git a/owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/GetProtectedResourcesSummaryRequestOrBuilder.java b/owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/GetProtectedResourcesSummaryRequestOrBuilder.java deleted file mode 100644 index 3531f0c85d3b..000000000000 --- a/owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/GetProtectedResourcesSummaryRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/kms/inventory/v1/key_tracking_service.proto - -package com.google.cloud.kms.inventory.v1; - -public interface GetProtectedResourcesSummaryRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * <pre> - * Required. The resource name of the - * [CryptoKey][google.cloud.kms.v1.CryptoKey]. - * </pre> - * - * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> - * @return The name. - */ - java.lang.String getName(); - /** - * <pre> - * Required. The resource name of the - * [CryptoKey][google.cloud.kms.v1.CryptoKey]. - * </pre> - * - * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }</code> - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/KeyDashboardServiceProto.java b/owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/KeyDashboardServiceProto.java deleted file mode 100644 index 068dba58c990..000000000000 --- a/owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/KeyDashboardServiceProto.java +++ /dev/null @@ -1,101 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/kms/inventory/v1/key_dashboard_service.proto - -package com.google.cloud.kms.inventory.v1; - -public final class KeyDashboardServiceProto { - private KeyDashboardServiceProto() {} - 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_kms_inventory_v1_ListCryptoKeysRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_kms_inventory_v1_ListCryptoKeysRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_kms_inventory_v1_ListCryptoKeysResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_kms_inventory_v1_ListCryptoKeysResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n9google/cloud/kms/inventory/v1/key_dash" + - "board_service.proto\022\035google.cloud.kms.in" + - "ventory.v1\032\034google/api/annotations.proto" + - "\032\027google/api/client.proto\032\037google/api/fi" + - "eld_behavior.proto\032\031google/api/resource." + - "proto\032#google/cloud/kms/v1/resources.pro" + - "to\"\220\001\n\025ListCryptoKeysRequest\022D\n\006parent\030\001" + - " \001(\tB4\342A\001\002\372A-\n+cloudresourcemanager.goog" + - "leapis.com/Project\022\027\n\tpage_size\030\002 \001(\005B\004\342" + - "A\001\001\022\030\n\npage_token\030\003 \001(\tB\004\342A\001\001\"f\n\026ListCry" + - "ptoKeysResponse\0223\n\013crypto_keys\030\001 \003(\0132\036.g" + - "oogle.cloud.kms.v1.CryptoKey\022\027\n\017next_pag" + - "e_token\030\002 \001(\t2\233\002\n\023KeyDashboardService\022\262\001" + - "\n\016ListCryptoKeys\0224.google.cloud.kms.inve" + - "ntory.v1.ListCryptoKeysRequest\0325.google." + - "cloud.kms.inventory.v1.ListCryptoKeysRes" + - "ponse\"3\332A\006parent\202\323\344\223\002$\022\"/v1/{parent=proj" + - "ects/*}/cryptoKeys\032O\312A\033kmsinventory.goog" + - "leapis.com\322A.https://www.googleapis.com/" + - "auth/cloud-platformB\303\001\n!com.google.cloud" + - ".kms.inventory.v1B\030KeyDashboardServicePr" + - "otoP\001Z?cloud.google.com/go/kms/inventory" + - "/apiv1/inventorypb;inventorypb\370\001\001\252\002\035Goog" + - "le.Cloud.Kms.Inventory.V1\312\002\035Google\\Cloud" + - "\\Kms\\Inventory\\V1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.kms.v1.KmsResourcesProto.getDescriptor(), - }); - internal_static_google_cloud_kms_inventory_v1_ListCryptoKeysRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_kms_inventory_v1_ListCryptoKeysRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_kms_inventory_v1_ListCryptoKeysRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); - internal_static_google_cloud_kms_inventory_v1_ListCryptoKeysResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_kms_inventory_v1_ListCryptoKeysResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_kms_inventory_v1_ListCryptoKeysResponse_descriptor, - new java.lang.String[] { "CryptoKeys", "NextPageToken", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.kms.v1.KmsResourcesProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/KeyTrackingServiceProto.java b/owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/KeyTrackingServiceProto.java deleted file mode 100644 index 59c12ec1eab1..000000000000 --- a/owl-bot-staging/java-kmsinventory/v1/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/KeyTrackingServiceProto.java +++ /dev/null @@ -1,227 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/kms/inventory/v1/key_tracking_service.proto - -package com.google.cloud.kms.inventory.v1; - -public final class KeyTrackingServiceProto { - private KeyTrackingServiceProto() {} - 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_kms_inventory_v1_GetProtectedResourcesSummaryRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_kms_inventory_v1_GetProtectedResourcesSummaryRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_ResourceTypesEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_ResourceTypesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_CloudProductsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_CloudProductsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_LocationsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_LocationsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_kms_inventory_v1_SearchProtectedResourcesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_kms_inventory_v1_SearchProtectedResourcesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_kms_inventory_v1_SearchProtectedResourcesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_kms_inventory_v1_SearchProtectedResourcesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_kms_inventory_v1_ProtectedResource_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_kms_inventory_v1_ProtectedResource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_kms_inventory_v1_ProtectedResource_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_kms_inventory_v1_ProtectedResource_LabelsEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n8google/cloud/kms/inventory/v1/key_trac" + - "king_service.proto\022\035google.cloud.kms.inv" + - "entory.v1\032\034google/api/annotations.proto\032" + - "\027google/api/client.proto\032\037google/api/fie" + - "ld_behavior.proto\032\031google/api/resource.p" + - "roto\032\037google/protobuf/timestamp.proto\"s\n" + - "#GetProtectedResourcesSummaryRequest\022L\n\004" + - "name\030\001 \001(\tB>\342A\001\002\372A7\n5kmsinventory.google" + - "apis.com/ProtectedResourcesSummary\"\340\006\n\031P" + - "rotectedResourcesSummary\022\014\n\004name\030\005 \001(\t\022\026" + - "\n\016resource_count\030\001 \001(\003\022\025\n\rproject_count\030" + - "\002 \001(\005\022c\n\016resource_types\030\003 \003(\0132K.google.c" + - "loud.kms.inventory.v1.ProtectedResources" + - "Summary.ResourceTypesEntry\022c\n\016cloud_prod" + - "ucts\030\006 \003(\0132K.google.cloud.kms.inventory." + - "v1.ProtectedResourcesSummary.CloudProduc" + - "tsEntry\022Z\n\tlocations\030\004 \003(\0132G.google.clou" + - "d.kms.inventory.v1.ProtectedResourcesSum" + - "mary.LocationsEntry\0324\n\022ResourceTypesEntr" + - "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\003:\0028\001\0324\n\022Clo" + - "udProductsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " + - "\001(\003:\0028\001\0320\n\016LocationsEntry\022\013\n\003key\030\001 \001(\t\022\r" + - "\n\005value\030\002 \001(\003:\0028\001:\301\002\352A\275\002\n5kmsinventory.g" + - "oogleapis.com/ProtectedResourcesSummary\022" + - "mprojects/{project}/locations/{location}" + - "/keyRings/{key_ring}/cryptoKeys/{crypto_" + - "key}/protectedResourcesSummary\022\224\001project" + - "s/{project}/locations/{location}/keyRing" + - "s/{key_ring}/cryptoKeys/{crypto_key}/cry" + - "ptoKeyVersions/{crypto_key_version}/prot" + - "ectedResourcesSummary\"\320\001\n\037SearchProtecte" + - "dResourcesRequest\022H\n\005scope\030\002 \001(\tB9\342A\001\002\372A" + - "2\n0cloudresourcemanager.googleapis.com/O" + - "rganization\022\036\n\ncrypto_key\030\001 \001(\tB\n\342A\001\002\372A\003" + - "\n\001*\022\021\n\tpage_size\030\003 \001(\005\022\022\n\npage_token\030\004 \001" + - "(\t\022\034\n\016resource_types\030\005 \003(\tB\004\342A\001\001\"\212\001\n Sea" + - "rchProtectedResourcesResponse\022M\n\023protect" + - "ed_resources\030\001 \003(\01320.google.cloud.kms.in" + - "ventory.v1.ProtectedResource\022\027\n\017next_pag" + - "e_token\030\002 \001(\t\"\372\003\n\021ProtectedResource\022\014\n\004n" + - "ame\030\001 \001(\t\022\017\n\007project\030\002 \001(\t\022\022\n\nproject_id" + - "\030\t \001(\t\022\025\n\rcloud_product\030\010 \001(\t\022\025\n\rresourc" + - "e_type\030\003 \001(\t\022\020\n\010location\030\004 \001(\t\022L\n\006labels" + - "\030\005 \003(\0132<.google.cloud.kms.inventory.v1.P" + - "rotectedResource.LabelsEntry\022I\n\022crypto_k" + - "ey_version\030\006 \001(\tB-\372A*\n(cloudkms.googleap" + - "is.com/CryptoKeyVersion\022J\n\023crypto_key_ve" + - "rsions\030\n \003(\tB-\372A*\n(cloudkms.googleapis.c" + - "om/CryptoKeyVersion\0225\n\013create_time\030\007 \001(\013" + - "2\032.google.protobuf.TimestampB\004\342A\001\003\032-\n\013La" + - "belsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" + - "\001:\'\352A$\n\037cloudasset.googleapis.com/Asset\022" + - "\001*2\332\004\n\022KeyTrackingService\022\201\002\n\034GetProtect" + - "edResourcesSummary\022B.google.cloud.kms.in" + - "ventory.v1.GetProtectedResourcesSummaryR" + - "equest\0328.google.cloud.kms.inventory.v1.P" + - "rotectedResourcesSummary\"c\332A\004name\202\323\344\223\002V\022" + - "T/v1/{name=projects/*/locations/*/keyRin" + - "gs/*/cryptoKeys/**}/protectedResourcesSu" + - "mmary\022\356\001\n\030SearchProtectedResources\022>.goo" + - "gle.cloud.kms.inventory.v1.SearchProtect" + - "edResourcesRequest\032?.google.cloud.kms.in" + - "ventory.v1.SearchProtectedResourcesRespo" + - "nse\"Q\332A\021scope, crypto_key\202\323\344\223\0027\0225/v1/{sc" + - "ope=organizations/*}/protectedResources:" + - "search\032O\312A\033kmsinventory.googleapis.com\322A" + - ".https://www.googleapis.com/auth/cloud-p" + - "latformB\302\001\n!com.google.cloud.kms.invento" + - "ry.v1B\027KeyTrackingServiceProtoP\001Z?cloud." + - "google.com/go/kms/inventory/apiv1/invent" + - "orypb;inventorypb\370\001\001\252\002\035Google.Cloud.Kms." + - "Inventory.V1\312\002\035Google\\Cloud\\Kms\\Inventor" + - "y\\V1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_kms_inventory_v1_GetProtectedResourcesSummaryRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_kms_inventory_v1_GetProtectedResourcesSummaryRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_kms_inventory_v1_GetProtectedResourcesSummaryRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_descriptor, - new java.lang.String[] { "Name", "ResourceCount", "ProjectCount", "ResourceTypes", "CloudProducts", "Locations", }); - internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_ResourceTypesEntry_descriptor = - internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_ResourceTypesEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_ResourceTypesEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_CloudProductsEntry_descriptor = - internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_CloudProductsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_CloudProductsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_LocationsEntry_descriptor = - internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_descriptor.getNestedTypes().get(2); - internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_LocationsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_kms_inventory_v1_ProtectedResourcesSummary_LocationsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_kms_inventory_v1_SearchProtectedResourcesRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_kms_inventory_v1_SearchProtectedResourcesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_kms_inventory_v1_SearchProtectedResourcesRequest_descriptor, - new java.lang.String[] { "Scope", "CryptoKey", "PageSize", "PageToken", "ResourceTypes", }); - internal_static_google_cloud_kms_inventory_v1_SearchProtectedResourcesResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_kms_inventory_v1_SearchProtectedResourcesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_kms_inventory_v1_SearchProtectedResourcesResponse_descriptor, - new java.lang.String[] { "ProtectedResources", "NextPageToken", }); - internal_static_google_cloud_kms_inventory_v1_ProtectedResource_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_kms_inventory_v1_ProtectedResource_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_kms_inventory_v1_ProtectedResource_descriptor, - new java.lang.String[] { "Name", "Project", "ProjectId", "CloudProduct", "ResourceType", "Location", "Labels", "CryptoKeyVersion", "CryptoKeyVersions", "CreateTime", }); - internal_static_google_cloud_kms_inventory_v1_ProtectedResource_LabelsEntry_descriptor = - internal_static_google_cloud_kms_inventory_v1_ProtectedResource_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_kms_inventory_v1_ProtectedResource_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_kms_inventory_v1_ProtectedResource_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -}